]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
7 years agolibxml2-ptest: set LC_ALL=en_US.UTF-8
Juro Bystricky [Mon, 25 Sep 2017 23:33:46 +0000 (16:33 -0700)] 
libxml2-ptest: set LC_ALL=en_US.UTF-8

We need to specify UTF-8 in the environment to avoid an error
such as:

UnicodeEncodeError: 'ascii' codec can't encode character '\xe4'

(From OE-Core rev: d7f1fe6c8419b8c59e601c56245373d094cae298)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibxml2-ptest: support for encoding ISO-8859-5
Juro Bystricky [Mon, 25 Sep 2017 23:33:45 +0000 (16:33 -0700)] 
libxml2-ptest: support for encoding ISO-8859-5

This fixes the error:

./test/errors/759398.xml:1: parser error : Unsupported encoding ISO-8859-5
<?xml version='1.0' encoding='ISO-8859-5' standalone='no'?>
                                         ^
./test/errors/759398.xml : failed to parse
FAIL: Error cases stream regression tests

(From OE-Core rev: 01257f43e024b49196cb756501b098193d1f6085)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibxml2-ptest: improve reproducibility
Juro Bystricky [Mon, 25 Sep 2017 23:33:44 +0000 (16:33 -0700)] 
libxml2-ptest: improve reproducibility

Remove various build host references from libxml-ptest package.

