scm/bb/tizen-distro.git
9 years agobitbake: monitordisk: don't log when not monitoring a filesystem for inodes
Ross Burton [Thu, 25 Sep 2014 14:28:52 +0000 (15:28 +0100)]
bitbake: monitordisk: don't log when not monitoring a filesystem for inodes

Writing a log that the filesystem isn't being monitored for inode usage just
confuses users who are not aware about the nature of inodes in their filesystem,
so don't say anything, just silently disable the monitor.  In general this only
happens on filesystems which don't have a limit on inodes.

(Bitbake rev: ca93bc84ee5fb94a50c11c47e4d212d7da649e24)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Update to dizzy head revision
Richard Purdie [Tue, 23 Sep 2014 21:10:21 +0000 (22:10 +0100)]
build-appliance-image: Update to dizzy head revision

(From OE-Core rev: e6c6d3fcfd2faf867e8145d25c1ba197fb9ee6b5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bin/bitbake: Update to version 1.24.0
Richard Purdie [Tue, 23 Sep 2014 20:45:49 +0000 (21:45 +0100)]
bitbake: bin/bitbake: Update to version 1.24.0

(Bitbake rev: 637ce8df2658e4905fab8a0600a45505596bf472)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosanity.conf: Update minimum bitbake version to 1.23.2 due to event changes
Richard Purdie [Tue, 23 Sep 2014 20:47:01 +0000 (21:47 +0100)]
sanity.conf: Update minimum bitbake version to 1.23.2 due to event changes

(From OE-Core rev: b4e2a769e8def2e78ffca3f006a0cc88407aaeda)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolayer.conf: Mark opkg-utils as ABISAFE for update-alternatives usage
Richard Purdie [Tue, 23 Sep 2014 19:01:01 +0000 (20:01 +0100)]
layer.conf: Mark opkg-utils as ABISAFE for update-alternatives usage

Currently linux-firmware rebuilds for each machine due to its usage of
update-alternatives which in turn means a dependency on opkg-utils.
Marking opkg-utils as ABISAFE is the only option we have right now
to avoid this.

(From OE-Core rev: 6829c0e161c4a8cde6624f211865922fce62d4fa)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoupdate-rc.d/systemd: Remove OVERRIDES dependency
Richard Purdie [Tue, 23 Sep 2014 19:00:31 +0000 (20:00 +0100)]
update-rc.d/systemd: Remove OVERRIDES dependency

Taking run-postinsts and building for two machines which have different
OVERRIDES leads to two different sets of stamps for an allarch package.

We don't need to depend on OVERRIDES in these classes, the end resulting
variables are good enough. We can therefore exclude the dependency
and allow a single package to be generated for run-postinsts.

(From OE-Core rev: fdc949154e64afb41dd4db3a97be74a15963128d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolayer.conf: Add in useradd dependencies as ABISAFE dependencies
Richard Purdie [Tue, 23 Sep 2014 19:01:28 +0000 (20:01 +0100)]
layer.conf: Add in useradd dependencies as ABISAFE dependencies

Currently allarch recipes using useradd rebuild each time MACHINE
changes which is not desireable. Adding the useradd dependencies
to this list ensures they do not change under these circumstances.

(From OE-Core rev: 7743a309017f0fb9286f00b1f6f546ee95c05303)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoman: fix not support xz/bz2 compression
Hongxu Jia [Tue, 23 Sep 2014 14:19:58 +0000 (22:19 +0800)]
man: fix not support xz/bz2 compression

In oe-core, bunzip and unzx located in /usr/bin/
rather than /usr, so tweak man's config.

[YOCTO #6750]

(From OE-Core rev: a8f07626d627b49913835778cc8039accd8b9896)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoltp: make setregid02 be able to pass
Roy.Li [Tue, 23 Sep 2014 07:57:39 +0000 (15:57 +0800)]
ltp: make setregid02 be able to pass

[YOCTO #6748]

replace "nobody" group with "nogroup", since the user "nobody"
belongs to "nogroup" group and no "nobody" group in oe-core

(From OE-Core rev: 3fc1b5acb50aa864d386f69a1c0d0db0425f970c)

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemtap: disable libvirt
Wenzong Fan [Tue, 23 Sep 2014 10:29:00 +0000 (06:29 -0400)]
systemtap: disable libvirt

libvirt is automatically linked to if present, this undetermined
dependency may cause build errors like:

  ../lib/libvirt.so: undefined reference to `libssh2_channel_open_ex'
  ../lib/libvirt.so: undefined reference to `libssh2_session_hostkey'
  ...

Both libvirt and libssh2 are not oe-core recipes for now, just disable
libvirt to fix this issue.

(From OE-Core rev: 815b44914eb30b86dfce0e81ffda7884e0efcc34)

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: add sdimage-bootpart kickstart file
Maciej Borzecki [Mon, 22 Sep 2014 11:35:20 +0000 (13:35 +0200)]
wic: add sdimage-bootpart kickstart file

Add kickstart for generating a SD card image that should cover most use
case scenarios. The layout is as follows:
- 16MB vfat partition that IMAGE_BOOT_FILES will be copied to, 4k
  alignment
- ext4 rootfs, 4k alignment

(From OE-Core rev: bb01a6be7b32aa675f5003a6012a60a081212e8c)

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: add new bootimg-partition plugin
Maciej Borzecki [Mon, 22 Sep 2014 11:35:19 +0000 (13:35 +0200)]
wic: add new bootimg-partition plugin

This patch implements 'bootimg-partition source plugin class for 'wic'. The
plugin creates an image of boot partition, copying over files listed in
IMAGE_BOOT_FILES bitbake variable.

(From OE-Core rev: 4a3200d710d953956064c28188577fbd461d093d)

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodocumentation.conf: document IMAGE_BOOT_FILES
Maciej Borzecki [Mon, 22 Sep 2014 11:35:18 +0000 (13:35 +0200)]
documentation.conf: document IMAGE_BOOT_FILES

Document IMAGE_BOOT_FILES variable.

(From OE-Core rev: 8007f41aa824db2ee681d9dd98a0b06f44fc9d6d)

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: set bootimg_dir when using image-name artifacts
Maciej Borzecki [Mon, 22 Sep 2014 11:35:16 +0000 (13:35 +0200)]
wic: set bootimg_dir when using image-name artifacts

Running wic with -e to use artifacts from a named image, bootimg_dir was
always passed as empty string to partition source plugins. The patch
sets bootimg_dir to current value of DEPLOY_DIR_IMAGE, as bootloader
artifacts end up in that location as well.

(From OE-Core rev: d7f69e6f0932a927b6ce289fb47ba575d7aaa1c8)

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: fix vfat partition sector count only if needed
Maciej Borzecki [Mon, 22 Sep 2014 11:35:15 +0000 (13:35 +0200)]
wic: fix vfat partition sector count only if needed

VFAT rootfs partitions sector count would get updated always even if
there is no need. Since parition size in wic is expressed in MB, any
sub MB change will cause the generated partition image to be larger
than allocated space within the disk image. Fortunately, partitions
sized in MB will most of the time have a proper sector count.

(From OE-Core rev: 99bee4cb489800d74dea4d2158ff834413685f04)

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: use IMAGE_EXTRA_SPACE for vfat rootfs
Maciej Borzecki [Mon, 22 Sep 2014 11:35:14 +0000 (13:35 +0200)]
wic: use IMAGE_EXTRA_SPACE for vfat rootfs

Functions for generating rootfs use IMAGE_EXTRA_SPACE rather than
BOOTDD_EXTRA_SPACE. The latter is used in boot image source plugins.

(From OE-Core rev: 44abf447f8e4ed11cbbe53a4fb0ecf10a20f0f9e)

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: minor comment update
Maciej Borzecki [Mon, 22 Sep 2014 11:35:13 +0000 (13:35 +0200)]
wic: minor comment update

Update comment about types of generated partition images.

(From OE-Core rev: ba1503f77e0c03fe6c715b61983008b7a534ae20)

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouninative: Add uninative - a way of reusing native/cross over multiple distros
Richard Purdie [Thu, 28 Aug 2014 10:10:06 +0000 (10:10 +0000)]
uninative: Add uninative - a way of reusing native/cross over multiple distros

These patches are the start of a new idea, a way of allowing a single set of
cross/native sstate to work over mutliple distros, even old ones.

The assumption is that our own C library is basically up to date. We build
and share a small tarball (~2MB) of a prebuilt copy of this along with a
patchelf binary (which sadly is C++ based so libstdc++ is in there). This
tarball can be generated from our usual SDK generation process through
the supplied recipe, uninative-tarball.

At the start of the build, if its not been extracted into the sysroot, this
tarball is extracted there and configured for the specified path.

When we install binaries from a "uninative" sstate feed, we change the
dynamic loader to point at this dynamic loader and C librbary. This works
exactly the same way as our relocatable SDK does. The only real difference
is a switch to use patchelf, so even if the interpreter section is too small,
it can still adjust the binary.

Right now this implements a working proof of concept. If you build the tarball
and place it at the head of the tree (in COREBASE), you can run a build from
sstate and successfully build packages and construct images.

There is some improvement needed, its hardcoded for x86_64 right now, its trivial
to add 32 bit support too. The tarball isn't fetched right now, there is just a
harcoded path assumption and there is no error handling. I haven't figured
out the best delivery mechanism for that yet. BuildStarted is probably not
the right event to hook on either.

I've merged this to illustrate how with a small change, we might make the
native/cross sstate much more reusable and hence improve the accessibility
of lower overhead builds. With this change, its possible the Yocto Project may
be able to support a configured sstate mirror out the box. This also has
positive implications for our developer workflow/SDK improvements.

(From OE-Core rev: e66c96ae9c7ba21ebd04a4807390f0031238a85a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: fetch2/perforce: Use replace (1 line) instead of find (3 lines)
Chad Nelson [Mon, 15 Sep 2014 13:01:42 +0000 (08:01 -0500)]
bitbake: fetch2/perforce: Use replace (1 line) instead of find (3 lines)

(Bitbake rev: 5bf5a937b26896bedbfea78dd1d62bce5a26ac2a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: fetch2/perforce: Fix localfile name if labels are used
Chad Nelson [Fri, 12 Sep 2014 20:42:21 +0000 (15:42 -0500)]
bitbake: fetch2/perforce: Fix localfile name if labels are used

I could apply the label "release_1.0" to a super project that contains
many sub projects.  If my recipes have SRC_URI's that use that label but
grab different sub-folders, than there's a bug where the cached localfile
(tar.gz) will not be unique and reused at the wrong times.

SRC_URI = "p4://perforce::1234@//depot/SuperProject/MiniProjectAAA/...;label=release_1.0 \
                     p4://perforce::1234@//depot/SuperProject/MiniProjectBBB/...;label=release_1.0"

(Bitbake rev: 3b5b1703b77490116dda895b29737cea51a3d6a0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: knotty: Ensure commandline parameters are updated in memres server
Richard Purdie [Tue, 23 Sep 2014 11:58:22 +0000 (12:58 +0100)]
bitbake: knotty: Ensure commandline parameters are updated in memres server

When using options like -k, -f, -v and so on with the memory resident
server, they'd currently only be set on the initial values passed to
the original command. This ensures they now match those specified
on the commandline for the options where this makes sense.

To make this work, a command to update the options on the server side
is required so this is added.

[YOCTO #5292]

(Bitbake rev: 1c75cc4d0c8b606c1fe76e6bf60bf6a32298b105)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoirda-utils: remove inherit autotools
Ross Burton [Fri, 19 Sep 2014 23:56:10 +0000 (00:56 +0100)]
irda-utils: remove inherit autotools

irda-utils doesn't use autotools, so don't inherit it.

(From OE-Core rev: d5e2a59ab59e3d67d09c5f25b8623186af855e17)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-init-build-env-memres: Fix automatic port usage
Richard Purdie [Tue, 23 Sep 2014 14:56:31 +0000 (15:56 +0100)]
oe-init-build-env-memres: Fix automatic port usage

The use of an automatic port wasn't working correctly since the server
was never getting started when port == -1. This fixes things so the
server is started when port is not specified (i.e. automatic) ensuring
this happens before BBSERVER is set.

[YOCTO #6563]

(From OE-Core rev: 982553b6d56ca4bfd095c1bcb736ae3b77deefa7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.14: update to v3.14.19
Bruce Ashfield [Tue, 23 Sep 2014 14:57:45 +0000 (10:57 -0400)]
linux-yocto/3.14: update to v3.14.19

Updating to the latest korg -stable update.

(From OE-Core rev: 7212dcb3a67b9a9b844b74e997d2e3ea7902555f)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.10: update to v3.10.55
Bruce Ashfield [Tue, 23 Sep 2014 14:57:44 +0000 (10:57 -0400)]
linux-yocto/3.10: update to v3.10.55

Updating to the latest korg -stable update.

(From OE-Core rev: 9745ffc0ae25be980d92f195937cef6d1f406ab2)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.17: bump to v3.17-rc6
Bruce Ashfield [Tue, 23 Sep 2014 14:57:43 +0000 (10:57 -0400)]
linux-yocto/3.17: bump to v3.17-rc6

Updating the 3.17 recipe to -rc6. This is nearly the release kernel, and should
have very few changes aftert this point.

(From OE-Core rev: 845e01d906982c2147828b97129e95e8a79dce7c)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.17: switch to dedicated 3.17 repository
Bruce Ashfield [Tue, 23 Sep 2014 14:57:42 +0000 (10:57 -0400)]
linux-yocto/3.17: switch to dedicated 3.17 repository

The 3.17 repository is ready, so we no longer need to reuse the
linux-yocto-dev tree.

(From OE-Core rev: c304674833360e0e2dceca3ebeb535025597e46f)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.17: update to v3.17-rc5
Bruce Ashfield [Tue, 23 Sep 2014 14:57:41 +0000 (10:57 -0400)]
linux-yocto/3.17: update to v3.17-rc5

Bumping the SRCREVs to import the latest korg -rc.

(From OE-Core rev: 8ae153f7da3244c3dd24cc5dbd722af26624201b)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.14: update to v3.14.18 and -rt9
Bruce Ashfield [Tue, 23 Sep 2014 14:57:40 +0000 (10:57 -0400)]
linux-yocto/3.14: update to v3.14.18 and -rt9

Refreshing the 3.14 kernel to a new korg stable and -rt release.

(From OE-Core rev: 91204afeb508ae21f8f2a32c340ec85efbf33fd0)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.10: update to v3.10.54 and -rt55
Bruce Ashfield [Tue, 23 Sep 2014 14:57:39 +0000 (10:57 -0400)]
linux-yocto/3.10: update to v3.10.54 and -rt55

The 3.10 kernel needed a refresh to the latest -stable and -rt releases.

(From OE-Core rev: c7360e9e72f06dab2617e16ae546f4d8e5262fa1)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake-worker: Fix bitbake -n
Richard Purdie [Mon, 22 Sep 2014 14:51:59 +0000 (15:51 +0100)]
bitbake: bitbake-worker: Fix bitbake -n

Without this you see:

File "bitbake/bin/bitbake-worker", line 201, in fork_off_task
    os._exit(child())
TypeError: an integer is required

(Bitbake rev: cd477b5e77ab0373248b8a8fa30e1c7b8ea984fd)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest: Added decorators to buildoptions.py
Lucian Musat [Mon, 22 Sep 2014 10:45:05 +0000 (13:45 +0300)]
oeqa/selftest: Added decorators to buildoptions.py

(From OE-Core rev: ea393e90055ea13b0c5a6950dbd388e826a66623)

Signed-off-by: Lucian Musat <georgex.l.musat@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokernel.bbclass: use one package split for all firmware filename extensions
Carlos Rafael Giani [Sun, 21 Sep 2014 11:08:55 +0000 (13:08 +0200)]
kernel.bbclass: use one package split for all firmware filename extensions

(From OE-Core rev: dd5313228879487ca2b11fc5d38fb821a2a810a5)

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agou-boot: cleanup indentation and consolidate .inc file
Denys Dmytriyenko [Tue, 16 Sep 2014 23:10:00 +0000 (19:10 -0400)]
u-boot: cleanup indentation and consolidate .inc file

(From OE-Core rev: 71525643909ac765e6b6a4b419cddae7d5812a8d)

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopopulate_sdk_base/meta-environment: Remove overlap from the two
Richard Purdie [Fri, 19 Sep 2014 17:09:12 +0000 (18:09 +0100)]
populate_sdk_base/meta-environment: Remove overlap from the two

Currently we have the horrible situation where meta-environment packages
the toolchain environment files and they get included in the SDK but are
broken, then, the SDK code overwrites them with good versions. This is
suboptimal.

This change fixes the code in meta-environment to create working
files and adds in the multilib support from populate_sdk_base, then
we remove the code in that base bbclass and rely on the packages
being installed if/as/when needed. This removes the duplication
and the broken versions of the files, hopefully making all well.

[YOCTO #6608]
[YOCTO #6613]

(From OE-Core rev: 063355e5965439c7b3253d692d7ab0ed1189d123)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agometa-environment: Fix TARGET_OS problem for ppc
Richard Purdie [Fri, 19 Sep 2014 17:08:40 +0000 (18:08 +0100)]
meta-environment: Fix TARGET_OS problem for ppc

Due to the use of the cross-canadian inherit, TARGET_OS can be reset to
values other than the correct one, leading to generation of the wrong
files.

By expanding REAL_MULTIMACH_TARGET_SYS before the inherit, the correct
OS value is preserved and we generate the right environment files.

[YOCTO #6608]
[YOCTO #6613]

(From OE-Core rev: ae265973c96ff4b8b5580436647fc361490e134c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer1.0-plugins-bad: disable libssh2
Wenzong Fan [Thu, 18 Sep 2014 08:01:16 +0000 (04:01 -0400)]
gstreamer1.0-plugins-bad: disable libssh2

libssh2 is automatically linked to if present, this undetermined
dependency may cause build errors like:

  .../x86_64-poky-linux/4.9.0/ld: cannot find -lssh2

libssh2 isn't an oe-core recipe, disable it for now.

(From OE-Core rev: 0cc59247ece1ea134d060d3ff064b5561972a92b)

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoperl: remove unneeded patches in ptest directory
Chong Lu [Thu, 18 Sep 2014 05:20:28 +0000 (13:20 +0800)]
perl: remove unneeded patches in ptest directory

The perl patches have been copied to ptest directory and these patches in
target rootfs are linked to build dir. The ptest of perl doesn't need these
patches, so remove them from target.

(From OE-Core rev: 1982095255917befd93ed14f9abc1f9fc4149f99)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython: obey LDFLAGS
Christopher Larson [Wed, 3 Sep 2014 16:42:54 +0000 (09:42 -0700)]
python: obey LDFLAGS

(From OE-Core rev: 7191b6b7503a5a17f93bd61283f22d409c5cb17b)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoirda-utils: obey LDFLAGS
Christopher Larson [Wed, 3 Sep 2014 00:00:49 +0000 (17:00 -0700)]
irda-utils: obey LDFLAGS

While we're at it, also switch to explicit variable passing rather than
relying on make -e, and pass V=1 so the actual commands hit the logs.

(From OE-Core rev: 7106f840b7d2a71171131c3c3e5fc311718ca718)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoblktrace: obey LDFLAGS for btrecord
Christopher Larson [Tue, 2 Sep 2014 22:58:50 +0000 (15:58 -0700)]
blktrace: obey LDFLAGS for btrecord

(From OE-Core rev: 43be08bbfc3fd7ae2a8143ccd5d51d48394f4e77)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agohostap-utils: obey LDFLAGS
Christopher Larson [Tue, 2 Sep 2014 22:56:25 +0000 (15:56 -0700)]
hostap-utils: obey LDFLAGS

(From OE-Core rev: 6b2395210e8c7fd7eb91fa78e043a811c3c0af3d)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosetserial: obey LDFLAGS
Christopher Larson [Tue, 2 Sep 2014 22:55:31 +0000 (15:55 -0700)]
setserial: obey LDFLAGS

(From OE-Core rev: aaebe0f814a031b06ba72bc9de8b5ec4dbf80f0a)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoossp-uuid: obey LDFLAGS
Christopher Larson [Tue, 2 Sep 2014 22:53:52 +0000 (15:53 -0700)]
ossp-uuid: obey LDFLAGS

(From OE-Core rev: 3a006550fcc99af58fa5d933160f169e97c3a6de)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogdbm-1.8.3: obey LDFLAGS
Christopher Larson [Tue, 2 Sep 2014 21:12:41 +0000 (14:12 -0700)]
gdbm-1.8.3: obey LDFLAGS

(From OE-Core rev: efdc4bff8dff4bf065a7c65e7d1c9f5460839a24)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agozlib: obey LDFLAGS for tests
Christopher Larson [Wed, 28 May 2014 16:14:29 +0000 (09:14 -0700)]
zlib: obey LDFLAGS for tests

(From OE-Core rev: c91d9153d5dc6750d1f4c7b3be58da0a1248245b)

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoltp: Added zip-native as a DEPENDS
Alejandro Hernandez [Thu, 18 Sep 2014 21:34:23 +0000 (16:34 -0500)]
ltp: Added zip-native as a DEPENDS

The Makefile checks for zip during installation

[YOCTO #6699]

(From OE-Core rev: a6e8ced3fa8e8e2aa3df0798b80eb26e5ebc4b15)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoflex: fix the deps for ptest builds
Christopher Larson [Wed, 17 Sep 2014 01:22:02 +0000 (18:22 -0700)]
flex: fix the deps for ptest builds

Building the tests for flex requires flex-native and bison-native, but the
attempt to add this dependency was done incorrectly. Use an inline python
conditional based on PTEST_ENABLED instead.

(From OE-Core rev: fce2be6dcf8e7320b7b9df9947745e78fd160815)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocmake.bbclass : Add support for cmake projects that use .S files.
Philip Balister [Wed, 17 Sep 2014 14:33:19 +0000 (10:33 -0400)]
cmake.bbclass : Add support for cmake projects that use .S files.

UHD and GNU radio use the cmake build system. The toolchain file made
from cmake.bbclass does not set the variable needs by cmake projects
that use .S files. UHD added some .S files and these changes are required
to build recent UHD.

(From OE-Core rev: 43ce4b804d433662fe77c6f5298060ba74a0e639)

Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstatesig: fix overrides behaviour to remove SIGGEN_LOCKEDSIGS_i586
Hongxu Jia [Wed, 17 Sep 2014 07:22:26 +0000 (15:22 +0800)]
sstatesig: fix overrides behaviour to remove SIGGEN_LOCKEDSIGS_i586

Require a sig file which SIGGEN_LOCKEDSIGS_i586 is not null, but
the actual SIGGEN_LOCKEDSIGS_i586 is null.
Invoking 'bitbake -e' and we got:
...
 3935 # $SIGGEN_LOCKEDSIGS_i586 [2 operations]
 3936 #   set /path/to/locked-sigs.inc:8576
 3938 #   del data_smart.py:406 [finalize]
 3939 #     ""
...

It was caused by the following commit:
...
(Bitbake rev: 899d45b90061eb3cf3e71029072eee42cd80930c)
Author: Richard Purdie <richard.purdie@linuxfoundation.org>
Date:   Tue May 31 23:52:50 2011 +0100

    bitbake/data_smart: Change overrides behaviour to remove expanded
      variables from the datastore
...

We add prefix 't-' to type to workaround the overrides behaviour.

(From OE-Core rev: f6a39cc957bf85ff43513f0b76afc3b2c9c906b6)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstate: set SIGGEN_LOCKEDSIGS_CHECK_LEVEL default to error
Hongxu Jia [Wed, 17 Sep 2014 05:57:06 +0000 (13:57 +0800)]
sstate: set SIGGEN_LOCKEDSIGS_CHECK_LEVEL default to error

(From OE-Core rev: 65020364bd089afbb83cd216e7ae2f837077bfc5)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstatesig.py: Replace '_'s with '-'s in SSTATE_LOCKEDSIGS* names.
Randy Witt [Fri, 12 Sep 2014 18:25:12 +0000 (11:25 -0700)]
sstatesig.py: Replace '_'s with '-'s in SSTATE_LOCKEDSIGS* names.

Using underscores in the "types" parts of the variable names can cause
unexpected issues with overrides. For example, if you have both
SSTATE_LOCKEDSIGS_x86_64 and SSTATE_LOCKEDSIGS_x86_64_i586, and i586
is in OVERRIDES, then you lose all of the contents in
SSTATE_LOCKEDSIGS_x86_64 and thus don't get some of the locked sstate.

Using '-'s in the variable names instead, eliminates these issues.

(From OE-Core rev: 6662c412a949a9f6b602c848e6303b19db7e5272)

(From OE-Core rev: 65f558a6f762fb13224091dc22903b58eeb9b392)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstatesig: Improve the support for locked down sstate cache usage
Hongxu Jia [Thu, 11 Sep 2014 08:30:16 +0000 (16:30 +0800)]
sstatesig: Improve the support for locked down sstate cache usage

Add code in the sstate hash validation code to ensure it really did
install these from sstate since if it didn't should to warn/abort
the build. The judgment condition is:
1) If a build is replaced by locked sstate-cache, it will triger a
   warn/error;
2) If objects are not used from the locked cache, it will triger a
   warn/error;
3) Use SIGGEN_LOCKEDSIGS_CHECK_LEVEL variable controls whether this
   is just a warning or a fatal error or nothing to report.

[YOCTO #6639]

(From OE-Core rev: 305912dce61c4fed0cbf631aa98a9e6f29db88e4)

(From OE-Core rev: 1683815695f39d4bad352348913f927ac8a1bcf5)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstatesig: Improve to handle locking of multiple machines
Richard Purdie [Fri, 5 Sep 2014 10:55:18 +0000 (11:55 +0100)]
sstatesig: Improve to handle locking of multiple machines

Instead of a single monolithic SIGGEN_LOCKEDSIGS, split this into
separate variables, one per sstate package architecture. Add in
a new SIGGEN_LOCKEDSIGS_TYPES variable which lists the package
architectures to load in.

SIGGEN_LOCKEDSIGS_TYPES is made machine specific using overrides.

Also sort the hashes in the lists by PN to make diffing them easier.

(From OE-Core rev: d8b0ce35981931a39e7db9d8e78de6e009b34688)

(From OE-Core rev: b42f305ce38b9e0f1a2b7cb9586bbabcd2d27429)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstatesig/sstate: Add support for locked down sstate cache usage
Richard Purdie [Fri, 5 Sep 2014 09:40:02 +0000 (10:40 +0100)]
sstatesig/sstate: Add support for locked down sstate cache usage

I've been giving things some thought, specifically why sstate doesn't
get used more and why we have people requesting external toolchains. I'm
guessing the issue is that people don't like how often sstate can change
and the lack of an easy way to lock it down.

Locking it down is actually quite easy so patch implements some basics
of how you can do this (for example to a specific toolchain). With an
addition like this to local.conf (or wherever):

SIGGEN_LOCKEDSIGS = "\
gcc-cross:do_populate_sysroot:a8d91b35b98e1494957a2ddaf4598956 \
eglibc:do_populate_sysroot:13e8c68553dc61f9d67564f13b9b2d67 \
eglibc:do_packagedata:bfca0db1782c719d373f8636282596ee \
gcc-cross:do_packagedata:4b601ff4f67601395ee49c46701122f6 \
"

the code at the end of the email will force the hashes to those values
for the recipes mentioned. The system would then find and use those
specific objects from the sstate cache instead of trying to build
anything.

Obviously this is a little simplistic, you might need to put an override
against this to only apply those revisions for a specific architecture
for example. You'd also probably want to put code in the sstate hash
validation code to ensure it really did install these from sstate since
if it didn't you'd want to abort the build.

This patch also implements support to add to bitbake -S which dumps the
locked sstate checksums for each task into a ready prepared include file
locked-sigs.inc (currently placed into cwd). There is a function,
bb.parse.siggen.dump_lockedsigs() which can be called to trigger the
same functionality from task space.

A warning is added to sstate.bbclass through a call back into the siggen
class to warn if objects are not used from the locked cache. The
SIGGEN_ENFORCE_LOCKEDSIGS variable controls whether this is just a warning
or a fatal error.

A script is provided to generate sstate directory from a locked-sigs file.

(From OE-Core rev: 7e14784f2493a19c6bfe3ec3f05a5cf9797a2f22)

(From OE-Core rev: 884d4fa3e77cf32836f14a113c11489076f4a84d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: data_smart: Clarify what 'computed' means in the data store history context
Richard Purdie [Mon, 15 Sep 2014 14:43:56 +0000 (14:43 +0000)]
bitbake: data_smart: Clarify what 'computed' means in the data store history context

(Bitbake rev: a2ca038dd1d0be4e0a0b20ae16a467d5a0075514)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-configure/gcc-common: Move preconfigure definition to common include
Richard Purdie [Tue, 16 Sep 2014 11:52:06 +0000 (11:52 +0000)]
gcc-configure/gcc-common: Move preconfigure definition to common include

There is a race where:

NOTE: recipe libgcc-initial-4.9.1-r0: task do_configure: Started
NOTE: recipe gcc-runtime-4.9.1-r0: task do_preconfigure: Started

| checking build system type... /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-deb/build/build/tmp/work-shared/gcc-4.9.1-r0/gcc-4.9.1/libgcc/../config.sub: line 1711: syntax error near unexpected token `;;'
| /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-deb/build/build/tmp/work-shared/gcc-4.9.1-r0/gcc-4.9.1/libgcc/../config.sub: line 1711: ` ;;'
| configure: error: /bin/bash /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-deb/build/build/tmp/work-shared/gcc-4.9.1-r0/gcc-4.9.1/libgcc/../config.sub x86_64-linux failed
| WARNING: exit code 2 from a shell command.

so we need to make sure the preconfigure task executes in all shared
work contexts.

(From OE-Core rev: 3c30331d6eaf804b83a6d27189a12efc94310e91)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibgcrypt: Fix ARM assembly when building __PIC__
Jackie Huang [Mon, 15 Sep 2014 10:16:00 +0000 (06:16 -0400)]
libgcrypt: Fix ARM assembly when building __PIC__

libgcrypt.so.20 contains .text relocations, backport a patch
to fix it.

(From OE-Core rev: a81d59bc8d13402725f0f5b42af92332570484d3)

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: remove hardwired path
Cristian Iorga [Tue, 16 Sep 2014 07:18:00 +0000 (10:18 +0300)]
build-appliance-image: remove hardwired path

Remove wrong absolute hardwired path
for the VM disk image.

Fixes [YOCTO #6728].

(From OE-Core rev: f8a9b81192f8846937d85c7189018e35c860f7bd)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorsync: remove trailing whitespace
Ross Burton [Mon, 15 Sep 2014 14:27:26 +0000 (15:27 +0100)]
rsync: remove trailing whitespace

(From OE-Core rev: 75d9bdd9c2942992064808baa83a8c8499daff55)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorsync: Add PACKAGECONFIG for acl/attr
Roy Li [Mon, 15 Sep 2014 09:01:36 +0000 (17:01 +0800)]
rsync: Add PACKAGECONFIG for acl/attr

Add PACKAGECONFIG for acl/attr
and setting the default value to enable them

[ RB: fix PACKAGECONFIG assignment ]

(From OE-Core rev: d84262d34920dd827b6d7f76c01ce0787a70f649)

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: fix to use ${libdir} for libraries
Chen Qi [Mon, 15 Sep 2014 02:05:03 +0000 (10:05 +0800)]
systemd: fix to use ${libdir} for libraries

We need to use ${libdir} instead of ${exec_prefix}/lib for libraries.
Otherwise, we would meet do_install errors if multilib is enabled.

(From OE-Core rev: 6beeccb81416b0a7af6a4b19cb641f0d66a7198a)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolttng-tools: add PACKAGECONFIG to support --enable-python-bindings and lttng-ust
Hongxu Jia [Thu, 4 Sep 2014 07:51:00 +0000 (15:51 +0800)]
lttng-tools: add PACKAGECONFIG to support --enable-python-bindings and lttng-ust

Add PACKAGECONFIG to support --enable-python-bindings
Add PACKAGECONFIG to support lttng-ust

And python-bindings requires swig-native as DEPENDS, and
swig-native is not in oe-core, so disable python-bindings
by default

(From OE-Core rev: 9557bf88287216ff8cb98005cbc85b6928f4495c)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoi2c-tools: create i2c-tools-misc package for perl scripts
Chong Lu [Tue, 9 Sep 2014 01:54:00 +0000 (09:54 +0800)]
i2c-tools: create i2c-tools-misc package for perl scripts

The patch is to split those perl scripts from the main package.
Add perl to RDEPENDS_i2c-tools-misc.

(From OE-Core rev: 9a8b35ec689ca583bb1e117ca4998215da7fcac6)

Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoportmap: add systemd service file
Chen Qi [Sun, 14 Sep 2014 06:48:52 +0000 (14:48 +0800)]
portmap: add systemd service file

Add systemd service file for systemd support.

(From OE-Core rev: cc44cb2888f1ddecdd01d7bc414f7ac3043d1372)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoportmap: fix INITSCRIPT_PARAMS
Chen Qi [Sun, 14 Sep 2014 06:48:51 +0000 (14:48 +0800)]
portmap: fix INITSCRIPT_PARAMS

Fix portmap init to make it run at runlevel 2,3,4,5.

(From OE-Core rev: 93845fe60d89c0592a5c1ed631fc737c724cbc5b)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodropbear: add pam modules dependencies
Wenzong Fan [Fri, 12 Sep 2014 08:57:34 +0000 (04:57 -0400)]
dropbear: add pam modules dependencies

If pam distro feature enabled, dropbear will need below pam rpms
to work:

  * libpam-runtime
  * pam-plugin-deny
  * pam-plugin-permit
  * pam-plugin-unix

Just add the runtime dependencies explicitly.

(From OE-Core rev: dfbeb663e99f3280d055ec04454353f2082ced03)

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoat-spi2-core: fix DBIND_CHECK_ALIGNOF m4 macro
Joe Slater [Fri, 12 Sep 2014 19:20:22 +0000 (12:20 -0700)]
at-spi2-core: fix DBIND_CHECK_ALIGNOF m4 macro

Modify the macro so it will work when cross-compiling.
Note that the values checked are normally in a site file
so the macro rarely has to discover them.

(From OE-Core rev: 09610d6cdda95e964a7565b13eb35a26ae652aa9)

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogrub-efi: Replace _BSD_SOURCE macro with _DEFAULT_SOURCE
Robert Yang [Tue, 9 Sep 2014 07:38:30 +0000 (00:38 -0700)]
grub-efi: Replace _BSD_SOURCE macro with _DEFAULT_SOURCE

This is needed with glibc 2.20 since _BSD_SOURCE
macro is gone

Khem fixed grub, but the grub-efi also needs it, the patch can't apply
to grub-efi, so made a new patch for it.

(From OE-Core rev: da120dec96f8f019c0fd50576fb7490689234257)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer1.0-plugins-bad.inc: Add rtmp support in gstreamer.
Marie Kowalczyk [Fri, 12 Sep 2014 08:54:49 +0000 (10:54 +0200)]
gstreamer1.0-plugins-bad.inc: Add rtmp support in gstreamer.

RTMP feature depends on rtmpdump.

(From OE-Core rev: 8d3dc353c8857d27957c9db4ced8b2009f2e9b2a)

Signed-off-by: Marie Kowalczyk <marie.kowalczyk@vodalys.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstate.bbclass: fix sstate_hardcode_path()
Robert Yang [Fri, 12 Sep 2014 09:54:18 +0000 (02:54 -0700)]
sstate.bbclass: fix sstate_hardcode_path()

The "grep -e (x|y)" doesn't work, for example:
$ echo xy | grep -e '(x|y)'
No output

We can use "grep -E" (extended regexp) or "grep -e x -e y" to fix it.
It only affected the cross recipes.

(From OE-Core rev: 62722de6d0ec00608eacc2cb0396362aced00047)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolicense: Improve disk usage
Richard Purdie [Fri, 12 Sep 2014 15:39:49 +0000 (16:39 +0100)]
license: Improve disk usage

Currently copies of the license files are made which wastes disk space
and adversely affects performance. We can link these instead in most
cases for small performance gains.

(From OE-Core rev: 0b0f3631fd22f731b6aeedb73965e367b695028b)

(From OE-Core rev: fe00d4f479c4fb5e4be5dda616a4de0a257ef6c3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstate: Fix incorrect return value handling
Richard Purdie [Fri, 12 Sep 2014 15:39:16 +0000 (16:39 +0100)]
sstate: Fix incorrect return value handling

The use of [ and && here means $? is reset and the exit 1 error
interception wasn't working, leading to "file changed as we read it"
errors from sstate_create_package when heavily using hardlinks.

Fix this by placing $? into a variable.

(From OE-Core rev: 6e51f900b76b06c09a3d6927f8db7398e2c035ed)

(From OE-Core rev: 75040a098e11927e6872e3a2a6286fe3ed0c7f47)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoshadow: Make useradd work correctly with --root again
Peter Kjellerstedt [Fri, 12 Sep 2014 15:05:00 +0000 (17:05 +0200)]
shadow: Make useradd work correctly with --root again

Even if useradd --root <root> is used it would still read login.defs
before doing the chroot() and thus use the one provided by the host
rather than the sysroot.

(From OE-Core rev: b85917a4ebe636316fa7305017cd32a47b392039)

(From OE-Core rev: 0af59a04135f067f0e01883defa77c6f714eab2e)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: data_smart: Fix remove operator and its interaction with data expansion
Richard Purdie [Sat, 13 Sep 2014 07:50:26 +0000 (08:50 +0100)]
bitbake: data_smart: Fix remove operator and its interaction with data expansion

If you have:

FOO = "${bindir}/X Y"
FOO_remove = "${bindir}/X"

the expected result is "Y". Currently this doesn't work since the removed
expressions are not expanded first. This patch adjusts things so the
expressions are expanded before being processed for removal.

Also add a test to ensure this case continues to work.

[YOCTO #6624]

(Bitbake rev: 72a1ca4a104ccab73d6abcbd44db9c2636a58572)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_base: enable adding custom commands to SDK install script
Paul Eggleton [Wed, 10 Sep 2014 17:19:31 +0000 (18:19 +0100)]
classes/populate_sdk_base: enable adding custom commands to SDK install script

Add an SDK_POST_INSTALL_COMMAND variable which allows additional
commands to be added towards the end of the SDK install script, for e.g.
additional processing that needs to be done as part of installing the
SDK.

(From OE-Core rev: 10df0718d6a626d99beb68cde8d914ee0820d7eb)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bin/bitbake: Update to version 1.23.2
Richard Purdie [Thu, 11 Sep 2014 16:31:09 +0000 (17:31 +0100)]
bitbake: bin/bitbake: Update to version 1.23.2

(Bitbake rev: e24095f54c52a547c0462836586a5d716249036e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: siggen/runqueue/bitbake-worker: Improve siggen data transfer interface
Richard Purdie [Fri, 5 Sep 2014 09:34:41 +0000 (10:34 +0100)]
bitbake: siggen/runqueue/bitbake-worker: Improve siggen data transfer interface

We need to transfer some of the siggen data from the core/cooker into
the worker instances. There was a partial API created for this but
its ugly and its not possible to extend it from the siggen class.

This patch completes the interface/abstraction for the data and
means the class can extend/customise it in any siggen class.

(Bitbake rev: cf2d642052979d236185c5b8ca2c5478c06e62ae)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxserver-xorg: remove aarch64.patch
Kai Kang [Thu, 11 Sep 2014 03:31:09 +0000 (11:31 +0800)]
xserver-xorg: remove aarch64.patch

Patch aarch64.patch adds aarch64 support for xserver-xorg 1.13.1 in
header file servermd.h. And aarch64 is supported in version 1.15.1
already and the patch causes redefine error.

So remove aarch64.patch.

(From OE-Core rev: 2d8700bf2250ff4975dad51ee32e8d520fc14a11)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: upgraded VMware machine config
Cristian Iorga [Thu, 11 Sep 2014 15:33:25 +0000 (18:33 +0300)]
build-appliance-image: upgraded VMware machine config

Build Appliance VMware configuration has
been modernized:
- Default disk is a SATA one;
- CDROM and Floppy drives removed, no real use;
- 3D acceleration not really present, removed;
This solves a warning that VMware
Player/Workstation was displaying at boot.
- IDE disk removed.
- guestOS has been set to a 64bits Linux.

Fixes [YOCTO #6680].

(From OE-Core rev: be5b17b7f08f2c798f2dddcd15d5481cef2dc768)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonspr: Upgrade to 4.10.7
Saul Wold [Tue, 9 Sep 2014 23:15:11 +0000 (16:15 -0700)]
nspr: Upgrade to 4.10.7

Remove patch that was directly modifing the configure script
since we can now use autoreconf to configure.  This also allowed
for the removal of the do_configure() functions.

Added patch to remove an undefined ${srcdir}.

(From OE-Core rev: 622ad8482b55957f4a08eadf0131b0eb86d1886b)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackagegroup-self-hosted: move graphics packages to graphics group
Jackie Huang [Sat, 6 Sep 2014 00:25:12 +0000 (20:25 -0400)]
packagegroup-self-hosted: move graphics packages to graphics group

The following packages are gui based tools:
  xdg-utils       # A set of common interfaces for desktop
  leafpad         # A GTK+ text editor used in Build Appliance
  midori          # A web browser used in Build Appliance
  pcmanfm         # PCManFm file manager used in Build Appliance
  vte             # Virtual terminal emulator GTK+ widget library

Move them to packagegroup-self-hosted-graphics so that we can make
a graphics free self-hosted image by excluding the
packagegroup-self-hosted-graphics.

(From OE-Core rev: bb7d081ccb5a352d3089b6b30ab740e62c05e791)

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackagegroup.bbclass: Use immediate expanded PACKAGE_ARCH value
Otavio Salvador [Sat, 6 Sep 2014 19:41:55 +0000 (16:41 -0300)]
packagegroup.bbclass: Use immediate expanded PACKAGE_ARCH value

When the PACKAGE_ARCH is dependant of a override, the expanding is
done too late triggering the false-positive error of wrong inclusion
order.

To fix this we use immediate expansion operator to evaluate the
PACKAGE_ARCH value in order to choose to load 'allarch' class or not.

(From OE-Core rev: 2c9b1d304daade7b0907320aeb9c522e7ab9dcab)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/runtime: Automatic test for ptest
Lucian Musat [Thu, 4 Sep 2014 11:27:26 +0000 (14:27 +0300)]
oeqa/runtime: Automatic test for ptest

For images without ptest the packages are automatically installed alongside ptest-runner. Log results are saved in ./results folder.
No cleanup is done for packages after the test is finished.

(From OE-Core rev: f8e99fa8baa020c6414da19428b73c1fd30c9523)

Signed-off-by: Lucian Musat <georgex.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/utils/logparser.py: results based log parser utility
Lucian Musat [Thu, 4 Sep 2014 11:27:25 +0000 (14:27 +0300)]
oeqa/utils/logparser.py: results based log parser utility

A module for parsing results based logs like ptest, compliance and performance.
Supports breaking the logs into multiple sections and also provides a result object to use the parser with.
The parser is initialized with the regex required to identify results and section statements in the target log file.

(From OE-Core rev: 72308d030fc98982e88b121b052cd2438f6b031c)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Lucian Musat <georgex.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa: Added package installer to oetest to aid in future automatic install of packages
Lucian Musat [Thu, 4 Sep 2014 11:27:24 +0000 (14:27 +0300)]
oeqa: Added package installer to oetest to aid in future automatic install of packages

(From OE-Core rev: e0af8a3c751f938faf7deb60b51f42450ae58e27)

Signed-off-by: Lucian Musat <georgex.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto-dev: bump to v3.17+
Bruce Ashfield [Mon, 8 Sep 2014 19:41:05 +0000 (15:41 -0400)]
linux-yocto-dev: bump to v3.17+

Update the -dev recipes PV to reflect that the development tree is
now at v3.17-rc4.

(From OE-Core rev: 0a5353ef42814afea33ce5d69c1fe80e3b3257ba)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.14: configuration updates and feature merges.
Bruce Ashfield [Mon, 8 Sep 2014 19:33:33 +0000 (15:33 -0400)]
linux-yocto/3.14: configuration updates and feature merges.

Updating the 3.14 meta and machine SRCREVs to pick up the following changes:

meta/config:

    a94680bfeb0e drm-gma500: build GMA500 DRM driver as kernel module
    21783e2e6be2 intel-common: intel-core-32: use tunnelcreek.scc
    0b46240ac3b3 soc: tunnelcreek: create tunnelcreek scc
    c7207d9c0e6a qemuppc64: create bsp config
    8f553f77e0ad meta: Create kernel config and scc for CRIU
    dacb1c1ab011 meta: common-pc: add support for booting via EFI
    b85e4cb574d6 meta: Add CONFIG_TTY to common-pc-drivers.cfg
    33f2c8d2ba33 meta: Add CONFIG_TTY to 8250.cfg
    e6f31e4894d5 GRE: enable gre feature.

Features:

    b85edae6fd61 net: e1000e calls skb_set_hash
    b45e6dec1972 net: ppp: use sk_unattached_filter api
    d310945fb6d8 tracing: accelerate tracing filters with BPF
    6742a0d5e218 net: filter: x86: internal BPF JIT
    66f2b151dd09 net: filter: x86: split bpf_jit_compile()
    3c82c5d1fc49 net: filter: Fix redefinition warnings on x86-64.
    5ad74ef546a4 net: filter: additional BPF tests
    f097814fc305 net: filter: BPF testsuite
    1bcefe39e229 net: filter: make BPF conversion more readable
    e75a3abd0c6f net: filter: misc/various cleanups
    f5cd96317979 net: filter: make register naming more comprehensible
    2f485870e68b net: filter: simplify label names from jump-table
    d381512d96f0 bpf_dbg: fix wrong register usage
    d99d91c2c5a9 sched, cls: check if we could overwrite actions when changing a filter
    8a03c23319dc net: filter: initialize A and X registers
    77a8a3fb86cb filter: added BPF random opcode
    a9bb9bcd5a04 net: filter: seccomp: fix wrong decoding of BPF_S_ANC_SECCOMP_LD_W
    724096236a68 filter: prevent nla extensions to peek beyond the end of the message
    41bdf9a8c75f net: filter: be more defensive on div/mod by X==0
    2f908136e311 net: filter: minor: fix kdoc in __sk_run_filter
    2c733311d285 net: filter: rework/optimize internal BPF interpreter's instruction set
    40155402aff6 net: filter: move filter accounting to filter core
    2635af59e1b6 net: filter: keep original BPF program around
    97147dbf46f8 net: filter: add jited flag to indicate jit compiled filters
    676d895e105a net: Rename skb->rxhash to skb->hash
    1e4f73c14307 tools: bpf_dbg: various misc code cleanups
    47956b735bf6 timerfd: Implement timerfd_ioctl method to restore timerfd_ctx::ticks, v3
    26b3ef638e06 docs: Procfs -- Document timerfd output
    af3430a5fdc8 timerfd: Implement show_fdinfo method
    5dd4e59bf04b mm: softdirty: clear VM_SOFTDIRTY flag inside clear_refs_write() instead of clear_soft_dirty()
    c2a643b6da96 mm: softdirty: don't forget to save file map softdiry bit on unmap
    8a98c67f7124 mm/memory.c: don't forget to set softdirty on file mapped fault
    5886c8ea1f26 mm: softdirty: make freshly remapped file pages being softdirty unconditionally
    8f4adad45df3 proc: show mnt_id in /proc/pid/fdinfo
    d7e814681dd4 gre6: Call skb_checksum_simple_validate
    f17fe1ff70a1 net: Generalize checksum_init functions
    b6d250d7bead ip6gre: add x-netns support
    aebe8ead74e5 gre: allow changing mac address when device is up
    98268e587a24 gre: add x-netns support
    923b14472945 yaffs: fix yaffs_vfs.c warnings.
    1cc6b7d49394 yaffs: Avoid setting any ACL releated xattr

(From OE-Core rev: 7c9a0f87cfe07ddc94e63eb6b8b3b547895ada80)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.10: update valleyisland-io merge branch
Bruce Ashfield [Mon, 8 Sep 2014 04:52:13 +0000 (00:52 -0400)]
linux-yocto/3.10: update valleyisland-io merge branch

Updating the topic branch that is used for valleyisland-io merges.

(From OE-Core rev: 4d804dc8d683024ef2a0a07200492f458f52b535)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto: introduce v3.17
Bruce Ashfield [Mon, 8 Sep 2014 04:21:21 +0000 (00:21 -0400)]
linux-yocto: introduce v3.17

With this commit, we introduce the v3.17-rcX kernels, which will be
released as part of the 1.7 yocto project.

All architectures have been compiled and booted with this revision
of the kernel.

(From OE-Core rev: 07315861450ebf3cd224f4700eb125b74057aa0f)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoperf: fix v3.17 powerpc compilation issues
Bruce Ashfield [Mon, 8 Sep 2014 03:57:29 +0000 (23:57 -0400)]
perf: fix v3.17 powerpc compilation issues

The powerpc perf arch port has two issues in the current 3.17-rc
seriers. Undefined dwarf symbols and undefined pr_debug calls.

commit a60335ba [perf tools powerpc: Adjust callchain based on DWARF debug info]
introduces skip-callchain-idx.c, and breaks the perf build.

Until fixes get into the mainline kernel, we temporarily fix the issues by
adding a forced linke to -ldw and modifying skip-callchain-idx.c to include
the proper debug files for pr_debug.

(From OE-Core rev: 9f204a02f07f8e378e8a078db103a6ba94ec55cb)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolttng-modules: fix compilation for 3.17-rcX
Bruce Ashfield [Thu, 4 Sep 2014 14:07:59 +0000 (10:07 -0400)]
lttng-modules: fix compilation for 3.17-rcX

Updating the lttng-modules 2.5 recipe with backports from the master branch to
enable builds on 3.17 based kernels.

(From OE-Core rev: cc2ef9b0f6371837faa5e430c0b6c48bf24a8c4c)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.10: baytrail i/o updates
Bruce Ashfield [Tue, 2 Sep 2014 19:14:54 +0000 (15:14 -0400)]
linux-yocto/3.10: baytrail i/o updates

Updating the 3.10 kernel with baytrail feature backports:

   e313fe1374d spi/pxa2xx: fix incorrect SW mode chipselect setting for BayTrail LPSS SPI
   da387aea86a8 spi/pxa2xx: change default supported DMA burst size to 1
   119e77242d80 spi/pxa2xx: fix runtime PM enabling order
   ac2ff9de705c spi/pxa2xx: Prevent DMA from transferring too many bytes
   2260921e859c spi: pxa2xx: remove unnecessary OOM messages
   59f141f4a558 spi/pxa2xx-pci: Add PCI mode support for BayTrail LPSS SPI
   25c8232cbb66 spi: remove DEFINE_PCI_DEVICE_TABLE macro
   6eb21efb3641 i2c: designware-pci: set ideal HCNT, LCNT and SDA hold time value
   4e2bd3da1739 i2c: designware-pci: add 10-bit addressing mode functionality for BYT I2C
   7b813400820f i2c: designware-pci: Add Baytrail PCI IDs
   5fe4585c09d1 usb: gadget: udc-core: move sysfs_notify() to a workqueue
   cdbdda47494a usb: gadget: don't fail when DMA isn't present
   8c1914c2e3bc mmc: sdhci: add DDR50 1.8V mode support for BayTrail eMMC Controller
   5ad460bf8d4a mmc: sdhci: Preset value not supported in Baytrail eMMC
   3359f2b4d2d4 mmc: sdhci: Allow for irq being shared
   0663d41d3b8c 8250_dw: Support all baudrates on baytrail
   1866808f61bf serial: 8250_pci: add support for Intel BayTrail
   472c007ce197 serial: 8250: don't change the fifo trigger level when using dma
   fadb6c538a2b serial: 8250_dma: check the result of TX buffer mapping
   e48701bee23b dmaengine: dw: don't perform DMA when dmaengine_submit is called
   9fda0d3bfdd8 dmaengine: dw: introduce dwc_dostart_first_queued() helper
   a0b8d0199e8f dma: dw: Add suspend and resume handling for PCI mode DW_DMAC.
   f1c1bd979f71 pwm: lpss: Fix const qualifier and sparse warnings
   d6aa3e78c2ea pwm: lpss: Add support for PCI devices
   a8fe7a1badcd pwm: add support for Intel Low Power Subsystem PWM
   cd9e2e0a810c ACPI / LPSS: Add Intel BayTrail ACPI mode PWM
   b8dab93f3e79 pwm: Add sysfs interface

(From OE-Core rev: 2c01ce4341b6745e2a778505d4840b64eb053e74)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoe2fsprogs: update acinclude.m4
Ross Burton [Mon, 30 Jun 2014 22:27:30 +0000 (23:27 +0100)]
e2fsprogs: update acinclude.m4

Some macros have been added upstream and were not being executed, so refresh our
fork of this file.

(From OE-Core rev: 6988baed623c507aa44164801c5359411f462d84)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoe2fsprogs: remove manual build of util/subst
Ross Burton [Mon, 30 Jun 2014 14:32:48 +0000 (15:32 +0100)]
e2fsprogs: remove manual build of util/subst

The build system uses BUILD_CC itself now, so we don't need to do it manually.

(From OE-Core rev: 32ddff201eb00b1ffa244904251ad0ad39760b62)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoe2fsprogs: enable verbose build
Ross Burton [Mon, 30 Jun 2014 14:23:17 +0000 (15:23 +0100)]
e2fsprogs: enable verbose build

(From OE-Core rev: e29c5947c2618341a46dc125a155b80c07d2f9ae)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoe2fsprogs: remove chmod
Ross Burton [Mon, 30 Jun 2014 14:00:30 +0000 (15:00 +0100)]
e2fsprogs: remove chmod

This chmod doesn't appear to be needed, and history fades away in 2005.

(From OE-Core rev: bade04d62468acbec2b54f38b5071a3b1070ab9a)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopcihp: fix possible array out of bounds, CVE-2014-5388
Sona Sarmadi [Fri, 5 Sep 2014 10:04:08 +0000 (12:04 +0200)]
pcihp: fix possible array out of bounds, CVE-2014-5388

Prevent out-of-bounds array access on acpi_pcihp_pci_status.

[From QEMU: fa365d7cd11185237471823a5a33d36765454e16]

(From OE-Core rev: 43ba8f84fb03a8f645995b43966cb87152b69f4c)

Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: use ??= for IMAGE_ROOTFS_SIZE
Chen Qi [Thu, 4 Sep 2014 07:52:44 +0000 (15:52 +0800)]
bitbake.conf: use ??= for IMAGE_ROOTFS_SIZE

Previously, when building core-image-minimal, the rootfs size would
default to 64M because we use '?=' in bitbake.conf and also '?=' in
core-image-minimal.bb.

The thing is, we'd like to have a default value for all images set
in bitbake.conf but still allow each image recipe to set its own default
value which could be overridden by users in local.conf.

(From OE-Core rev: 18f499df6bcbf79d7bd0a99c4c8693268683485f)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokernel.bbclass: handle .dsp firmware
Carlos Rafael Giani [Mon, 8 Sep 2014 11:04:16 +0000 (13:04 +0200)]
kernel.bbclass: handle .dsp firmware

A few firmware files use this filename extension, like korg/k1212.dsp .
Create respective packages.

(From OE-Core rev: 4a4877c2e7cdcb8a1d0a54add600c0cd4e92e647)

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>