]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
8 years agodev-manual, ref-manual: Eliminated pre-built section
Scott Rifenbark [Tue, 18 Jul 2017 17:44:37 +0000 (10:44 -0700)] 
dev-manual, ref-manual: Eliminated pre-built section

Fixes [YOCTO #11630]

I took the section that described how to use a pre-built kernel
and run it through QEMU out.  This is basically a QEMU usage
section and is not in that area.  There were some QEMU speed
up items suitable for the QEMU concepts section in the ref-manual.
I put those in that area.

(From yocto-docs rev: b081013aa10b42e4eb88ed54940112c5ae106911)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual, ref-manual: Re-wrote QEMU section.
Scott Rifenbark [Tue, 18 Jul 2017 17:15:33 +0000 (10:15 -0700)] 
dev-manual, ref-manual: Re-wrote QEMU section.

Fixes [YOCTO #11630]

I converted the QEMU section to a procedure.  Also took the
tips section and created individual sections from that.

Cleaned up some areas in the QEMU conceptual section in the
ref-manual

(From yocto-docs rev: dfd3466be605fdd7438653bf54fd0df3594a5c50)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoref-manual: Added QEMU reference section
Scott Rifenbark [Mon, 17 Jul 2017 15:21:39 +0000 (08:21 -0700)] 
ref-manual: Added QEMU reference section

Fixes [YOCTO #11630]

The dev-manual had a section on QEMU that combined a lot of
reference information and usage information.  I took the reference
information out and moved it to the ref-manual into a new section
in the second chapter, "Using YP".

(From yocto-docs rev: 188596c576e357925383d0cc3bd2b0cdf41926ec)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual: Scrubbed machine type for runqemu command.
Scott Rifenbark [Wed, 12 Jul 2017 19:53:24 +0000 (12:53 -0700)] 
dev-manual: Scrubbed machine type for runqemu command.

(From yocto-docs rev: 9d7042661ab106055e4c09e4bbb41a8592c715c4)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosdk-manual: Converted extracting root filesystem to procedure
Scott Rifenbark [Wed, 12 Jul 2017 14:34:59 +0000 (07:34 -0700)] 
sdk-manual: Converted extracting root filesystem to procedure

(From yocto-docs rev: 371b7c6c4d0d18c7212e0af3ca3ff558de347633)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosdk-manual: Converted SDK build section to procedure
Scott Rifenbark [Mon, 10 Jul 2017 21:56:28 +0000 (14:56 -0700)] 
sdk-manual: Converted SDK build section to procedure

The section needed to be a step-by-step procedure.

(From yocto-docs rev: de4868c97c1199b39b3c3e68b4ff159f6546cd9e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosdk-manual: Updated section to locate and install pre-built SDK
Scott Rifenbark [Mon, 10 Jul 2017 21:05:51 +0000 (14:05 -0700)] 
sdk-manual: Updated section to locate and install pre-built SDK

The section "Locating Pre-Built SDK Installers" was turned into
a procedure.  I also added some information on the actual names
of the *.sh files.

(From yocto-docs rev: 548886d5a392164783596c0c04779aaffd6ac930)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobluez5: upgrade to 5.46
Maxin B. John [Thu, 20 Jul 2017 12:22:35 +0000 (15:22 +0300)] 
bluez5: upgrade to 5.46

5.45 -> 5.46

This includes the new testing utility "advtest"

(From OE-Core rev: 514e9be6b00cd39bb8b2eaf117125109fba17910)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-git: upgrade to 2.1.5
Jose Lamego [Wed, 19 Jul 2017 16:50:02 +0000 (11:50 -0500)] 
python3-git: upgrade to 2.1.5

python3-git needs to be upgraded to latest upstream version.

"git" is added as RDEPENDS.

These changes were tested using qemux86 with core-image-minimal.

(From OE-Core rev: 0b48514d1d26d234c158a4b72087a67d2478362a)

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-mako: update to 1.0.7
Jose Lamego [Wed, 19 Jul 2017 16:12:17 +0000 (11:12 -0500)] 
python3-mako: update to 1.0.7

python3-mako need to be upgraded to latest upstream version.
This change was tested using qemux86 with core-image-minimal

(From OE-Core rev: 1a2bb950b38035b842d120697d076cfdc832fa37)

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibtirpc: upgrade to 1.0.2
Maxin B. John [Wed, 19 Jul 2017 15:01:25 +0000 (18:01 +0300)] 
libtirpc: upgrade to 1.0.2

1.0.1 -> 1.0.2

Remove these Backported and upstreamed patches:
        1. 0001-Fix-for-CVE-2017-8779.patch
        2. libtirpc-0.2.1-fortify.patch
        3. libtirpc-1.0.2-rc3.patc

(From OE-Core rev: 351a629114c67691ba434a27ec42671474fdc605)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosqlite3: upgrade to 3.19.3
Maxin B. John [Wed, 19 Jul 2017 15:01:24 +0000 (18:01 +0300)] 
sqlite3: upgrade to 3.19.3

3.19.2 -> 3.19.3

Fixes a bug associated with auto_vacuum that can lead to database
corruption.

(From OE-Core rev: 2635067901c932888a998ea0fbb45f5d4d3c7c24)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoorc: upgrade to 0.4.27
Maxin B. John [Wed, 19 Jul 2017 15:01:22 +0000 (18:01 +0300)] 
orc: upgrade to 0.4.27

0.4.26 -> 0.4.27

(From OE-Core rev: d852730365183f835d4c580775f2393822d60b86)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibsolv: upgrade to 0.6.28
Maxin B. John [Wed, 19 Jul 2017 15:01:21 +0000 (18:01 +0300)] 
libsolv: upgrade to 0.6.28

0.6.27 -> 0.6.28

(From OE-Core rev: dd4c896a3248176c8d992a829d10e2ab135f6522)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibjpeg-turbo: upgrade to 1.5.2
Maxin B. John [Wed, 19 Jul 2017 15:01:20 +0000 (18:01 +0300)] 
libjpeg-turbo: upgrade to 1.5.2

1.5.1 -> 1.5.2

Remove this backported patch:
        1. fix-mips.patch

(From OE-Core rev: 5b3c92af0cc7f12313d2e7ac02dc68f8e01b76a1)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscreen: 4.5.1 -> 4.6.0
Bian Yaqin [Tue, 18 Jul 2017 15:48:28 +0000 (08:48 -0700)] 
screen: 4.5.1 -> 4.6.0

Update screen from 4.5.1 to 4.6.0

(From OE-Core rev: 422cfb92af8d7d2982dc76614388f22aeb658062)

Signed-off-by: Bian Yaqin <bianyq@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobase.bbclass: Make .jar file depend on unzip-native
Ricardo Ribalda Delgado [Tue, 18 Jul 2017 11:01:53 +0000 (13:01 +0200)] 
base.bbclass: Make .jar file depend on unzip-native

Unzip is required for jar files. Without this patch:
ERROR: junit4-4.3.1-r0 do_unpack: Unpack failure for URL:
'http://downloads.sourceforge.net/junit/junit-4.3.1-src.jar'. Unpack
command
PATH="/var/lib/jenkins/workspace/qt5122-dyspro/build/tmp/sysroots-uninative/x86_64-linux/usr/bin ......."
unzip -q -o '/var/lib/yocto/downloads/junit-4.3.1-src.jar' failed with
return value 127

Suggested-by: Ross Burton <ross.burton@intel.com>
(From OE-Core rev: 96665f8b204b0f0ba571bb6634203aada5983f8a)

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd-bootchart: Fix build with glibc 2.26
Jussi Kukkonen [Tue, 18 Jul 2017 10:52:29 +0000 (13:52 +0300)] 
systemd-bootchart: Fix build with glibc 2.26

xlocale.h is no more, don't include it.

(From OE-Core rev: 4fdc7841a1ec5dfc0a3a3af5e630c9def7a66a24)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoacl: reduce local pending patches
Dengke Du [Tue, 18 Jul 2017 07:56:57 +0000 (03:56 -0400)] 
acl: reduce local pending patches

(From OE-Core rev: e35a14b28e021dc6db06e4471efbb7b25e45ee91)

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoat: reduce local pending patches
Dengke Du [Tue, 18 Jul 2017 07:56:56 +0000 (03:56 -0400)] 
at: reduce local pending patches

(From OE-Core rev: 07d37b0065c60a9926002f713187ddc6bc26a146)

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agovulkan-demos: Rename ${bindir}/screenshot
Jussi Kukkonen [Tue, 18 Jul 2017 07:32:10 +0000 (10:32 +0300)] 
vulkan-demos: Rename ${bindir}/screenshot

This conflicts with sato-screenshot.

(From OE-Core rev: 2cd6ef9309541c625bc3c3bd48e06dcf4a6edd80)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomesa: Upgrade to 17.1.5 release
Otavio Salvador [Mon, 17 Jul 2017 18:40:49 +0000 (15:40 -0300)] 
mesa: Upgrade to 17.1.5 release

This is a stable bugfix release. Following upstream bugs were fixed:

Bug 100242 - radeon buffer allocation failure during startup of Factorio
Bug 101657 - strtod.c:32:10: fatal error: xlocale.h: No such file or directory
Bug 101666 - bitfieldExtract is marked as a built-in function on OpenGL ES 3.0, but was added in OpenGL ES 3.1
Bug 101703 - No stencil buffer allocated when requested by GLUT

Also, the following patches were included in this release and as such
deleted:

- etnaviv_fix-shader-miscompilation.patch

(From OE-Core rev: 6e23b9589cd2e35d865f5d5e3469ad251c263af1)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-selftest: wic: add test_mkfs_extraopts test case
Ed Bartosh [Thu, 6 Jul 2017 11:32:35 +0000 (14:32 +0300)] 
oe-selftest: wic: add test_mkfs_extraopts test case

Test new wks option --mkfs-extraopts with all filesystems
supported by wic.

(From OE-Core rev: 79e853c450708e1e06684cf1216337cbad964770)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: add description of --mkfs-extraopts
Ed Bartosh [Thu, 6 Jul 2017 11:32:34 +0000 (14:32 +0300)] 
wic: add description of --mkfs-extraopts

Updated help contents with the description of new
wks option --mkfs-extraopts

(From OE-Core rev: 69c95f74013d0d8b199abc38ba0d6f3ff952eed3)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: implement wks option --mkfs-extraopts
Ed Bartosh [Thu, 6 Jul 2017 11:32:33 +0000 (14:32 +0300)] 
wic: implement wks option --mkfs-extraopts

This option specifies extra options to pass to mkfs.<fstype> utilities.

[YOCTO #11709]

(From OE-Core rev: 67b7c67edba305fbd31967baa10d27c2e603ec77)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopkgconfig: allow kernel to be build with esdk
Saul Wold [Mon, 17 Jul 2017 16:20:15 +0000 (09:20 -0700)] 
pkgconfig: allow kernel to be build with esdk

When the kernel's menuconfig target is called while using the esdk or an
esdk-based container, the pkg-config info that is found is not correct.
The pkg-config info is for the target, but we need the eSDK's information
in order to build the host based menuconfig.

The new pkg-config-esdk script checks both that it's in SDK and being
called from the check-lxdialog script in order to limit the scope of when
the pkg-config automagically switches to pkg-config-native.

The pkg-config-esdk is only installed as pkg-config inside the eSDK, which
is why we use the sstate post install script and check for if we are in the
esdk environment using the WITHIN_EXT_SDK

[YOCTO #11155]

(From OE-Core rev: 0954452d151613fa758fbde8ee9469b30d80776b)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_ext: Add variable to indicate running in eSDK
Saul Wold [Mon, 17 Jul 2017 16:20:14 +0000 (09:20 -0700)] 
populate_sdk_ext: Add variable to indicate running in eSDK

This allows for other scripts to know that they are being executed in
the context of the eSDK in order to provide different behaviour as
needed.

[YOCTO #11155]

(From OE-Core rev: ebdd9b5a19eb6fb6c3249be4f0e2480a3de2aa8f)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoicecc.bbclass: prevent nativesdk builds depending on target specific KERNEL_CC
Martin Jansa [Mon, 17 Jul 2017 14:04:50 +0000 (16:04 +0200)] 
icecc.bbclass: prevent nativesdk builds depending on target specific KERNEL_CC

* without this we cause nativesdk-linux-libc-headers to depend
  on target specific KERNEL_CC (through icecc_get_tool ->
  icecc_is_kernel -> KERNEL_CC -> HOST_CC_KERNEL_ARCH ->
  TARGET_CC_KERNEL_ARCH -> TUNE_FEATURES(thumb) as shown by
  bitbake-diffsigs:

  OE qemux86@ ~/build/oe-core $ ls /OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemu*/*sdk*/*/*do_configure.sigdata*
  /OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemuarm/x86_64-nativesdk-oesdk-linux/nativesdk-linux-libc-headers/4.10-r0.do_configure.sigdata.3a9a423878d56524e0ee8e42eba1804f
  /OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemux86/x86_64-nativesdk-oesdk-linux/nativesdk-linux-libc-headers/4.10-r0.do_configure.sigdata.401071dbaa88903ece37d35a47965ff2

  OE qemux86@ ~/build/oe-core $ bitbake-diffsigs /OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemu*/*sdk*/*/*do_configure.sigdata*
  basehash changed from 39774238b66763c598153132e87a2c1a to aa2d66e770bf533e312536eb0a401c4c
  Variable TARGET_CC_KERNEL_ARCH value changed from '${@bb.utils.contains('TUNE_FEATURES', 'thumb', '-mno-thumb-interwork-marm', '', d)} TUNE_FEATURES{thumb} = Set' to ''

(From OE-Core rev: aef5d6052a60f506e842110381a221aed042e054)

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>
8 years agolicenses.conf: enable CDDLv1 license
Martin Kelly [Mon, 10 Jul 2017 22:18:33 +0000 (15:18 -0700)] 
licenses.conf: enable CDDLv1 license

The CDDL license is now used by open-vm-tools in meta-openembedded, so
we need to add it in order to prevent warnings.

(From OE-Core rev: 0dd9db29e56c75181219bb0dbac88a91989b702b)

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>
8 years agoinitscripts: start bootmisc.sh at 36 instead of 55
David Vincent [Mon, 10 Jul 2017 10:45:33 +0000 (12:45 +0200)] 
initscripts: start bootmisc.sh at 36 instead of 55

bootmisc.sh is responsible for setting the system date to a sane
default. Currently, it is the last script to be run from the rcS
runlevel.

Problem is that the files created before appear to have been created
on 1/1/1970. Most notably, /var/log/dmesg created in dmesg.sh cannot be
properly rotated with logrotate which does not consider it a valid date
and stops processing.

There is no blocker on moving this script right before populating
volatiles because it just requires the local and virtual filesystems to
be mounted to work.

(From OE-Core rev: a0f6508847a28a78cb0a1e9613b6e5cc3047d995)

Signed-off-by: David Vincent <freesilicon@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agologrotate: Add systemd support
Romain Perier [Tue, 11 Jul 2017 06:46:06 +0000 (08:46 +0200)] 
logrotate: Add systemd support

Currently, this recipe only supports daily scheduling via a cron job.
This commit adds support for systemd in the recipe, as the feature is
already supported on upstream. When the corresponding distro feature is
enabled the systemd variant will be used. The timer granularity and its
accuracy are also configurable.

(From OE-Core rev: b942d0b17cb6622b653283109307346dcfb4f205)

Signed-off-by: Romain Perier <romain.perier@collabora.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agologrotate: Bump to 3.12.3
Romain Perier [Tue, 11 Jul 2017 06:46:05 +0000 (08:46 +0200)] 
logrotate: Bump to 3.12.3

This commit updates the recipe to the last upstream tag. Then, as the
tarball no longer contains the pre-generated Makefile, inherit from
autotools

(From OE-Core rev: 72490b7a327867872987e63d340051c4980044b2)

Signed-off-by: Romain Perier <romain.perier@collabora.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: standard: enable options for PREMIRRORS and MIRRORS
Chang Rebecca Swee Fun [Thu, 13 Jul 2017 03:33:55 +0000 (11:33 +0800)] 
devtool: standard: enable options for PREMIRRORS and MIRRORS

Since we have provide an option to manually enable PREMIRRORS and MIRRORS
in recipetool, we need to make sure devtool is having the same options
as devtool uses recipetool in creating new recipes.

(From OE-Core rev: 198bddeb928a318c3ad168bcb4f83b5cd9a604fb)

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: find-recipe: enable new subcommand for devtool
Chang Rebecca Swee Fun [Wed, 28 Jun 2017 01:59:19 +0000 (09:59 +0800)] 
devtool: find-recipe: enable new subcommand for devtool

devtool find-recipe will prints out the path to the recipe
in a workspace.

This subcommand can also help to find recipe outside of
current workspace using "-a" or "--any-recipe" option.

This enhancement helps developer to get the recipe path
when working with devtool.

[YOCTO #11434]

(From OE-Core rev: 5a16b3c804c5eca331a1c08a7ce31a54909af105)

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscriptutils: pass in logger as parameter
Chang Rebecca Swee Fun [Wed, 28 Jun 2017 01:59:18 +0000 (09:59 +0800)] 
scriptutils: pass in logger as parameter

logger was not defined in scriptutils.py based on the
observation in python traceback.

Traceback (most recent call last):
  File "/workdir/poky/scripts/devtool", line 351, in <module>
    ret = main()
  File "/workdir/poky/scripts/devtool", line 338, in main
    ret = args.func(args, config, basepath, workspace)
  File "/workdir/poky/scripts/lib/devtool/utilcmds.py", line 55, in
edit_recipe
    return scriptutils.run_editor(find_recipe(args, config, basepath,
workspace))
  File "/workdir/poky/scripts/lib/scriptutils.py", line 141, in
run_editor
    logger.error("Execution of '%s' failed: %s" % (editor, exc))
NameError: name 'logger' is not defined

We pass in logger as parameter to run_editor() from where it has
been called (devtool/utilcmds.py and recipetool/newappend.py),
which both modules already has logger setup.

(From OE-Core rev: 21f04b61973dd9029f0e6bff5445e31cd762bf32)

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscriptutils: exit politely when no text editor available
Chang Rebecca Swee Fun [Wed, 28 Jun 2017 01:59:17 +0000 (09:59 +0800)] 
scriptutils: exit politely when no text editor available

devtool edit-recipe now has ugly tracebacks if executed without an
editor available. This happens in the build containers whenever no
text editor is available.

subprocess.check_call will run text editing command with recipe path
provided. It will wait for command to complete. If the return code
was zero then return, otherwise raise CalledProcessError exception.

This enhancement will suppress the traceback by catching the exception
and prompt the error messages in a proper manner shown below:

pokyuser@59c99c507238:/workdir/docker-dbg$ devtool edit-recipe ifupdown
/bin/sh: 1: vi: not found
ERROR: Execution of 'vi' failed: Command 'vi
"/workdir/docker-dbg/workspace/recipes/ifupdown/ifupdown_0.8.16.bb"'
returned non-zero exit status 127

[YOCTO #11434]

(From OE-Core rev: c536ccfd162fc8871838fa229012c562e3f8e0d9)

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd: workaround login failure on qemumips64 when 'pam' is enabled
Chen Qi [Mon, 17 Jul 2017 06:30:26 +0000 (14:30 +0800)] 
systemd: workaround login failure on qemumips64 when 'pam' is enabled

Append " -fno-tree-switch-conversion -fno-tree-tail-merge" to
FULL_OPTIMIZATION to workaround login problem on qemumips64. Otherwise,
user cannot login onto the target even username and password are
provided.

(From OE-Core rev: 35403ba3707c3c8dd94bcc557eef6f7c66696bc5)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoghostscript: remove legacy patch png_mak.patch
Kai Kang [Mon, 17 Jul 2017 08:40:39 +0000 (16:40 +0800)] 
ghostscript: remove legacy patch png_mak.patch

png_mak.patch was created for ghostscript 9.16 and causes make circular
dependency now. Check source code base/png.mak after apply png_mak.patch:

Line 77: $(MAKEDIRS) : $(pnglibconf_h)
Line 83: $(pnglibconf_h) : $(PNGSRC)scripts$(D)pnglibconf.h.prebuilt $(TOP_MAKEFILES) $(MAKEDIRS)

So remove png_mak.patch.

(From OE-Core rev: 8a5890cc0b0a6c110edb36aec3614c3ebeb54e24)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage_types: use initrd from pre-sstate directory
Ed Bartosh [Mon, 17 Jul 2017 08:35:00 +0000 (11:35 +0300)] 
image_types: use initrd from pre-sstate directory

mkelfImage was failing trying to use initrd from ${DEPLOY_DIR_IMAGE}:
DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_elf
| Cannot open `tmp/deploy/images/qemux86/core-image-minimal-qemux86.cpio.gz':
No such file or directory

As the images have only one deploy point it's not possible to reference
something the images themselves are deploying. They need to reference it
in the "pre-sstate" directory ${IMGDEPLOYDIR}, not the post sstate one
${DEPLOY_DIR_IMAGE}.

Fixed by using ${IMGDEPLOYDIR} instead of ${DEPLOY_DIR_IMAGE} in
mkelfImage command line.

[YOCTO #11767]

(From OE-Core rev: 13d675b0f8968bcfdf36035fd959be285e3da378)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolsb: add checking for chkconfig existence when creating the symbolic
Zhenbo Gao [Mon, 17 Jul 2017 09:13:08 +0000 (17:13 +0800)] 
lsb: add checking for chkconfig existence when creating the symbolic

remove_initd and remove_initd will be created as the symbolic file
of chkconfig, which will be not existed when systemd is configured,
so adding the check for the existence of chkconfig before creating
the symbolic.

(From OE-Core rev: 0417cc64516c47fb4daddc80e41e3f9c6ab927fc)

Signed-off-by: Zhenbo Gao <zhenbo.gao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: fix calculation of partition number
Ed Bartosh [Mon, 17 Jul 2017 07:04:04 +0000 (10:04 +0300)] 
wic: fix calculation of partition number

Total number of partitions should be taken into account when calculating
real partition number for msdos partition table. The number can be
different for the 4th partition: it can be 4 if there are 4 partitions in
the table and 5 if there are more than 4 partitions in the table. In the
latter case number 4 is occupied by extended partition.

[YOCTO #11790]

(From OE-Core rev: 5689139b3cd862e2df49f6b21171f513e8a46c60)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocryptodev: 1.8 -> 1.9
Robert Yang [Wed, 12 Jul 2017 10:15:27 +0000 (03:15 -0700)] 
cryptodev: 1.8 -> 1.9

* Remove backported patch:
  - 0001-Adjust-to-another-change-in-the-user-page-API.patch
  - 06d6b560c6e45dc317dae47c74706fa43f4a31d8.patch
  - cb186f682679383e8b5806240927903730ce85d9.patch
  - kernel-4-10-changes.patch

* Update patch:
  - 0001-Disable-installing-header-file-provided-by-another-p.patch

* Update FILES_${PN} since there are files in bindir:
  /usr/bin/hmac_comp
  /usr/bin/cipher_comp
  /usr/bin/async_hmac
  /usr/bin/cipher-aead-srtp
  /usr/bin/hash_comp
  /usr/bin/async_speed
  /usr/bin/async_cipher
  /usr/bin/sha_speed
  /usr/bin/hashcrypt_speed
  /usr/bin/hmac
  /usr/bin/cipher-gcm
  /usr/bin/cipher
  /usr/bin/fullspeed
  /usr/bin/speed
  /usr/bin/cipher-aead

(From OE-Core rev: 27202954ce7abda22f7e81c2d72a80f0fa7006d8)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agou-boot: Upgrade to 2017.07 release
Otavio Salvador [Sat, 15 Jul 2017 17:07:30 +0000 (14:07 -0300)] 
u-boot: Upgrade to 2017.07 release

This patch upgrades the U-Boot to the 2017.07 release.

(From OE-Core rev: b322e1b1cb4cd4d4cc53f868b53ca9b069772755)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3: fix weakref spewing exceptions during interp finalization
Mark Asselstine [Fri, 14 Jul 2017 14:01:09 +0000 (10:01 -0400)] 
python3: fix weakref spewing exceptions during interp finalization

When py3 applications are exiting we often see errors similar to the
following:

Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fcb56b09400>
Traceback (most recent call last):
  File "/usr/lib64/python3.5/weakref.py", line 117, in remove
  TypeError: 'NoneType' object is not callable

After a quick search this was found to be a well reported issue
upstream and had an appropriate fix which is backported here.

(From OE-Core rev: 8aaf09a916a2f66f1a6a79cbddf45390ecefde4f)

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agognome-common: Remove as deprecated
Jussi Kukkonen [Fri, 14 Jul 2017 12:25:26 +0000 (15:25 +0300)] 
gnome-common: Remove as deprecated

Nothing in oe-core requires gnome-common and it is also deprecated
upstream: Remove it.

(From OE-Core rev: 14b41d6ad6f582a229b6bd62fc4eb17f615d1ad7)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobison: reduce local pending patches
Dengke Du [Fri, 21 Jul 2017 02:30:50 +0000 (22:30 -0400)] 
bison: reduce local pending patches

(From OE-Core rev: 119dd0889f34d88a5261383d743709db32bf3a1b)

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobluez5: update patch status
Maxin B. John [Fri, 21 Jul 2017 09:09:52 +0000 (12:09 +0300)] 
bluez5: update patch status

Update the status of following patch from Pending to Accepted:
        a) 0001-hciattach-bcm43xx-fix-the-delay-timer-for-firmware-d.patch

(From OE-Core rev: f9ccac5dd359e9b874a39cd879ea23c841085eab)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: fetch2/wget.py: improve error handling during sstate check
Patrick Ohly [Mon, 17 Jul 2017 13:25:10 +0000 (15:25 +0200)] 
bitbake: fetch2/wget.py: improve error handling during sstate check

When the sstate is accessed via HTTP, the existence check can fail due
to network issues, in which case bitbake silently continues without
sstate.

One such network issue is an HTTP server like Python's own SimpleHTTP
which closes the TCP connection despite an explicit "Keep-Alive" in
the HTTP request header. The server does that without a "close" in the
HTTP response header, so the socket remains in the connection cache,
leading to "urlopen failed: <urlopen error [Errno 9] Bad file
descriptor>" (only visible in "bitbake -D -D" output) when trying to
use the cached connection again.

The connection might also get closed for other reasons (proxy,
timeouts, etc.), so this is something that the client should be able
to handle.

This is achieved by checking for the error, removing the bad
connection, and letting the check_status() method try again with a new
connection. It is necessary to let the second attempt fail
permanently, because bad proxy setups have been observed to also lead
to such broken connections. In that case, we need to abort for real
after trying twice, otherwise a build would just hang forever.

[YOCTO #11782]

(Bitbake rev: 6fa07752bbd3ac345cd8617da49a70e0b2dd565f)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: trim build target input
David Reyna [Tue, 11 Jul 2017 21:56:10 +0000 (14:56 -0700)] 
bitbake: toaster: trim build target input

Trim the entered built target value so that Toaster is not
confused with no real targets nor a ghost second target.

[YOCTO #11727]

(Bitbake rev: dd83c732b945ba6f9b7cdf66f6e88cfd15a745a0)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: set clone progress default to off
David Reyna [Tue, 11 Jul 2017 21:56:09 +0000 (14:56 -0700)] 
bitbake: toaster: set clone progress default to off

Set the clone progress to be off by default for the benefit of
command line projects and 'Local Yocto' builds. For Toaster managed
projects that do use the clone feature the clone progress status
is already explicitly set by the existing code and thus displayed.

[YOCTO #11744]

(Bitbake rev: d25a3088150b2a277242027c12becdeb88c45517)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: include setscene in task progress
David Reyna [Tue, 11 Jul 2017 21:56:08 +0000 (14:56 -0700)] 
bitbake: toaster: include setscene in task progress

Change the task progress counting from the task order field
which excludes setscene to the task completion field which
counts all completed tasks regardless of type.

[YOCTO #9971]

(Bitbake rev: 485b328430dcdfd0b52f09f01ebd490d09459ea3)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: Update to version 1.35.0 (development version with server rework changes)
Richard Purdie [Fri, 21 Jul 2017 07:43:06 +0000 (08:43 +0100)] 
bitbake: Update to version 1.35.0 (development version with server rework changes)

(Bitbake rev: eef7a1a3eb0365da5ed2bc9688203fba3b6a61b5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosubversion: Upgrade 1.9.5-> 1.9.6
Richard Purdie [Tue, 18 Jul 2017 22:55:33 +0000 (15:55 -0700)] 
subversion: Upgrade 1.9.5-> 1.9.6

(From OE-Core rev: 5212d88104b7a53d4bd8bf2320aca9455099ac80)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoargparse_oe: Add int_positive type
Aníbal Limón [Tue, 11 Jul 2017 16:16:28 +0000 (09:16 -0700)] 
argparse_oe: Add int_positive type

Sometimes only expect positive values from cmdline so it's better
to filter at parsing cmdline step instead of validate later.

(From OE-Core rev: 3ef5b518febd047bf90a0955fa2b9fb78ba6dde5)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe/copy_buildsystem: check_sstate_task_list also pop BBPATH from env
Aníbal Limón [Thu, 29 Jun 2017 21:48:24 +0000 (14:48 -0700)] 
oe/copy_buildsystem: check_sstate_task_list also pop BBPATH from env

The BBPATH environment could be set and can make a failure when try
to build an extensible sdk because it will look the bitbake.lock
file in the original build folder.

Example:

$ export BBPATH=`pwd`
$ bitbake core-image-minimal -c populate_sdk_ext

ERROR: bitbake failed:
ERROR: Only one copy of bitbake should be run against a build directory
ERROR: core-image-minimal-1.0-r0 do_populate_sdk_ext: Function failed:
copy_buildsystem

(From OE-Core rev: 33634b4c38d84e1c5d06056766933f1fe4f47e8d)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/selftest/{context,case}: Handle KeyboardInterrupt/SIGINT and SIGTERM
Aníbal Limón [Fri, 23 Jun 2017 20:10:38 +0000 (15:10 -0500)] 
oeqa/selftest/{context,case}: Handle KeyboardInterrupt/SIGINT and SIGTERM

In order to avoid corrupt local.conf and bblayers.conf adds
signal handler for SIGTERM and use try/finally (KeyboardIntrrupt) block
to restore previously backuped configuration.

[YOCTO #11650]

(From OE-Core rev: 9419c81e69d2facc82e39c846466670c09e6b444)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest/cases/package: Call parent setUpClass method
Aníbal Limón [Mon, 26 Jun 2017 16:12:40 +0000 (11:12 -0500)] 
selftest/cases/package: Call parent setUpClass method

Since config paths are now passed in Test context the setUpClass
method is expected to be call.

(From OE-Core rev: 7281c995ff2b009c3fb23c7af1d91fe106ca8f87)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/core/loader: Generate function _make_failed_test dynamically
Aníbal Limón [Thu, 29 Jun 2017 20:02:14 +0000 (15:02 -0500)] 
oeqa/core/loader: Generate function _make_failed_test dynamically

Python versions has different features from branches 3.4.x, 3.5.x and
3.6.x, i expected in wrong mode that was incremental for example changes
in 3.4.4 be in 3.5.x but that's not true.

The _make_failed_test internal method differs and is only available in
certain versions >= 3.4.4 and in 3.5.x and 3.6.x branches but not
realeses have been made including it.

So to avoid futher problems inspect the _make_failed_test and generates
function definition according what parameters are needed, the unique
supossition is that exception argument is always passed.

Related to,
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=d8380d098a290510b442a7abd2dd5a50cabf5844

(From OE-Core rev: b4740d2b325a80bcecc5e56dff9add9081fcd31b)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/eSDK: Ignore errors during directory cleanup
Richard Purdie [Thu, 20 Jul 2017 08:38:36 +0000 (09:38 +0100)] 
oeqa/eSDK: Ignore errors during directory cleanup

The cleanup can fail with:

ERROR [0.000s]: tearDownClass (eSDK.oeSDKExtSelfTest)
FileNotFoundError: [Errno 2] No such file or directory: 'bitbake.sock'

which is due to bitbake taking a small amount of time to shut down the server.
The easiest fix is just to ignore these kinds of errors, bitbake shouldn't create
any new files during shutdown.

(From OE-Core rev: 68009f4eb323e07cec8c4421d546bd3125dec033)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorecipetool: Setup logging before calling prepare
Richard Purdie [Wed, 19 Jul 2017 13:45:01 +0000 (14:45 +0100)] 
recipetool: Setup logging before calling prepare

This avoids test failures like:

======================================================================
ERROR [0.946s]: test_recipetool_load_plugin (recipetool.RecipetoolTests)
INFO - ----------------------------------------------------------------------
INFO - Traceback (most recent call last):
  File "/media/build1/poky/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f
    return func(*args, **kwargs)
  File "/media/build1/poky/meta/lib/oeqa/selftest/cases/recipetool.py", line 514, in test_recipetool_load_plugin
    with open(srcfile) as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'NOTE: Starting bitbake server...\n/media/build1/poky/meta-selftest/lib/recipetool/bbpath.py'
INFO - ----------------------------------------------------------------------

which comes from:

$ recipetool --quiet pluginfile
NOTE: Starting bitbake server...
/media/build1/poky/meta-selftest/lib/recipetool/bbpath.py

since there is corruption in the output despite the --quiet option. Setting
the logging up before calling tinfoil.prepare() resolves this.

(From OE-Core rev: e124eb73e6a66abbf43dffd82b834e906163614b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: Setup logging before calling prepare
Richard Purdie [Wed, 19 Jul 2017 14:18:44 +0000 (15:18 +0100)] 
devtool: Setup logging before calling prepare

This avoids test failures like:

INFO - ======================================================================
INFO - FAIL [1.755s]: test_devtool_layer_plugins (devtool.DevtoolTests)
INFO - ----------------------------------------------------------------------
INFO - Traceback (most recent call last):
  File "/media/build1/poky/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f
    return func(*args, **kwargs)
  File "/media/build1/poky/meta/lib/oeqa/selftest/cases/devtool.py", line 1354, in test_devtool_layer_plugins
    self.assertEqual(result.output, s[::-1])
AssertionError: "NOTE: Starting bitbake server...\noY senu[36 chars]rciM" != "oY senuZ s'enoynA morF tiforP oN edaM tfosorciM"
- NOTE: Starting bitbake server...
  oY senuZ s'enoynA morF tiforP oN edaM tfosorciM
INFO - ----------------------------------------------------------------------

since there is corruption in the output. Setting the logging up before
calling tinfoil.prepare() resolves this.

(From OE-Core rev: 3c479fb17ae4d3e7e5f0889af0f68257ef66475c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-pkgdata-util: Setup logging before calling prepare
Richard Purdie [Wed, 19 Jul 2017 14:24:39 +0000 (15:24 +0100)] 
oe-pkgdata-util: Setup logging before calling prepare

This avoids test failures like:

INFO - ======================================================================
INFO - FAIL [1.046s]: test_find_path (pkgdata.OePkgdataUtilTests)
INFO - ----------------------------------------------------------------------
INFO - Traceback (most recent call last):
  File "/media/build1/poky/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f
    return func(*args, **kwargs)
  File "/media/build1/poky/meta/lib/oeqa/selftest/cases/pkgdata.py", line 50, in test_find_path
    self.assertEqual(result.output, 'zlib: /lib/libz.so.1')
AssertionError: 'NOTE: Starting bitbake server...\nzlib: /lib/libz.so.1' != 'zlib: /lib/libz.so.1'
- NOTE: Starting bitbake server...
  zlib: /lib/libz.so.1
INFO - ----------------------------------------------------------------------

since there is corruption in the output. Setting the logging up before
calling tinfoil.prepare() resolves this.

(From OE-Core rev: 39c1bf1feccc8dca57160a1e3cd8a50e8c30ef02)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorecipetool: create: refactor code for ensuring npm is available
Paul Eggleton [Thu, 20 Jul 2017 14:48:13 +0000 (16:48 +0200)] 
recipetool: create: refactor code for ensuring npm is available

Across devtool and recipetool we had an ugly set of code for ensuring
that we can call an npm binary, and much of that ugliness was a result
of not being able to run build tasks when tinfoil was active - if
recipetool found that npm was required and we didn't know beforehand
(e.g. we're fetching from a plain git repository as opposed to an npm://
URL where it's obvious) then it had to exit and return a special result
code, so that devtool knew it needed to build nodejs-native and then
call recipetool again. Now that we are using real build tasks to fetch
and unpack, we can drop most of this and move the code to the one place
where it's still needed (i.e. create_npm where we potentially have to
deal with node.js code in a plain source repository).

(From OE-Core rev: 8450de16ddb02d863204b411a94c6d84e0f88817)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/base: set do_unpack dependencies for rpm files
Paul Eggleton [Thu, 20 Jul 2017 14:48:12 +0000 (16:48 +0200)] 
classes/base: set do_unpack dependencies for rpm files

If we're unpacking any rpm (not just .src.rpm) then we'll need to call
rpm2cpio.sh. As of OE-Core rev a7da1aade118d1ccf1b286f82556cd9f706bd2a4
that script no longer uses file-native, but there is a chance that the
rpm file will be compressed internally using xz (for example, rpms from
Fedora) and therefore the script will need xzcat provided xz-native.

(From OE-Core rev: 2f31f1795bc0c85b1646bc7d9596bbe778cb84e5)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorecipetool: create: reimplement fetching with normal fetch/unpack tasks
Paul Eggleton [Thu, 20 Jul 2017 14:48:11 +0000 (16:48 +0200)] 
recipetool: create: reimplement fetching with normal fetch/unpack tasks

Now that we have the ability to run the tasks in a more standard context
through tinfoil, change recipetool's fetching code to use that to fetch
files using it. This has the major advantage that any dependencies of
do_fetch and do_unpack (e.g. for subversion or npm) will be handled
automatically. This also has the beneficial side-effect of fixing a
recent regression that prevented this fetch operation from working with
memory resident bitbake.

Also fix devtool's usage of fetch_uri() at the same time so that we can
completely replace it.

Fixes [YOCTO #11710].

(From OE-Core rev: 9a47a6690052ef943c0d4760630ee630fb012153)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorecipetool: create: eliminate second fetch for packages
Paul Eggleton [Thu, 20 Jul 2017 14:48:10 +0000 (16:48 +0200)] 
recipetool: create: eliminate second fetch for packages

When dealing with package files (.rpm, .ipk etc.) we need to unpack them
ourselves to get the metadata, which is thrown away when the fetcher
unpacks them. However, since we've already fetched the file once, I'm
not sure as to why I thought I needed to fetch it again - we can just
get the local path and then unpack it directly.

(From OE-Core rev: be45e9b17e9dbc8c2594d3a939be377ab0720a7c)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorecipetool: create: ensure meaningful error for malformed tarballs
Paul Eggleton [Thu, 20 Jul 2017 14:48:09 +0000 (16:48 +0200)] 
recipetool: create: ensure meaningful error for malformed tarballs

If you pointed recipetool at a URL that should be a tarball e.g.
https://tls.mbed.org/download/start/mbedtls-2.4.2-apache.tgz but instead
it returns an HTML page, we try to unpack it, gzip complains but the
operation doesn't seem to fail - instead we just get back an empty
source tree. Change the checks to account for this - if the source tree
is empty, check if the downloaded file in DL_DIR looks like an HTML file
and error accordingly if it is. If it's not, error out anyway because
no source was unpacked and it should have been (otherwise we just
blindly set up EXTERNALSRC for this which is pointless).

Fixes an aspect of [YOCTO #11407].

(From OE-Core rev: 8496113b63d5a5d1f99056610c0fdb972a6200d4)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: extract: refactor kern-tools-native handling
Paul Eggleton [Thu, 20 Jul 2017 14:48:08 +0000 (16:48 +0200)] 
devtool: extract: refactor kern-tools-native handling

When extracting linux-yocto kernel source, we don't need to dance around
shutting down and starting up tinfoil anymore, we can just execute the
tasks as needed when needed using tinfoil's new build_targets()
function. This allows us to tidy up the code structure a bit.

(From OE-Core rev: 5c7f5031023fb74b5f2f26d6b3c829981f2f54d2)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/staging: change fixme debug message from note to debug
Paul Eggleton [Thu, 20 Jul 2017 14:48:07 +0000 (16:48 +0200)] 
classes/staging: change fixme debug message from note to debug

These messages were added for debugging during the recipe specific
sysroot work. They may still be useful but they don't need to be notes -
if they are they show up in recipetool / devtool output when fetching
source.

(From OE-Core rev: a0e93d5c5dcf59d1898a3db727a5ab2d75e3d20e)

(From OE-Core rev: bc1a4af950a2600028d89b7dcb4ff8f409b52739)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-init-build-env-memres: Drop it
Richard Purdie [Tue, 18 Jul 2017 21:52:07 +0000 (22:52 +0100)] 
oe-init-build-env-memres: Drop it

With the new server structure we no longer need this separate
environment init script. Just set BB_SERVER_TIMEOUT to be greater
than zero and bitbake will remain in memory and the UI will auto-reconnect
to it.

Also clean out the old shutdown code from oe-init-build-env which
also doesn't make sense now.

(From OE-Core rev: a17724d687f9c04dc21f2f369da2b492f7119ba0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoconf/sanity: Update minimum bitbake verison to 1.35.0 for server rework
Richard Purdie [Fri, 21 Jul 2017 07:44:04 +0000 (08:44 +0100)] 
conf/sanity: Update minimum bitbake verison to 1.35.0 for server rework

(From OE-Core rev: b63fcffe8b6a3f94d4812cd03fb974e173eff3e5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: fetch2: fire an event when there are missing checksums
Paul Eggleton [Wed, 19 Jul 2017 09:56:11 +0000 (11:56 +0200)] 
bitbake: fetch2: fire an event when there are missing checksums

If BB_STRICT_CHECKSUMS is set to anything other than "1" i.e. we're not
going to raise an error, then fire an event so that scripts can listen
for it and get the checksums.

(Bitbake rev: 8b2ccb4b865f2df118ef668847df682a83f9c500)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: fetch2: allow hiding checksum warning
Paul Eggleton [Wed, 19 Jul 2017 09:56:10 +0000 (11:56 +0200)] 
bitbake: fetch2: allow hiding checksum warning

If BB_STRICT_CHECKSUMS is set to "ignore" then don't display a warning
if no checksums are specified in the recipe. This is not intended to be
used from recipes - it is needed when we move to using more standard
code paths to fetch new files from scripts i.e. where we don't know what
the checksums are in advance.

(Bitbake rev: f15ca7339de8a448a93a14cf6130b3925178a920)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: tinfoil: add more doc comments
Paul Eggleton [Wed, 19 Jul 2017 09:56:09 +0000 (11:56 +0200)] 
bitbake: tinfoil: add more doc comments

We want this API to be easier to use, so add missing function
documentation to help with that.

(Bitbake rev: 3e0e002d6497caa987f327cd83ad4db82cca6810)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: tinfoil: add simple API for getting cached recipe information
Paul Eggleton [Wed, 19 Jul 2017 09:56:08 +0000 (11:56 +0200)] 
bitbake: tinfoil: add simple API for getting cached recipe information

A common task for tinfoil-using scripts is to iterate over all recipes.
This isn't too difficult with the current API, but the pkg_* variables
are a little awkward and are really designed for bitbake's internal
usage - and it gets a bit more difficult when you want to access some of
the other information such as packages and rprovides. To resolve this,
create a new recipe info class and add an all_recipes() function to
generate this for all recipes. Also add a get_recipe_info() function to
get the information for a specific recipe (by PN).

(It might perhaps be suggested that we already have a structure similar
to this in the cache, however the one we add here is designed for
external use and allows the internal structures to change if needed
without affecting the API).

(Bitbake rev: 308994028e59735ca726c5d2c1f0f85baccfe89d)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: tinfoil: enable access to additional cached items
Paul Eggleton [Wed, 19 Jul 2017 09:56:07 +0000 (11:56 +0200)] 
bitbake: tinfoil: enable access to additional cached items

Add access to fn_provides, packages, packages_dynamic and rproviders on
the recipecache object. This requires an additional corresponding
command plumbing to be added.

(Bitbake rev: 3df9b7c615174a6557581f3cd157842a28f6bb26)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: tinfoil: add functionality for running full builds
Paul Eggleton [Wed, 19 Jul 2017 09:56:06 +0000 (11:56 +0200)] 
bitbake: tinfoil: add functionality for running full builds

Up to this point, if you wanted to run build tasks in the normal way
they get run from a python script, there was no other way than to shell
out to bitbake. Worse than that, you couldn't have tinfoil active during
that because only one bitbake instance could be running at once. As long
as we're prepared to handle the events produced, we can create a wrapper
around calling the buildTargets command. Borrow code from knotty to do
this in such a way that we get the expected running task display
(courtesy of TermFilter) and Ctrl+C handling.

(Bitbake rev: 43761eee756be52a1021be53a40dc591a6c35fa7)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: knotty: make it possible to use termfilter without either console
Paul Eggleton [Wed, 19 Jul 2017 09:56:05 +0000 (11:56 +0200)] 
bitbake: knotty: make it possible to use termfilter without either console

This isn't useful for knotty itself, but for use from tinfoil
in case we can't get access to either the console or errconsole, allow
either to be unspecified (None).

(Bitbake rev: 7544de437fc66b81502ecdb5db859182c45827cb)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: lib/bb/ui/uihelper: indicate to caller of eventHandler() if events handled
Paul Eggleton [Wed, 19 Jul 2017 09:56:04 +0000 (11:56 +0200)] 
bitbake: lib/bb/ui/uihelper: indicate to caller of eventHandler() if events handled

It is useful for the caller to know whether the uihelper has handled the
event passed so that it can skip other event handling code if so.

(Bitbake rev: be498abfbbb19bdd31e5b53713a74049007e3737)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: lib/bb/event: refactor printing events
Paul Eggleton [Wed, 19 Jul 2017 09:56:03 +0000 (11:56 +0200)] 
bitbake: lib/bb/event: refactor printing events

We really ought to have just one place where the string representation
of these events is produced. This doesn't take any real control away
from the UI - if an alternative representation is desired, that can
still be made.

(Bitbake rev: cb15db2a799be6d8eab9a2a43a9a573f89229cff)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: tinfoil: set a flag when recipes have been parsed
Paul Eggleton [Wed, 19 Jul 2017 09:56:02 +0000 (11:56 +0200)] 
bitbake: tinfoil: set a flag when recipes have been parsed

Make it easy to determine if recipes are parsed (and thus information
about available recipes is in memory).

(Bitbake rev: 7efde2df2ff25063d36ac015146f1975284a69ff)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: tinfoil: add a parse_recipes() function
Paul Eggleton [Wed, 19 Jul 2017 09:56:01 +0000 (11:56 +0200)] 
bitbake: tinfoil: add a parse_recipes() function

Python style recommends underscore based naming rather than camelCase,
and thus the former has been used for most of tinfoil's functions. Add
an underscored version of parseRecipes() for consistency and change the
one place we call it to use the new version.

(Bitbake rev: 821f6c41d850752d2bcc2ccd4f8e75b2897a0a3e)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: tinfoil: add internal mode to build_file() function
Paul Eggleton [Wed, 19 Jul 2017 09:56:00 +0000 (11:56 +0200)] 
bitbake: tinfoil: add internal mode to build_file() function

In OE's devtool we want to repeatedly run build_file() without showing
unnecessary messages and triggering buildhistory for each call.
build_file() is just a wrapper around the buildFile command. Change
the final "hidewarning" parameter of the buildFile command to "internal"
and have this call a new buildFileInternal() function without triggering
any of the normal build events, silencing the normal info messages from
the runqueue ("Executing RunQueue Tasks", "Tasks Summary" etc.) and
avoiding calling parseConfiguration() which we've already done at this
point.

(Bitbake rev: ba53e067a2d448dd63b4ca252557ce98aa8e6321)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bb/main.py: fix logic for --observe-only
Robert Yang [Mon, 17 Jul 2017 10:17:03 +0000 (03:17 -0700)] 
bitbake: bb/main.py: fix logic for --observe-only

Fixed:
$ bitbake --observe-only
FATAL: '--observe-only' can only be used by UI clients connecting to a server.

And even:
$bitbake --observe-only -B localhost:-1
FATAL: '--observe-only' can only be used by UI clients connecting to a server.

This was beucase the brackets were in a wrong position.

(Bitbake rev: 4ffc91a2b3eb13e98078e6b1913f056a0c1797bc)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bb/main.py: avoid starting server when not needed
Robert Yang [Mon, 17 Jul 2017 08:27:14 +0000 (01:27 -0700)] 
bitbake: bb/main.py: avoid starting server when not needed

Fixed 1:
$ . ../poky/oe-init-build-env-memres .
$ bitbake -m
$ bitbake -m # shutdown it again
$ bitbake -m
Starting bitbake server...
Terminated bitbake server.

It starts the server and kill it which is redundant.

$ bitbake -m
$ bitbake --status-only
Starting bitbake server...

It starts the server which is not what we need.

(Bitbake rev: 335fd0106359dddfe1eeb0c7d0bc03f8454b895c)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bb/main.py: fix infinite loop for --server-only
Robert Yang [Fri, 14 Jul 2017 09:58:12 +0000 (02:58 -0700)] 
bitbake: bb/main.py: fix infinite loop for --server-only

Fixed:
$ bitbake --server-only -B localhost:-1
Infinite loop
Reconnecting to bitbake server...
[snip]

Break the loop when server-only can fix the problem.

(Bitbake rev: c4d5c3dab5b35f3c6713efad1c8a23229ce4e56b)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: server/process.py: fix self.bitbake_lock.write()
Robert Yang [Fri, 14 Jul 2017 09:52:03 +0000 (02:52 -0700)] 
bitbake: server/process.py: fix self.bitbake_lock.write()

There is no global var "configuration", so the old code hang at
self.bitbake_lock.write(), and nothing wrote to bitbake.lock. I didn't
figure out why it hang (but not print errors).

Reproducer:
$ bitbake -B localhost:-1 world -k

Check bitbake.log, there was nothing, now fixed.

(Bitbake rev: dbdd9010663cd8dcb328e1b6fb40e3a777293bc5)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: cookerdata/cooker: Restore original datastore upon client disconnect
Richard Purdie [Tue, 18 Jul 2017 16:50:24 +0000 (17:50 +0100)] 
bitbake: cookerdata/cooker: Restore original datastore upon client disconnect

(Bitbake rev: 67ae612ab890965357d24a9bd35610cf813b79ba)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: server: Rework the server API so process and xmlrpc servers coexist
Richard Purdie [Tue, 18 Jul 2017 21:28:40 +0000 (22:28 +0100)] 
bitbake: server: Rework the server API so process and xmlrpc servers coexist

This changes the way bitbake server works quite radically. Now, the
server is always a process based server with the option of starting
an XMLRPC listener on a specific inferface/port.

Behind the scenes this is done with a "bitbake.sock" file alongside
the bitbake.lock file. If we can obtain the lock, we know we need
to start a server. The server always listens on the socket and UIs
can then connect to this. UIs connect by sending a set of three file
descriptors over the domain socket, one for sending commands, one for
receiving command results and the other for receiving events.

These changes meant we can throw away all the horrid server abstraction
code, the plugable transport option to bitbake and the code becomes
much more readable and debuggable. It also likely removes a ton of
ways you could hang the UI/cooker in weird ways due to all the race
conditions that existed with previous processes.

Changes:

 * The foreground option for bitbake-server was dropped. Just tail
   the log if you really want this, the codepaths were complicated enough
   without adding one for this.
 * BBSERVER="autodetect" was dropped. The server will autostart and
   autoconnect in process mode. You have to specify an xmlrpc server
   address since that can't be autodetected. I can't see a use case
   for autodetect now.
 * The transport/servetype option to bitbake was dropped.
 * A BB_SERVER_TIMEOUT variable is added which allows the server
   to stay resident for a period of time after the last client
   disconnects before unloading. This is used if the -T/--idle-timeout
   option is not passed to bitbake.

This change is invasive and may well introduce new issues however I
believe the codebase is in a much better position for further
development and debugging.

(Bitbake rev: 72a3dbe13a23588e24c0baca6d58c35cdeba3f63)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: daemonize: Various fixes
Richard Purdie [Tue, 18 Jul 2017 21:22:12 +0000 (22:22 +0100)] 
bitbake: daemonize: Various fixes

Currently if this code is used with something like oeqa's xml logging
it fails as sys.stdout is an io stream. Add in try/except to handle
this case.

Add a waitpid() call to remove a zombie whilst forking.

Also, append to the logfile, don't overwrite it (otherwise
debugging can be a real pain when the server is restarting for
unknown reasons).

(Bitbake rev: 4e780fa19fc720948cf73133f56f7d837ad9283a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: cookerdata: Add a function to find TOPDIR
Richard Purdie [Tue, 18 Jul 2017 21:18:53 +0000 (22:18 +0100)] 
bitbake: cookerdata: Add a function to find TOPDIR

Finding the top level build directory is currently hard and relies on
having a complete cooker being setup. Add a helper function which
does the same thing without all the extra overhead. This is needed
to be able to locate the bitbake lockfile and hence the socket
for connecting clients in the new server model.

(Bitbake rev: d196afe68032898c31a8599ca7d3ceba58d96b0a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: server: Remove base classes and inline code
Richard Purdie [Tue, 18 Jul 2017 21:15:17 +0000 (22:15 +0100)] 
bitbake: server: Remove base classes and inline code

In preparation for rewriting this code, expand the relatively useless
base classes into the code itself.

(Bitbake rev: a1c6151420d86bac658c08ae714647062edd6ef2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: event/command: Allow UI to request the UI eventhander ID
Richard Purdie [Tue, 18 Jul 2017 21:01:15 +0000 (22:01 +0100)] 
bitbake: event/command: Allow UI to request the UI eventhander ID

The UI may want to change its event mask however to do this, it needs the
event handler's ID. Tweak the code to allow this to be stored and add
a command to query it.

Use the new command in the process server backend.

(Bitbake rev: f8cf2cb58b80ce74f756a11a9773b6b0e78d51ee)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto: Update genericx86* SRCREVs for linux-yocto 4.9
Alejandro Hernandez [Tue, 18 Jul 2017 16:24:35 +0000 (09:24 -0700)] 
linux-yocto: Update genericx86* SRCREVs for linux-yocto 4.9

Upgrades to Linux 4.9.36

(From meta-yocto rev: f99882d06f69d828fd2070a22f091065e8ca06d0)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto: Update genericx86* SRCREVs for linux-yocto 4.4
Alejandro Hernandez [Tue, 18 Jul 2017 16:24:34 +0000 (09:24 -0700)] 
linux-yocto: Update genericx86* SRCREVs for linux-yocto 4.4

Upgrades to Linux 4.4.76

(From meta-yocto rev: 96c1eb3de2ec9f7731d2c134b5b85b4db81c1da7)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto: Update genericx86* SRCREVs for linux-yocto 4.1
Alejandro Hernandez [Tue, 18 Jul 2017 16:24:33 +0000 (09:24 -0700)] 
linux-yocto: Update genericx86* SRCREVs for linux-yocto 4.1

Upgrades to Linux 4.1.42

(From meta-yocto rev: f328f98de4578a0182bdd84d69dc924521c71488)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agometa-yocto-bsp: bump to the latest linux stable kernel for the non-x86 BSPs
Kevin Hao [Mon, 17 Jul 2017 05:55:56 +0000 (13:55 +0800)] 
meta-yocto-bsp: bump to the latest linux stable kernel for the non-x86 BSPs

Bump to the latest stable kernel for 4.1, 4,4 and 4.9.

(From meta-yocto rev: 41128b3640e5733e62cb633f7a3ce704dff6a4f2)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibgcrypt: upgrade to 1.7.8
Ross Burton [Wed, 19 Jul 2017 13:25:53 +0000 (14:25 +0100)] 
libgcrypt: upgrade to 1.7.8

Fixes CVE-2017-7526, 'flush+reload side-channel attack on RSA secret keys dubbed
"Sliding right into disaster"'.

(From OE-Core rev: c4c2fb3732dbb290b7f0ca43af2e8662f99e4582)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibgcrypt: merge bb and inc file
Ross Burton [Wed, 19 Jul 2017 13:25:52 +0000 (14:25 +0100)] 
libgcrypt: merge bb and inc file

(From OE-Core rev: 4b48c0afdf24c4fc71479893c262b5f35d8c188a)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd: refuse to load units with errors (CVE-2017-1000082)
Ross Burton [Tue, 18 Jul 2017 16:04:08 +0000 (17:04 +0100)] 
systemd: refuse to load units with errors (CVE-2017-1000082)

If a unit has a statement such as User=0day where the username exists but is
strictly speaking invalid, the unit will be started as the root user instead.

Backport a patch from upstream to mitigate this by refusing to start units such
as this.

(From OE-Core rev: 549cb941c5b19909fb00f2bef9c04172ca1c162d)

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