[YOCTO #11997]

(From OE-Core rev: c2b53ec8d15b97da73353623c0cfe287f74992bf)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooe-pkgdata-util: add unescape option to read-value
Ross Burton [Wed, 4 Oct 2017 13:12:41 +0000 (14:12 +0100)] 
oe-pkgdata-util: add unescape option to read-value

Some fields are multiline values which have been escaped, so add an option to
unescape the \n and \t.

(From OE-Core rev: 4165ec0057c6bbb24de681572034262351d9b34f)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agositeinfo: nios2-linux - remove wrong mutex info
Juro Bystricky [Tue, 3 Oct 2017 21:54:12 +0000 (14:54 -0700)] 
siteinfo: nios2-linux - remove wrong mutex info

With the commit afa9f769d62034d4443dfe929422d1d591adf709 some nios2 builds
(uboot, core-image-minimal, etc) were broken due to db trying to use ARM instructions
in mutexes. The reason was db "configure" used the cached entry from nios2-linux
(which was incorrect). So the remedy was to remove the incorrect cached entry
and let db "configure" figure out which is the proper mutex to use.

(From OE-Core rev: c17c6ba906425d4035b8e044c8bd8bd68c47ef74)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoargp-standalone: drop RDEPENDS dev/staticdev packages on main package
Ming Liu [Thu, 5 Oct 2017 14:23:02 +0000 (16:23 +0200)] 
argp-standalone: drop RDEPENDS dev/staticdev packages on main package

This ensures argp-standalone-staticdev package could be installed
correctly(without depending on the empty argp-standalone package) if
it's being required during SDK population.

(From OE-Core rev: 6d13c09fb57e13aa4aae590cd49cff7279c8685d)

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake.conf: Add 'id' to HOSTTOOLS
Otavio Salvador [Thu, 5 Oct 2017 18:21:35 +0000 (15:21 -0300)] 
bitbake.conf: Add 'id' to HOSTTOOLS

The 'id' utility is used in 'rootfs_check_host_user_contaminated'
rootfs-postcommand so it must be available.

(From OE-Core rev: 6c054925d5f80790aea4cce6f8f83edc7da623b9)

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>
7 years agopython-ptest: various fixes
Juro Bystricky [Thu, 5 Oct 2017 18:22:28 +0000 (11:22 -0700)] 
python-ptest: various fixes

python-ptest needs python-tests package installed in order to
run any tests.
This patch adds python-tests as a runtime dependency, so the test suite
will be present in the image.
While in there, also removed several build host references.

[YOCTO #12144]

(From OE-Core rev: ff83e15289e4b47cd3926220a0039bf97ec35120)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoutils.bbclass: Support applications with arguments in check_app_exist()
Nikolay Merinov [Thu, 5 Oct 2017 07:46:07 +0000 (12:46 +0500)] 
utils.bbclass: Support applications with arguments in check_app_exist()

check_app_exist function must support cases when "app" variable defined
as "progname --args". For example BUILD_CC="gcc -march=x86-64" must
pass sanity check.

(From OE-Core rev: 5193ebca0ca8864404fc750def0e738417d104c7)

Signed-off-by: Nikolay Merinov <n.merinov@inango-systems.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibarchive: re-add non-recursive extract and list support
Patrick Ohly [Thu, 5 Oct 2017 11:13:21 +0000 (13:13 +0200)] 
libarchive: re-add non-recursive extract and list support

This patch is needed for meta-swupd. Without it, some bsdtar
invocations fail with:
bsdtar: Option -n is not permitted in mode -x

The patch was removed in the update to 3.3.1 with the claim that it
had been merged upstream, but that is not the case.

(From OE-Core rev: 38c86302ebdf886b887165aff06560c63a1537b9)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agonspr, nss: Use BUILD_CC instead of hardcoded "gcc"
Nikolay Merinov [Thu, 5 Oct 2017 07:25:39 +0000 (12:25 +0500)] 
nspr, nss: Use BUILD_CC instead of hardcoded "gcc"

Recipes nspr_4.16.bb and nss_3.31.1.bb ignored BUILD_CC and it's
BUILD_CFLAGS and tried to compile with hardcoded "gcc" instead. As
result build for this recipes will fail if host use different name for
compiler or require any flags.

(From OE-Core rev: 79e3339ab9edacb9e34d3725305d5880a974364a)

Signed-off-by: Nikolay Merinov <n.merinov@inango-systems.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoglibc-locale.inc: fix typo in comment
Gianfranco Costamagna [Wed, 4 Oct 2017 21:12:46 +0000 (23:12 +0200)] 
glibc-locale.inc: fix typo in comment

(From OE-Core rev: 74ef87b31e33436e82f4985fa99b570726a5e564)

Signed-off-by: Gianfranco Costamagna <gianfranco.costamagna@abinsula.com>
Signed-off-by: Lorenzo Chianura <lorenzo.chianura@abinsula.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agostaging.bbclass: handle postinst-useradd-* fixmes
Mikko Ylinen [Tue, 3 Oct 2017 07:09:26 +0000 (10:09 +0300)] 
staging.bbclass: handle postinst-useradd-* fixmes

After 02457ef7f600ce954874e2d11e74b1c6daaa3bfc, PSEUDO for
postinst-useradd-* scripts get to use only one PSEUDO_LOCALSTATEDIR
which is set under recipes ${WORKDIR}.

When the those scripts are run in a clean build environment that
is built from the sstate (populate_sysroot_setscene run for
postinst-useradd-* providers), pseudo fails to run because it cannot
access the PSEUDO_LOCALSTATEDIR (recipe ${WORKDIR}s do not exist).
This triggers a sysroot staging error.

Previously, the PSEUDO_LOCALSTATEDIR setting in useradd.bbclass
worked because the RSS sstate/staging logic automagically processed
${STAGING_DIR_TARGET} in postinst-useradd-* scripts to point under
the sysroot being built.

The fix uses the same fixme processing by adding PSEUDO_LOCALSTATEDIR
variable to it. Furthermore, LOGFIFO is added to be able to use
the logging fifo of the recipe that actually runs postinst-useradd-*.

(From OE-Core rev: b28374cfad37db161b5ac5953b4a4638912f3f27)

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemd: drop unreferenced uclibc specific agetty -> getty patch
Andre McCurdy [Wed, 4 Oct 2017 01:43:32 +0000 (18:43 -0700)] 
systemd: drop unreferenced uclibc specific agetty -> getty patch

The patch is uclibc specific and reference to it was removed from the
systemd recipe in:

  http://git.openembedded.org/openembedded-core/commit/?id=653704e9cf325cb494eb23facca19e9f05132ffd

(From OE-Core rev: 6ce87fdadab73e8a928864515495bc4ab3401577)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemd: drop uclibc specific exp10 support patch
Andre McCurdy [Tue, 3 Oct 2017 01:03:04 +0000 (18:03 -0700)] 
systemd: drop uclibc specific exp10 support patch

This patch is clearly uclibc specific and appears to have been
inadvertently left behind during the recent purging of uclibc
specific patches from oe-core:

  http://git.openembedded.org/openembedded-core/commit/?id=e01e7c543a559c8926d72159b5cd55db0c661434

(From OE-Core rev: 655f0e5830ff883843d44d38de3aea4c4134c903)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolttng-modules: Backport fixes for kernel instrumentation
Otavio Salvador [Tue, 26 Sep 2017 20:43:55 +0000 (17:43 -0300)] 
lttng-modules: Backport fixes for kernel instrumentation

This backport fixes from upcoming 2.9.4 release. Those are:

 - Fix: vmalloc wrapper on kernel < 2.6.38
 - Fix: vmalloc wrapper on kernel >= 4.12
 - Add kmalloc failover to vmalloc
 - Fix: mmap: caches aliased on virtual addresses
 - Fix: update ext4 instrumentation for kernel 4.13
 - Fix: Sleeping function called from invalid context
 - Fix: sched for v4.11.5-rt1
 - Fix: handle missing ftrace header on v4.12

This fix failures in some BSP layers which are using Linux 4.13
already.

(From OE-Core rev: 45ab93e74252f40dbe777000e1b33f4b3783536e)

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>
7 years agoimage_types: Fix bmaptool support for RSS
Tom Rini [Fri, 29 Sep 2017 14:28:19 +0000 (10:28 -0400)] 
image_types: Fix bmaptool support for RSS

With RSS we need to ensure that when making a bmap image that the
python3 that we created is found via /usr/bin/env rather than the host
python3.  Otherwise we're relying on the build host to have bmaptool
support installed.

(From OE-Core rev: a93c5869cb716cba5e05bbe4fc2e1c11adb9e30f)

Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolicense.py: Correct selection of licenses in is_included()
Peter Kjellerstedt [Fri, 29 Sep 2017 15:52:34 +0000 (17:52 +0200)] 
license.py: Correct selection of licenses in is_included()

When faced with multiple sets of licenses combined with | (OR), it was
possible for oe.license.is_included() to choose a set of licenses with
a blacklisted license and then report failure, even if choosing
another set of licenses would have resulted in a successful
result. This happened when the chosen set still contained more
whitelisted licenses than the other set.

This change makes sure a set with any blacklisted license is always
considered with a lower weight than a set with only whitelisted
licenses.

Example: Faced with the license string "GPL-3.0 & GPL-2.0 & LGPL-2.1 |
Proprietary" and with "GPL-3.0" being blacklisted, the old code would
report a failure since "GPL-3.0 & GPL-2.0 & LGPL-2.1" still contains
more whitelisted licenses than "Proprietary" does.

This change also adds a unit test for oe.license.is_included().

(From OE-Core rev: 312b4d6175e189852c0787ca2fe99b99ce92d1bd)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackagegroup-go-sdk-target: inherit goarch
Joe Slater [Fri, 29 Sep 2017 20:44:43 +0000 (13:44 -0700)] 
packagegroup-go-sdk-target: inherit goarch

The RDEPENDs will not be satisfied for certain architectures,
so skip the recipe in those cases.

(From OE-Core rev: 50cfc0d7118c747726445a9be7bc4c496dbb8248)

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo-runtime: prevent host leakage into target objects
Matt Madison [Wed, 4 Oct 2017 18:21:52 +0000 (18:21 +0000)] 
go-runtime: prevent host leakage into target objects

When building for a target whose architecture matches
the build host's, the second pass through make.bash
to build the shareable runtime would also overwrite
the target's static cgo library with host-compatibile
binaries.

Fix this by running the host-side build once and
target-only passes of make.bash twice, for static
and shareable.  This ensures that what gets installed
is target-compatible.

Also fix an issue with x86-64 targets running MUSL by
removing the pre-built (for glibc) objects for the
race detector runtime before building.

[YOCTO #12136]

(From OE-Core rev: 070f4af529c84a3c8c0b1ffc7b138bdd9e8439b7)

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogoarch.bbclass: rework mips architecture checks
Matt Madison [Thu, 28 Sep 2017 17:34:42 +0000 (10:34 -0700)] 
goarch.bbclass: rework mips architecture checks

Remove the TUNE_FEATURES references from go_map_arch,
to avoid an unwanted variable dependency.  Direct
comparisons of the architecture name are sufficient
for covering what Go currently supports, and using
TUNE_CCARGS_remove adequately handles the conflict
with the cgo-supplied flags for mips.

(From OE-Core rev: 1bc4c1d880096083d1891a74024fb225a6340b9b)

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agocml1: remove diffconfig return code checking
Bruce Ashfield [Thu, 28 Sep 2017 15:59:09 +0000 (11:59 -0400)] 
cml1: remove diffconfig return code checking

The following commit:

[
  commit 578c8205fd14c48c6d30ef2889d86f1b4aee060a
  Author: Mikko Rapeli <mikko.rapeli@bmw.de>
  Date:   Thu Jun 22 16:23:14 2017 +0300

      meta: Fix return value checks from subprocess.call()'s

      Python function subprocess.call() returns the return value of the
      executed process. If return values are not checked, errors may
      go unnoticed and bad things can happen.

      Change all callers of subprocess.call() which do not check for
      the return value to use subprocess.check_call() which raises
      CalledProcessError if the subprocess returns with non-zero value.

      https://docs.python.org/2/library/subprocess.html#using-the-subprocess-module

      All users of the function were found with:

      $ git grep "subprocess\.call" | \
            egrep -v 'if.*subprocess\.call|=\
            +subprocess\.call|return.*subprocess\.call'

      Tested similar patch on top of yocto jethro. Only compile tested
      core-image-minimal on poky master branch.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
]

Added return code checking to do_diffconfig. Although the change is
well intentioned, it isn't correct in this instance since 'diff' returns
'1' to indicate that there are differences in the files .. and not as
an error code.

subprocess.check_call() flags this as an error and the routine aborts.

We are already checking the inputs, and in fact already know there's a
diff in the files before we even make the call, so there's no need to
look for an error in this case.

Putting back subprocess.call() restores the routine to working order.

[YOCTO #12132]

(From OE-Core rev: ec48b8fd79181978f90b4b0ab00fbe78ddbd416e)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoopenssh: Atomically generate host keys
Joshua Watt [Thu, 28 Sep 2017 13:40:01 +0000 (08:40 -0500)] 
openssh: Atomically generate host keys

Generating the host keys atomically prevents power interruptions during the
first boot from leaving the key files incomplete, which often prevents users
from being able to ssh into the device.

[YOCTO #11671]

(From OE-Core rev: 221b40f1f08ee23511ba078a1efd01686922e932)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibarchive: CVE-2017-14502
Zhixiong Chi [Thu, 28 Sep 2017 08:06:05 +0000 (16:06 +0800)] 
libarchive: CVE-2017-14502

read_header in archive_read_support_format_rar.c suffers from an
off-by-one error for UTF-16 names in RAR archives, leading to an
out-of-bounds read in archive_read_format_rar_read_header.
Backport the patch from
https://github.com/libarchive/libarchive/commit
commit 5562545b5562f6d12a4ef991fae158bf4ccf92b6

CVE: CVE-2017-14502

(From OE-Core rev: 0bedb69abff85cc07ad4a54eed41d15d0a38c080)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemd: add runtime dependencies to pam plugins.
andreas.kling@peiker-cee.de [Wed, 27 Sep 2017 09:40:14 +0000 (11:40 +0200)] 
systemd: add runtime dependencies to pam plugins.

(From OE-Core rev: e1bbca2b6d2edbea0939cbeafe6e74c1d4c59a25)

Signed-off-by: Andy Kling <andreas.kling@peiker-cee.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_manager: rpm: improve logging
Mikko Ylinen [Wed, 27 Sep 2017 08:08:15 +0000 (11:08 +0300)] 
package_manager: rpm: improve logging

To be able to better debug remove() behaviour, add more logging
to rpm calls via bb.note(). The change also makes remove() logging
more consistent with other package managers' remove() (e.g., opkg).

(From OE-Core rev: 1a90c97616698050529e169a83e6f07a255687df)

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorootfs.py: remove update-alternatives correctly
Mikko Ylinen [Wed, 27 Sep 2017 08:08:14 +0000 (11:08 +0300)] 
rootfs.py: remove update-alternatives correctly

With "read-only-rootfs" in IMAGE_FEATURES, packages in ROOTFS_RO_UNNEEDED
are removed when building the rootfs. The list of packages to remove is
passed to the package manager and the list is sorted so that
update-alternatives provider is the last entry. This is with the
assumption that the last entry on the list/command line is removed last.

However, it turns out rpm does not care about "last on the command
line" and update-alternatives provider is removed before other the
packages get to run their %preun scripts for update-alternatives.

This leaves broken alternative symlinks in rootfs.

The fix is to first remove all but update-alternatives provider and
after that update-alternatives provider in its own remove() call.

(From OE-Core rev: 0a8639593c11ef0cfb3a3a514b17e36318b8e8f2)

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-firmware: package Broadcom BCM43362 firmware
Tomas Novotny [Tue, 26 Sep 2017 16:00:41 +0000 (18:00 +0200)] 
linux-firmware: package Broadcom BCM43362 firmware

(From OE-Core rev: e013cff66ec364738e5ccb085c1079507de66aaa)

Signed-off-by: Tomas Novotny <tomas@novotny.cz>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoffmpeg: backport patches to fix 12 CVEs
Chen Qi [Tue, 26 Sep 2017 07:43:24 +0000 (15:43 +0800)] 
ffmpeg: backport patches to fix 12 CVEs

Backport patches to fix the following CVEs.

CVE-2017-14054
CVE-2017-14055
CVE-2017-14056
CVE-2017-14057
CVE-2017-14058
CVE-2017-14059
CVE-2017-14169
CVE-2017-14170
CVE-2017-14171
CVE-2017-14222
CVE-2017-14223
CVE-2017-14225

(From OE-Core rev: 13862938a6a7a938f8d781655ceaf78a81b57549)

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>
7 years agoglib-2.0: Remove recommend shared-mime-info for MinGW
Alistair Francis [Mon, 25 Sep 2017 22:56:55 +0000 (15:56 -0700)] 
glib-2.0: Remove recommend shared-mime-info for MinGW

Commit glib-2.0: recommend shared-mime-info
(51e4f9ca5368af5cefa26f4ca50b282e858982f8) broke compilation when cross
compiling for Windows. This patch removes the recommendation for
shared-mime-info when using MinGW cross compile.

(From OE-Core rev: cc9d855660db27e82d1b37ab5d1820c556827635)

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Cc: Ross Burton <ross.burton@intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibparted: Use read only when probing devices on linux
Ovidiu Panait [Tue, 26 Sep 2017 09:00:46 +0000 (12:00 +0300)] 
libparted: Use read only when probing devices on linux

When a device is opened for RW closing it can trigger other actions,
like udev scanning it for partition changes. Use read only for the
init_* methods and RW for actual changes to the device.

This adds _device_open which takes mode flags as an argument and turns
linux_open into a wrapper for it with RW_MODE.

_device_open_ro is added to open the device with RD_MODE and increment
the open_counter. This is used in the init_* functions.

_device_close is a wrapper around linux_close that decrements the
open_counter and is used in the init_* functions.

All of these changes are self-contained with no external API changes.
The only visible change in behavior is that when a new PedDevice is
created the device is opened in RO_MODE instead of RW_MODE.

Resolves: rhbz#1245144

Reference:
https://bugzilla.redhat.com/show_bug.cgi?id=1283112

Upstream patch:
http://git.savannah.gnu.org/cgit/parted.git/commit/?id=44d5ae0115c4ecfe3158748309e9912c5aede92d

(From OE-Core rev: f68fca4776a38a1bdf7ed37ce87cddbb21ff74f8)

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoovmf: add SUMMARY and fix HOMEPAGE url
Leonardo Sandoval [Wed, 5 Jul 2017 15:57:36 +0000 (08:57 -0700)] 
ovmf: add SUMMARY and fix HOMEPAGE url

(From OE-Core rev: 23155b607c509b799775949774ad7da23c10b373)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoupdate-rc.d: Add HOMEPAGE info into recipe file.
Huang Qiyu [Tue, 26 Sep 2017 02:36:35 +0000 (10:36 +0800)] 
update-rc.d: Add HOMEPAGE info into recipe file.

(From OE-Core rev: addbf84b3d3d2caad54d2d11383937f2194197ac)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agostat: Add HOMEPAGE info into recipe file.
Huang Qiyu [Tue, 26 Sep 2017 02:36:34 +0000 (10:36 +0800)] 
stat: Add HOMEPAGE info into recipe file.

(From OE-Core rev: 9e65101eb308ee85d5ab43676423ce4b443f0bd1)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoprelink: Add HOMEPAGE info into recipe file.
Huang Qiyu [Tue, 26 Sep 2017 02:36:33 +0000 (10:36 +0800)] 
prelink: Add HOMEPAGE info into recipe file.

(From OE-Core rev: 8570a101b1befd988b75c577eb75b35398fe6993)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoat: Add HOMEPAGE info into recipe file.
Huang Qiyu [Tue, 26 Sep 2017 02:36:32 +0000 (10:36 +0800)] 
at: Add HOMEPAGE info into recipe file.

(From OE-Core rev: 81a1da9528d5d905635ea66691aff29a7249c48d)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoDocumenation: Updated "Usually October" to "October 2017" string
Scott Rifenbark [Thu, 5 Oct 2017 16:09:28 +0000 (09:09 -0700)] 
Documenation: Updated "Usually October" to "October 2017" string

The string in the manual revision table needed updated across the
set except for the kernel-dev manual.

(From yocto-docs rev: e087a707e02ff913baba2ac8bc6594206f53f70c)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Updated Metadata term in Terms section
Scott Rifenbark [Thu, 5 Oct 2017 15:25:25 +0000 (08:25 -0700)] 
ref-manual: Updated Metadata term in Terms section

Provided a description for metadata in the context of the kernel
that ties it to the yocto-kernel-cache Git repository rather
than the old meta-* directories that were in the actual
kernel trees.

(From yocto-docs rev: 7105459bf687cad7d973d8bdffbc51c9ffcd9721)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updated Title Page.
Scott Rifenbark [Thu, 5 Oct 2017 15:09:58 +0000 (08:09 -0700)] 
kernel-dev: Updated Title Page.

Using Scotty's Documentation Services, INC. and Scott Rifenbark
as the author.  Added a note in the note box to send an email to
the yocto@yoctoproject.org discussion group or log into the freenode

(From yocto-docs rev: 657ef0a09a72c023dd2ab523ff3c7ad1e7a2efea)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updated Tree Construction section with review feedback.
Scott Rifenbark [Thu, 5 Oct 2017 14:44:12 +0000 (07:44 -0700)] 
kernel-dev: Updated Tree Construction section with review feedback.

(From yocto-docs rev: c28b349a972d81d3b60bf1b0de48d837fbc76cdb)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Added KMACHINE and MACHINE descriptions for using metadata
Scott Rifenbark [Thu, 5 Oct 2017 14:13:55 +0000 (07:13 -0700)] 
kernel-dev: Added KMACHINE and MACHINE descriptions for using metadata

Needed to remove an old example that was showing how two BSPs could
share the same KMACHINE value.  I replaced it with corei7-based
machines.  Also noted that KMACHINE is for kernel mapping only
whereas MACHINE is for the layer's BSP machine type.

(From yocto-docs rev: c1dad2815b6fd1ed78e0dce0fecb422f342eaf14)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Removed note about KTYPE being optional in future.
Scott Rifenbark [Tue, 3 Oct 2017 22:36:48 +0000 (15:36 -0700)] 
kernel-dev: Removed note about KTYPE being optional in future.

(From yocto-docs rev: 2ecf347fe5b9f60d29a5624bab2f57a7278fa9ab)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updated what the manual covers to include appendices
Scott Rifenbark [Tue, 3 Oct 2017 22:36:26 +0000 (15:36 -0700)] 
kernel-dev: Updated what the manual covers to include appendices

(From yocto-docs rev: 1782241165aa09ab3d3ecf66a91a355555f5f42b)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updated lists for formatting consistency
Scott Rifenbark [Tue, 3 Oct 2017 21:36:50 +0000 (14:36 -0700)] 
kernel-dev: Updated lists for formatting consistency

(From yocto-docs rev: 7fe10c067219eccdbfd8d99223cdb38b84d7d2a5)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updates to "Working With Your Own Sources"
Scott Rifenbark [Tue, 3 Oct 2017 20:09:54 +0000 (13:09 -0700)] 
kernel-dev: Updates to "Working With Your Own Sources"

Formatting changes for the list.

(From yocto-docs rev: df1201085408eec45d8fbf649e80437299daa0e8)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Edits to "Build Strategy" section.
Scott Rifenbark [Tue, 3 Oct 2017 19:36:57 +0000 (12:36 -0700)] 
kernel-dev: Edits to "Build Strategy" section.

This section was written before the yocto-kernel-cache strategy
existed and was thus incorrect.  I updated it with how I understand
things to work.

(From yocto-docs rev: 629f24c9312a168ddcd28b0d9dde92ff06068483)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updated Tree Construction section
Scott Rifenbark [Tue, 3 Oct 2017 19:06:51 +0000 (12:06 -0700)] 
kernel-dev: Updated Tree Construction section

The section was using the "meta-*" stuff, which is not how it
is done any longer.

(From yocto-docs rev: c9d95e85a832a38c3fd099a728693af3fa708d50)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Updated KERNEL_FEATURES variable description
Scott Rifenbark [Tue, 3 Oct 2017 16:20:01 +0000 (09:20 -0700)] 
ref-manual: Updated KERNEL_FEATURES variable description

Added a more relevant example from the 4.12 Yocto Linux kernel
recipe.

(From yocto-docs rev: 98c40729b2b22a2ac8444d899848c05880cb920b)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Minor updates to the "Kernel Maintenance" appendix.
Scott Rifenbark [Tue, 3 Oct 2017 15:50:52 +0000 (08:50 -0700)] 
kernel-dev: Minor updates to the "Kernel Maintenance" appendix.

(From yocto-docs rev: eabeff4611d447be12af64f0f44c218c69da3409)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Minor edits to the "Advanced Kernel Concepts" appendix
Scott Rifenbark [Tue, 3 Oct 2017 01:28:26 +0000 (18:28 -0700)] 
kernel-dev: Minor edits to the "Advanced Kernel Concepts" appendix

(From yocto-docs rev: 645b642965ffcbb12f171e11a53b4efe5d0fd756)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Changed title for advanced metadata chapter
Scott Rifenbark [Tue, 3 Oct 2017 01:27:47 +0000 (18:27 -0700)] 
kernel-dev: Changed title for advanced metadata chapter

Introduced the "yocto-kernel-cache" term into the title.

(From yocto-docs rev: ca74c49e2809851bb22bbe0d68830127d7bba4e9)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Miscellaneous Edits to Advanced Metadata chapter
Scott Rifenbark [Tue, 3 Oct 2017 00:31:06 +0000 (17:31 -0700)] 
kernel-dev: Miscellaneous Edits to Advanced Metadata chapter

(From yocto-docs rev: 74e27b697efa7ea7ecc1d1d59266b537dd70ae98)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updated example in metadata outside recipe-space
Scott Rifenbark [Mon, 2 Oct 2017 20:11:27 +0000 (13:11 -0700)] 
kernel-dev: Updated example in metadata outside recipe-space

Went from 4.4 kernel to 4.12.

(From yocto-docs rev: 4cf2710a381925b8bf13536c1f8da3d12938fffe)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updates to "Using Kernel Metadata in a Recipe"
Scott Rifenbark [Mon, 2 Oct 2017 19:59:32 +0000 (12:59 -0700)] 
kernel-dev: Updates to "Using Kernel Metadata in a Recipe"

This section had some old emenlo examples and was a little
confusing.  I removed the old examples and inserted some new
wordings to help smooth it out.

(From yocto-docs rev: 365129e0cd37772f404d96a51eb498210e4f1ee9)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Updated KBRANCH variable description
Scott Rifenbark [Mon, 2 Oct 2017 19:32:21 +0000 (12:32 -0700)] 
ref-manual: Updated KBRANCH variable description

The description had gone stale and was referencing a linux
yocto kernel we don't support and BSPs we don't support.  Updated
it.

(From yocto-docs rev: 5041a2a26d703a885437abcedb24c7600d5365cd)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Additions to the "Overview" section.
Scott Rifenbark [Thu, 28 Sep 2017 22:36:35 +0000 (15:36 -0700)] 
kernel-dev: Additions to the "Overview" section.

I provided some background on two repositories: yocto-kernel-cache
and yocto-kernel-tools.

(From yocto-docs rev: 1741d6efd4ff8364a55d546897cab5e7cdee6da5)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updates to "Kernel Metadata Syntax" section
Scott Rifenbark [Thu, 28 Sep 2017 22:07:12 +0000 (15:07 -0700)] 
kernel-dev: Updates to "Kernel Metadata Syntax" section

Scrubbed this section to bring it up to speed with more modern
BSP examples and better explanation of the types of Metadata
used.

(From yocto-docs rev: ba009de68a3786f83d9c3c9debffa8b811479786)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updates to where kernel metadata is found
Scott Rifenbark [Wed, 27 Sep 2017 23:56:56 +0000 (16:56 -0700)] 
kernel-dev: Updates to where kernel metadata is found

"cfg" and "features" used to reside in the linux-yocto-x.x repo
under meta.  They are now in a separate repo named
yocto-kernel-cache.  I rewrote a couple spots that incorrectly
referenced the old location.

(From yocto-docs rev: e643fc3df46658b8bcf9cdc12a78b527988b63a6)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Edits to the iteratively modifying source code section
Scott Rifenbark [Wed, 27 Sep 2017 22:19:39 +0000 (15:19 -0700)] 
kernel-dev: Edits to the iteratively modifying source code section

This section has merged into a single topic now.  It still needs
work but it is gathered under one heading for now.

(From yocto-docs rev: 660ed8b64dedbab5400c84ec3759cea77c899c40)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Removed a comment block
Scott Rifenbark [Wed, 27 Sep 2017 20:16:56 +0000 (13:16 -0700)] 
kernel-dev: Removed a comment block

(From yocto-docs rev: d6cf2730a9acc9c5bfd3071794269b4e3e7273b6)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Eliminated "Generating Configuration Files" section.
Scott Rifenbark [Wed, 27 Sep 2017 20:09:54 +0000 (13:09 -0700)] 
kernel-dev: Eliminated "Generating Configuration Files" section.

This section was largely redundant now.  The small things that did
add value I placed in other areas of the chapter 2.  One was a new
section on expanding variables using bitbake -e.  Another was a bit
about the defconfig file.  And a small procedure on how to create
config fragments using the "diffconfig" command was retained.

Links from the dev-manual and the ref-manual were adjusted as well.

(From yocto-docs rev: 7059d3eac1fec20089cabf197503f1bec747686d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Added "Validating Configuration" section
Scott Rifenbark [Wed, 27 Sep 2017 16:38:23 +0000 (09:38 -0700)] 
kernel-dev: Added "Validating Configuration" section

Provided a new section on how to validate the configuration of the
kernel.

(From yocto-docs rev: 25f43d1baeff7d571fc60c7edca957d4ce6d6357)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Edits to "Fine-Tuning the Kernel Configuration File"
Scott Rifenbark [Wed, 27 Sep 2017 00:39:31 +0000 (17:39 -0700)] 
kernel-dev: Edits to "Fine-Tuning the Kernel Configuration File"

This section needed some formatting to conform to the list structure
used throughout the manual.

(From yocto-docs rev: b6e6b66014963c1628c50e09787fdd46a45867b1)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Moved "dirty" kernel procedure up a level
Scott Rifenbark [Wed, 27 Sep 2017 00:25:34 +0000 (17:25 -0700)] 
kernel-dev: Moved "dirty" kernel procedure up a level

This procedure needed to be pulled out of the section that was/is
called "Using an Iterative Development Process".  The section on
how to deal with "dirty" kernel version strings is a procedure
in its own right.  It is now up a level.

(From yocto-docs rev: cd8834fa8d77ac750b06c3367aee577c80dcc64e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Removed "kernel-dev-examples.xml" file.
Scott Rifenbark [Wed, 27 Sep 2017 00:01:51 +0000 (17:01 -0700)] 
kernel-dev: Removed "kernel-dev-examples.xml" file.

File not used.

(From yocto-docs rev: 208bc193b02f4644e12c7d143d20ddafc5169907)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: removed old "kernel-dev-examples.xml" chapter.
Scott Rifenbark [Tue, 26 Sep 2017 23:50:58 +0000 (16:50 -0700)] 
kernel-dev: removed old "kernel-dev-examples.xml" chapter.

This chapter is not used and was commented out.  I deleted the
comment block.

(From yocto-docs rev: c805d1034b9f9bed5990cd2bcb3a9088e3d0d542)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Updated Added a New Recipe to Workspace Layer section
Kristi Rifenbark [Tue, 26 Sep 2017 23:41:01 +0000 (16:41 -0700)] 
ref-manual: Updated Added a New Recipe to Workspace Layer section

Fixes [YOCTO #11392]

Updated the section to document how to specify a branch,
tag, or revision when using devtool add with a remote
URL.

(From yocto-docs rev: 903b4a4e72908572a5f8b8c822869bbd0fe76ec9)

Signed-off-by: Kristi Rifenbark <kristi.rifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Updated devtool --help output
Kristi Rifenbark [Fri, 22 Sep 2017 19:30:54 +0000 (12:30 -0700)] 
ref-manual: Updated devtool --help output

Fixes [YOCTO #11392]

(From yocto-docs rev: 30eb6ef13b85f7f5e1784dbdd6a54b1367be212d)

Signed-off-by: Kristi Rifenbark <kristi.rifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Added NOAUTOPACKAGEDEBUG to variable glossary
Kristi Rifenbark [Tue, 19 Sep 2017 20:17:00 +0000 (13:17 -0700)] 
ref-manual: Added NOAUTOPACKAGEDEBUG to variable glossary

Fixes [YOCTO #11800]

(From yocto-docs rev: 789a11aee778f6082134102659b317bc6c155b4c)

Signed-off-by: Kristi Rifenbark <kristi.rifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updated kernel configuration section
Scott Rifenbark [Tue, 26 Sep 2017 21:33:56 +0000 (14:33 -0700)] 
kernel-dev: Updated kernel configuration section

A lot of rewriting here in this section to get it up to speed.
Also, moved that final section on determining hardware and
non-hardware features into an appendix where it belonged.

(From yocto-docs rev: 752e80d6ae8f81a0de7743b11b010d0ef36b314b)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopoky.conf: Fix typo
Richard Purdie [Tue, 26 Sep 2017 15:56:04 +0000 (16:56 +0100)] 
poky.conf: Fix typo

(From meta-yocto rev: e1f363915056b4fad52de4d597dcac5876285400)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopoky: Set version/codename for 2.4/rocko
Richard Purdie [Tue, 26 Sep 2017 15:08:21 +0000 (16:08 +0100)] 
poky: Set version/codename for 2.4/rocko

(From meta-yocto rev: eef92880a26a73f5539af54f19e7653aa6b226a9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake: bitbake-user-manual: Updated kernel version in PREFERRED_VERSION example
Scott Rifenbark [Mon, 25 Sep 2017 21:34:38 +0000 (14:34 -0700)] 
bitbake: bitbake-user-manual: Updated kernel version in PREFERRED_VERSION example

(Bitbake rev: 41ba3c8bfcd3501604f6a17bd327a8193b11b656)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Updated kernel example version in PREFERRED_VERSION.
Scott Rifenbark [Mon, 25 Sep 2017 21:29:58 +0000 (14:29 -0700)] 
ref-manual: Updated kernel example version in PREFERRED_VERSION.

(From yocto-docs rev: bc6960c01cffdc2cef7c9288db9daeed2c3e1a25)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodev-manual: Updated compatible log program section.
Scott Rifenbark [Mon, 25 Sep 2017 16:45:47 +0000 (09:45 -0700)] 
dev-manual: Updated compatible log program section.

Script name changed to "yocto-check-layer".

(From yocto-docs rev: 545a90dd2816c4e97dc70efc76c7cca49684c2d8)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updated "in-tree" defconfig example.
Scott Rifenbark [Fri, 22 Sep 2017 20:40:31 +0000 (13:40 -0700)] 
kernel-dev: Updated "in-tree" defconfig example.

Section "Using an 'In-Tree' defconfig File" updated to use a
more syntactically correct KBUILD_DEFCONFIG_KMACHINE example.

(From yocto-docs rev: 64e6b16703fa3ce9ac8db25de8089d32ac7aeafc)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Updated link formatting in KBUILD_DEFCONFIG variable.
Scott Rifenbark [Fri, 22 Sep 2017 20:30:11 +0000 (13:30 -0700)] 
ref-manual: Updated link formatting in KBUILD_DEFCONFIG variable.

(From yocto-docs rev: ba2aa642c3c1696a155b07840f84b8b3f0e692b5)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodev-manual: Compatibility program and moving kernel configuration
Scott Rifenbark [Fri, 22 Sep 2017 19:18:18 +0000 (12:18 -0700)] 
dev-manual: Compatibility program and moving kernel configuration

Should have been two commits but I forgot to do them separately.

1. I updated the YP Compatible Program section.

2. I moved the "Configuring the Kernel" section from the dev-manual
   to the kernel-dev manual.

(From yocto-docs rev: cdb5bbc917db55a2ca987ce9b9ed371f9fca6524)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemd-serialtty: allow empty package
Chen Qi [Tue, 26 Sep 2017 08:41:38 +0000 (16:41 +0800)] 
systemd-serialtty: allow empty package

If SERIAL_CONSOLES is set to empty for some reason, we would have rootfs
failure like below.

  - nothing provides systemd-serialgetty needed by systemd-1:234-r0.core2_64

This is because systemd-serialgetty package is not generated when
SERIAL_CONSOLES is empty.

Set ALLOW_EMPTY to "1" for this recipe to allow for generation of empty
systemd-serialgetty package to avoid the above error.

(From OE-Core rev: abf2e9526a11bcb51b71b90a7b76bd33af656494)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoyocto-bsp: add BBG dtb
Anders Darander [Tue, 26 Sep 2017 06:54:48 +0000 (08:54 +0200)] 
yocto-bsp: add BBG dtb

As 4.4 is the lowest kernel version in oe-core, we can add the dtb for the
beaglebon green to the list of dtb's to generate.

(From meta-yocto rev: dc77383ca352431cba7cb779899220db4eaa0cba)

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopoky-tiny: Bump default kernel version to 4.12
Alejandro Hernandez [Wed, 20 Sep 2017 17:13:30 +0000 (10:13 -0700)] 
poky-tiny: Bump default kernel version to 4.12

(From meta-yocto rev: 18d164344b4468ab52bbdd160d0474878042dabb)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemd-boot: Should not build x32
Saul Wold [Tue, 26 Sep 2017 00:52:18 +0000 (17:52 -0700)] 
systemd-boot: Should not build x32

Since systemd-boot is a bootloader, it needs to be built for
the native IA instruction set size and x32 is not valid.

(From OE-Core rev: 8c9ee404fe2a5e703f14c70092137c8d0ac0a6c2)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: remove systemd-boot for x32
Saul Wold [Tue, 26 Sep 2017 00:52:17 +0000 (17:52 -0700)] 
wic: remove systemd-boot for x32

Currently systemd-boot actually incorporates libgcc, since the
systemd-boot needs to be built with 64bit instructions it can not
use the x32 based libgcc.

Use the new override to ensure it gets overriden, linux-gnux32 could
not be used because x86-64 has higher priority.

(From OE-Core rev: 6046b9a3d76738c459ad76f5296e7b0a54c0b2e0)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoarch-x86: Add x86-x32 to MACHINEOVERRIDES
Saul Wold [Tue, 26 Sep 2017 00:52:16 +0000 (17:52 -0700)] 
arch-x86: Add x86-x32 to MACHINEOVERRIDES

This is needed as an x32 more generic x32 override later in the
OVERRIDES, currently linux-gnux32 is the first override, but we
need a stronger (later in the list) x32 override to deal with some
needed x32 dependency overrides.

(From OE-Core rev: 364b3698b78e9fea59d24e3a3a5f4476be95f6d1)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agocurl: Added option to enable http2 protocol.
baali [Mon, 25 Sep 2017 19:20:34 +0000 (00:50 +0530)] 
curl: Added option to enable http2 protocol.

With default --without-nghttp2 flag set there was no way to get
http2 protocol support using nghttp2 library. Instead moved it to
PACKAGECONFIG options

(From OE-Core rev: bcc8560300c8b1218b1f3709f5a7732e17fbfa46)

Signed-off-by: baali <shantanu@senic.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoselftest/cases/runtime_test: ignore removal errors when cleaning temporary gpg directory
Leonardo Sandoval [Mon, 25 Sep 2017 21:02:46 +0000 (14:02 -0700)] 
selftest/cases/runtime_test: ignore removal errors when cleaning temporary gpg directory

The high-level method tempfile.TemporaryDirectory give us no way to ignore erros on
removal thus use tempfile.mkdtemp instead. Ignoring possible issues on removal
is neccesary because it contains gpg sockets that are automatically removed by
the system once the process terminates, otherwise the following log is observed:

  File "/usr/lib/python3.5/shutil.py", line 436, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
  FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.browser'

This is the same fix as 7e3a7cd2426feac757def81850dc44156cd0f33e, but this applies
to runtime (instead of signing).

[YOCTO #11821]

(From OE-Core rev: f28e8131f69913ff90ed210c7a58726d3ef37db6)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosign_rpm.bbclass: force rpm serial signing
Leonardo Sandoval [Mon, 25 Sep 2017 20:52:59 +0000 (13:52 -0700)] 
sign_rpm.bbclass: force rpm serial signing

Newer versions of gpg (at least 2.1.5 and 2.2.1) have issues when signing occurs in parallel
so (unfortunately) the signing must be done serially. Once the upstream problem is fixed,
this patch must be reverted, otherwise we loose all the intrinsic parallelism from
bitbake.

[YOCTO #12022]

(From OE-Core rev: 5301712f9735fcf8d3dec756772668de930e53fe)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agocore-image-sato-sdk-ptest: reduce size
Ross Burton [Mon, 25 Sep 2017 20:21:55 +0000 (21:21 +0100)] 
core-image-sato-sdk-ptest: reduce size

This image is very large and is skirting the maximum size of hddimg images (4GB,
as they're embedded inside FAT partitions).  Making the image 10MB bigger can be
enough to cause the build to fail.  This image is also used by QA so currently
we need to keep it working.

The default values for expanding an image to give it usable space are quite
generous, (3GB rootfs * 1.3 gives 1GB of empty space), so change the overhead
multiplier to 1.0x and explicitly request just 0.5GB of empty space in the
images.

This should give us a bit more breathing room until we can either remove hddimg
from the default build, or make this image dramatically smaller.

(From OE-Core rev: 98d9d8958fd5a3bba849e9051bf0310c28b551c2)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: Add option to not change fstab
Fabio Berton [Wed, 19 Apr 2017 16:42:47 +0000 (13:42 -0300)] 
wic: Add option to not change fstab

Create an option to wic doesn't change fstab file, the final
fstab file will be same that in rootfs and wic doesn't update
file, e.g adding a new mount point.

Users can control the fstab file content in base-files recipe.
This is useful if you want to only create an partition but not
add fstab mount point or add new mount point using label e.g:

LABEL=recovery /recovery auto defaults 0  1

(From OE-Core rev: 00420ec42140c1b752132bda190dede85756d157)

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibgcrypt: fix CVE-2017-0379
Hongxu Jia [Mon, 25 Sep 2017 08:07:19 +0000 (04:07 -0400)] 
libgcrypt: fix CVE-2017-0379

Backport the fix from https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;
a=commit;h=bf76acbf0da6b0f245e491bec12c0f0a1b5be7c9

(From OE-Core rev: 3b827eff306c484d78d61b259cd5d4eef8df381c)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoscripts: drop True option to getVar calls
Ming Liu [Sun, 24 Sep 2017 04:04:24 +0000 (06:04 +0200)] 
scripts: drop True option to getVar calls

Search made with the following regex: getVar ?\((.*), True\).

(From OE-Core rev: b848c3cb495905605283c57c79f2ed8ca17758db)

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agometa: drop True option to getVar calls
Ming Liu [Sun, 24 Sep 2017 04:03:49 +0000 (06:03 +0200)] 
meta: drop True option to getVar calls

Search made with the following regex: getVar ?\((.*), True\).

(From OE-Core rev: dbc0eaf478feb3f752ae22fd184984494fc85d0a)

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemd: move org.freedesktop.machine1.conf to systemd-container
Fathi Boudra [Sat, 23 Sep 2017 10:37:30 +0000 (13:37 +0300)] 
systemd: move org.freedesktop.machine1.conf to systemd-container

The file belongs to systemd-container package , not to systemd package.

(From OE-Core rev: 9c1ec618860404bef0348bb17efcfb5c93cc360f)

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo: Fix build with -buildmode=pie
Khem Raj [Sat, 23 Sep 2017 01:05:29 +0000 (18:05 -0700)] 
go: Fix build with -buildmode=pie

(From OE-Core rev: f080dafbbba31686fddb0867cadb8dfe273632f3)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo_1.9: remove obsolete overrides
Matt Madison [Sat, 23 Sep 2017 00:58:22 +0000 (17:58 -0700)] 
go_1.9: remove obsolete overrides

Now that mips and security flags fixes are in place
in the bbclasses, remove the local settings in this
recipe.

(From OE-Core rev: 8a6b6c76dfc73aa6690f09dc2e0c16b81155f2d6)

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo: disable PIE flags for cgo
Matt Madison [Sat, 23 Sep 2017 00:58:21 +0000 (17:58 -0700)] 
go: disable PIE flags for cgo

If the security_flags.inc file is included, gcc
will do PIE builds by default.  These flags need
to be disabled for go packages that use cgo.

(From OE-Core rev: 5d84042852380fc88b9be8df0e4eeac612c2a6da)

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogoarch.bbclass: fixups for Go mips32 support
Matt Madison [Sat, 23 Sep 2017 00:58:20 +0000 (17:58 -0700)] 
goarch.bbclass: fixups for Go mips32 support

* Fix the regular expression in the mips test

* Flag as incompatible any mips32 tunes for n32 ABI
  or soft-float, as go does not support them.

* Replace mips32r2 tune with mips32r1. Go only supports
  mips32r1, which is a strict subset of r2.  Adjusting
  this tune is not ideal, but is hopefully a temporary
  measure until more complete mips32 ISA coverage
  arrives upstream.

[YOCTO #12108]

(From OE-Core rev: bdd20c296048937737da0f10bd1a3b63843c5bf4)

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-firmware: bump to latest linux-firmware git revision
Stefan Agner [Wed, 13 Sep 2017 23:05:49 +0000 (16:05 -0700)] 
linux-firmware: bump to latest linux-firmware git revision

This requires MD5 sum updates for
- LICENSE.QualcommAtheros_ath10k: year change
- WHENCE: various version updates and addition of new firmwares

The new firmware for Qualcom Venus causes a QA error:
  QA Issue: linux-firmware: Recipe inherits the allarch class, but has packaged architecture-specific binaries

Since firmware typically do not run on the CPU, the architecture of
the firmware file is independent from the CPU architecture the image
will be running on. Disable the QA check for the linux-firmware
package by default.

(From OE-Core rev: a83dd65e64e9b7fa702927f96947bd3f0537adfd)

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoqemurunner: print tail qemu log in case bootlog is empty
Leonardo Sandoval [Fri, 22 Sep 2017 23:05:41 +0000 (16:05 -0700)] 
qemurunner: print tail qemu log in case bootlog is empty

There are cases where the 'while loop' waiting for login prompt fails
and the bootlog variable does not get populated, thus use the the new
qemurunner member (self.msg) which stores all output coming from the qemu
process.

[YOCTO #12113]

(From OE-Core rev: 39ffa0f3779305c5e8ef86fe4572e961c5912021)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoclasses: drop image dependencies on TOPDIR variable
Paul Eggleton [Mon, 25 Sep 2017 11:23:35 +0000 (00:23 +1300)] 
classes: drop image dependencies on TOPDIR variable

We don't need a dependency on this variable changing, and having one
causes locked signature warnings during eSDK installation if you have
INITRAMFS_IMAGE_* set (since TOPDIR will always be different between
the eSDK and the environment in which it was built).

Relates to [YOCTO #12102].

(From OE-Core rev: 073610af04be326f9245ca91714526b390fb72cd)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>