]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
7 years agotoolchain-scripts: add check for LD_LIBRARY_PATH in the SDK env setup script
Denys Dmytriyenko [Thu, 15 Jun 2017 19:09:49 +0000 (15:09 -0400)]
toolchain-scripts: add check for LD_LIBRARY_PATH in the SDK env setup script

Provide a descriptive error message and exit the environment-setup script,
when LD_LIBRARY_PATH is set on the host system.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooe-init-build-env-memres: swap parameter order
Paul Eggleton [Wed, 21 Jun 2017 19:49:54 +0000 (21:49 +0200)]
oe-init-build-env-memres: swap parameter order

This script expected the port number to be specified first, which is
somewhat counter-intuitive especially if you're used to
oe-init-build-env; besides, in local usage you are unlikely to need to
specify a custom port. Given that few people are using this yet (based
on the issues I have recently fixed), switch the arguments around so
that the two scripts behave consistently.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoselftest/devtool: Don't use removed remake as test case
Jussi Kukkonen [Wed, 21 Jun 2017 16:18:26 +0000 (19:18 +0300)]
selftest/devtool: Don't use removed remake as test case

remake was removed from oe-core: use another recipe in the devtool
extract test.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooe-selftest: add a test for upstream version check regressions
Alexander Kanavin [Fri, 21 Apr 2017 07:57:01 +0000 (10:57 +0300)]
oe-selftest: add a test for upstream version check regressions

The test runs an upstream version check, and then compares the
list of recipes that failed the check (i.e. those where latest
upstream version could not be established) against the list of
known-broken upstreams. Mismatches either way (upstream check failed,
recipe not in the exception list, or upstream check worked,
recipe in exception list) fail the test.

[YOCTO #11031]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
7 years agolib/oe/distro_check: drop Mandriva from create_distro_packages_list()
Joshua Lock [Tue, 20 Jun 2017 09:58:53 +0000 (10:58 +0100)]
lib/oe/distro_check: drop Mandriva from create_distro_packages_list()

Mandriva is no longer maintained, with its last release having been in
2011. It's no longer useful as a yard-stick distro, therefore drop it from
distro_check.create_distro_packages_list()

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolib/oe/distro_check: update openSUSE to use Leap url formats
Joshua Lock [Tue, 20 Jun 2017 09:58:52 +0000 (10:58 +0100)]
lib/oe/distro_check: update openSUSE to use Leap url formats

Since openSUSE switched to their dual development model of Leap and
Tumbleweed the urls we need to check for package lists has changed. Update
get_latest_released_opensuse_source_package_list() to use the new Leap
urls.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agognupg: fix floating dependancy on gnutls
Saul Wold [Tue, 27 Jun 2017 21:44:08 +0000 (14:44 -0700)]
gnupg: fix floating dependancy on gnutls

gunpg added TLS support to the dirmngr for 2.1.0, mostly we linked with
gnutls and had the RDEPENDS for gnutls. Since we had TLS support continue
enabling it by default.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogtk-doc: Handle floating gtk-doc dependency
Richard Purdie [Tue, 27 Jun 2017 20:00:58 +0000 (21:00 +0100)]
gtk-doc: Handle floating gtk-doc dependency

Allow the tests to be explicitly disabled to avoid floating dependnecy
issues. This is not really an issue with RSS but is on previous releases.
Currently the tests are enabled/disabled depending on the presence of
glib-2.0.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolttng-modules: update to 2.9.3
Nathan Lynch [Fri, 16 Jun 2017 21:48:22 +0000 (16:48 -0500)]
lttng-modules: update to 2.9.3

Miscellaneous fixes and support for 4.12-rc kernels.

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolttng-tools: update to 2.9.5
Nathan Lynch [Fri, 16 Jun 2017 21:39:51 +0000 (16:39 -0500)]
lttng-tools: update to 2.9.5

Miscellaneous fixes.

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolttng-ust: update to 2.9.1
Nathan Lynch [Fri, 16 Jun 2017 21:39:50 +0000 (16:39 -0500)]
lttng-ust: update to 2.9.1

Miscellaneous fixes.

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorunqemu: drop RPC ports
Robert Yang [Thu, 22 Jun 2017 08:30:06 +0000 (01:30 -0700)]
runqemu: drop RPC ports

The following commit has removed rpc ports from runqemu-export-rootfs, so
runqemu should also remove them, otherwise "runqemu nfs" doesn't work. And use
abspath for nfsroot, otherwise it doesn't work when it is a relative path.

commit 6bb9860ef7ba9c84fe9bd3a81aa6555f67ebd38e
Author: Cody P Schafer <dev@codyps.com>
Date:   Tue Jun 6 18:30:49 2017 -0400

    runqemu-export-rootfs: don't change RPC ports

[YOCTO #11687]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoRevert "bitbake.conf: Add sdl-config to HOSTTOOLS if using host SDL"
Richard Purdie [Tue, 27 Jun 2017 12:48:59 +0000 (13:48 +0100)]
Revert "bitbake.conf: Add sdl-config to HOSTTOOLS if using host SDL"

This clearly wasn't tested as the correct variable is ASSUME_PROVIDED.

This reverts commit 91cee064332969207334cd1ee5c31d02610281fc.

7 years agometa: Add/fix missing Upstream-Status to patches
Richard Purdie [Mon, 26 Jun 2017 10:52:30 +0000 (11:52 +0100)]
meta: Add/fix missing Upstream-Status to patches

This adds or fixes the Upstream-Status for all remaining patches missing it
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agometa: Fix malformed Upstream-Status tags
Ross Burton [Fri, 23 Jun 2017 15:44:55 +0000 (16:44 +0100)]
meta: Fix malformed Upstream-Status tags

Fix a variety of spelling and format mistakes to improve the ease of reading the
tags programatically.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoqemuboot.conf: make cpus match built artifacts
Martin Kelly [Tue, 2 May 2017 19:20:13 +0000 (12:20 -0700)]
qemuboot.conf: make cpus match built artifacts

Currently, the qemu CPUs for are specified as generic, but the built
artifacts are not. For example, we build x86-64 artifacts targeting
core2duo but run them in qemu with generic qemu/kvm CPUs. This causes
some packages that take advantage of the host architecture to crash
because they try to use CPU features not advertised by qemu. As an
example, Qt uses ssse3. When artifacts linked against Qt and built
targeting core2duo attempt to run on a generic qemu/kvm CPU, we get
the following crash:

Incompatible processor. This Qt build requires the following features:
     ssse3

We could fix this by making packages like Qt not take advantage of CPU
features. However, we will probably keep facing similar issues over
time, so it's better to resolve them in a more enduring way.

Fix this by making the qemu -cpu arguments match the built artifacts.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_manager.py: set dnf's releasever setting from DISTRO_CODENAME
Alexander Kanavin [Wed, 21 Jun 2017 12:58:21 +0000 (15:58 +0300)]
package_manager.py: set dnf's releasever setting from DISTRO_CODENAME

So that:

1) dnf does not complain anymore about releasever not being set and then fail
for the same reason;

2) it's possible to refer to $releasever in dnf package feed configuration
(repo paths in particular) without hardconding the release name (pyro, morty, etc.)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodnf: update to 2.5.1
Alexander Kanavin [Wed, 21 Jun 2017 12:58:20 +0000 (15:58 +0300)]
dnf: update to 2.5.1

