]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
8 years agoref-manual: Updated LIC_FILES_CHKSUM example
Scott Rifenbark [Tue, 10 Jan 2017 23:32:30 +0000 (15:32 -0800)] 
ref-manual: Updated LIC_FILES_CHKSUM example

Fixes [YOCTO #10898]

No information indicated the use of "endline" and "beginline"
in the examples setting LIC_FILES_CHKSUM.  I added a note
indicating that line numbering starts with one and the "endline"
value is inclusive.

(From yocto-docs rev: 21114f09efa423033da67af1f27c99eb3cb9695d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-project-qs: Updated Manual Note information on title page
Scott Rifenbark [Tue, 10 Jan 2017 22:13:06 +0000 (14:13 -0800)] 
yocto-project-qs: Updated Manual Note information on title page

Fixes [YOCTO #10076]

Added a new note for where the reader can find the most recent
version of the manual dictated by release or in-progress work.

(From yocto-docs rev: 8c2bd2a72ba89354027fa87872395d5b727c8b90)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-selftest: devtool: remove use of git -C
Paul Eggleton [Fri, 20 Jan 2017 01:49:02 +0000 (14:49 +1300)] 
oe-selftest: devtool: remove use of git -C

The -C option isn't available in versions of git older than 1.8.5,
and officially we only require git 1.8.3.1 or newer (and the latter is
the version you'll find on CentOS 7, so the test fails there). In any
case we can simply specify the working directory to runCmd() so just
do that instead.

(From OE-Core rev: ce5c7075d530c0950f2feed35f95fbcd9f50721f)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel.bbclass: Add PACKAGE_WRITE_DEPS for postinst
Jussi Kukkonen [Thu, 19 Jan 2017 15:45:43 +0000 (17:45 +0200)] 
kernel.bbclass: Add PACKAGE_WRITE_DEPS for postinst

The depmodwrapper dependency is not actually used by the class but
anyone using pkg_postinst_kernel-base() will need it.

(From OE-Core rev: e3f5290d8deba9b7cead73b52ac45a37228fece9)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocantarell-fonts: inherit pkgconfig
Jussi Kukkonen [Thu, 19 Jan 2017 09:27:13 +0000 (11:27 +0200)] 
cantarell-fonts: inherit pkgconfig

configure fails without pkg-config.

(From OE-Core rev: 3a2c08f77f0b477414ac8f6e4df93ee0df3afec2)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofontcache.bbclass: Add PACKAGE_WRITE_DEPS for postinst
Jussi Kukkonen [Thu, 19 Jan 2017 09:16:04 +0000 (11:16 +0200)] 
fontcache.bbclass: Add PACKAGE_WRITE_DEPS for postinst

Qemu is used to run fc-cache on postinstall.

(From OE-Core rev: bd20404a78b258bb95df41066f844e08a21e53fa)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogconf.bbclass: Add PACKAGE_WRITE_DEPS for postinst
Jussi Kukkonen [Thu, 19 Jan 2017 09:13:49 +0000 (11:13 +0200)] 
gconf.bbclass: Add PACKAGE_WRITE_DEPS for postinst

gconftool-2 is used during postinstall.

(From OE-Core rev: d4272e712fe26689f350142426c9893ffe088ddb)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogio-module-cache: Add PACKAGE_WRITE_DEPS for postinst
Jussi Kukkonen [Thu, 19 Jan 2017 09:11:03 +0000 (11:11 +0200)] 
gio-module-cache: Add PACKAGE_WRITE_DEPS for postinst

Qemu is used to run gio-querymodules on postinstall.

(From OE-Core rev: d5361cc25fb7dd749e69063be48275c52462f72c)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogsettings: Add PACKAGE_WRITE_DEPS for postinst
Jussi Kukkonen [Thu, 19 Jan 2017 09:06:37 +0000 (11:06 +0200)] 
gsettings: Add PACKAGE_WRITE_DEPS for postinst

glib-compile-schemas is needed during postinstall.

(From OE-Core rev: e049427e09b51c09b55d7f1299a7b878fe21768a)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogtk-immodules-cache: Add PACKAGE_WRITE_DEPS for postinst
Jussi Kukkonen [Thu, 19 Jan 2017 08:59:59 +0000 (10:59 +0200)] 
gtk-immodules-cache: Add PACKAGE_WRITE_DEPS for postinst

Qemu is used to run gtk-query-immodules-* on postinstall.

(From OE-Core rev: 7103447b198a12a30fdee3f789ff9e0d81534d54)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomime.bbclass: Add PACKAGE_WRITE_DEPS for postinst
Jussi Kukkonen [Thu, 19 Jan 2017 08:53:05 +0000 (10:53 +0200)] 
mime.bbclass: Add PACKAGE_WRITE_DEPS for postinst

update-mime-database is used in postinstall.

(From OE-Core rev: 57d63e8e89980c53f40e12ca670fc3f58f7e4c0f)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoupdate-alternatives.bbclass: Add PACKAGE_WRITE_DEPS for postinst
Jussi Kukkonen [Thu, 19 Jan 2017 08:47:13 +0000 (10:47 +0200)] 
update-alternatives.bbclass: Add PACKAGE_WRITE_DEPS for postinst

(From OE-Core rev: 00e1e87d0dcf13f3b30682f1fb066f7fa4eed205)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoupdate-rc.d: Add PACKAGE_WRITE_DEPS for postinst
Jussi Kukkonen [Thu, 19 Jan 2017 08:39:53 +0000 (10:39 +0200)] 
update-rc.d: Add PACKAGE_WRITE_DEPS for postinst

use_updatercd() will always return true in rootfs generation so
checking that is not required.

(From OE-Core rev: 0db5328ee2a80152904b9f82b738f92e9e38da55)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodbus: Add PACKAGE_WRITE_DEPS for postinst
Jussi Kukkonen [Thu, 19 Jan 2017 08:16:34 +0000 (10:16 +0200)] 
dbus: Add PACKAGE_WRITE_DEPS for postinst

systemctl is needed if both systemd and sysvinit are in distro
features.

(From OE-Core rev: 39fb37a5143981ae16e722f4ebbbe1b29cbed5a4)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd: Add PACKAGE_WRITE_DEPS for postinst
Jussi Kukkonen [Thu, 19 Jan 2017 08:11:13 +0000 (10:11 +0200)] 
systemd: Add PACKAGE_WRITE_DEPS for postinst

Qemu is used to run udevadm in postinstall.

(From OE-Core rev: f186b0c59e707b9a3bff8fcf3b51dbcef5573298)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoeudev: Add PACKAGE_WRITE_DEPS for postinstall
Jussi Kukkonen [Thu, 19 Jan 2017 08:07:44 +0000 (10:07 +0200)] 
eudev: Add PACKAGE_WRITE_DEPS for postinstall

Qemu is used to run udevadm in postinstall.

(From OE-Core rev: df239dd45f04198138a32443db0d3bcf4cf8b7b6)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoshadow: Add PACKAGE_WRITE_DEPS for postinst
Jussi Kukkonen [Thu, 19 Jan 2017 08:04:19 +0000 (10:04 +0200)] 
shadow: Add PACKAGE_WRITE_DEPS for postinst

pwconv and grpconv are used in the postinstall script.

(From OE-Core rev: 5a59e292d1382ea6858f6ccb532e48a9f1f4bea6)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxorg-font-common: Add PACKAGE_WRITE_DEPS for postinst
Jussi Kukkonen [Thu, 19 Jan 2017 08:01:05 +0000 (10:01 +0200)] 
xorg-font-common: Add PACKAGE_WRITE_DEPS for postinst

mkfontdir and mkfontscale are used in the postinstall script.

(From OE-Core rev: 7b2ab076386a6a8e92a90c0c804647feca61dd40)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-dtb: Add PACKAGE_WRITE_DEP for postinstall
Jussi Kukkonen [Thu, 19 Jan 2017 07:57:22 +0000 (09:57 +0200)] 
linux-dtb: Add PACKAGE_WRITE_DEP for postinstall

update-alternatives is used in postinstall.

(From OE-Core rev: ca2626a78f44a253adf4e93a1eae0ea323a0196f)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonss: Add PACKAGE_WRITE_DEPS
Jussi Kukkonen [Thu, 19 Jan 2017 07:44:04 +0000 (09:44 +0200)] 
nss: Add PACKAGE_WRITE_DEPS

nss-native is required in postinst. It's also needed during
build so not removed from DEPENDS.

(From OE-Core rev: 88540c5b08dea069660d1a68e506aebdd68e6ae0)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agouseradd: Add PACKAGE_WRITE_DEPS for postinst
Richard Purdie [Thu, 19 Jan 2017 17:01:10 +0000 (17:01 +0000)] 
useradd: Add PACKAGE_WRITE_DEPS for postinst

The postinstall needs shadow-native, mark the dependency

(From OE-Core rev: f3140f9c9cb8ff7ea29d0b77a9bfac419a216cf4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoca-certificates: Add PACKAGE_WRITE_DEPS for postinst
Richard Purdie [Thu, 19 Jan 2017 17:01:10 +0000 (17:01 +0000)] 
ca-certificates: Add PACKAGE_WRITE_DEPS for postinst

The postinstall needs ca-certificates-native, mark the dependency

(From OE-Core rev: 723a924adf0661167690987acfc4213803ec3305)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomatchbox-session-sato: Add PACKAGE_WRITE_DEPS for postinst
Richard Purdie [Thu, 19 Jan 2017 17:01:10 +0000 (17:01 +0000)] 
matchbox-session-sato: Add PACKAGE_WRITE_DEPS for postinst

The postinstall needs gconf-native, mark the dependency and drop
the now unneeded DEPENDS.

(From OE-Core rev: f480815b2ed0ea5a1792b0ab9c681d39f60701e3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomodutils-initsripts: Add PACKAGE_WRITE_DEPS for postinst
Richard Purdie [Thu, 19 Jan 2017 17:01:10 +0000 (17:01 +0000)] 
modutils-initsripts: Add PACKAGE_WRITE_DEPS for postinst

The postinstall needs systemd-systemctl-native, mark the dependency

(From OE-Core rev: 5e8336b2d45da36c64039080f896338537ec234e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd-compat-units: Add PACKAGE_WRITE_DEPS for postinst
Richard Purdie [Thu, 19 Jan 2017 17:01:10 +0000 (17:01 +0000)] 
systemd-compat-units: Add PACKAGE_WRITE_DEPS for postinst

The postinstall needs systemd-systemctl-native, mark the dependency

(From OE-Core rev: 279fec228282749f4ff6c95f79295c1e8b3db76d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopsplash: Add PACKAGE_WRITE_DEPS for postinst
Richard Purdie [Thu, 19 Jan 2017 17:01:10 +0000 (17:01 +0000)] 
psplash: Add PACKAGE_WRITE_DEPS for postinst

The postinstall needs systemd-systemctl-native, mark the dependency

(From OE-Core rev: 14388db7f0b605536129c925aa667998777b4077)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoinitscripts: Add PACKAGE_WRITE_DEPS for postinst
Richard Purdie [Thu, 19 Jan 2017 17:01:10 +0000 (17:01 +0000)] 
initscripts: Add PACKAGE_WRITE_DEPS for postinst

The postinstall needs systemd-systemctl-native, mark the dependency

(From OE-Core rev: 853f05b4d81c9af0fe1050cd15f13b8d3f9a93a9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agov86d: Add PACKAGE_WRITE_DEPS for postinst
Richard Purdie [Thu, 19 Jan 2017 17:01:10 +0000 (17:01 +0000)] 
v86d: Add PACKAGE_WRITE_DEPS for postinst

The postinstall needs systemd-systemctl-native, mark the dependency

(From OE-Core rev: f97d9e6befb4b96531a381547d546632ec0e8496)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokeymaps: Add PACKAGE_WRITE_DEPS for postinst
Richard Purdie [Thu, 19 Jan 2017 17:01:10 +0000 (17:01 +0000)] 
keymaps: Add PACKAGE_WRITE_DEPS for postinst

The postinstall needs systemd-systemctl-native, mark the dependency

(From OE-Core rev: 84fed37e18b17c419f0538c6b414e3b79ed2df8d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd: Add PACKAGE_WRITE_DEPS for postinst
Richard Purdie [Thu, 19 Jan 2017 17:01:10 +0000 (17:01 +0000)] 
systemd: Add PACKAGE_WRITE_DEPS for postinst

The postinstall needs systemd-systemctl-native, mark the dependency

(From OE-Core rev: d2fb76e4aed927e9900de2e87e7e1b792bc88651)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopixbufcache: Add PACKAGE_WRITE_DEPS for postinst
Richard Purdie [Thu, 19 Jan 2017 17:01:10 +0000 (17:01 +0000)] 
pixbufcache: Add PACKAGE_WRITE_DEPS for postinst

The postinstall needs qemu-native and gdk-pixbuf-native, mark these dependencies

(From OE-Core rev: 334a12bb25770dfcd999a7def3612db4b6cd762a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-module-split: Add PACKAGE_WRITE_DEPS for postinst
Richard Purdie [Thu, 19 Jan 2017 17:01:10 +0000 (17:01 +0000)] 
kernel-module-split: Add PACKAGE_WRITE_DEPS for postinst

The postinstall needs kmod-native and depmodwrapper-cross, mark these dependencies.

(From OE-Core rev: 0e4f5eb4f8443ed98d7c8aaf0b999c5618b7cf25)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogtk-icon-cache: Add PACKAGE_WRITE_DEPS for postinst
Richard Purdie [Thu, 19 Jan 2017 16:56:30 +0000 (16:56 +0000)] 
gtk-icon-cache: Add PACKAGE_WRITE_DEPS for postinst

gdk-pixbuf-native and gtk-icon-utils-native are needed by the postinstall
scripts so mark the dependency. The utils may be needed at icon build
time too so DEPENDS is unchanged.

(From OE-Core rev: d62e9fe21a47f5b38278a9b12b73d617c29d3c4f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosstate: Drop the depchain isPostDep() checks
Richard Purdie [Thu, 19 Jan 2017 16:53:53 +0000 (16:53 +0000)] 
sstate: Drop the depchain isPostDep() checks

The dependencies of do_package_write_* tasks are either going to be packaging
tools needed to build the packages, or, native tools needed at postinst
time. Now we've formalised this dependency pattern, drop the hardcoded
list and work based on the rule. The package creation tools are usually
the same tools needed at rootfs/postinst time anyway so the difference is
moot.

(From OE-Core rev: 8082c6aabf838a2cc5253d2bb1bd8867f2e1ba6a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/package*: Add support for PACKAGE_WRITE_DEPS
Richard Purdie [Thu, 19 Jan 2017 16:49:00 +0000 (16:49 +0000)] 
classes/package*: Add support for PACKAGE_WRITE_DEPS

Add a new variable to allow markup of postinstall (and preinst)
script dependnecies on native/cross tools.

If your postinstall can execute at rootfs creation time rather than on
target but depends on a native tool in order to execute, you need to
list that tool in PACKAGE_WRITE_DEPENDS.

(From OE-Core rev: aff8ca95b8303a4a2a5600c0d8ec0a50ad677258)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oe/utils: Add build_depends_string function
Richard Purdie [Thu, 19 Jan 2017 19:31:54 +0000 (19:31 +0000)] 
lib/oe/utils: Add build_depends_string function

This is useful when manipulating depends strings for task [depends]
flags and is slightly easier to parse than some inline python.

(From OE-Core rev: 7b05ea65a8db8a27b2a5579675775ee34ceb63c2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoRevert "kernel: Modify kernel modules installation path."
Jason Wessel [Thu, 19 Jan 2017 21:14:41 +0000 (13:14 -0800)] 
Revert "kernel: Modify kernel modules installation path."

This reverts commit 0ccb2efe9837e2915c093341a662dffc1df00866.

The OVS fails to function and the kernel modules cannot be found by
any of the kernel tools such as depmod because they are installed
into the wrong directory in multilib 64bit/32bit bulids.

(From OE-Core rev: 85cec1e3df68e932c7b210956ef5f17b85f3616f)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoRevert "linux-firmware: Modify firmware installation path"
Jason Wessel [Thu, 19 Jan 2017 21:14:40 +0000 (13:14 -0800)] 
Revert "linux-firmware: Modify firmware installation path"

This reverts commit a46a23fed9acd097ecc8ab3985d18688abe7b065.

The 64bit/32bit multilib builds break because the kernel's
firmware loader cannot find the firmware because it
gets placed int the wrong directory.

(From OE-Core rev: 91673c29d079117d18b6b405645b94222930e33b)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoRevert "classes/sstate: add a mode to error if sstate package unavailable"
Paul Eggleton [Thu, 19 Jan 2017 18:29:17 +0000 (07:29 +1300)] 
Revert "classes/sstate: add a mode to error if sstate package unavailable"

It turns out that this check cannot work. We don't have the information
to know whether an sstate package is really needed at this point in the
execution, so we check the availability for things that we won't
actually end up needing later on. Thus we can't fail if some of these
aren't found or we'll get needless failures.

This check was intended to give earlier more accurate errors when sstate
artifacts failed to download, but that's not practical so we'll rely
solely on the task execution check that was added within the runqueue.

This reverts most of commit 9e711b54487c3141d7264b8cf0d74f9465020190 (we
still need to allow BB_SETSCENE_ENFORCE through from the external
environment since the eSDK relies upon that.)

(From OE-Core rev: ff29ac6901d04487312f554d9e62250a18729c6c)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/populate_sdk_ext: force a known value for TMPDIR
Paul Eggleton [Thu, 19 Jan 2017 18:29:16 +0000 (07:29 +1300)] 
classes/populate_sdk_ext: force a known value for TMPDIR

If TMPDIR is configured to be somewhere outside of TOPDIR (a not
uncommon configuration where you have multiple disks and space on /home
is at a premium) then our attempt to find out the location of paths
under TMPDIR by using a relative path led to horribly broken paths
ending up in the eSDK. To save pain, just force a known value for TMPDIR
(i.e. ${TOPDIR}/tmp) and then we can assume that everywhere else.

Fixes [YOCTO #10797].

(From OE-Core rev: 4fe60d526a94f30b201c434994e80fef0f7392f0)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocore-image-sato: SDK should contain intltool and glib-2.0 tools for NLS
Richard Purdie [Wed, 11 Jan 2017 01:09:03 +0000 (01:09 +0000)] 
core-image-sato: SDK should contain intltool and glib-2.0 tools for NLS

The SDK (and its tests) need these tools. We happened to be finding them
from the native tools in PATH but recipe specific sysroots prevents that.

This fixes the SDK to work as originally intended and contain these tools.

We have to clear this in the eSDK case since the _append can't be overridden
from the class. Ugly, but we'll have to come back to this issue.

(From OE-Core rev: edde4c52872fbd089f85b10b94db4d6ef1796be5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agostaging: Add dependency on virtual/binutils for strip binary
Richard Purdie [Thu, 12 Jan 2017 13:30:02 +0000 (13:30 +0000)] 
staging: Add dependency on virtual/binutils for strip binary

The staging code strips binaries and we need virtual/binutils for that.
Add a specific dependency since the one from do_configure and others
may not be enough to ensure the binaries are in our own sysroot.

(From OE-Core rev: 9a799f70574ee8e0b1267497edfb4ac63166ef8f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-selftest: Error if the user has buildhistory enabled
Richard Purdie [Thu, 12 Jan 2017 13:30:53 +0000 (13:30 +0000)] 
oe-selftest: Error if the user has buildhistory enabled

buildhistory interfers with various tests so error if the user has it enabled,
hence avoiding time spent running the tests only for them to fail.

For example, if there is an sstate cache and something comes from that cache,
you can get a "version went backwards" warning from buildhistory which would
then change the outcome of a test. Its safer/easier to disable it.

(From OE-Core rev: 941ec7c50c30052e346e72fef2920135dba89a21)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomultilib_global: Drop pointless event mask/code filtering
Richard Purdie [Tue, 17 Jan 2017 12:11:15 +0000 (12:11 +0000)] 
multilib_global: Drop pointless event mask/code filtering

This code was pointless so cleanup, drop the unused event and the
filtering is no longer needed.

(From OE-Core rev: 4fd9e74035703b45a9e6e9143b1ec421e172200c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: fix source extraction to work with recipe specific sysroots
Paul Eggleton [Mon, 16 Jan 2017 23:14:36 +0000 (12:14 +1300)] 
devtool: fix source extraction to work with recipe specific sysroots

When extracting source for a recipe within devtool (for extract, modify
or upgrade) We need to redirect WORKDIR, STAMPS_DIR etc. under a
temporary directory so that:
 (a) we pick up all files that get unpacked to the WORKDIR, and
 (b) we don't disturb the existing build
However, with recipe-specific sysroots the sysroots for the recipe will
be prepared under WORKDIR, and if we used the system temporary directory
i.e. usually /tmp) as used by mkdtemp by default, then our attempts to
hardlink files into the recipe-specific sysroots will fail on systems
where /tmp is a different filesystem, and we'd have to fall back to
copying the files which is a waste of time. Put the temp directory under
the WORKDIR to prevent that from being a problem.

(From OE-Core rev: e10a973cd9390eacb13bdb99693a0622bd3695f5)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
[RP: Add needed mkdirhier call]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosstate: Fix EXTRA_STAGING_FIXMES handling
Richard Purdie [Tue, 17 Jan 2017 17:42:40 +0000 (17:42 +0000)] 
sstate: Fix EXTRA_STAGING_FIXMES handling

The code wasn't working properly, tweak so that it works as expected and
the grep expression includes the right patterns. Not sure this code has ever
worked prior to this.

(From OE-Core rev: 6a46a974611c5262efefc21a11adb736c0fb206a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosysprof/gst-player/pcmanfm: Add missing glib-2.0-native DEPENDS
Richard Purdie [Thu, 19 Jan 2017 13:48:44 +0000 (13:48 +0000)] 
sysprof/gst-player/pcmanfm: Add missing glib-2.0-native DEPENDS

These recipes use glib-2.0 NLS tools so we need to depend on glib-2.0-native.

(From OE-Core rev: 3e521148bbec01ccd1818b0a26221ab6342a3299)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosysprof: Add missing libxml2-native DEPENDS
Richard Purdie [Sun, 15 Jan 2017 08:24:43 +0000 (08:24 +0000)] 
sysprof: Add missing libxml2-native DEPENDS

Configure searches for xmllint which comes from libxml2-native.

(From OE-Core rev: 087c89fd62db5701b268cfbb0bbdaf3be907daf0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agovte: Add missing libxml2-native DEPENDS
Richard Purdie [Sat, 14 Jan 2017 23:09:15 +0000 (23:09 +0000)] 
vte: Add missing libxml2-native DEPENDS

Configure searches for xmllint which comes from libxml2-native.

(From OE-Core rev: 122f18ddf65ee025cfd164738eb76359cad2656b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd-boot: Add missing gperf-native DEPENDS
Richard Purdie [Sat, 14 Jan 2017 14:16:11 +0000 (14:16 +0000)] 
systemd-boot: Add missing gperf-native DEPENDS

Configure searches for this and fails if its not present.

(From OE-Core rev: d4d2dcf3fb00ef1ccd9f1471a8017b1df5052a88)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agointltool: Allow nativesdk variant to build
Richard Purdie [Wed, 11 Jan 2017 01:08:11 +0000 (01:08 +0000)] 
intltool: Allow nativesdk variant to build

This tool has been missing from the SDKs, the recipe specific sysroot
work highlighted the issues.

(From OE-Core rev: e4346299da911dd7c43c2e221b941e5cda502d1e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibxml-parser-perl: Allow nativesdk variant to build
Richard Purdie [Wed, 11 Jan 2017 01:08:37 +0000 (01:08 +0000)] 
libxml-parser-perl: Allow nativesdk variant to build

This is needed in order to be able to build nativesdk-intltool.

(From OE-Core rev: 427ec49e34dee36157e706bb2bbb93c5f15e2d6a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorm_work.bbclass: clean up sooner
Patrick Ohly [Fri, 13 Jan 2017 14:52:33 +0000 (15:52 +0100)] 
rm_work.bbclass: clean up sooner

Having do_rm_work depend on do_build had one major disadvantage:
do_build depends on the do_build of other recipes, to ensure that
runtime dependencies also get built. The effect is that when work on a
recipe is complete and it could get cleaned up, do_rm_work still
doesn't run because it waits for those other recipes, thus leading to
more temporary disk space usage than really needed.

The right solution is to inject do_rm_work before do_build and after
all tasks of the recipe. Achieving that depends on the new bitbake
bb.event.RecipeTaskPreProcess and bb.build.preceedtask().

It can't just run in an anonymous function, because other anonymous
functions that run later may add more tasks. There's still such a
potential conflict when some future RecipeTaskPreProcess event handler
also wants to change task dependencies, but that's not a problem
now. Should it ever occur, the two handlers will have to know about
each other and cooperate to resolve the conflict.

Benchmarking (see "rm_work + pybootchart enhancements" on the OE-core
mailing list) showed that builds with the modified rm_work.bbclass
were both faster (albeit not by much) and required considerably less
disk space (14230MiB instead of 18740MiB for core-image-sato).
Interestingly enough, builds with rm_work.bbclass were also faster
than those without.

(From OE-Core rev: 936179754c8d0f98e1196ddc6796fdfd72c0c3b4)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorm_work_and_downloads.bbclass: more aggressively minimize disk usage
Patrick Ohly [Fri, 13 Jan 2017 14:52:32 +0000 (15:52 +0100)] 
rm_work_and_downloads.bbclass: more aggressively minimize disk usage

rm_work.bbclass never deletes downloaded files, even if they are not
going to be needed again during the
build. rm_work_and_downloads.bbclass is more aggressive in minimizing
the used disk space during a build, but has other disadvantages:
- sources required by different recipes need to be fetched once per
  recipe, not once per build
- incremental builds do not work reliably because sources get
  removed without ensuring that sources gets fetched again

That makes rm_work_and_downloads.bbclass useful for one-time builds in
a constrained environment (like a CI system), but not for general use.

(From OE-Core rev: ca23a07fc6677720508197f2b44573bfd6b52f28)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorm_work.bbclass: allow preserving additional content
Patrick Ohly [Fri, 13 Jan 2017 14:23:56 +0000 (15:23 +0100)] 
rm_work.bbclass: allow preserving additional content

By default, do_rm_work either skips recipes entirely (when listed in
RM_WORK_EXCLUDE) or removes everything except for temp.

In meta-swupd, virtual image recipes collaborate on producing update
data for the base recipe. Tasks running in the base recipe need some
information from the virtual images.

Those files could be passed via a new shared work directory, but that
scatters data in even more places. It's simpler to use the normal
WORKDIR and teach rm_work.bbclass to not remove the special output
with the new RM_WORK_EXCLUDE_ITEMS.

(From OE-Core rev: 28fbb2dd17033308cc09811fbc4f43e2f6c17f54)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: runqueue.py: revised completion scheduler
Patrick Ohly [Thu, 19 Jan 2017 19:35:16 +0000 (20:35 +0100)] 
bitbake: runqueue.py: revised completion scheduler

The idea is that tasks which complete building a recipe (like
do_package_qa) are more important than tasks which start building new
recipes (do_fetch) or those which increase disk usage
(do_compile). Therefore tasks get ordered like this (most important
first, do_rm_work before do_build because the enhanced rm_work.bbclass
was used):

1. ID /work/poky/meta/recipes-support/popt/popt_1.16.bb:do_build
2. ID /work/poky/meta/recipes-core/readline/readline_6.3.bb:do_build
3. ID /work/poky/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb:do_build
...
464. ID /work/poky/meta/recipes-sato/images/core-image-sato.bb:do_build
465. ID /work/poky/meta/recipes-graphics/xorg-proto/inputproto_2.3.2.bb:do_rm_work
466. ID /work/poky/meta/recipes-devtools/python/python3_3.5.2.bb:do_rm_work
467. ID /work/poky/meta/recipes-core/packagegroups/packagegroup-base.bb:do_rm_work
...
3620. ID virtual:native:/work/poky/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_install
3621. ID /work/poky/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb:do_install
3622. ID /work/poky/meta/recipes-core/zlib/zlib_1.2.8.bb:do_compile_ptest_base
3623. ID /work/poky/meta/recipes-extended/bzip2/bzip2_1.0.6.bb:do_compile_ptest_base
...
3645. ID /work/poky/meta/recipes-support/libevent/libevent_2.0.22.bb:do_compile_ptest_base
3646. ID /work/poky/meta/recipes-core/busybox/busybox_1.24.1.bb:do_compile_ptest_base
3647. ID /work/poky/meta/recipes-kernel/linux/linux-yocto_4.8.bb:do_uboot_mkimage
3648. ID /work/poky/meta/recipes-kernel/linux/linux-yocto_4.8.bb:do_sizecheck
3649. ID /work/poky/meta/recipes-kernel/linux/linux-yocto_4.8.bb:do_strip
3650. ID /work/poky/meta/recipes-kernel/linux/linux-yocto_4.8.bb:do_compile_kernelmodules
3651. ID /work/poky/meta/recipes-kernel/linux/linux-yocto_4.8.bb:do_shared_workdir
3652. ID /work/poky/meta/recipes-kernel/linux/linux-yocto_4.8.bb:do_kernel_link_images
3653. ID /work/poky/meta/recipes-devtools/quilt/quilt-native_0.64.bb:do_compile
3654. ID /work/poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_compile
...

The order of the same task between different recipes is the same as
with the speed scheduler, i.e. more important recipes come first.

(Bitbake rev: 70e297e5c285ce0a02e9efd3117ff62cdc77ec12)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: build.py: add preceedtask() API
Patrick Ohly [Thu, 19 Jan 2017 19:35:15 +0000 (20:35 +0100)] 
bitbake: build.py: add preceedtask() API

The API is required by the revised rm_work.bbclass implementation,
which needs to know all tasks that do_build depends so that it
can properly inject itself between do_build and those tasks.

The new API primarily hides the internal implementation of the "after"
and "before" dependency tracking. Because tasks defined as
precondition via "recrdeptask" may or may not be relevant (they are for
rm_work.bclass), the API also includes support for that.

There's no default value for including recrdeptasks, so developers
have to think about what they need.

(Bitbake rev: 9289ab40e77906e983a2f79cd7602ee95be5025a)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: fetch2: Avoid recursive errors
Richard Purdie [Sat, 14 Jan 2017 14:17:13 +0000 (14:17 +0000)] 
bitbake: fetch2: Avoid recursive errors

If PATH contains WORKDIR which contains PV which contains SRCPV we can end
up in circular recursion within the fetcher. This code change allows for the recursion
to be broken by giving PV a temporary dummy value in a data store copy.

(Bitbake rev: ce1e70b8018340b54dba3a81d7d379182cb77514)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: cooker: Add BB_LIMITEDDEPS support
Richard Purdie [Sat, 14 Jan 2017 14:16:44 +0000 (14:16 +0000)] 
bitbake: cooker: Add BB_LIMITEDDEPS support

When we're running with bitbake -b, BB_TASKDEPDATA is incorrect and limited.
We really need a way to know this from the metadata and this new variable
provides this in worker context. This means existing code can stop having
to guess.

(Bitbake rev: 05763bc886024dcce2ce6b3060fb00abf79a9402)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: event/ast: Add RecipeTaskPreProcess event before task finalisation
Richard Purdie [Thu, 12 Jan 2017 13:25:36 +0000 (13:25 +0000)] 
bitbake: event/ast: Add RecipeTaskPreProcess event before task finalisation

There are various pieces of code which need to run after the tasks are
finalised but before bitbake locks in on the task dependencies. This
adds such an event so dependency changes in anonymous python can
be accounted for and acted upon by these specific event handlers.

(Bitbake rev: 4dcd0e53f5ff4bf4f2d6cbdc51ff33a5f5f206af)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: runqueue: Fix traceback when using -b
Richard Purdie [Tue, 17 Jan 2017 17:44:33 +0000 (17:44 +0000)] 
bitbake: runqueue: Fix traceback when using -b

Without this, bitbake -b of image recipes cause tracebacks since
the list of providers is empty.

(Bitbake rev: c53e43f3c6a675c0934a7a4e358fd66b049ffca3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: cooker: Only add universe targets where the task exists
Richard Purdie [Mon, 16 Jan 2017 14:40:24 +0000 (14:40 +0000)] 
bitbake: cooker: Only add universe targets where the task exists

Currently "bitbake universe -c fetch" will error if every task in the system
doesn't have a fetch task. This seems unreasonable so filter the list based
upon whether the task exists. This implementation does assume if a task exits
for a given provider name, it can run, even if the preferred provider that
ends up getting built might be the namespace without the task. This is unlikely
to be a real world issue at this point.

(Bitbake rev: 438986f4e39974930ee3205ca4c4d620090e57bb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/selftest/devtool: rewrite modify testcase
Ross Burton [Tue, 17 Jan 2017 23:55:46 +0000 (23:55 +0000)] 
oeqa/selftest/devtool: rewrite modify testcase

The modify testcase had to be updated as it started failing when mdadm was
upgraded due to hardcoding version numbers in the test.  I then noticed how
inefficient the test was and mostly rewrote it.

Start by changing the minor modification to change "Linux Software RAID" (the
subtitle of the man page) to "antique pin sardine" (a nonsense phrase that is
unlikely to appear upstream), and neaten the logic.

Start by not removing sstate at the beginning of the test. To ensure builds
happen we can use -f and -C, and iterating the sstate cache is time consuming.

Don't bitbake mdadm repeatedly until it stabilizes, we can start with bitbake -C
unpack to ensure that a full build is done from scratch.

os.path.join has the interesting quirk that join(/foo, /bar) results in /bar, so
use oe.path.join instead of working around that manually.

Don't repeatedly call get_bb_var(), each call results in a call to bitbake.

These changes reduce the runtime of the test from over 600 seconds to around 160
seconds on my machine.

(From OE-Core rev: fc97963bc61bf16112859fe1d7e460a13d34baca)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/utils/qemurunner.py: Be sure to stop qemu-system
Mariano Lopez [Fri, 13 Jan 2017 14:33:55 +0000 (14:33 +0000)] 
oeqa/utils/qemurunner.py: Be sure to stop qemu-system

When runqemu fails, qemu-system process would keep running
and won't be killed, setpgrp() was used when runqemu was
a shell script but it seems it doesn't work always with python.

This would kill qemu-system explicity and to avoid leaving
it behind.

(From OE-Core rev: 9d2b1aa1bcfb2f1933a8eeb9470b4174d5da2f0d)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/utils/qemurunner.py: Add missing sys module
Mariano Lopez [Fri, 13 Jan 2017 14:33:54 +0000 (14:33 +0000)] 
oeqa/utils/qemurunner.py: Add missing sys module

This adds the missing sys module used by the child process
to exit. It seems the exception was cached in testimage and
selftest. It seems nobody noticed this because the module
is only used for sys.exit().

(From OE-Core rev: 66f66d1d763ff7bbaab9e8fcdf7fc882f2dfbb13)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.utils.metadata: include BB_NUMBER_THREADS and PARALLEL_MAKE
Markus Lehtonen [Fri, 13 Jan 2017 13:12:46 +0000 (15:12 +0200)] 
oeqa.utils.metadata: include BB_NUMBER_THREADS and PARALLEL_MAKE

Inlude values of BB_NUMBER_THREADS and PARALLEL_MAKE in the metadata.

[YOCTO #10590]

(From OE-Core rev: 97c07a55815c2fc3915705317b6f30d212fa1d45)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.utils.metadata: allow storing any bitbake config variables
Markus Lehtonen [Fri, 13 Jan 2017 13:12:45 +0000 (15:12 +0200)] 
oeqa.utils.metadata: allow storing any bitbake config variables

Make it possible to store any bitbake config variables in the metadata.
Config values will be stored under a new config element in the xml report:
    <config>
        <variable name="MACHINE">qemux86</variable>
    </config>

The value of MACHINE is moved there instead of having a dedicated
<machine> element.

[YOCTO #10590]

(From OE-Core rev: 6e7e6e37664b0a86111272f5f6f4a4e1d0f23302)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.utils.metadata: add bitbake revision information
Markus Lehtonen [Fri, 13 Jan 2017 13:12:44 +0000 (15:12 +0200)] 
oeqa.utils.metadata: add bitbake revision information

[YOCTO #10590]

(From OE-Core rev: 71ca7dab08fc500b231054249aacc90ae4aa85da)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.utils.metadata: have layer name as an attribute in xml
Markus Lehtonen [Fri, 13 Jan 2017 13:12:43 +0000 (15:12 +0200)] 
oeqa.utils.metadata: have layer name as an attribute in xml

Have the layer name as an attribute instead of of the name of the
element itself. That is, have <layer name="layer_name"/> instead of
<layer_name/>. A bit better XML design.

[YOCTO #10590]

(From OE-Core rev: 50ea44c19005b536a2791113f8b536fd10548ead)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.utils.metadata: add commit count information
Markus Lehtonen [Fri, 13 Jan 2017 13:12:42 +0000 (15:12 +0200)] 
oeqa.utils.metadata: add commit count information

Makes it easier to put the commits into a timeline.

[YOCTO #10590]

(From OE-Core rev: 7757970bced4ecd6503991c0cf11f4d9158f650c)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.utils.metadata: rename 'revision' to 'commit'
Markus Lehtonen [Fri, 13 Jan 2017 13:12:41 +0000 (15:12 +0200)] 
oeqa.utils.metadata: rename 'revision' to 'commit'

Revision is a bit vague and could point to a tag, for example. Git
commit objects are unambiguous and persistent so be explicit that the
element should contain git commit hash.

[YOCTO #10590]

(From OE-Core rev: a6521b89e86ddba6bd646dd3974d7b0390323b56)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.utils.metadata: fix retrieval of git branch and revision
Markus Lehtonen [Fri, 13 Jan 2017 13:12:40 +0000 (15:12 +0200)] 
oeqa.utils.metadata: fix retrieval of git branch and revision

Always return a valid branch name, or, '(nobranch)' if the current HEAD
is detached. Also, always return the hash of the commit object that HEAD
is pointing to. Previous code returned an incorrect branch name (or
crashed) e.g. in the case of detached HEAD.

[YOCTO #10590]

(From OE-Core rev: 02d3ba17a8090bd088beb973980651d664f713bb)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.utils.metadata: drop 'unknown' git data elements
Markus Lehtonen [Fri, 13 Jan 2017 13:12:39 +0000 (15:12 +0200)] 
oeqa.utils.metadata: drop 'unknown' git data elements

It's better just to not have the xml elements than to have elements with
faux data. One could have git branch named 'unknown', for example.

[YOCTO #10590]

(From OE-Core rev: fce531c21f5e56d0f416b3405a0b0fc5ba567679)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.utils.metadata: re-organise distro information
Markus Lehtonen [Fri, 13 Jan 2017 13:12:38 +0000 (15:12 +0200)] 
oeqa.utils.metadata: re-organise distro information

Use the same format, based on /etc/os-release, as for host distro
information.

[YOCTO #10590]

(From OE-Core rev: 0156ef46ccf5334ee72f0202f1089249c62af37b)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.utils.metadata: re-organise host distro information
Markus Lehtonen [Fri, 13 Jan 2017 13:12:37 +0000 (15:12 +0200)] 
oeqa.utils.metadata: re-organise host distro information

Put all host distro data under one <host_distro> element. In addition
take the data directly from /etc/os-release instead of the "lsb API".
The /etc/os-release file is virtually ubiquitous, now, and using its
field names and values provides a more standardized and extensible
format.

[YOCTO #10590]

(From OE-Core rev: 98cad0b4063772dad94fea96edce1a5422256c32)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/selftest/tinfoil: add test IDs to tinfoil test cases
Jose Perez Carranza [Thu, 12 Jan 2017 13:39:32 +0000 (13:39 +0000)] 
oeqa/selftest/tinfoil: add test IDs to tinfoil test cases

Testopia entrances were created and the IDs retrieved are
added to their corresponding test case on tinfoil script.

(From OE-Core rev: 486e5ad8270a4d3897f477ae5ae61422826f93ce)

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotime: BBCLASSEXTEND to native and nativesdk
André Draszik [Tue, 17 Jan 2017 15:54:39 +0000 (15:54 +0000)] 
time: BBCLASSEXTEND to native and nativesdk

Some recipe might use time, e.g.
  http://git.yoctoproject.org/cgit/cgit.cgi/meta-swupd/tree/classes/swupd-image.bbclass?id=531a8e636ca891c34f2596eb7f6365a11d4b29a7#n481
Time is a bash built-in, or a separate utility (typically
in /usr/bin/), but not everybody uses bash, or has
GNU time installed by default.

(From OE-Core rev: a335aed0c2f64defc503ae3cc66c9ca0645eb6db)

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-pygobject: enable cairo only when a display is available
André Draszik [Tue, 17 Jan 2017 15:28:28 +0000 (15:28 +0000)] 
python3-pygobject: enable cairo only when a display is available

It doesn't seem to make sense to unconditionally enable cairo
support, as this pulls in lots of other dependencies, where
none of these can actually be used without some sort of
graphical interface.

Not having a generic distro feature to detect this, we just
use any of DirectFB / Wayland / X11

(From OE-Core rev: 9fc8ea24914a322536d831ea11295c4ef0dc6b66)

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobabeltrace: upgrade to 1.5.1
Nathan Lynch [Mon, 16 Jan 2017 18:51:46 +0000 (12:51 -0600)] 
babeltrace: upgrade to 1.5.1

(From OE-Core rev: c49d0a7741100c8864aa826f232a93311dcc7752)

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolttng-tools: upgrade to 2.9.3
Nathan Lynch [Mon, 16 Jan 2017 18:51:45 +0000 (12:51 -0600)] 
lttng-tools: upgrade to 2.9.3

Notable recipe changes:

* switch to using release tarball
* brokensep no longer required
* drop upstreamed error.h patch
* change do_install_ptest to selectively copy build artifacts to
  install tree.
* use backported patch to address file-rdeps warning

(From OE-Core rev: 0846aaa429a18557129579260ff09c0145aba903)

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolttng-modules: upgrade to 2.9.0
Nathan Lynch [Mon, 16 Jan 2017 18:51:44 +0000 (12:51 -0600)] 
lttng-modules: upgrade to 2.9.0

Switch to using release tarballs.

(From OE-Core rev: 7db8edbffdd29a01694add88d5a6988fab4511ad)

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolttng-ust: upgrade to 2.9.0
Nathan Lynch [Mon, 16 Jan 2017 18:51:43 +0000 (12:51 -0600)] 
lttng-ust: upgrade to 2.9.0

buildhistory-diff says:

  /usr/lib/liblttng-ust-python-agent.so.0 was removed
  /usr/lib/liblttng-ust-python-agent.so.0.0.0 was removed

This is because prior versions of lttng-ust unconditionally built
the Python agent libraries; this was fixed upstream in 21ddb8e ("Only
build python lib when agent is enabled").

Switch to using release tarballs.

(From OE-Core rev: a40bb2b7991adf5ef7121a45461747226c04bac1)

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolttng-ust: don't exclude manual pages from build
Nathan Lynch [Mon, 16 Jan 2017 18:51:42 +0000 (12:51 -0600)] 
lttng-ust: don't exclude manual pages from build

Adding "manpages" to PACKAGECONFIG results in a lttng-ust-doc package
with no manpages.  Fix the patch we carry to only exclude the examples
directory, which seems to have been its original intent anyway.

(From OE-Core rev: 54d9fb2664d16a561f9e9232a53b60810678f9bf)

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-docutils: upgrade to 0.13.1
Edwin Plauchu [Fri, 13 Jan 2017 20:17:57 +0000 (14:17 -0600)] 
python3-docutils: upgrade to 0.13.1

Changed document date field and roman.py notes
https://fossies.org/diffs/docutils/0.12_vs_0.13.1/COPYING.txt-diff.html

(From OE-Core rev: 2429aec52ab04e866e3d9af5a5c7682aa8878467)

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-pip: fixed dependecy with python3-enum
Edwin Plauchu [Mon, 16 Jan 2017 16:21:57 +0000 (10:21 -0600)] 
python3-pip: fixed dependecy with python3-enum

it solved problem of pip's console showing error "module enum not ..."

[YOCTO #10904]

(From OE-Core rev: 1f379cbfa5ea9e29db771884bea61a7826f5f8ab)

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssl: Use linux-aarch64 target for aarch64
Fabio Berton [Fri, 13 Jan 2017 19:56:49 +0000 (17:56 -0200)] 
openssl: Use linux-aarch64 target for aarch64

aarch64 target was being configured for linux-generic64 but openssl has
linux-aarch64 target. Change to use linux-aarch64 as default.

(From OE-Core rev: 13e9a692510151383bc3243c3917154896b0e049)

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogstreamer1.0: make libunwind detection deterministic
Ross Burton [Mon, 16 Jan 2017 16:16:19 +0000 (16:16 +0000)] 
gstreamer1.0: make libunwind detection deterministic

Otherwise libunwind support will be based on the contents of the sysroot, which
can cause problems.

(From OE-Core rev: 14cb8fe36fcb2dc20830fb4ba63ed1302255b61b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoperf: add PACKAGECONFIG for systemtap
Ross Burton [Mon, 16 Jan 2017 13:42:47 +0000 (13:42 +0000)] 
perf: add PACKAGECONFIG for systemtap

Otherwise it's possible to race with systemtap headers being present during the autodetection and disappearing during the build:

tests/sdt.c:14:21: fatal error: sys/sdt.h: No such file or directory
 #include <sys/sdt.h>
                     ^
(From OE-Core rev: 8aafed5f4757550f2ff688e1b8981e5e8e6e3428)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoperf: use PACKAGECONFIG instead of hand-rolled logic
Ross Burton [Mon, 16 Jan 2017 13:11:10 +0000 (13:11 +0000)] 
perf: use PACKAGECONFIG instead of hand-rolled logic

PERF_FEATURES_ENABLE and perf_feature_enabled() was basically a poor man's clone
of PACKAGECONFIG, without the automatic handling of dependencies and configure
options.

As part of the port to PACKAGECONFIG the options have been changed to remove the
perf- prefix, but are otherwise unchanged.

Also remove BUILDPERF_libc_uclibc assignment as nothing in the metadata uses a
BUILDPERF variable.

(From OE-Core rev: 33d05772c30036e8d2bb2dc8928989bf98d388f1)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoharfbuzz: upgrade to 1.4.1
Maxin B. John [Fri, 13 Jan 2017 12:57:11 +0000 (14:57 +0200)] 
harfbuzz: upgrade to 1.4.1

1.3.4 -> 1.4.1

(From OE-Core rev: d4b2e8298127a5100eb99309e010c3002f769dd5)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonetbase: upgrade to version 5.4
Maxin B. John [Fri, 13 Jan 2017 12:57:10 +0000 (14:57 +0200)] 
netbase: upgrade to version 5.4

5.3 -> 5.4

Refreshed the following patch:
 a) netbase-add-rpcbind-as-an-alias-to-sunrpc.patch

(From OE-Core rev: 3a63b7530377cb225c05a68fb8130d2ec3c3981c)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomdadm: upgrade to version 4.0
Maxin B. John [Fri, 13 Jan 2017 12:57:09 +0000 (14:57 +0200)] 
mdadm: upgrade to version 4.0

3.4 -> 4.0

Removed the following upstreamed or backported patches:

 a) 0001-Fix-some-type-comparison-problems.patch
 b) 0001-Fix-typo-in-comparision.patch
 c) 0001-mdadm.h-bswap-is-already-defined-in-uclibc.patch
 d) 0001-raid6check-Fix-if-else-indentation.patch
 e) 0001-util.c-include-poll.h-instead-of-sys-poll.h.patch
 f) mdadm-3.2.2_fix_for_x32.patch

(From OE-Core rev: b32f5098fc06c96d9331abe0f4ff9cc7c7c08c76)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibproxy: update to version 0.4.14
Maxin B. John [Fri, 13 Jan 2017 12:57:08 +0000 (14:57 +0200)] 
libproxy: update to version 0.4.14

0.4.13 -> 0.4.14

(From OE-Core rev: f4f28c4d246e14ee60ae2bc46761f871eaca9898)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogstreamer1.0-plugins-good: fix qtdemux_parse_svq3_stsd_data() memory leak
Andre McCurdy [Thu, 12 Jan 2017 23:52:32 +0000 (15:52 -0800)] 
gstreamer1.0-plugins-good: fix qtdemux_parse_svq3_stsd_data() memory leak

Backport from 1.11.1

  https://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=29433495d697e4dcb3bc50ff0e0d866acb949890

(From OE-Core rev: a41129815bc46460d145208113a8b75a92f3d19d)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-setuptools: upgrade to 31.1.1
Edwin Plauchu [Thu, 12 Jan 2017 20:52:13 +0000 (14:52 -0600)] 
python3-setuptools: upgrade to 31.1.1

It is a simultaneous upgrade for python 2 and 3 over setuptools.

(From OE-Core rev: e37e023da9833fc6d17a8a57554aaf986b4e8d56)

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoswig: upgrade to 3.0.11
Edwin Plauchu [Thu, 12 Jan 2017 17:07:28 +0000 (11:07 -0600)] 
swig: upgrade to 3.0.11

(From OE-Core rev: 6b97088924e60352647a16f879577e2e4194c695)

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobyacc: upgrade to 20161202
Chen Qi [Mon, 26 Dec 2016 03:35:23 +0000 (11:35 +0800)] 
byacc: upgrade to 20161202

0001-byacc-do-not-reorder-CC-and-CFLAGS.patch is added to fix the problem
of byacc dropping options from $CC.

(From OE-Core rev: e7a4eea6fe9ed9630eddf508a07af0e9dccd66da)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogstreamer1.0-plugins-bad: Backport patches for improving live playback
Khem Raj [Thu, 22 Dec 2016 08:14:14 +0000 (00:14 -0800)] 
gstreamer1.0-plugins-bad: Backport patches for improving live playback

(From OE-Core rev: 23c37ffb25a41cd8b30a3fb56731fd6753478092)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc-source.inc: cleanly disable do_rm_work
Patrick Ohly [Fri, 13 Jan 2017 14:52:31 +0000 (15:52 +0100)] 
gcc-source.inc: cleanly disable do_rm_work

Using "deltask" assumes that do_rm_work has been added already, which
won't be the case anymore in the upcoming improved rm_work.bbclass,
because then an anonymous python method will add do_rm_work.

Setting RM_WORK_EXCLUDE works with the current and upcoming
rm_work.bbclass and is the API that is meant to be used for excluding
recipes from cleaning, so use that.

(From OE-Core rev: 1f2a3cdadac1560b0e03a7be25f452ad48c27ddb)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu-export-rootfs: fix inconsistent var names
Robert Yang [Wed, 23 Nov 2016 08:00:18 +0000 (00:00 -0800)] 
runqemu-export-rootfs: fix inconsistent var names

Fixed:
$ runqemu nfs qemux86-64
[snip]
On your target please remember to add the following options for NFS
nfsroot=IP_ADDRESS:/path/to/nfsroot,nfsvers=3,port=,mountprog=,nfsprog=,udp,mountport=
[snip]

Note that the values are null, this is because their var names are
inconsistent.

[YOCTO #10519]

(From OE-Core rev: 10c136a382006c0ec2679a70f47ff2446c10372c)

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>