]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agowic: partition: Update fsck parameters
Daniel Schultz [Thu, 30 Mar 2017 07:07:13 +0000 (09:07 +0200)]
wic: partition: Update fsck parameters

These parameters are copied from the ext image class.

-D will let fsck perform further directory optimizations
-v might be helpful for debugging purpose

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: remove prepare_empty_partition_squashfs
Ed Bartosh [Thu, 30 Mar 2017 18:17:20 +0000 (21:17 +0300)]
wic: remove prepare_empty_partition_squashfs

There is not much sense in creation of empty squashfs
partition. It's also not possible to create empty squashfs
partition of specified size.

Even more, prepare_empty_partition_squashfs method is
absolutely broken. It raises exception when called and
even its signature differs from the rest of of similar
methods. It means that nobody uses it and it's safe
to remove it.

Removed prepare_empty_partition_squashfs method and
testing of empty squashfs partition.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agooe-selftest: test creation of msdos partition
Ed Bartosh [Thu, 30 Mar 2017 15:14:12 +0000 (18:14 +0300)]
oe-selftest: test creation of msdos partition

Added msdos partition to the .wks file in test_fs_types
wic test case.

[YOCTO #11137]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: fix list of supported fstypes in help content
Ed Bartosh [Thu, 30 Mar 2017 15:06:02 +0000 (18:06 +0300)]
wic: fix list of supported fstypes in help content

Added vfat and msdos to the list of supported fstypes in
'wic help kickstart' output.

[YOCTO #11137]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: set correct system id for msdos partitions
Ed Bartosh [Thu, 30 Mar 2017 14:18:03 +0000 (17:18 +0300)]
wic: set correct system id for msdos partitions

Explicitly set system id 0x6(FAT16) for msdos partitions.

Removed old code that attempts to achieve the same result
using 'parted ... lba off'.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: set FAT 16 for msdos partitions
Ed Bartosh [Thu, 30 Mar 2017 14:14:22 +0000 (17:14 +0300)]
wic: set FAT 16 for msdos partitions

Used '-F 16' parameter for mkdosfs to create FAT16 partitions for
'msdos' partition type.

[YOCTO #11137]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: support 'msdos' fstype
Ed Bartosh [Thu, 30 Mar 2017 14:08:23 +0000 (17:08 +0300)]
wic: support 'msdos' fstype

Added prepare_empty_partition_msdos and prepare_rootfs_msdos
methods to support 'msdos' filesystem type.

Created aliases prepare_empty_partition_vfat and prepare_rootfs_vfat
to continue supporting creation of vfat patitiions.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: don't silently skip unknown fstypes
Ed Bartosh [Thu, 30 Mar 2017 11:05:52 +0000 (14:05 +0300)]
wic: don't silently skip unknown fstypes

Fixed wic code that loops through hard-coded list of known fstypes
to find prepare_rootfs_<fstype> or prepare_empty_partition_<fstype>
methods and silently skipping unknown fstypes.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: allow only supported fstypes
Ed Bartosh [Thu, 30 Mar 2017 10:37:15 +0000 (13:37 +0300)]
wic: allow only supported fstypes

Restricted possible values of --fstype to the list of
supported types. This should catch incorrect values
when .wks file is being parsed.

Removed checks for empty fstype and mentioning of
unsupported fstype 'ontrackdm6aux3'.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agooe-selftest: fix incorrect fstype
Ed Bartosh [Thu, 30 Mar 2017 15:11:55 +0000 (18:11 +0300)]
oe-selftest: fix incorrect fstype

Fixed typo in wks content: squash->squashfs

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agooe-selftest: add test_image_bootpart_globbed test for wic
Ed Bartosh [Sun, 26 Mar 2017 17:42:30 +0000 (20:42 +0300)]
oe-selftest: add test_image_bootpart_globbed test for wic

Test image-bootpart wic plugin with globbed value of
IMAGE_BOOT_FILES variable to increase test coverage.

[YOCTO #10618]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: remove unused code from runner module
Ed Bartosh [Sun, 26 Mar 2017 17:39:22 +0000 (20:39 +0300)]
wic: remove unused code from runner module

Removed unused APIs 'outs' and 'quiet'.
Removed 'catch' parameter from runner.runtool API as wic
uses only one value of it. Removed the code that handles
unused values of 'catch' parameter.

[YOCTO #10618]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: remove runner.show API
Ed Bartosh [Sun, 26 Mar 2017 17:34:27 +0000 (20:34 +0300)]
wic: remove runner.show API

Replaced runner.show call to exec_cmd call in bootimg-pcbios
plugin. Removed runner.show API as it's not used anywhere else.

[YOCTO #10618]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: use wic-tools STAGING_DATADIR as bootimg_dir
Ed Bartosh [Sun, 26 Mar 2017 17:27:48 +0000 (20:27 +0300)]
wic: use wic-tools STAGING_DATADIR as bootimg_dir

If bootloader artifacts are not found in default bootimg_dir
use wic-tools sysroot for the same purpose. This should
prevent wic from failing if bootloader artifacts can't be
found in image native sysroot.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: remove fsimage plugin
Ed Bartosh [Sun, 26 Mar 2017 17:20:31 +0000 (20:20 +0300)]
wic: remove fsimage plugin

Removed fsimage plugin and prepare_rootfs_from_fs_image API as
they duplicate functionality of rawcopy plugin. Fsimage plugin makes
wic to remove the image artifact from deployment directory, which
can cause problems too.

[YOCTO #10618]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agooe-selftest: add kickstart_parser test case
Ed Bartosh [Sun, 26 Mar 2017 17:15:19 +0000 (20:15 +0300)]
oe-selftest: add kickstart_parser test case

Added test_kickstart_parser test case to test wks parser
options not yet covered by tests.

[YOCTO #10618]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agofilemap: remove FilemapSeek class
Ed Bartosh [Sun, 26 Mar 2017 17:08:46 +0000 (20:08 +0300)]
filemap: remove FilemapSeek class

FIEMAP API was added to Linux kernel 2.6.28 back in 2008
SEEK_HOLE and SEEK_DATA API was added much letter.
As FIEMAP is used by filemap module as a default API it's
safe to remove FileMpSeek class as it's never used.

[YOCTO #10618]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agooe-selftest: add wic test case test_fs_types
Ed Bartosh [Sun, 26 Mar 2017 15:38:46 +0000 (18:38 +0300)]
oe-selftest: add wic test case test_fs_types

Added wic test case to test all possible filesystem
types for empty and not empty partitions.

[YOCTO #10618]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic-tools: add btrfs-tools squashfs-tools to DEPENDS
Ed Bartosh [Sun, 26 Mar 2017 17:04:34 +0000 (20:04 +0300)]
wic-tools: add btrfs-tools squashfs-tools to DEPENDS

Added btrfs-tools-native and squashfs-tools-native to DEPENDS as
wic uses these tools to support btrfs and squashfs filesystems.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agovolatile-binds: correct some errors reported by systemd
Joe Slater [Fri, 31 Mar 2017 01:06:33 +0000 (18:06 -0700)]
volatile-binds: correct some errors reported by systemd

systemd-tmpfiles-setup will fail at boot, so we suppress
the default versions of etc.conf and home.conf.

We also make sure that /var/{cache,spool} and /srv are writeable
if they exist.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/runtime/cases: Migrate underscore cases
Mariano Lopez [Thu, 30 Mar 2017 22:18:14 +0000 (15:18 -0700)]
oeqa/runtime/cases: Migrate underscore cases

There were two missing cases to be migrated to the new framework: _qemutiny and
_ptest.

qemutiny was straightforward.

ptest on the other hand wasn't working even in previous releases; it has been
migrated from smart to dnf, and how ptest packages are gathered to be
installed, adapted to use unicode, and removed a lot of code that wasn't needed
anymore.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssl: add a "openssl10" PROVIDES
Alexander Kanavin [Fri, 31 Mar 2017 09:31:13 +0000 (12:31 +0300)]
openssl: add a "openssl10" PROVIDES

In 2.4 development cycle openssl 1.1 will replace openssl 1.0 as the
default openssl version. Openssl 1.0 will stay but will be renamed
to openssl10, and eventually it will be removed (hopefully much
sooner than the official end of support date of Dec 2019, as we do not
want an unsupported openssl version in supported Yocto releases).

There are several recipes that are not API compatible with 1.1; some
of them will eventually be fixed, but others will never be (such as Qt4).
To avoid breaking such recipes when openssl 1.1 is added to oe-core,
let's provide "openssl10" already now and change the recipes to depend
on that where necessary; Qt4 is a particularly pressing issue as it is
causing failures on the autobuilder with my work in progress
openssl 1.1 branch, and so I'm not able to see what else would fail
later in the build process.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoperl-native: Bring build dependencies inline with target perl package
Serhii Popovych [Tue, 28 Mar 2017 19:02:38 +0000 (19:02 +0000)]
perl-native: Bring build dependencies inline with target perl package

Make sure we have all build time dependencies of perl-native
satisfied before we start building it.

Behaviour was observed with RHEL6 build hosts where perl-native
build fails at linging stage when attempting to link to the build
hosts old Berkley DB because virtual/db-native is missing in
native sysroot.

Add dependencies to the native packages taken from perl recipe.

Cc: XE-Linux <xe-linux-external@cisco.com>
Signed-off-by: Serhii Popovych <spopovyc@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodistutils3.bbclass: Fix path to python for scripts
Serhii Popovych [Tue, 28 Mar 2017 19:32:00 +0000 (19:32 +0000)]
distutils3.bbclass: Fix path to python for scripts

This change is similar to the recently introduced
change to the distutils.bbclass fixing shebang
line in python scripts for nativesdk class builds.

v2: Rebased on top of new head.

Cc: XE-Linux <xe-linux-external@cisco.com>
Signed-off-by: Serhii Popovych <spopovyc@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodistutils.bbclass: Fix path to python for scripts
Serhii Popovych [Tue, 28 Mar 2017 19:31:59 +0000 (19:31 +0000)]
distutils.bbclass: Fix path to python for scripts

Commit 11229de (distutils: Replacing path to native python by path
to python in the image to support python packages with
console-script setup) replaces path to python-native with path
to the python interpreter in the target image.

However on nativesdk builds ${bindir} expanded to the
${SDKPATHNATIVE}${prefix_nativesdk} making shebang line
pointing to the absolute path to env(1) in SDKPATHNATIVE
which may not be present if coreutils isn't part of nativesdk.

On the other hand commit cf63d90 (bitbake.conf: Define USRBINPATH
globally instead of individually) introduces USRBINPATH variable
which has correct value regarding build class and intended for
this use case.

v2: Rebased on top of new head.

Cc: XE-Linux <xe-linux-external@cisco.com>
Signed-off-by: Serhii Popovych <spopovyc@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssl: Fix regression when building for thumb2
Max Krummenacher [Fri, 24 Mar 2017 15:01:14 +0000 (16:01 +0100)]
openssl: Fix regression when building for thumb2

Commit 'c8da8ce openssl: Fix build with clang' introduced a regression.
do_compile fails when building with gcc/thumb2.

Note that I did not test if it still builds with clang.

Prevents the following when building with thumb2:

| ghash-armv4.S: Assembler messages:
| ghash-armv4.S:88: Error: thumb conditional instruction should be in IT block -- `ldrplb r12,[r2,r3]'
| ghash-armv4.S:98: conditional infixes are deprecated in unified syntax
| ghash-armv4.S:98: Error: thumb conditional instruction should be in IT block -- `ldrplb r8,[r0,r3]'
| ghash-armv4.S:105: Error: thumb conditional instruction should be in IT block -- `eorpl r12,r12,r8'
| ghash-armv4.S:107: Error: thumb conditional instruction should be in IT block -- `andpl r14,r12,#0xf0'
| ghash-armv4.S:108: Error: thumb conditional instruction should be in IT block -- `andpl r12,r12,#0x0f'
| ghash-armv4.S:144: conditional infixes are deprecated in unified syntax
| ghash-armv4.S:144: Error: thumb conditional instruction should be in IT block -- `ldrneb r12,[r2,#15]'
| ghash-armv4.S:231: conditional infixes are deprecated in unified syntax
| ghash-armv4.S:231: Error: thumb conditional instruction should be in IT block -- `ldrplb r12,[r0,r3]'
| ghash-armv4.S:248: Error: thumb conditional instruction should be in IT block -- `andpl r14,r12,#0xf0'
| ghash-armv4.S:249: Error: thumb conditional instruction should be in IT block -- `andpl r12,r12,#0x0f'

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonasm: remove COMPATIBLE_HOST
Ross Burton [Thu, 30 Mar 2017 11:26:02 +0000 (12:26 +0100)]
nasm: remove COMPATIBLE_HOST

nasm can build on every architecture, it just can't generate anything but X86
code.  As we can't know what the user intends to do with nasm, remove the
COMPATIBLE_HOST line.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonet-tools: enable native and nativesdk variant
Patrick Ohly [Thu, 30 Mar 2017 15:09:36 +0000 (17:09 +0200)]
net-tools: enable native and nativesdk variant

net-tools-native is needed by swtpm-wrappers (in meta-security)
because swtpm_setup.sh calls netstat, which cannot be assumed to be
present in all Linux installations (for example, it is not in OpenSUSE
minimal base).

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobase.bbclass: ensure HOSTTOOLS links point to executables
Ross Burton [Thu, 30 Mar 2017 13:34:10 +0000 (14:34 +0100)]
base.bbclass: ensure HOSTTOOLS links point to executables

Use the new executable argument to bb.utils.which() to ensure that the symlinks
point to executable files and not for example directories with the right name
which happened to be on $PATH.

[ YOCTO #11256 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosanity.conf: Increase minimum version requirement to 1.33.3
Richard Purdie [Thu, 30 Mar 2017 15:42:53 +0000 (16:42 +0100)]
sanity.conf: Increase minimum version requirement to 1.33.3

This pulls in changes to bb.utils.which() for HOSTTOOLS.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-libc-headers: Remove reference to cross-linkage
Richard Purdie [Thu, 30 Mar 2017 14:12:33 +0000 (15:12 +0100)]
linux-libc-headers: Remove reference to cross-linkage

This is long dead (thankfully), remove stale reference/comment.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-libc-headers: Drop 4.4
Richard Purdie [Thu, 30 Mar 2017 14:10:20 +0000 (15:10 +0100)]
linux-libc-headers: Drop 4.4

We've been using 4.10 for a while now, I think 4.4 was accidentally left
behind so clean it up.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglibc-package: Allow 32 and 64 bit headers to exist on arm
Richard Purdie [Thu, 30 Mar 2017 14:08:33 +0000 (15:08 +0100)]
glibc-package: Allow 32 and 64 bit headers to exist on arm

With this change (combined with the previous linux-libc-header fix), a
combined sysroot for 32 and 64 bit arm works meaning our SDK works
correctly for that multilib setup.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-libc-headers: Allow arm kernel headers to coexist on 32/64 bit
Richard Purdie [Thu, 30 Mar 2017 14:05:33 +0000 (15:05 +0100)]
linux-libc-headers: Allow arm kernel headers to coexist on 32/64 bit

Its rather sad we need to do this but in order to make combined 32 and 64 bit
SDKs work, we need a common set of headers and this is the delta that
allows things to work. It only applies on arm.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomultilib_header: Update wrapper to handle arm 32/64 bit
Richard Purdie [Thu, 30 Mar 2017 14:02:21 +0000 (15:02 +0100)]
multilib_header: Update wrapper to handle arm 32/64 bit

Having arm 32/64 bit headers coexisting turns out to be tricky. Unfortunately
our wrapper works using wordsize.h and this differs on arm so we can't use it.

Therefore replicate the logic here for arm. I did look into writing our
own wordsize.h but we also need to remap kernel headers on arm and
since wordsize.h comes from libc, that doesn't work for kernel headers.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: Drop MULTIMACH_HOST_SYS
Richard Purdie [Thu, 30 Mar 2017 09:29:04 +0000 (10:29 +0100)]
bitbake.conf: Drop MULTIMACH_HOST_SYS

There are no users of this left after recipe specfic sysroots was implemented,
drop the variable as it no longer makes sense or is useful.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoccache: Use MULTIMACH_TARGET_SYS not HOST_SYS
Richard Purdie [Thu, 30 Mar 2017 09:27:49 +0000 (10:27 +0100)]
ccache: Use MULTIMACH_TARGET_SYS not HOST_SYS

I suspect this was a typo and that TARGET_SYS makes more sense here. Its
also the only remaining user of MULTIMACH_HOST_SYS in OE-Core. Change it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosanity: Drop obsolete TMPDIR ABI conversions
Richard Purdie [Thu, 30 Mar 2017 09:26:56 +0000 (10:26 +0100)]
sanity: Drop obsolete TMPDIR ABI conversions

When we get to version 12 we have a hard break as we can't convert to newer
versions. There is no point in running the old conversions on an old tmpdir
only to hit that block. Remove all the old conversions to avoid that and
make things clearer.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: Add DEPLOY_DIR to BB_HASHBASE_WHITELIST
Richard Purdie [Thu, 30 Mar 2017 08:46:33 +0000 (09:46 +0100)]
bitbake.conf: Add DEPLOY_DIR to BB_HASHBASE_WHITELIST

Users should be able to locally choose DEPLOY_DIR without impacting
the reuse of sstate, this change allows that.

[YOCTO #11110]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/lib/compatlayer: detect_layers always use realpath's
Aníbal Limón [Wed, 29 Mar 2017 21:44:09 +0000 (15:44 -0600)]
scripts/lib/compatlayer: detect_layers always use realpath's

If you are using relative paths and change to other folder for
execution it will fail, so use realpaths always.

[YOCTO #11164]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_ext.bbclass: enhance compatibility with rm_work.bbclass
Patrick Ohly [Wed, 29 Mar 2017 11:29:50 +0000 (13:29 +0200)]
populate_sdk_ext.bbclass: enhance compatibility with rm_work.bbclass

"bitbake -c populate_dsk_ext" must not trigger do_rm_work, because it
is impossible to declare that the additional tasks activated by "-c
populate_dsk_ext" must run before do_rm_work. When do_populate_dsk_ext
and do_rm_work are both active, the resulting race condition breaks
do_populate_dsk_ext.

The existing bitbake dependencies can't be used for that, because
"addtask populate_dsk_ext before do_rm_work" would then always execute
populate_dsk_ext also in normal builds.

do_populate_dsk_ext triggers do_rm_work indirectly through the
dependency on do_build of the SDK_TARGETs. Using the new
do_build_without_rm_work instead (when available, with do_build as
before if not) avoids the problem.

However, one has to be careful to not trigger do_rm_work in the same
build in some other way.  "bitbake core-image-sato:do_populate_sdk_ext
core-image-sato:do_build" still fails, for example. Doing one after
the other works.

Fixes: [YOCTO 11042]
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorm_work.bbclass: introduce do_build_without_rm_work
Patrick Ohly [Wed, 29 Mar 2017 11:29:49 +0000 (13:29 +0200)]
rm_work.bbclass: introduce do_build_without_rm_work

Some classes, for example populate_sdk_ext.bbclass, must be able to
trigger a full build of a recipe without also triggering
do_rm_work. They cannot depend on do_build anymore, because that would
trigger do_rm_work.

Instead, do_build_without_rm_work can be used. It has the exact same
dependencies as do_build, minus do_rm_work and do_rm_work_all.

This may also be useful in a test build of a recipe where one wants
to preserve the work directory without having to modify configuration
settings:
   bitbake foobar:do_build_without_rm_work

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoovmf: avoid linking with gold
Patrick Ohly [Wed, 29 Mar 2017 12:52:06 +0000 (14:52 +0200)]
ovmf: avoid linking with gold

Linking with gold fails due to an internal error in gold. The ovmf
linker is gcc, which has a -fuse-ld=bfd option to choose the linker
which (for ovmf) is known to work.

Like the choice of the compilers, this is done in ovmf-native. To keep
that recipe independent of DISTRO_FEATURES, choosing bfd is done
unconditionally.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: Add aws to HOSTTOOLS_NONFATAL
Elizabeth 'pidge' Flanagan [Wed, 29 Mar 2017 13:45:49 +0000 (15:45 +0200)]
bitbake.conf: Add aws to HOSTTOOLS_NONFATAL

This adds aws to HOSTTOOLS_NONFATAL in order to get the s3 fetcher
working again.

Signed-off-by: Elizabeth 'pidge' Flanagan <pidge@toganlabs.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodnf: Use lnr to create relative symlinks
Serhii Popovych [Wed, 29 Mar 2017 18:02:52 +0000 (18:02 +0000)]
dnf: Use lnr to create relative symlinks

Make use of lnr while creating relative symlinks to enable
builds on host with old ln that does not support -r option.

Cc: XE-Linux <xe-linux-external@cisco.com>
Signed-off-by: Serhii Popovych <spopovyc@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd-boot: write startup.nsh
Christopher Larson [Tue, 28 Mar 2017 16:14:56 +0000 (21:14 +0500)]
systemd-boot: write startup.nsh

This aligns with the behavior of grub-efi and gummiboot, and is needed to fix
auto-boot of intel-corei7-64 for non-GPLv3 builds.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosysroot-relativelinks: also consider links to dirs on the host
Christopher Larson [Tue, 28 Mar 2017 16:14:55 +0000 (21:14 +0500)]
sysroot-relativelinks: also consider links to dirs on the host

Dead symlinks, or symlinks to existing files will show up in 'files' of an
os.walk, but symlinks to existing directories show up in 'dirs', so we need to
consider both.

As one example where this is an issue, the symlink from /usr/lib/ssl/certs was
left pointing to /etc/ssl/certs rather than the relative path when the sdk was
built on hosts where the latter exists.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoupdate_gio_module_cache: fix host user contamination
Abdur Rehman [Tue, 28 Mar 2017 16:14:54 +0000 (21:14 +0500)]
update_gio_module_cache: fix host user contamination

update_gio_module_cache intercept creates file:
$D${libdir}/gio/modules/giomodule.cache

Change ownership of this file to root:root to avoid user contamination
by host.

Signed-off-by: Abdur Rehman <abdur_rehman@mentor.com>
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/yocto-compat-layer.py: Add dependency validation in add_layer
Aníbal Limón [Mon, 27 Mar 2017 17:05:30 +0000 (11:05 -0600)]
scripts/yocto-compat-layer.py: Add dependency validation in add_layer

Some layers don't have dependencies so add a validation to avoid
exception when trying to None.split().

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto: drop 4.8 recipes
Bruce Ashfield [Tue, 28 Mar 2017 12:58:07 +0000 (08:58 -0400)]
linux-yocto: drop 4.8 recipes

We have 4.1 (LTSI), 4.4 (LTS), 4.9 (LTS/LTSI) and 4.10 available in
master. 4.8 is no longer required, so we drop the recipe to keep
the version selection under control.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.9: integrate 4.9-rt12
Bruce Ashfield [Tue, 28 Mar 2017 12:58:06 +0000 (08:58 -0400)]
linux-yocto/4.9: integrate 4.9-rt12

Paul Gortmaker has made the 4.9-rt12 available to linux-yocto, so
we integrate it here and update the SRCREVs.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.9: update to v4.9.17
Bruce Ashfield [Tue, 28 Mar 2017 12:58:04 +0000 (08:58 -0400)]
linux-yocto/4.9: update to v4.9.17

Integrating the korg -stable release with the following shortlogs:

   c3825da143fc Linux 4.9.17
   ecdc5b12d7a0 crypto: powerpc - Fix initialisation of crc32c context
   c40609652267 locking/rwsem: Fix down_write_killable() for CONFIG_RWSEM_GENERIC_SPINLOCK=y
   1522181f4bc1 futex: Add missing error handling to FUTEX_REQUEUE_PI
   6244ffc5a122 futex: Fix potential use-after-free in FUTEX_REQUEUE_PI
   9f9115b67aa5 x86/perf: Fix CR4.PCE propagation to use active_mm instead of mm
   24ba2842a49d x86/kasan: Fix boot with KASAN=y and PROFILE_ANNOTATED_BRANCHES=y
   5ec98e6ffdce x86/tsc: Fix ART for TSC_KNOWN_FREQ
   095635be809a irqchip/gicv3-its: Add workaround for QDF2400 ITS erratum 0065
   61e79860b4bc arm64: KVM: VHE: Clear HCR_TGE when invalidating guest TLBs
   8ca7ef0d9af9 drm/vc4: Fix ->clock_select setting for the VEC encoder
   6b3306706733 drm/vc4: Fix race between page flip completion event and clean-up
   f4d40cfd61ea clk: bcm2835: Fix ->fixed_divider of pllh_aux
   7885195b9177 powerpc/mm: Fix build break when CMA=n && SPAPR_TCE_IOMMU=y
   ce7aeffe7596 usb: gadget: udc: atmel: remove memory leak
   4fa1c65cf040 serial: 8250_pci: Detach low-level driver during PCI error recovery
   56c28e7983a8 ACPI / blacklist: Make Dell Latitude 3350 ethernet work
   5c19e9070df8 ACPI / blacklist: add _REV quirks for Dell Precision 5520 and 3520
   bc01eb939899 slub: move synchronize_sched out of slab_mutex on shrink
   bd2de45031b9 uvcvideo: uvc_scan_fallback() for webcams with broken chain
   e627116c0c35 s390/zcrypt: Introduce CEX6 toleration
   61a153d06ef4 block: allow WRITE_SAME commands with the SG_IO ioctl
   0042afe117c6 drm/nouveau/disp/nv50-: specify ctrl/user separately when constructing classes
   5001756c1c70 drm/nouveau/disp/nv50-: split chid into chid.ctrl and chid.user
   ddc23b5212b9 drm/nouveau/disp/gp102: fix cursor/overlay immediate channel indices
   53e18968a9c0 vfio/spapr: Postpone default window creation
   2e60baca235b vfio/spapr: Add a helper to create default DMA window
   080eb13542a8 powerpc/mm/iommu, vfio/spapr: Put pages on VFIO container shutdown
   92e44bcd71ae vfio/spapr: Reference mm in tce_container
   5b34666bd2e7 powerpc/iommu: Stop using @current in mm_iommu_xxx
   2ba7ef21820e powerpc/iommu: Pass mm_struct to init/cleanup helpers
   5d8b3e755974 vfio/spapr: Postpone allocation of userspace version of TCE table
   3c0cbb47a8d6 Drivers: hv: ring_buffer: count on wrap around mappings in get_next_pkt_raw() (v2)
   3e5a7f5b95f0 ibmveth: calculate gso_segs for large packets
   fb7c521a1460 PCI: Do any VF BAR updates before enabling the BARs
   3d58444dea81 PCI: Ignore BAR updates on virtual functions
   74cce811a4b6 PCI: Update BARs using property bits appropriate for type
   a38012dc69eb PCI: Don't update VF BARs while VF memory space is enabled
   bb479246bb3e PCI: Decouple IORESOURCE_ROM_ENABLE and PCI_ROM_ADDRESS_ENABLE
   ed09d211d28e PCI: Add comments about ROM BAR updating
   7b65c3a84311 PCI: Remove pci_resource_bar() and pci_iov_resource_bar()
   6a5f3e664ac7 PCI: Separate VF BAR updates from standard BAR updates
   29d928785f5e x86/hyperv: Handle unknown NMIs on one CPU when unknown_nmi_panic
   456be98b4e79 scsi: ibmvscsis: Synchronize cmds at remove time
   94700877c25f scsi: ibmvscsis: Synchronize cmds at tpg_enable_store time
   189491f81cf6 scsi: ibmvscsis: Rearrange functions for future patches
   4d36f4859fa4 scsi: ibmvscsis: Clean up properly if target_submit_cmd/tmr fails
   29022860df8e scsi: ibmvscsis: Return correct partition name/# to client
   0ad1d7660a57 scsi: ibmvscsis: Issues from Dan Carpenter/Smatch
   61229e62c1aa igb: add i211 to i210 PHY workaround
   15ffc931eeb9 igb: Workaround for igb i210 firmware issue
   4b40611a9b7e xen: do not re-use pirq number cached in pci device msi msg data
   2382c1486c62 dmaengine: iota: ioat_alloc_chan_resources should not perform sleeping allocations.
   0e0f1d6fdb35 bpf: fix mark_reg_unknown_value for spilled regs on map value marking
   1889d6d9b5e7 bpf: fix regression on verifier pruning wrt map lookups
   b7f5aa1ca0be bpf: fix state equivalence
   1411707acb85 bpf: Detect identical PTR_TO_MAP_VALUE_OR_NULL registers
   9e38375a4b17 dccp: fix memory leak during tear-down of unsuccessful connection request
   beaa66cce556 tun: fix premature POLLOUT notification on tun devices
   98933eb36dd2 dccp/tcp: fix routing redirect race
   9bce26f224d8 bridge: drop netfilter fake rtable unconditionally
   683100ed4576 ipv6: avoid write to a possibly cloned skb
   4a8d3bb73a82 ipv6: make ECMP route replacement less greedy
   87c0286a07f9 mpls: Do not decrement alive counter for unregister events
   b61206e25302 mpls: Send route delete notifications when router module is unloaded
   47c8dc47c008 act_connmark: avoid crashing on malformed nlattrs with null parms
   ccb65adc6ca6 uapi: fix linux/packet_diag.h userspace compilation error
   b07eed8f7119 net/tunnel: set inner protocol in network gro hooks
   db6e7796186a vrf: Fix use-after-free in vrf_xmit
   7c0eaeec84d1 dccp: fix use-after-free in dccp_feat_activate_values
   5f79aab41ded net/sched: act_skbmod: remove unneeded rcu_read_unlock in tcf_skbmod_dump
   f157cc1d7251 net: fix socket refcounting in skb_complete_tx_timestamp()
   98fa3d2a8e39 net: fix socket refcounting in skb_complete_wifi_ack()
   07753bc6a281 tcp: fix various issues for sockets morphing to listen state
   4547f03d1a62 strparser: destroy workqueue on module exit
   51ae1fbcf173 dccp: Unlock sock before calling sk_free()
   0bcc319d554c ipv6: orphan skbs in reassembly unit
   3d87dce3dfd6 net: net_enable_timestamp() can be called from irq contexts
   62fe0521fb6c net: don't call strlen() on the user buffer in packet_bind_spkt()
   fa7c48fb3ad1 net: bridge: allow IPv6 when multicast flood is disabled
   bbaeb9b73fa8 tcp/dccp: block BH for SYN processing
   8f4db60c7fb5 mlxsw: spectrum_router: Avoid potential packets loss
   02595f472548 geneve: lock RCU on TX path
   0a40da4a74f1 vxlan: lock RCU on TX path
   feaa5bab4335 net: phy: Avoid deadlock during phy_error()
   837786cbbb60 l2tp: avoid use-after-free caused by l2tp_ip_backlog_recv
   063893e4ec88 net sched actions: decrement module reference count after table flush.
   36931eb015ee ipv4: mask tos for input route
   a64407fafe09 vxlan: don't allow overwrite of config src addr
   f7081057d12c vti6: return GRE_KEY for vti6
   ee2da79de289 vxlan: correctly validate VXLAN ID against VXLAN_N_VID
   0c6e38e791e9 net/mlx5e: Fix wrong CQE decompression
   a63326646995 net/mlx5e: Do not reduce LRO WQE size when not using build_skb
   9e354abf9ce3 net/mlx5e: Register/unregister vport representors on interface attach/detach
   8a16224b4054 Linux 4.9.16
   c8186699527b IB/mlx5: Verify that Q counters are supported
   8fed8fc18839 ext4: don't BUG when truncating encrypted inodes on the orphan list
   39df5977fd41 rc: raw decoder for keymap protocol is not loaded on register
   21582cd0b64c dm: flush queued bios when process blocks to avoid deadlock
   d29e6215e5ab KVM: arm/arm64: Let vcpu thread modify its own active state
   9d89c20f3b8f KVM: s390: Fix guest migration for huge guests resulting in panic
   ce8ab5f168f6 serial: samsung: Continue to work if DMA request fails
   d0ef6ecee85e USB: serial: io_ti: fix information leak in completion handler
   449b0bb23708 USB: serial: io_ti: fix NULL-deref in interrupt callback
   f06b17020a84 USB: iowarrior: fix NULL-deref in write
   653418adaf10 USB: iowarrior: fix NULL-deref at probe
   6d6c5895f454 USB: serial: omninet: fix reference leaks at open
   0ab90ddba78a USB: serial: safe_serial: fix information leak in completion handler
   24db1c5a1c52 usb: host: xhci-plat: Fix timeout on removal of hot pluggable xhci controllers
   d86376790752 usb: host: xhci-dbg: HCIVERSION should be a binary number
   03123df08e6b Revert "usb: gadget: uvc: Add missing call for additional setup data"
   5ce2e4ce4a8a usb: gadget: function: f_fs: pass companion descriptor along
   40192c96660f usb: ohci-at91: Do not drop unhandled USB suspend control requests
   accadd8164b7 usb: dwc3-omap: Fix missing break in dwc3_omap_set_mailbox()
   808ee146d733 usb: dwc3: gadget: make Set Endpoint Configuration macros safe
   de90394b0c6b usb: gadget: dummy_hcd: clear usb_gadget region before registration
   ed99f5a09cc6 PCI: Prevent VPD access for QLogic ISP2722
   1ced52ead244 powerpc/xics: Work around limitations of OPAL XICS priority handling
   bc8d2eefe63f powerpc: Emulation support for load/store instructions on LE
   ac4666a7fd1a i2c: add missing of_node_put in i2c_mux_del_adapters
   06996254a605 dw2102: don't do DMA on stack
   56d91e106b13 efi/arm: Fix boot crash with CONFIG_CPUMASK_OFFSTACK=y
   ee6f7ee1e4cd ucount: Remove the atomicity from ucount->count
   8bb208d02acc tracing: Add #undef to fix compile error
   b72ae5ca7a8b cpmac: remove hopeless #warning
   04275d2a8af3 bcm63xx_enet: avoid uninitialized variable warning
   b7e968da04d7 MIPS: ralink: Remove unused rt*_wdt_reset functions
   dd2419e1cec0 MIPS: ralink: Remove unused timer functions
   f34064186f0e MIPS: ralink: Cosmetic change to prom_init().
   7b767f6b515d mtd: pmcmsp: use kstrndup instead of kmalloc+strncpy
   976e40d7f6fe MIPS: Update lemote2f_defconfig for CPU_FREQ_STAT change
   dd2ef28eb76e MIPS: ip22: Fix ip28 build for modern gcc
   aff853abd298 MIPS: Update ip27_defconfig for SCSI_DH change
   23096c56787e MIPS: ip27: Disable qlge driver in defconfig
   ad8387a60228 MIPS: VDSO: avoid duplicate CAC_BASE definition
   5841e3d37db9 MIPS: Update defconfigs for NF_CT_PROTO_DCCP/UDPLITE change
   2c1820ea8dcc crypto: improve gcc optimization flags for serpent and wp512
   ce4d67cb3e6e USB: serial: digi_acceleport: fix OOB-event processing
   e1533c46151c USB: serial: digi_acceleport: fix OOB data sanity check
   d962bf8dd954 Linux 4.9.15
   182ff0ebbdab drivers: hv: Turn off write permission on the hypercall page
   63e873679ba9 fat: fix using uninitialized fields of fat_inode/fsinfo_inode
   16ace91043bf mm: do not call mem_cgroup_free() from within mem_cgroup_alloc()
   1771fc58a35d thp: fix another corner case of munlock() vs. THPs
   2f18b39499b2 x86/tlb: Fix tlb flushing when lguest clears PGE
   91cdd9d79616 x86, mm: fix gup_pte_range() vs DAX mappings
   290215a2abfd libceph: use BUG() instead of BUG_ON(1)
   ff3bcdc9b5f0 drm/i915: Fix not finding the VBT when it overlaps with OPREGION_ASLE_EXT
   686ea5862eb6 drm/i915: Avoid spurious WARNs about the wrong pipe in the PPS code
   967e17bcc96d drm: Cancel drm_fb_helper_resume_work on unload
   9edc456fe621 drm: Cancel drm_fb_helper_dirty_work on unload
   868a747c77cb drm/i915/gvt: Disable access to stolen memory as a guest
   f72b751f4340 drm/atomic: fix an error code in mode_fixup()
   98620b564fad drm/imx: imx-tve: Do not set the regulator voltage
   3a654a85932f dmaengine: imx-sdma - correct the dma transfer residue calculation
   56a567de553e drm/vmwgfx: Work around drm removal of control nodes
   55f47122c2e8 drm/ttm: Make sure BOs being swapped out are cacheable
   ec8e40b117c3 drm/edid: Add EDID_QUIRK_FORCE_8BPC quirk for Rotel RSX-1058
   f96c10c2bd1b drm/ast: Fix AST2400 POST failure without BMC FW or VBIOS
   5da03582e212 drm/ast: Call open_key before enable_mmio in POST code
   54aa80e300d6 drm/ast: Fix test for VGA enabled
   0734a3213ca8 drm/amdgpu: add more cases to DCE11 possible crtc mask setup
   b507df2e236e mac80211: use driver-indicated transmitter STA only for data frames
   39813849996f mac80211: don't handle filtered frames within a BA session
   42e7f3771429 mac80211: don't reorder frames with SN smaller than SSN
   b116db0da1bd mac80211: flush delayed work when entering suspend
   9ad1571da2c0 nfit, libnvdimm: fix interleave set cookie calculation
   a7b9c9ddb6f4 xtensa: move parse_tag_fdt out of #ifdef CONFIG_BLK_DEV_INITRD
   019c088dc403 pwm: pca9685: Fix period change with same duty cycle
   1f2f16c7b7e3 nlm: Ensure callback code also checks that the files match
   4f77c55c3ac2 drivers/pci/hotplug: Fix initial state for empty slot
   1afe7b4ac3df drivers/pci/hotplug: Handle presence detection change properly
   17ea11d55322 target: Fix NULL dereference during LUN lookup + active I/O shutdown
   54eff720c99f pci/hotplug/pnv-php: Disable surprise hotplug capability on conflicts
   4ee3508f7abe pci/hotplug/pnv-php: Remove WARN_ON() in pnv_php_put_slot()
   5da90d0018a7 ceph: remove req from unsafe list when unregistering it
   ff61e0123b7d ktest: Fix child exit code processing
   1f2ca141ec53 memory/atmel-ebi: Fix ns <-> cycles conversions
   b2b0f6ffd3f9 orangefs: Use RCU for destroy_inode
   d3381fab77cb fs: Better permission checking for submounts
   48e2181b0b8d IB/srp: Fix race conditions related to task management
   d5d1d2cc4be7 IB/srp: Avoid that duplicate responses trigger a kernel bug
   516a12ab11bd IB/SRP: Avoid using IB_MR_TYPE_SG_GAPS
   04f16db056d0 IB/mlx5: Fix out-of-bound access
   2e539fa49efd IB/IPoIB: Add destination address when re-queue packet
   1626076b8e1c IB/ipoib: Fix deadlock between rmmod and set_mode
   808e83e5add1 mnt: Tuck mounts under others instead of creating shadow/side mounts.
   c9b3f3173fa5 brcmfmac: fix incorrect event channel deduction
   53d43706f2ba cxl: fix nested locking hang during EEH hotplug
   411d0b0ced69 cxl: Prevent read/write to AFU config space while AFU not configured
   60037aa689ba net: mvpp2: fix DMA address calculation in mvpp2_txq_inc_put()
   e067f68db256 s390: use correct input data address for setup_randomness
   321081d522d3 s390: make setup_randomness work
   9d38fd6a4f6c s390: TASK_SIZE for kernel threads
   dc31841fcdce s390/chsc: Add exception handler for CHSC instruction
   91cfcaa6ed46 s390/kdump: Use "LINUX" ELF note name instead of "CORE"
   b848102542f5 s390/dcssblk: fix device size calculation in dcssblk_direct_access()
   5cec5e32ba56 s390/qdio: clear DSCI prior to scanning multiple input queues
   519b6cead21e Bluetooth: Add another AR3012 04ca:3018 device
   7c3bab189c16 KVM: VMX: use correct vmcs_read/write for guest segment selector/base
   035dcc8e87f6 KVM: s390: Disable dirty log retrieval for UCONTROL guests
   c4c590be4944 serial: 8250_pci: Add MKS Tenta SCOM-0800 and SCOM-0801 cards
   e5b977876155 tty: n_hdlc: get rid of racy n_hdlc.tbuf

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.4: update to v4.4.56
Bruce Ashfield [Tue, 28 Mar 2017 12:58:05 +0000 (08:58 -0400)]
linux-yocto/4.4: update to v4.4.56

Integrating the korg release with the following shortlog:

   0136bca4e0f6 Linux 4.4.56
   99d403faba47 futex: Add missing error handling to FUTEX_REQUEUE_PI
   44854c191e2c futex: Fix potential use-after-free in FUTEX_REQUEUE_PI
   62f57041fbdf x86/perf: Fix CR4.PCE propagation to use active_mm instead of mm
   8e0ec20539f8 x86/kasan: Fix boot with KASAN=y and PROFILE_ANNOTATED_BRANCHES=y
   3a19419c50c6 fscrypto: lock inode while setting encryption policy
   fd74e8d258da fscrypt: fix renaming and linking special files
   c10ffe988f15 net sched actions: decrement module reference count after table flush.
   676fe978525d dccp: fix memory leak during tear-down of unsuccessful connection request
   4ab956b56133 dccp/tcp: fix routing redirect race
   56f9b9502f2d bridge: drop netfilter fake rtable unconditionally
   aed728c38c48 ipv6: avoid write to a possibly cloned skb
   5f8bc3856e28 ipv6: make ECMP route replacement less greedy
   b57955ea30e1 mpls: Send route delete notifications when router module is unloaded
   710fbeb3f5c5 act_connmark: avoid crashing on malformed nlattrs with null parms
   6c72458ab428 uapi: fix linux/packet_diag.h userspace compilation error
   e671f1cc588f vrf: Fix use-after-free in vrf_xmit
   d0ebde92fbeb dccp: fix use-after-free in dccp_feat_activate_values
   ec4d8692b76e net: fix socket refcounting in skb_complete_tx_timestamp()
   9e7683301bee net: fix socket refcounting in skb_complete_wifi_ack()
   2681a7853ad7 tcp: fix various issues for sockets morphing to listen state
   9216632bf4a0 dccp: Unlock sock before calling sk_free()
   a70c32859704 net: net_enable_timestamp() can be called from irq contexts
   f331d6445a3e net: don't call strlen() on the user buffer in packet_bind_spkt()
   2cd0afc64e33 l2tp: avoid use-after-free caused by l2tp_ip_backlog_recv
   354f79125f12 ipv4: mask tos for input route
   f1b3aae1f1bf vti6: return GRE_KEY for vti6
   51a219a1371e vxlan: correctly validate VXLAN ID against VXLAN_N_VID
   0c0be310ba29 netlink: remove mmapped netlink support
   28ec98bc2e4a Linux 4.4.55
   1c5265be54d3 ext4: don't BUG when truncating encrypted inodes on the orphan list
   cd8ad4d9eb6d dm: flush queued bios when process blocks to avoid deadlock
   66dd58f56eab nfit, libnvdimm: fix interleave set cookie calculation
   a084aeef5633 s390/kdump: Use "LINUX" ELF note name instead of "CORE"
   b0e85701a776 KVM: s390: Fix guest migration for huge guests resulting in panic
   61fbad6a28fd mvsas: fix misleading indentation
   72ca0ab30680 serial: samsung: Continue to work if DMA request fails
   72bb2b96b856 USB: serial: io_ti: fix information leak in completion handler
   e71c7bad6844 USB: serial: io_ti: fix NULL-deref in interrupt callback
   6498086195b9 USB: iowarrior: fix NULL-deref in write
   179295c38d23 USB: iowarrior: fix NULL-deref at probe
   54f11a9662b6 USB: serial: omninet: fix reference leaks at open
   3cdc94638746 USB: serial: safe_serial: fix information leak in completion handler
   cf09c7d60ccc usb: host: xhci-plat: Fix timeout on removal of hot pluggable xhci controllers
   40c5634ffe3d usb: host: xhci-dbg: HCIVERSION should be a binary number
   4a1a3bb70fb4 usb: gadget: function: f_fs: pass companion descriptor along
   10af24856503 usb: dwc3: gadget: make Set Endpoint Configuration macros safe
   f47b97f2cdaa usb: gadget: dummy_hcd: clear usb_gadget region before registration
   2ca39d130015 powerpc: Emulation support for load/store instructions on LE
   074893495b72 tracing: Add #undef to fix compile error
   127651058594 MIPS: Netlogic: Fix CP0_EBASE redefinition warnings
   2e4aff2405af MIPS: DEC: Avoid la pseudo-instruction in delay slots
   5fad17434465 mm: memcontrol: avoid unused function warning
   5e45d834f762 cpmac: remove hopeless #warning
   32883383f5e0 MIPS: ralink: Remove unused rt*_wdt_reset functions
   4b91e7a2a9a7 MIPS: ralink: Cosmetic change to prom_init().
   3dc8f1e3a8f2 mtd: pmcmsp: use kstrndup instead of kmalloc+strncpy
   d2a8d746ae95 MIPS: Update lemote2f_defconfig for CPU_FREQ_STAT change
   c018595d83a3 MIPS: ip22: Fix ip28 build for modern gcc
   7a6a965f350e MIPS: Update ip27_defconfig for SCSI_DH change
   8ed0fdcc0c11 MIPS: ip27: Disable qlge driver in defconfig
   adc48c710b7e MIPS: Update defconfigs for NF_CT_PROTO_DCCP/UDPLITE change
   e041ad066440 crypto: improve gcc optimization flags for serpent and wp512
   a8cb5c02a20f USB: serial: digi_acceleport: fix OOB-event processing
   4d95645f3dd5 USB: serial: digi_acceleport: fix OOB data sanity check

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.10: update to v4.10.5
Bruce Ashfield [Tue, 28 Mar 2017 12:58:03 +0000 (08:58 -0400)]
linux-yocto/4.10: update to v4.10.5

Integrating the korg -stable release with the following shortlog
summary:

   034612ee057c Linux 4.10.5
   7814c9bd217a crypto: s5p-sss - Fix spinlock recursion on LRW(AES)
   4310604e21dd crypto: powerpc - Fix initialisation of crc32c context
   de3c88fa6a29 locking/rwsem: Fix down_write_killable() for CONFIG_RWSEM_GENERIC_SPINLOCK=y
   d80e46d90742 futex: Add missing error handling to FUTEX_REQUEUE_PI
   575caefc01f3 futex: Fix potential use-after-free in FUTEX_REQUEUE_PI
   57ad6c8ecb1f x86/perf: Fix CR4.PCE propagation to use active_mm instead of mm
   343146100991 x86/intel_rdt: Put group node in rdtgroup_kn_unlock
   7621600b480e x86/kasan: Fix boot with KASAN=y and PROFILE_ANNOTATED_BRANCHES=y
   bd5ee529d0be x86/tsc: Fix ART for TSC_KNOWN_FREQ
   a0256e0c0dc6 x86/unwind: Fix last frame check for aligned function stacks
   5b115b8b53d8 drm/i915/lspcon: Fix resume time initialization due to unasserted HPD
   ebd9dbabb5fc drm/i915/gen9+: Enable hotplug detection early
   b9208ab35001 drm/i915/lspcon: Enable AUX interrupts for resume time initialization
   1740a61cf09e irqchip/gicv3-its: Add workaround for QDF2400 ITS erratum 0065
   ef217ea7f1fb arm64: KVM: VHE: Clear HCR_TGE when invalidating guest TLBs
   f70ce6c63e02 dccp: fix memory leak during tear-down of unsuccessful connection request
   a79fa23c82a1 tun: fix premature POLLOUT notification on tun devices
   b34c9f7fe45e dccp/tcp: fix routing redirect race
   7ebf301d8476 net: use net->count to check whether a netns is alive or not
   47808872e25b bridge: drop netfilter fake rtable unconditionally
   fdb09132bdea ipv6: avoid write to a possibly cloned skb
   b74b74e2087e ipv6: make ECMP route replacement less greedy
   ed44bf89ab5f mpls: Do not decrement alive counter for unregister events
   61cc1778ad62 mpls: Send route delete notifications when router module is unloaded
   8e9bacd9add7 act_connmark: avoid crashing on malformed nlattrs with null parms
   cdb9caeb7177 amd-xgbe: Enable IRQs only if napi_complete_done() is true
   110e7778ea32 uapi: fix linux/packet_diag.h userspace compilation error
   5344ec08726a net/tunnel: set inner protocol in network gro hooks
   7360a1fda857 vrf: Fix use-after-free in vrf_xmit
   be18cce7e665 team: use ETH_MAX_MTU as max mtu
   92ab4dea27c1 dccp: fix use-after-free in dccp_feat_activate_values
   a6ff06211b84 net/sched: act_skbmod: remove unneeded rcu_read_unlock in tcf_skbmod_dump
   27d0c80f1089 net: fix socket refcounting in skb_complete_tx_timestamp()
   80691f3808fc net: fix socket refcounting in skb_complete_wifi_ack()
   81a43770b456 tcp: fix various issues for sockets morphing to listen state
   178e86ff331d strparser: destroy workqueue on module exit
   aa677aafef5c bonding: use ETH_MAX_MTU as max mtu
   0ee7666f639a amd-xgbe: Don't overwrite SFP PHY mod_absent settings
   9919f222968c amd-xgbe: Be sure to set MDIO modes on device (re)start
   4381ffdfb32b amd-xgbe: Stop the PHY before releasing interrupts
   7558c56cfe35 dccp: Unlock sock before calling sk_free()
   a8ee7ed1b03d ipv6: orphan skbs in reassembly unit
   eb39579a675a net: net_enable_timestamp() can be called from irq contexts
   fa8bc7b48168 net: don't call strlen() on the user buffer in packet_bind_spkt()
   e89adaa7d0cf net: bridge: allow IPv6 when multicast flood is disabled
   da2da823497c tcp/dccp: block BH for SYN processing
   8f05976cbfba mlxsw: spectrum_router: Avoid potential packets loss
   40f9f783920f geneve: lock RCU on TX path
   d6705c8c0cb0 vxlan: lock RCU on TX path
   4c94beba3aee l2tp: avoid use-after-free caused by l2tp_ip_backlog_recv
   639fdd961af0 net sched actions: decrement module reference count after table flush.
   467bec3656bd sctp: set sin_port for addr param when checking duplicate address
   91f4f5bfaa29 ipv4: mask tos for input route
   0a33d62a6f9d ipv4: add missing initialization for flowi4_uid
   2b5a48d6c6eb vxlan: don't allow overwrite of config src addr
   fef3f97a58b2 vti6: return GRE_KEY for vti6
   36ec2150ae0a vxlan: correctly validate VXLAN ID against VXLAN_N_VID
   f44877534257 sctp: deny peeloff operation on asocs with threads sleeping on it
   55bb0dd0256c net/mlx5e: Fix wrong CQE decompression
   c0dc4855e92b net/mlx5e: Update MPWQE stride size when modifying CQE compress state
   c34c17861ab1 net/mlx5e: Fix broken CQE compression initialization
   850a1bfbf35d net/mlx5e: Do not reduce LRO WQE size when not using build_skb
   96b457b80526 net/mlx5e: Register/unregister vport representors on interface attach/detach
   8ea22fb3114d Linux 4.10.4
   42b16fffb79b IB/mlx5: Verify that Q counters are supported
   dc37bb8db47b ext4: don't BUG when truncating encrypted inodes on the orphan list
   1cda29082a30 rc: raw decoder for keymap protocol is not loaded on register
   22fc2f9efa27 dm: flush queued bios when process blocks to avoid deadlock
   2030aedc5404 serial_ir: ensure we're ready to receive interrupts
   81383a00ce83 drm/i915/gvt: Fix superfluous newline in GVT_DISPLAY_READY env var
   523379cd6b65 KVM: arm/arm64: Let vcpu thread modify its own active state
   1f9175b9ee7c KVM: s390: Fix guest migration for huge guests resulting in panic
   45dc259a4734 serial: samsung: Continue to work if DMA request fails
   7daf817d076d USB: serial: io_ti: fix information leak in completion handler
   9bb084c79f20 USB: serial: io_ti: fix NULL-deref in interrupt callback
   14bca59b1660 USB: iowarrior: fix NULL-deref in write
   5ec59765f503 USB: iowarrior: fix NULL-deref at probe
   cc6ba470ebf8 USB: serial: omninet: fix reference leaks at open
   dc944b117e6c USB: serial: safe_serial: fix information leak in completion handler
   a062cb395946 usb: host: xhci-plat: Fix timeout on removal of hot pluggable xhci controllers
   7202353681d5 usb: host: xhci-dbg: HCIVERSION should be a binary number
   222095ea6487 Revert "usb: gadget: uvc: Add missing call for additional setup data"
   d60b1053a5bb usb: gadget: function: f_fs: pass companion descriptor along
   a0f69738c10e usb: ohci-at91: Do not drop unhandled USB suspend control requests
   25b1a4fdd8ae usb: dwc3-omap: Fix missing break in dwc3_omap_set_mailbox()
   894a0dfaaef7 usb: dwc3: gadget: make Set Endpoint Configuration macros safe
   c73210fdd40d usb: gadget: dummy_hcd: clear usb_gadget region before registration
   b5ea65b25a33 PCI: Prevent VPD access for QLogic ISP2722
   27469baaef1a powerpc/xics: Work around limitations of OPAL XICS priority handling
   74e236a5bd99 powerpc/booke: Fix boot crash due to null hugepd
   1006828d1104 powerpc: Emulation support for load/store instructions on LE
   80eae855b694 i2c: add missing of_node_put in i2c_mux_del_adapters
   be20197df07d dw2102: don't do DMA on stack
   7399dec22e72 efi/arm: Fix boot crash with CONFIG_CPUMASK_OFFSTACK=y
   da603aadd53a ucount: Remove the atomicity from ucount->count
   b7e9ef5cf4d9 tracing: Add #undef to fix compile error
   3eded4f5bab1 i2c: bcm2835: Avoid possible NULL ptr dereference
   393be4bcb329 MIPS: ralink: Remove unused rt*_wdt_reset functions
   4ddb085a9b0a MIPS: ralink: Remove unused timer functions
   e1d9f7592b80 MIPS: ralink: Cosmetic change to prom_init().
   02b210c18667 mtd: pmcmsp: use kstrndup instead of kmalloc+strncpy
   ee9cc4c573d5 MIPS: Update lemote2f_defconfig for CPU_FREQ_STAT change
   9ad686e6937a MIPS: ip22: Fix ip28 build for modern gcc
   715bb84b6ff6 MIPS: Update ip27_defconfig for SCSI_DH change
   b57e5d5daf99 MIPS: ip27: Disable qlge driver in defconfig
   2260890bb6c7 MIPS: VDSO: avoid duplicate CAC_BASE definition
   d2b0d01a11b3 MIPS: Update defconfigs for NF_CT_PROTO_DCCP/UDPLITE change
   aab419fc3980 crypto: improve gcc optimization flags for serpent and wp512
   5af39bb8492f USB: serial: digi_acceleport: fix OOB-event processing
   2d32308355a8 USB: serial: digi_acceleport: fix OOB data sanity check
   a3137ad2e14f ARM: qcom_defconfig: Enable RPM/RPM-SMD clocks
   fa190b2a7f87 iio: 104-quad-8: Fix off-by-one error when addressing flag register
   adfb98cd3e93 Linux 4.10.3
   070dfed4d04e drivers: hv: Turn off write permission on the hypercall page
   9cafe6bb9aa2 fat: fix using uninitialized fields of fat_inode/fsinfo_inode
   0d9cc8aa34ad kasan: resched in quarantine_remove_cache()
   44c95966fb81 mm: do not call mem_cgroup_free() from within mem_cgroup_alloc()
   933f0f3ad49a thp: fix another corner case of munlock() vs. THPs
   459bc5065631 x86/tlb: Fix tlb flushing when lguest clears PGE
   ac312c7e0a90 x86, mm: fix gup_pte_range() vs DAX mappings
   0af36e434a3c libceph: use BUG() instead of BUG_ON(1)
   cde805106887 drm/i915: Fix not finding the VBT when it overlaps with OPREGION_ASLE_EXT
   5eeb3c0eb7ec drm/i915: Pass timeout==0 on to i915_gem_object_wait_fence()
   d11d14c5fc0b drm/i915: Check for timeout completion when waiting for the rq to submitted
   e2a946bb97bb drm/i915: Avoid spurious WARNs about the wrong pipe in the PPS code
   c50f65f12705 drm/i915: Recreate internal objects with single page segments if dmar fails
   4a8a58eed276 drm: Cancel drm_fb_helper_resume_work on unload
   616c9bd8b288 drm: Cancel drm_fb_helper_dirty_work on unload
   cdb4f19aae0f drm/i915/gvt: Disable access to stolen memory as a guest
   f7189c6bb9f2 drm/atomic: fix an error code in mode_fixup()
   99eb5a10a7f7 drm/imx: imx-tve: Do not set the regulator voltage
   5e0b0839f3ce drm/vmwgfx: Work around drm removal of control nodes
   e6d03fc74541 drm/ttm: Make sure BOs being swapped out are cacheable
   0586602fc10f drm/edid: Add EDID_QUIRK_FORCE_8BPC quirk for Rotel RSX-1058
   68279b15119b drm/radeon: handle vfct with multiple vbios images
   e51353092182 drm/ast: Fix AST2400 POST failure without BMC FW or VBIOS
   cd8183923984 drm/ast: Call open_key before enable_mmio in POST code
   f38a3c87d6ee drm/ast: Fix test for VGA enabled
   af7fe73a14fc drm/ast: Handle configuration without P2A bridge
   0f9e6fc5b76d Revert "drm/amdgpu: update tile table for oland/hainan"
   2deaea3e0d07 drm/amdgpu/pm: check for headless before calling compute_clocks
   33d129a09aae drm/amdgpu: add more cases to DCE11 possible crtc mask setup
   fc758b77745e mac80211: use driver-indicated transmitter STA only for data frames
   4a6d105fb277 mac80211: don't handle filtered frames within a BA session
   df7db05561f6 mac80211: don't reorder frames with SN smaller than SSN
   f5bf0a15c63e mac80211: flush delayed work when entering suspend
   ea708e9581d8 nfit, libnvdimm: fix interleave set cookie calculation
   3f56c495a42e xtensa: move parse_tag_fdt out of #ifdef CONFIG_BLK_DEV_INITRD
   5a4312c2a651 pwm: pca9685: Fix period change with same duty cycle
   c634f19b9501 nlm: Ensure callback code also checks that the files match
   1a02f33a6302 drivers/pci/hotplug: Fix initial state for empty slot
   487163f3f316 drivers/pci/hotplug: Handle presence detection change properly
   f9b90f204749 target: Fix NULL dereference during LUN lookup + active I/O shutdown
   81bd29553ee3 pci/hotplug/pnv-php: Disable surprise hotplug capability on conflicts
   7e8b77528445 pci/hotplug/pnv-php: Remove WARN_ON() in pnv_php_put_slot()
   ab3398e159fd ceph: remove req from unsafe list when unregistering it
   0569b5ed3e73 ktest: Fix child exit code processing
   9dbea7f7bcec tracing: Fix return value check in trace_benchmark_reg()
   8a915b3ccbb2 memory/atmel-ebi: Fix ns <-> cycles conversions
   a4755943204e orangefs: Use RCU for destroy_inode
   2708a2d33e04 Btrfs: fix data loss after truncate when using the no-holes feature
   ade784b0f3a7 fs: Better permission checking for submounts
   35065a1f6ec2 IB/srp: Fix race conditions related to task management
   a9397e4365d6 IB/srp: Avoid that duplicate responses trigger a kernel bug
   a51892e0c136 IB/SRP: Avoid using IB_MR_TYPE_SG_GAPS
   e0d15d562ee7 IB/mlx5: Fix out-of-bound access
   b92c4a09f589 IB/IPoIB: Add destination address when re-queue packet
   91948b0944af IB/ipoib: Fix deadlock between rmmod and set_mode
   6de9d08a9718 mnt: Tuck mounts under others instead of creating shadow/side mounts.
   f03d5078063c brcmfmac: fix incorrect event channel deduction
   8cdfa0d8b0f5 cxl: fix nested locking hang during EEH hotplug
   e5603a5c6deb cxl: Prevent read/write to AFU config space while AFU not configured
   4144a307cb46 net: mvpp2: fix DMA address calculation in mvpp2_txq_inc_put()
   c9ac3e943deb s390: use correct input data address for setup_randomness
   0075504d83ce s390: make setup_randomness work
   ca54585dd5dd s390/topology: correct allocation of topology information
   c61a874ea0ec s390: TASK_SIZE for kernel threads
   162668c000ab s390/chsc: Add exception handler for CHSC instruction
   836f9814f092 s390/kdump: Use "LINUX" ELF note name instead of "CORE"
   1f2659aa7dfe s390/dcssblk: fix device size calculation in dcssblk_direct_access()
   3c3c4d25c589 s390/qdio: clear DSCI prior to scanning multiple input queues
   ac7c6461addb phy: qcom-ufs: Fix misplaced jump label
   04b5101049ac phy: qcom-ufs: Don't kfree devres resource
   a6ed492d6cca Bluetooth: Add another AR3012 04ca:3018 device
   3904b32cfe50 KVM: VMX: use correct vmcs_read/write for guest segment selector/base
   f89d6db0c50c KVM: s390: Disable dirty log retrieval for UCONTROL guests
   c9dc3873046e serial: 8250_pci: Add MKS Tenta SCOM-0800 and SCOM-0801 cards
   72e544022383 tty: n_hdlc: get rid of racy n_hdlc.tbuf

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodnf: remove systemd units in nativesdk builds
Ross Burton [Tue, 28 Mar 2017 09:31:50 +0000 (10:31 +0100)]
dnf: remove systemd units in nativesdk builds

If the DISTRO_FEATURES contain systemd then the systemd class won't delete the
units for us. Until the class is fixed to do this automatically, delete them
explicitly.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa: allow persistent image writes in runqemu()
Patrick Ohly [Tue, 28 Mar 2017 08:02:19 +0000 (10:02 +0200)]
oeqa: allow persistent image writes in runqemu()

By default, QemuRunner avoids modifying the image files that it boots
into by enabling the qemu snapshot mode. However, some tests may want
to test changes that must persists across reboots, so this mode
should be optional.

This can be combined by copying the image file to a temporary location
first and then booting with that copy. It's also useful when testing
with additional drives attached to a virtual machine.

QemuTinyRunner doesn't use the snapshot parameter and therefore ignores
the new parameter.

Long term, a better way of passing these various configuration
parameters should be used, and perhaps QemuRunner and QemuTinyRunner
can be merged into one again to avoid code duplication. But for now
the patch follows the exiting style.

Also beware that QemuTarget.start() now acts in two different modes
(with or without explicit launch command), and depending on that mode
parameters like discard_writes must be ignored, i.e. not get passed to
launch().

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa: allow customizing image used by runqemu()
Patrick Ohly [Tue, 28 Mar 2017 08:02:18 +0000 (10:02 +0200)]
oeqa: allow customizing image used by runqemu()

runqemu() takes all parameters for the virtual machine from the
variables of the given recipe. By allowing the caller to provide a
hash with variables that get applied locally, the caller gets more
control.

Here's the intended usage:

   <prepare internal-image in self.resultdir>
   overrides = {
        'DEPLOY_DIR_IMAGE': self.resultdir,
        'IMAGE_LINK_NAME': 'internal-image-%s' % self.image_arch,
   }
   with runqemu('refkit-installer-image', ssh=False,
                 overrides=overrides) as qemu:
       ....

This can be used to replace the image completely with something else
or to copy it before allowing runqemu() to write into it.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa: allow extending qemuparams="..."
Patrick Ohly [Tue, 28 Mar 2017 08:02:17 +0000 (10:02 +0200)]
oeqa: allow extending qemuparams="..."

Sometimes it is useful to reconfigure the qemu virtual machine
directly. runqemu has the "qemuparams" parameter for that, and the
underlying start() methods also supported modifying that via their
"params" parameter. Only the runqemu() wrapper function lacked
a way to specify additional parameters.

One potential usage is to attach additional disks.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: sort HOSTTOOLS and remove duplicates
Andre McCurdy [Tue, 28 Mar 2017 03:51:23 +0000 (20:51 -0700)]
bitbake.conf: sort HOSTTOOLS and remove duplicates

Cleanup only, no functional changes.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa: QEMU_USE_KVM can list machines
Patrick Ohly [Mon, 27 Mar 2017 13:03:23 +0000 (15:03 +0200)]
oeqa: QEMU_USE_KVM can list machines

Previously, QEMU_USE_KVM=True enabled the use of kvm only when "x86"
was in the MACHINE name. That is too limiting, because for example
intel-corei7-64 can also use kvm but it wasn't possible to enable that
without changing OE-core.

That traditional usage is still supported. In addition, QEMU_USE_KVM
can be set to a list of space-separated MACHINE names for which kvm is
to be enabled.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa: tolerate interrupted select() while waiting for qemu
Patrick Ohly [Mon, 27 Mar 2017 13:03:22 +0000 (15:03 +0200)]
oeqa: tolerate interrupted select() while waiting for qemu

Sometimes, the OEQA utility code aborts with:

   ...
   File ".../meta/lib/oeqa/utils/qemurunner.py", line 131, in start
     return self.launch(launch_cmd, qemuparams=qemuparams, get_ip=get_ip, extra_bootparams=extra_bootparams)
   File ".../meta/lib/oeqa/utils/qemurunner.py", line 259, in launch
     sread, swrite, serror = select.select(socklist, [], [], 5)
  InterruptedError: [Errno 4] Interrupted system call

strace shows that this is because of a SIGWINCH:

   Connection from 127.0.0.1:52668
   select(21, [20], [], [], {5, 0})        = ? ERESTARTNOHAND (To be restarted if no handler)
   --- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} ---

This is related to some special conditions:
 * whether qemu opens a graphical console window (enabled in Poky by default)
 * where that window gets opened
 * whether the window manager changes the size of the shell window (mine
   is a tiling window manager and reorders and resizes windows automatically)

Ignoring the interrupted system calls avoids the problem. Code elsewhere (for example,
run() in ssh.py) already does the same thing.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodnf: move the entire dnf/rpm4 stack to Python 3
Alexander Kanavin [Mon, 27 Mar 2017 13:19:55 +0000 (16:19 +0300)]
dnf: move the entire dnf/rpm4 stack to Python 3

[YOCTO #11180]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3: do not hardcode "lib" into site-packages search path
Alexander Kanavin [Mon, 27 Mar 2017 13:19:54 +0000 (16:19 +0300)]
python3: do not hardcode "lib" into site-packages search path

This was not working in multilib or x32 setups and amazingly, was not
noticed until now.

The actual modification is in Lib/site.py, the rest is just devtool moving things around in the patch.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoinsane.bbclass: error if file-rdeps not met
Stephano Cetola [Mon, 27 Mar 2017 17:11:21 +0000 (10:11 -0700)]
insane.bbclass: error if file-rdeps not met

Missing runtime dependencies should result in an error rather than a
warning. Indeed, if RPM is listed in PACKAGE_CLASSES, it will throw
an error rather than install packages with missing dependencies. This
functionality should be consistent across package types. This patch
ensures that an error will be thrown.

[YOCTO #10949]

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: open kconfig fragment in binary mode
Stephano Cetola [Mon, 27 Mar 2017 17:01:36 +0000 (10:01 -0700)]
devtool: open kconfig fragment in binary mode

When devtool writes to the kconfig fragment, it writes the output of
the diff command returned from pipe.communicate(). This function
returns binary objects. We should open the kconfig fragment file in
binary mode if we expect to write binary objects to it.

[YOCTO #11171]

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoeudev: restore userspace firmware loading support
Lauren Post [Mon, 27 Mar 2017 20:09:29 +0000 (17:09 -0300)]
eudev: restore userspace firmware loading support

This sycncs eudev with systemd. This is required for old kernels to
work and does same backport as did in:

,----
| commit 31163abc7bedd477c1aad10e6d1f47dbee194513
| Author: Jonathan Liu <net147@gmail.com>
| Date:   Thu Mar 19 15:38:32 2015 +1100
|
|     systemd: restore userspace firmware loading support
|
|     This changes the minimum required Linux version from 3.7 back to 3.0.
|
|     [YOCTO #7409]
|
|     Signed-off-by: Jonathan Liu <net147@gmail.com>
|     Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
`----

Signed-off-by: Lauren Post <lauren.post@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/core/loader.py: Do not import underscore modules by default
Mariano Lopez [Mon, 27 Mar 2017 20:05:24 +0000 (13:05 -0700)]
oeqa/core/loader.py: Do not import underscore modules by default

Underscore modules are meant to be run only when manually added to the test
suite, so far another mechanisms are in place to make this happen with
runtime, sdk, and esdk (mostly in test* bbclasses).

This will add such functionality in the core framework so other specific
frameworks can take use this without adding something else.

[YOCTO #10980]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/selftest: don't use cleanall in selftests
Joshua Lock [Mon, 27 Mar 2017 10:21:32 +0000 (11:21 +0100)]
oeqa/selftest: don't use cleanall in selftests

* devtool: oeqa.selftest.devtool.DevtoolTests is taking 4 or more hours on the
  autobuilder because the cleanall call deletes the tarball of the kernel
  source, forcing a large clone which is especially long on an NFS mount.

  The cleanall invocation isn't really required here and switching to clean
  instead should avoid hours of re-cloning the same repository each time we
  run oe-selftest on the autobuilder.
* buildoptions: We only need to ensure the first image isn't an incremental
  image, clean will suffice here.
* runtime-test: no need to clean up the artefacts generated during the test,
  let's leave that to a higher level process rather than using the cleanall
  hammer.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoifupdown: Fix initscript
David Vincent [Mon, 27 Mar 2017 07:37:47 +0000 (09:37 +0200)]
ifupdown: Fix initscript

ifupdown does not provide an initscript so this recipe should not
inherit update-rc.d class. Instead, we rely on init-ifupdown recipe to
startup networking.

Signed-off-by: David Vincent <freesilicon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorpm: change PROVIDES rpm-build to RPROVIDES
Robert Yang [Mon, 27 Mar 2017 07:41:03 +0000 (00:41 -0700)]
rpm: change PROVIDES rpm-build to RPROVIDES

The rpm 5 has a rpm-build package, so here should use RPROVIDES rather
than PROVIDES to keep compatibility.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomesa: Add Etnaviv and i.MX Gallium backend PACKAGECONFIG options
Otavio Salvador [Sun, 26 Mar 2017 19:59:00 +0000 (16:59 -0300)]
mesa: Add Etnaviv and i.MX Gallium backend PACKAGECONFIG options

The MESA 17.0 has Etnaviv and i.MX support. Expose them in
PACKAGECONFIG for use.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomesa: Update to 17.0.2
Otavio Salvador [Sun, 26 Mar 2017 19:58:59 +0000 (16:58 -0300)]
mesa: Update to 17.0.2

This is a bugfix only release.

,----
| Bug fixes
|
| Bug 68504 - 9.2-rc1 workaround for clover build failure on ppc/altivec: cannot convert 'bool' to '__vector(4) __bool int' in return
| Bug 97988 - [radeonsi] playing back videos with VDPAU exhibits deinterlacing/anti-aliasing issues not visible with VA-API
| Bug 99484 - Crusader Kings 2 - Loading bars, siege bars, morale bars, etc. do not render correctly
| Bug 99715 - Don't print: "Note: Buggy applications may crash, if they do please report to vendor"
| Bug 100049 - "ralloc: Make sure ralloc() allocations match malloc()'s alignment." causes seg fault in 32bit build
`----

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses: Replace "if test" file tests with POSIX file tests uninative-1.6
Robert P. J. Day [Sat, 25 Mar 2017 18:03:55 +0000 (14:03 -0400)]
classes: Replace "if test" file tests with POSIX file tests

In entire meta/classes/ directory, replace shell tests of the form
"if test -? ..." with POSIX tests of the form "if [ -? ...

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: fix generation of partition UUID
Ed Bartosh [Sun, 26 Mar 2017 15:28:04 +0000 (18:28 +0300)]
wic: fix generation of partition UUID

Partition UUID for msdos partitioning is based on a 4 bytes long
system identifier. Wic uses random number to generate system
identifier. For the numbers starting with 0 partition uuid is
shorter, which makes wic images non-bootable as kernel expects
8 charactest in PARTUUID parameter.

Padded system identifier with '0' when generating partition UUID
to make it always 8 characters long. This should fix the boot
issue.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoautotools.bbclass: Replace "grep ... >/dev/null" with "grep -q"
Robert P. J. Day [Sun, 26 Mar 2017 10:24:07 +0000 (06:24 -0400)]
autotools.bbclass: Replace "grep ... >/dev/null" with "grep -q"

For aesthetic style reasons, use "grep -q" instead of ">/dev/null".

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomdadm: update criteria to build with corosync
Kai Kang [Fri, 24 Mar 2017 09:18:57 +0000 (17:18 +0800)]
mdadm: update criteria to build with corosync

mdadm only works with corosync 2.x which provides header file corosync/cmap.h.
If build mdadm with corosync 1.x, it fails with:

| member.c:12:27: fatal error: corosync/cmap.h: No such file or directory
|  #include <corosync/cmap.h>
|                            ^

Build with corosync only header file corosync/cmap.h exists.

Ref:
https://github.com/neilbrown/mdadm/blob/master/mdadm.h#L63

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/wic: fix typo
Robert Yang [Fri, 24 Mar 2017 08:55:32 +0000 (01:55 -0700)]
scripts/wic: fix typo

roofs -> rootfs

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoruntime-test.py: fix typo
Robert Yang [Fri, 24 Mar 2017 08:55:31 +0000 (01:55 -0700)]
runtime-test.py: fix typo

roofs -> rootfs.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage_types: perform fsck on created ext image
Enrico Jorns [Fri, 24 Mar 2017 11:15:02 +0000 (12:15 +0100)]
image_types: perform fsck on created ext image

When performing a file system check, the image created with mkfs will
trigger Pass 3A ('Optimizing directories') which turns the file system
into state "changed" (EXT2_FLAG_CHANGED).

This will let fsck request a reboot by setting the return code flag "2".

The result of this is that each ext-image built with oe-core will
trigger a reboot during the first time an fsck is triggered.

A common case where this might occur is when fsck detects having
a future superblock write time. This always happens when booting a
newly created ext4 rootfs with a target that does not have a recent time
set.

This patch moves the initial fsck run that performs the optimization
from the target to the host system and thus prevents the target from
performing an avoidable reboot.

Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Ulrich Ölmann <uol@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: limit the length of error output
Markus Lehtonen [Fri, 24 Mar 2017 14:43:25 +0000 (16:43 +0200)]
oeqa.buildperf: limit the length of error output

Limit the length of error logs to 40 lines. We don't need to
show/archive thousands of lines of bitbake logs if an error occurs.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.utils.commands: limit runCmd exception output
Markus Lehtonen [Fri, 24 Mar 2017 14:43:24 +0000 (16:43 +0200)]
oeqa.utils.commands: limit runCmd exception output

Make it possible to limit the length of output lines shown in runCmd
exceptions. E.g when running bitbake we easily get thousands of lines of
log output, where only the last few (tens) are interesting or relevant
when an error occurs.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-perf-test-wrapper.sh: store buildstats under git-notes
Markus Lehtonen [Fri, 24 Mar 2017 14:17:30 +0000 (16:17 +0200)]
build-perf-test-wrapper.sh: store buildstats under git-notes

In order to dramatically reduce the data footprint of the result
branches. This makes cloning/pulling result repositories a lot faster.
Buildstats can still be accessed, when needed by doing
git fetch refs/notes/buildstats/*:refs/notes/buildstats/*

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/oe-git-archive: implement --notes
Markus Lehtonen [Fri, 24 Mar 2017 14:17:29 +0000 (16:17 +0200)]
scripts/oe-git-archive: implement --notes

Option for adding git-notes to the commit.

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/oe-git-archive: implement --exclude
Markus Lehtonen [Fri, 24 Mar 2017 14:17:28 +0000 (16:17 +0200)]
scripts/oe-git-archive: implement --exclude

May be used for excluding certain files from the commit.

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/oe-git-archive: fix pushing
Markus Lehtonen [Fri, 24 Mar 2017 14:17:27 +0000 (16:17 +0200)]
scripts/oe-git-archive: fix pushing

Git arguments were badly laid out.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-build-perf-test: sum rusage in buildstats
Markus Lehtonen [Fri, 24 Mar 2017 14:17:26 +0000 (16:17 +0200)]
oe-build-perf-test: sum rusage in buildstats

Instead of separate rusage and child rusage values, only store their sum
value in buildstats. This is a big reduction in data footprint without
really losing any interesting data.

Also, utilize OrderedDict to order data more logically.

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-build-perf-test: pack all buildstat in one file
Markus Lehtonen [Fri, 24 Mar 2017 14:17:25 +0000 (16:17 +0200)]
oe-build-perf-test: pack all buildstat in one file

Write out all buildstats into one big json file, instead of using
multiple per-measurement files. Individual buildstats will be indexed
using "<test_name>.<measurement_name>" as the key. Also, changes the
per-testcase working directories into temporary directories that will be
removed after test execution as there are no more per-testcase data files
to store permanently.

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agovalgrind: correct the comparison logic in vg_regtest
Maxin B. John [Fri, 24 Mar 2017 15:03:20 +0000 (17:03 +0200)]
valgrind: correct the comparison logic in vg_regtest

do_diffs in the vg_regtest script compares the actual test output
against the expected test output and returns 0 if it matches.

Previous upgrade modified the return value of do_diffs() and that
resulted in ptest failures.

[YOCTO #8471]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agovalgrind: vg_regtest.in: fix perl script
Maxin B. John [Fri, 24 Mar 2017 15:03:19 +0000 (17:03 +0200)]
valgrind: vg_regtest.in: fix perl script

@PERL@ in vg_regtest.in causes recipe specific sysroot based perl to
be present in the vg_regtest script, making it unusable in the target.

Use /usr/bin/perl instead of @PERL@ to fix it.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoboost: various cleanups
Ross Burton [Fri, 24 Mar 2017 16:09:27 +0000 (16:09 +0000)]
boost: various cleanups

Re-order some assignments to be logically arranged.

Remove the set -ex statements as they serve no purpose.

Pass --debug-configuration to see what configuration steps boost is taking.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoboost: port boost-python to Python 3
Ross Burton [Fri, 24 Mar 2017 16:09:19 +0000 (16:09 +0000)]
boost: port boost-python to Python 3

As Python 3 is the default Python version, change Boost to build against Python
3 instead of Python 2 if enabled.  It's not simple to support both, so this
means that support for building boost-python against Python 2 has been removed.

This involves backporting a number of patches upstream to fix Python 3 support,
and telling Boost precisely where to find the Python headers and libraries so
that it doesn't try to invoke the host Python to determine these values.

[ YOCTO #11104 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotzdata: update to 2017b
Armin Kuster [Fri, 24 Mar 2017 16:01:14 +0000 (09:01 -0700)]
tzdata: update to 2017b

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotzcode: update to 2017b
Armin Kuster [Fri, 24 Mar 2017 16:01:13 +0000 (09:01 -0700)]
tzcode: update to 2017b

 Briefly: Haiti has resumed DST.

  Changes to past and future time stamps

    Haiti resumed observance of DST in 2017.  (Thanks to Steffen Thorsen.)

  Changes to past time stamps

    Liberia changed from -004430 to +00 on 1972-01-07, not 1972-05-01.

    Use "MMT" to abbreviate Liberia's time zone before 1972, as "-004430"
    is one byte over the POSIX limit.  (Problem reported by Derick Rethans.)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotargetcontrol.py: use logger.info to replace of bb.note
Robert Yang [Fri, 24 Mar 2017 08:45:02 +0000 (01:45 -0700)]
targetcontrol.py: use logger.info to replace of bb.note

The bb.note prints multiple same lines when invoke this class again, but
if we set mainlogger.propagate = False, nothing would be printed,
according to logging's document:

https://docs.python.org/3/library/logging.html
Note
If you attach a handler to a logger and one or more of its ancestors, it
may emit the same record multiple times. In general, you should not need
to attach a handler to more than one logger - if you just attach it to
the appropriate logger which is highest in the logger hierarchy, then it
will see all events logged by all descendant loggers, provided that
their propagate setting is left set to True. A common scenario is to
attach handlers only to the root logger, and to let propagation take
care of the rest.

We may need avoid using bb.note or bb.warn in oeqa since it attaches
multiple log handlers which may cause confusions

This patch only sets "mainlogger.propagate = False" in
selftest/runqemu.py and use logger.info to replace bb.note in
targetcontrol.py to minimize the impact.

[YOCTO #10249]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest/runqemu.py: add it to test runqemu
Robert Yang [Fri, 24 Mar 2017 08:45:01 +0000 (01:45 -0700)]
selftest/runqemu.py: add it to test runqemu

Usage:
$ oe-selftest -r runqemu

Current test cases:
$ runqemu nographic qemux86-64
$ runqemu nographic qemux86-64 ext4
$ runqemu nographic qemux86-64 iso
$ runqemu nographic core-image-minimal
$ runqemu nographic core-image-minimal vmdk
$ runqemu nographic core-image-minimal vdi
$ runqemu nographic tmp/deploy/images/qemux86-64
$ runqemu nographic tmp/deploy/images/qemux86-64 hddimg
$ runqemu nographic qemux86-64 slirp
$ runqemu nographic qemux86-64 slirp qcow2
$ runqemu nographic tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.qemuboot.conf
$ runqemu nographic tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.ext4

Need more later:
- Test initramfs
- Test nfs
- Test when set DEPLOY_DIR_IMAGE and OECORE_NATIVE_SYSROOT
- And others which similate runqemu runs on SDK and eSDK.

[YOCTO #10249]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemurunner.py: fix handling of runqemuparams
Chen Qi [Fri, 24 Mar 2017 08:45:00 +0000 (01:45 -0700)]
qemurunner.py: fix handling of runqemuparams

The launch() doesn't need runqemuparams, we need handle it in start().

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/targetcontrol.py: modify it to test runqemu
Robert Yang [Fri, 24 Mar 2017 08:44:59 +0000 (01:44 -0700)]
oeqa/targetcontrol.py: modify it to test runqemu

Modify the following files to test runqemu:
    targetcontrol.py
    utils/commands.py
    utils/qemurunner.py

We need simulate how "runqemu" works in command line, so when test
"runqemu", the targetcontrol.py, utils/commands.py and
utils/qemurunner.py don't have to find the rootfs or set env vars.

[YOCTO #10249]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemurunner: configurable timeout for run_serial()
Patrick Ohly [Fri, 24 Mar 2017 21:46:16 +0000 (22:46 +0100)]
qemurunner: configurable timeout for run_serial()

Some commands might need to run longer than the default timeout of
five seconds. If that occurred, run_serial() returned with a status
code of zero (sic!) and no other indication of what went wrong.

Now the timeout is configurable (with five still the default) and
an explicit warning ("<<< run_serial(): command timed out after 5 seconds without output >>>")
gets appended at the end of the data returned to the caller.

While at it, the logic for checking for the timeout was updated a bit
because both implementations could overshoot the timeout when entering
select() right before the final deadline.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxserver-nodm-init: option to remove cursor
Trevor Woerner [Sat, 25 Mar 2017 05:19:47 +0000 (01:19 -0400)]
xserver-nodm-init: option to remove cursor

Add a PACKAGECONFIG option to allow the user to disable the mouse
cursor/pointer in the X server. This might be useful where a
touchscreen is used.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: use kernel_dir to find systemd-efi bootloader
Ed Bartosh [Fri, 24 Mar 2017 12:29:52 +0000 (14:29 +0200)]
wic: use kernel_dir to find systemd-efi bootloader

Fixed test failure caused by using bootimg_dir path
instead of kernel_dir to find systemd-efi bootloader:
FAIL: test_systemd_bootdisk (oeqa.selftest.wic.Wic)
...
FileNotFoundError: [Errno 2] No such file or directory:
'tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot/usr/share'

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>