Drop 0001-Revert-proper-check-of-releasever-when-using-install.patch
as the problem has been solved upstream.

Add 0001-Move-releasever-check-after-the-etc-dnf-vars-substit.patch,
as the warning for missing releasever is issued prematurely in our case.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibdnf: update to 0.9.1
Alexander Kanavin [Wed, 21 Jun 2017 12:58:19 +0000 (15:58 +0300)]
libdnf: update to 0.9.1

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogobject-introspection: Disable generating static lbraries
Khem Raj [Tue, 13 Jun 2017 02:28:32 +0000 (19:28 -0700)]
gobject-introspection: Disable generating static lbraries

So we do not accidentally end of using static libraries when doing
PIE enabled builds

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowebkitgtk: Upgrade to 2.16.3
Khem Raj [Wed, 14 Jun 2017 19:34:11 +0000 (12:34 -0700)]
webkitgtk: Upgrade to 2.16.3

Use bfd linker on ppc, this is because gold fails to link
webkit libraries when PIE is enabled

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agozlib: Pass pre-calculate uname enable re-entrant flags
Khem Raj [Tue, 13 Jun 2017 23:13:44 +0000 (16:13 -0700)]
zlib: Pass pre-calculate uname enable re-entrant flags

Fix ptest generation

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agoffmpeg: Upgrade to 3.3.2 stable
Khem Raj [Tue, 13 Jun 2017 00:32:10 +0000 (17:32 -0700)]
ffmpeg: Upgrade to 3.3.2 stable

* Fix mips/mips64 along the way, it was broken in 3.3 as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agogit: Add a dependency on perl for gitweb
Peter Kjellerstedt [Thu, 15 Jun 2017 13:53:08 +0000 (15:53 +0200)]
git: Add a dependency on perl for gitweb

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agotexi2html: Add a dependency on perl
Peter Kjellerstedt [Thu, 15 Jun 2017 13:53:07 +0000 (15:53 +0200)]
texi2html: Add a dependency on perl

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolinux-firmware: Avoid a dependency on python-core
Peter Kjellerstedt [Thu, 15 Jun 2017 13:53:06 +0000 (15:53 +0200)]
linux-firmware: Avoid a dependency on python-core

Remove the check_whence.py script since it is only needed to validate
the WHENCE file, and only if explicitly running `make check`.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibpcap: apply fix from upstream to fix build race
Ross Burton [Fri, 16 Jun 2017 12:32:15 +0000 (13:32 +0100)]
libpcap: apply fix from upstream to fix build race

../libpcap-1.8.1/grammar.y:78:10:
fatal error: scanner.h: No such file or directory

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoghostscript: add X11 PACKAGECONFIG info
Joe Slater [Thu, 15 Jun 2017 21:35:27 +0000 (14:35 -0700)]
ghostscript: add X11 PACKAGECONFIG info

Add information necessary to build for x11, but
do not enable that option.

Fix parallel build directory creation issue.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoghostscript: move to version 9.21
Joe Slater [Thu, 15 Jun 2017 21:35:26 +0000 (14:35 -0700)]
ghostscript: move to version 9.21

Eliminate CVE patches that are now in source.

Add CUPSCONFIG to configure options.

Signed-off-by: Joe Slater <jslater@windriver.com>
to be scrunched

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibnewt: 0.52.19 -> 0.52.20
Huang Qiyu [Mon, 15 May 2017 03:20:27 +0000 (11:20 +0800)]
libnewt: 0.52.19 -> 0.52.20

Upgrade libnewt from 0.52.19 to 0.52.20.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agotzdata: Install zone1970.tab
Jan Kiszka [Fri, 16 Jun 2017 07:28:05 +0000 (09:28 +0200)]
tzdata: Install zone1970.tab

The modern version of zone.tab is required by tzselect e.g.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agocore-image-sato: drop packagegroup-core-x11-sato-games from IMAGE_INSTALL
Ming Liu [Thu, 15 Jun 2017 17:16:05 +0000 (19:16 +0200)]
core-image-sato: drop packagegroup-core-x11-sato-games from IMAGE_INSTALL

packagegroup-core-x11-sato-games package is being RDEPENDS by
packagegroup-core-x11-sato, hence will be installed if x11-sato is
choosen in IMAGE_FEATURES. So it's unnecessary appending it into
IMAGE_INSTALL.

Even worse, it's causing the following error when x11 is not
in DISTRO_FEATURES:
| ERROR: Required build target 'core-image-sato' has no buildable providers.
| Missing or unbuildable dependency chain was: ['core-image-sato', 'packagegroup-core-x11-sato-games']

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibxml2: Revert "Add an XML_PARSE_NOXXE flag to block all entities loading even local"
Andrej Valek [Wed, 14 Jun 2017 13:12:22 +0000 (15:12 +0200)]
libxml2: Revert "Add an XML_PARSE_NOXXE flag to block all entities loading even local"

The new flag doesn't work and the change even broke the XML_PARSE_NONET option.

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
7 years agolibxml2: Fix CVE-2017-0663
Andrej Valek [Wed, 14 Jun 2017 13:07:56 +0000 (15:07 +0200)]
libxml2: Fix CVE-2017-0663

Fix type confusion in xmlValidateOneNamespace

Comment out code that casts xmlNsPtr to xmlAttrPtr. ID types
on namespace declarations make no practical sense anyway.

Fixes bug 780228

CVE: CVE-2017-0663
Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
7 years agolibxml2: Fix CVE-2017-5969
Andrej Valek [Wed, 14 Jun 2017 13:01:35 +0000 (15:01 +0200)]
libxml2: Fix CVE-2017-5969

Fix NULL pointer deref in xmlDumpElementContent

Can only be triggered in recovery mode.

Fixes bug 758422

CVE: CVE-2017-5969
Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
7 years agolibxml2: Fix CVE-2017-9049 and CVE-2017-9050
Andrej Valek [Wed, 14 Jun 2017 12:58:47 +0000 (14:58 +0200)]
libxml2: Fix CVE-2017-9049 and CVE-2017-9050

Fix handling of parameter-entity references

There were two bugs where parameter-entity references could lead to an
unexpected change of the input buffer in xmlParseNameComplex and
xmlDictLookup being called with an invalid pointer.

Fixes bug 781205 and bug 781361

CVE: CVE-2017-9049 CVE-2017-9050
Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
7 years agolibxml2: Fix CVE-2017-9047 and CVE-2017-9048
Andrej Valek [Wed, 14 Jun 2017 12:55:03 +0000 (14:55 +0200)]
libxml2: Fix CVE-2017-9047 and CVE-2017-9048

xmlSnprintfElementContent failed to correctly check the available
buffer space in two locations.

Fixes bug 781333 and bug 781701

CVE: CVE-2017-9047 CVE-2017-9048
Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
7 years agolibxml2: Avoid reparsing and simplify control flow in xmlParseStartTag2
Andrej Valek [Wed, 14 Jun 2017 12:38:35 +0000 (14:38 +0200)]
libxml2: Avoid reparsing and simplify control flow in xmlParseStartTag2

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
7 years agolibxml2: Disable LeakSanitizer when running API tests
Andrej Valek [Wed, 14 Jun 2017 12:34:37 +0000 (14:34 +0200)]
libxml2: Disable LeakSanitizer when running API tests

Makefile.am: Disable LeakSanitizer when running API tests

The autogenerated API tests leak memory.

Upstream-Status: Backported - [https://git.gnome.org/browse/libxml2/commit/?id=ac9a4560ee85b18811ff8ab7791ddfff7b144b0a]
Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
7 years agoutil-linux: upgrade to 2.30
Denys Dmytriyenko [Tue, 13 Jun 2017 16:51:52 +0000 (12:51 -0400)]
util-linux: upgrade to 2.30

Drop uuid-test-error-api.patch as it's been fixed upstream differently:
https://github.com/karelzak/util-linux/commit/b770b487004778f4425639c7ed1bb6ca22d157bf

Drop ptest for tailf, as it got deprecated and removed:
https://github.com/karelzak/util-linux/commit/70ca1a77721b41f2355eeb00d4e55e13dba3e313

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobluez5: add more PACKAGECONFIG options
Marc Ferland [Tue, 13 Jun 2017 17:44:56 +0000 (13:44 -0400)]
bluez5: add more PACKAGECONFIG options

This patch adds missing PACKAGECONFIG options and allow for a more
fine-grained build of bluez5.

I took care of providing a default configuration that matches the
previous default config.

Signed-off-by: Marc Ferland <ferlandm@amotus.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobluez5: remove libusb dependency
Marc Ferland [Tue, 13 Jun 2017 17:44:55 +0000 (13:44 -0400)]
bluez5: remove libusb dependency

Not a dependency since version 5.9.

Signed-off-by: Marc Ferland <ferlandm@amotus.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agokernel-uimage.bbclass: Fix up generation of uImage from vmlinux
Nathan Rossi [Fri, 16 Jun 2017 12:38:49 +0000 (22:38 +1000)]
kernel-uimage.bbclass: Fix up generation of uImage from vmlinux

Fix up the generation of uImage from vmlinux when KEEPUIMAGE != 'yes'.
This fixes up the working directory that do_uboot_mkimage is run from,
such that it is run from the ${B} directory to access built artefacts.

Simplify the logic in the task so that the parse step either adds the
task or not if the conditions are met. This reduces the need for the
task to run in cases when it is not used. The task is also changed to
depend on the kernel_link_images task as arch/<arch>/boot/* is not
available until after kernel_link_images in certain cases (e.g.
vmlinux/uImage only KERNEL_IMAGETYPES).

Fix up the use of ${S}/vmlinux when pulling the entry symbols
address so that it accesses the vmlinux in ${B}.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoinsane.bbclass: Ignore perl as dependency for nativesdk packages
Peter Kjellerstedt [Thu, 15 Jun 2017 13:53:12 +0000 (15:53 +0200)]
insane.bbclass: Ignore perl as dependency for nativesdk packages

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomultilib.bbclass: fix faulty redefinition of STAGING_KERNEL_DIR
Petter Mabäcker [Mon, 15 May 2017 04:17:11 +0000 (06:17 +0200)]
multilib.bbclass: fix faulty redefinition of STAGING_KERNEL_DIR

Due to the problem fixed in
'56c677a multilib: Move redefinition of STAGING_DIR_KERNEL'
STAGING_KERNEL_DIR must be redefined for lib32 in multilib.bbclass.
However this redefinition expanded STAGING_KERNEL_DIR to an absolute
path. This unconsciously added the TMPDIR path in the sstate object,
causing packages depended on STAGING_KERNEL_DIR being rebuild if the
TMPDIR was changed.

Solve this by forcing the unexpanded TMPDIR variable to remain in the
beginning of STAGING_DIR_KERNEL (as default). Since TMPDIR is included in
BB_HASHBASE_WHITELIST, the sstate object will not be depended on the
expanded path anymore.

Signed-off-by: Petter Mabäcker <petter@technux.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/selftest/context: Reload testlayer_path when meta-selftest isn't added
Aníbal Limón [Thu, 15 Jun 2017 22:09:50 +0000 (17:09 -0500)]
oeqa/selftest/context: Reload testlayer_path when meta-selftest isn't added

When add meta-selftest by the script the testlayer_path needs to be
reloaded to avoid None value.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/core/loader.py: Fix _make_failed_test for python >= 3.4.4
Aníbal Limón [Thu, 15 Jun 2017 22:09:49 +0000 (17:09 -0500)]
oeqa/core/loader.py: Fix _make_failed_test for python >= 3.4.4

Python unittest change the signature of the _make_failed_test
after python 3.4.4 don't pass the method name.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/core/threaded: Don't assume that results exists on logDetails
Aníbal Limón [Thu, 15 Jun 2017 22:09:48 +0000 (17:09 -0500)]
oeqa/core/threaded: Don't assume that results exists on logDetails

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoselftest: Add Testopia ID to test cases
Jose Perez Carranza [Thu, 15 Jun 2017 12:49:22 +0000 (05:49 -0700)]
selftest: Add Testopia ID to test cases

Add decorator @OETestID() with proper Tesopia TC ID to the test cases
that did not have it set.

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoselftest/devtool: replace file assertTrue/False with assertExists/NotExists
Yeoh Ee Peng [Wed, 14 Jun 2017 20:01:12 +0000 (13:01 -0700)]
selftest/devtool: replace file assertTrue/False with assertExists/NotExists

Current osselftest print confusing assertion message when using
self.assertTrue(os.path.exists(filepath)) to test file path,
example of confusing assertion message:
AssertionError: False is not true

Replce assertTrue/assertFalse with assertExists/assertNotExists to test
file path, this will improve assertion message and simplify coding,
self.assertExists(filepath) will print below
AssertionError: <filepath> does not exist

[YOCTO #11356]

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosstate-sysroot-cruft.sh: Extend the whitelist
Martin Jansa [Fri, 16 Jun 2017 10:46:09 +0000 (12:46 +0200)]
sstate-sysroot-cruft.sh: Extend the whitelist

* add more php5 entries

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: remove extra double-quote on documentation string
Jean-Francois Dagenais [Tue, 20 Jun 2017 11:58:13 +0000 (07:58 -0400)]
wic: remove extra double-quote on documentation string

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic/runner.py: move runtool API to misc.py
Ed Bartosh [Fri, 16 Jun 2017 13:19:27 +0000 (16:19 +0300)]
wic/runner.py: move runtool API to misc.py

Moved remaining API to misc.py.
Removed runner.py.

Now misc.py is ready to be moved to the scripts/lib/wic and
utils directory can be removed.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: fix restoring of original fstab
Ed Bartosh [Fri, 16 Jun 2017 13:19:30 +0000 (16:19 +0300)]
wic: fix restoring of original fstab

Wic updates fstab if mount points are specified in .wks.
After partition images are created the original fstab is restored.
However, if exception is raised when partition image being prepared
wic doesn't restore original fstab. This can cause duplication of
added lines in fstab when 'wic create' runs next time.

Wrapping call of 'prepare' method and restoring original fstab
even if exception occurs should fix this.

[YOCTO #11633]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: code cleanup
Ed Bartosh [Fri, 16 Jun 2017 13:19:29 +0000 (16:19 +0300)]
wic: code cleanup

Split long lines.
Removed unused imports.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: flatten directory structure
Ed Bartosh [Fri, 16 Jun 2017 13:19:28 +0000 (16:19 +0300)]
wic: flatten directory structure

Moved misc.py from wic/utils/ to wic/
Removed wic/utils directory

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/contrib/patchtest: run patchtest on local branch
Leonardo Sandoval [Fri, 10 Feb 2017 22:46:24 +0000 (16:46 -0600)]
scripts/contrib/patchtest: run patchtest on local branch

The script run patchtest on local branch commits, printing results into
stdout. This script is useful to test patches before sending to the
mailing list.

Examples:

$ git checkout master-next-1.9
Branch master-next-1.9 set up to track remote branch master-next-1.9 from origin.
Switched to a new branch 'master-next-1.9'

  $ ~/scripts/contrib/patchtest.sh
  166e70e: Robert Yang: Thu Apr 2 12:01:37 2015 +0100: patch: fix CVE-2015-1196: FAIL
   Issue             Missing or incorrectly formatted CVE tag in commit message [test_cve_presence_in_commit_message]
    Suggested fix    Include a "CVE-xxxx-xxxx" tag in the commit message
   Issue             Missing or incorrectly formatted CVE tag in included patch file [test_cve_tag_format]
    Suggested fix    Correct or include the CVE tag on cve patch with format: "CVE: CVE-YYYY-XXXX"

  eaa4536: Robert Yang: Thu Apr 2 12:01:37 2015 +0100: wget: 1.16.1 -> 1.16.2: OK

  3c29ce3: Robert Yang: Thu Apr 2 12:01:38 2015 +0100: git: 2.3.0 -> 2.3.1: OK

  85491f6: Khem Raj: Thu Apr 2 12:01:38 2015 +0100: gdb: Upgrade 7.8.1 -> 7.9: OK

  f701142: Robert Yang: Thu Apr 2 12:01:38 2015 +0100: binutils: upgrade to 2.25: OK

  385d0b1: Khem Raj: Thu Apr 2 12:01:39 2015 +0100: binutils: Fix ICE in gold: OK

[YOCTO #10720]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobuildhistory-diff: exclude paths from the output
Ed Bartosh [Tue, 13 Jun 2017 13:12:18 +0000 (16:12 +0300)]
buildhistory-diff: exclude paths from the output

Implemented -e/--exclude-path command line option to
exclude paths from buildhistory-diff output.

[YOCTO #11459]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoclasses/buildhistory: fix failures collecting output signatures
Paul Eggleton [Tue, 9 May 2017 00:38:39 +0000 (12:38 +1200)]
classes/buildhistory: fix failures collecting output signatures

It's possible for tasks to stage symlinks that point to non-existent
files; an example is ncurses-native.do_populate_sysroot. There wasn't
any error checking here so this broke the build when "task" was included
in BUILDHISTORY_FEATURES. In any case we shouldn't be following symlinks
and getting the sha256sum of the link target - we need concern ourselves
only with the target path, so check if the file is a link and sha256 the
target path instead if it is. If it's neither a regular file nor a
symlink (perhaps a pipe or a device), just skip it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokconfig-frontends: Remove as only needed for eglibc
Richard Purdie [Thu, 15 Jun 2017 22:49:22 +0000 (23:49 +0100)]
kconfig-frontends: Remove as only needed for eglibc

This was only added for eglibc. That is gone so we can drop this too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopciutils: Fold patches into a single patch with a description
Richard Purdie [Thu, 15 Jun 2017 22:43:22 +0000 (23:43 +0100)]
pciutils: Fold patches into a single patch with a description

Patches patching content from other patches is bad. This folds the three
patches into one, improves some of what its doing to be a little
cleaner and adds a proper description to the patch header.

This also moves the STRIP override to the configure commandline rather
than patching and handles passing libdir the same way.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agometa: Remove further uclibc remnants (inc. patches and site files)
Richard Purdie [Thu, 15 Jun 2017 22:15:00 +0000 (23:15 +0100)]
meta: Remove further uclibc remnants (inc. patches and site files)

Some of these are clearly dead, e.g. one binutils patch reverts the effects
of the earlier one.

This also removes the uclibc site files. We now have mechanisms to allow these
to be extended from another layer should someone ever wish to do that.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogcc: Drop 5.4 series
Richard Purdie [Thu, 15 Jun 2017 17:30:29 +0000 (18:30 +0100)]
gcc: Drop 5.4 series

We now have gcc 6 and gcc 7 recipes, the gcc 5 series can be dropped
as we're no longer going to support it for targets.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agometa: Drop further remnants of uclibc support
Richard Purdie [Thu, 15 Jun 2017 17:25:54 +0000 (18:25 +0100)]
meta: Drop further remnants of uclibc support

uclibc support was removed a while ago and musl works much better. Start to
remove the various overrides and patches related to uclibc which are no longer
needed.

uclibc support in a layer would still be possible. I have strong reasons to
believe nobody is still using uclibc since patches are missing and I doubt
the metadata even parses anymore.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_deb: Drop obsolete comments/variables
Richard Purdie [Thu, 15 Jun 2017 17:20:21 +0000 (18:20 +0100)]
package_deb: Drop obsolete comments/variables

These comments/variables appear to be long dead, remove them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agometa: Drop remnants of uclibc support
Richard Purdie [Thu, 15 Jun 2017 14:21:42 +0000 (15:21 +0100)]
meta: Drop remnants of uclibc support

uclibc support was removed a while ago and musl works much better. Start to
remove the various overrides and patches related to uclibc which are no longer
needed.

uclibc support in a layer would still be possible. I have strong reasons to
believe nobody is still using uclibc since patches are missing and I doubt
the metadata even parses anymore.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_ipk: Parallelise ipk creation
Richard Purdie [Thu, 30 Mar 2017 21:02:45 +0000 (22:02 +0100)]
package_ipk: Parallelise ipk creation

Allow the creation of ipks to happen in parallel, making best use of resources
on multiprocessor systems.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_deb: Enable multithreaded package creation
Richard Purdie [Fri, 31 Mar 2017 14:06:39 +0000 (15:06 +0100)]
package_deb: Enable multithreaded package creation

Allow the creation of debs to happen in parallel, making best use of resources
on multiprocessor systems.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopseudo: Handle too many files deadlock
Richard Purdie [Tue, 25 Apr 2017 14:25:54 +0000 (15:25 +0100)]
pseudo: Handle too many files deadlock

If we have large amounts of parallelism, pseudo can end up with too
many open connections and will no longer accept further connections,
hanging. This patch works around that by closing some clients, allowing
turnover of connections and unblocking the system. The downside is a small
but theoretical window of data loss. This is likely better than locking
up entirely though. Discussions with Peter are onging about how we could
better fix this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoovmf: fix secureboot PACKAGECONFIG + OpenSSL update
Patrick Ohly [Fri, 16 Jun 2017 09:53:48 +0000 (11:53 +0200)]
ovmf: fix secureboot PACKAGECONFIG + OpenSSL update

The recent ovmf update broke secureboot because upstream changed the
way how openssl gets compiled into ovmf. It's now integrated directly
into the ovmf build process, without having to patch it first.

In addition, more recent OpenSSL releases are supported. 1.1.0e was
explicitly mentioned in the ovmf commits and because the current
1.1.0f only has minor build enhancements, 1.1.0e is used here.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_ipk: Clean up Source entry in ipk packages
Richard Purdie [Fri, 16 Jun 2017 08:42:30 +0000 (09:42 +0100)]
package_ipk: Clean up Source entry in ipk packages

There is the potential for sensitive information to leak through the urls
there and removing it brings this into the behavior of the other package
backends since filtering it is likely error prone.

Since ipks don't appear to be generated at all if we don't set this, set
the field to the recipe name used (basename only, no paths). This avoids
information leaking. We may want to drop the field if opkg can allow that
at a future point but the recipe name is a suitable identifier for now.

Reported-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomtools-native: fix Upstream-Status
Ed Bartosh [Tue, 13 Jun 2017 14:34:02 +0000 (17:34 +0300)]
mtools-native: fix Upstream-Status

This is OE-specific customisation so set the status as such.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_manager: flush installed_pkgs file before oe-pkgdata-util uses it
Martin Jansa [Tue, 30 May 2017 05:48:13 +0000 (07:48 +0200)]
package_manager: flush installed_pkgs file before oe-pkgdata-util uses it

* since this commit:
  commit f5a1013ffa9815f22e13989e2bcb83f966e7ce2c
  Author: Ross Burton <ross.burton@intel.com>
  Date:   Tue Apr 18 16:19:12 2017 +0100

    package_manager: don't race on a file when installing complementary
    packages

  the file isn't closed before oe-pkgdata-util uses it and this
  temporary file might look empty to oe-pkgdata-util, because it
  wasn't flushed yet. Which resulted in almost empty debugfs tarballs
  and no locale packages in regular rootfs.
* without this change:
  124K May 30 07:41 core-image-full-cmdline-raspberrypi3-64-20170530054003-dbg.rootfs.tar.gz
* with this change:
  173M May 30 07:29 core-image-full-cmdline-raspberrypi3-64-20170530052715-dbg.rootfs.tar.gz

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodistrooverrides.bbclass: DISTRO_FEATURES as overrides
Patrick Ohly [Wed, 14 Jun 2017 10:33:50 +0000 (12:33 +0200)]
distrooverrides.bbclass: DISTRO_FEATURES as overrides

This achieves the same goal as the same change to bitbake.conf itself,
but because the class gets added later as part expanding INHERIT, this
new approach is less likely to run into problems when DISTRO_FEATURES
contains complex code.

Another difference is that the class currently does not get inherited
by default and thus is completely absent from a build unless some
layer or include file adds it to INHERIT.

Compared to the earlier code in bitbake.conf and a similar class in
intel-iot-refkit, additional overrides now get sorted. This makes the
final OVERRIDES more deterministic.

The lessons learned about unintentionally depending on OVERRIDES are
documented in the class because such problems are more likely to show
up as unexpected signature differences when using this class.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoRevert "bitbake.conf: DISTRO_FEATURES as overrides"
Patrick Ohly [Wed, 14 Jun 2017 10:33:49 +0000 (12:33 +0200)]
Revert "bitbake.conf: DISTRO_FEATURES as overrides"

This reverts commit 3b3ae91a22d6f685e804df4f32cdeebe1bd6bd88.

It turned out that the code which expands DISTRO_FEATURES early during
base config parsing can fail because some entries in DISTRO_FEATURES
might call Python functions like base_conditional() from base.bbclass
which aren't defined yet.

A different solution will be needed.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopython-3.5: Move bz2.py, lzma.py and _compression.py from python3-misc to python3...
Martin Jansa [Wed, 14 Jun 2017 10:25:38 +0000 (12:25 +0200)]
python-3.5: Move bz2.py, lzma.py and _compression.py from python3-misc to python3-compression

* the /usr/lib/python3.5/_compression.py file is possibly incorrectly included
  in python3-misc. This runtime dependency is needed in order to use e.g. gzip.py in runtime:

  >>> import tarfile, zlib, gzip
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/lib/python3.5/gzip.py", line 12, in <module>
      import _compression
  ImportError: No module named '_compression'

* at least python3-tests and lzma and bz2 still in python3-misc are using this as well:
  $ grep -R import.*_compression tmp-glibc/work/aarch64-oe-linux/python3/3.5.2-r1.0/packages-split/
  tmp-glibc/work/aarch64-oe-linux/python3/3.5.2-r1.0/packages-split/python3-compression/usr/lib/python3.5/gzip.py:import _compression
  tmp-glibc/work/aarch64-oe-linux/python3/3.5.2-r1.0/packages-split/python3-misc/usr/lib/python3.5/lzma.py:import _compression
  tmp-glibc/work/aarch64-oe-linux/python3/3.5.2-r1.0/packages-split/python3-misc/usr/lib/python3.5/bz2.py:import _compression
  tmp-glibc/work/aarch64-oe-linux/python3/3.5.2-r1.0/packages-split/python3-tests/usr/lib/python3.5/test/test_bz2.py:import _compression
  tmp-glibc/work/aarch64-oe-linux/python3/3.5.2-r1.0/packages-split/python3-tests/usr/lib/python3.5/test/test_lzma.py:import _compression

  and python3-tests are using it as well, so add new runtime dependency
  on python3-compression

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoattr: Fix build failure when image includes man-pages pkg
Mark Asselstine [Tue, 13 Jun 2017 20:26:45 +0000 (16:26 -0400)]
attr: Fix build failure when image includes man-pages pkg

If you attempt to build an image with both attr(-doc) and man-pages
packages your rootfs might fail to assemble. The error will be
something like:

Error: Transaction check error:
  file /usr/share/man/man2/fgetxattr.2 from install of \
    attr-doc-2.4.47-r0.core2_64 conflicts with file from \
    package man-pages-4.11-r0.core2_64

(the error is usually only seen on builders which don't have manpages
installed, if you have /usr/share/man/man1/man.1.gz your build will
complete but you will have duplicate manpages, just one zipped and one
not)

Backporting changes from upstream attr removes the conflicted files in
favour of those in the man-pages package.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoexternalsrc: verify that EXTERNALSRC/EXTERNALSRC_BUILD are absolute paths
Ross Burton [Tue, 13 Jun 2017 16:44:54 +0000 (17:44 +0100)]
externalsrc: verify that EXTERNALSRC/EXTERNALSRC_BUILD are absolute paths

If these are set to URLs then the errors produced are not helpful.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoadwaita-icon-theme: add a patch to speed up the do_install() task
Alexander Kanavin [Tue, 13 Jun 2017 15:41:40 +0000 (18:41 +0300)]
adwaita-icon-theme: add a patch to speed up the do_install() task

Goes down to 40 seconds from over 4 minutes :)

Note that there is no control over the amount of shell jobs; on my machine
this is not a problem, but if it's a problem on less capable hardware,
we can add some kind of limiter.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorunqemu: change terminal settings for valid tty's
Mikko Ylinen [Tue, 13 Jun 2017 15:39:09 +0000 (18:39 +0300)]
runqemu: change terminal settings for valid tty's

runqemu uses stty to change terminal settings to give users
better control to qemu. However, stty does not work when
runqemu is run directly or indirectly via oe-selftest in
a Docker container (presumably some problems with Docker's
pseudo-tty implementation).

The error reported is:
stty: 'standard input': Inappropriate ioctl for device

As runqemu recently moved to subprocess.check_call() for
stty calls we now get thrown an error and all runqemu
runs fail.

sys.stdin.isatty() does proper job in detecting if the stty
calls can work so we use that check before running the stty
subprocess operations.

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogrub: switch from ftp to https
Maxin B. John [Tue, 13 Jun 2017 14:29:53 +0000 (17:29 +0300)]
grub: switch from ftp to https

For the same reasons as Debian:
https://www.debian.org/News/2017/20170425

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibid3tag: switch from ftp to http
Maxin B. John [Tue, 13 Jun 2017 14:29:52 +0000 (17:29 +0300)]
libid3tag: switch from ftp to http

For the same reasons as Debian:
https://www.debian.org/News/2017/20170425

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibglu: switch from ftp to https
Maxin B. John [Tue, 13 Jun 2017 14:29:51 +0000 (17:29 +0300)]
libglu: switch from ftp to https

For the same reasons as Debian:
https://www.debian.org/News/2017/20170425

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomesa: switch from ftp to https
Maxin B. John [Tue, 13 Jun 2017 14:29:50 +0000 (17:29 +0300)]
mesa: switch from ftp to https

For the same reasons as Debian:
https://www.debian.org/News/2017/20170425

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomesa-demos: switch from ftp to https
Maxin B. John [Tue, 13 Jun 2017 14:29:49 +0000 (17:29 +0300)]
mesa-demos: switch from ftp to https

For the same reasons as Debian:
https://www.debian.org/News/2017/20170425

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodhcp: switch from ftp to http
Maxin B. John [Tue, 13 Jun 2017 14:29:48 +0000 (17:29 +0300)]
dhcp: switch from ftp to http

For the same reasons as Debian:
https://www.debian.org/News/2017/20170425

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibpcre: switch from ftp to https
Maxin B. John [Tue, 13 Jun 2017 14:29:47 +0000 (17:29 +0300)]
libpcre: switch from ftp to https

For the same reasons as Debian:
https://www.debian.org/News/2017/20170425

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage.bbclass: fix setting of vardeps flag
Ed Bartosh [Wed, 14 Jun 2017 09:07:06 +0000 (12:07 +0300)]
image.bbclass: fix setting of vardeps flag

Added leading space to vardeps to avoid flag value to be
added to the existing value without a separator.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage.bbclass: improve setup of flags
Ed Bartosh [Wed, 14 Jun 2017 09:07:05 +0000 (12:07 +0300)]
image.bbclass: improve setup of flags

Replaced setVarFlag calls to appendVarFlag to allow
modification of prefuncs, postfuncs and subimages flags
in inherited image classes.

[YOCTO #11372]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage.bbclass: cleanup: add new variable "task"
Ed Bartosh [Wed, 14 Jun 2017 09:07:04 +0000 (12:07 +0300)]
image.bbclass: cleanup: add new variable "task"

Replaced repeated expression "do_image_%s" % t with
a variable 'task' to simplify the code and increase
readability.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agostaging.bbclass: fix typo
Chen Qi [Wed, 14 Jun 2017 06:20:12 +0000 (14:20 +0800)]
staging.bbclass: fix typo

The function is "sysroot_strip" instead of "split_and_strip_files".

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoconnman: correct the systemd boot in read only rootfs
Maxin B. John [Mon, 12 Jun 2017 15:10:22 +0000 (18:10 +0300)]
connman: correct the systemd boot in read only rootfs

connman fails to start in systemd based read-only images while creating links:

Jun 08 12:53:56 qemux86-64 systemd[1]: Starting Create Volatile Files
and Directories...
Jun 08 12:53:56 qemux86-64 systemd-tmpfiles[366]:
[[0;1;31msymlink(/var/run/connman/resolv.conf, /etc/resolv.conf) failed:
Read-only file system[[0m

Fix this failure and make connman co-exist with systemd-resolved.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemd: enable resolved and networkd
Maxin B. John [Mon, 12 Jun 2017 15:10:21 +0000 (18:10 +0300)]
systemd: enable resolved and networkd

Enable systemd-resolved and systemd-networkd by default.
Make it co-exist with connman and  Fix associated problems
in read-only rootfs.

Fixes [YOCTO #11331]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoselftest/sstatetests: Fix potential failure on uniprocessor machines
Richard Purdie [Wed, 14 Jun 2017 10:55:45 +0000 (11:55 +0100)]
selftest/sstatetests: Fix potential failure on uniprocessor machines

It was pointed out +1 is safer than -1 for systems with one processor.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogcc_7.1.bb: disable thumb on armv5t
Khem Raj [Sat, 10 Jun 2017 18:34:24 +0000 (11:34 -0700)]
gcc_7.1.bb: disable thumb on armv5t

It results in same link errors like armv4t

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agogcc: Add recipes for gcc-7
Khem Raj [Sat, 15 Apr 2017 01:10:45 +0000 (18:10 -0700)]
gcc: Add recipes for gcc-7

Switch default compiler to gcc 7

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agoovmf: Update to latest
Khem Raj [Sat, 10 Jun 2017 08:39:36 +0000 (01:39 -0700)]
ovmf: Update to latest

Fix build with gcc7

clang can not compile it therefore mark it gcc only recipe

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agouboot-config: check UBOOT_CONFIG variable, not flags, for error conditions
Denys Dmytriyenko [Mon, 12 Jun 2017 18:47:49 +0000 (14:47 -0400)]
uboot-config: check UBOOT_CONFIG variable, not flags, for error conditions

Sometimes there's a need to change existing UBOOT_CONFIG setting from a recipe,
distro or local config, such as an override or even switch back to UBOOT_MACHINE.
Unfortunately, there's no easy way to override or unset flags, so using them as
an error condition is rather heavy-handed. Change those conditions to check the
UBOOT_CONFIG variable itself, not its flags.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosed: changes to support merged /usr
Amarnath Valluri [Tue, 13 Jun 2017 06:52:38 +0000 (09:52 +0300)]
sed: changes to support merged /usr

Few of the perl scripts referring '#!/bin/sed' inside the script. But when
'usrmerge' feature is enabled this path would be /usr/bin/sed. So to satisfy
build dependency add '/bin/sed' to it's providers list.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobusybox: changes to support merged /usr
Amarnath Valluri [Tue, 13 Jun 2017 06:52:37 +0000 (09:52 +0300)]
busybox: changes to support merged /usr

Most of the shell scripts refer to /bin/sh inside the script. When 'usrmege'
feature is enabled, this path would be /usr/bin/sh. Hence, to satisfy build
dependency add '/bin/sh' to it's providers list.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>