]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
5 years agolibjpeg-turbo: upgrade 2.0.2 -> 2.0.3
Anuj Mittal [Thu, 5 Sep 2019 07:51:53 +0000 (15:51 +0800)]
libjpeg-turbo: upgrade 2.0.2 -> 2.0.3

Bug fix release. Release notes:

https://github.com/libjpeg-turbo/libjpeg-turbo/releases

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agodtc:upgrade 1.5.0 -> 1.5.1
Zang Ruochen [Thu, 5 Sep 2019 06:17:05 +0000 (14:17 +0800)]
dtc:upgrade 1.5.0 -> 1.5.1

-License-Update:
-file://GPL : Updated mailing address.
-file://libfdt/libfdt.h : Removed part of the copyright description of this file.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agolibogg:upgrade 1.3.3 -> 1.3.4
Zang Ruochen [Thu, 5 Sep 2019 05:53:26 +0000 (13:53 +0800)]
libogg:upgrade 1.3.3 -> 1.3.4

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agogcc-9.2: Fix risc-v dynamic linker relocation
Khem Raj [Thu, 5 Sep 2019 01:29:58 +0000 (18:29 -0700)]
gcc-9.2: Fix risc-v dynamic linker relocation

Accidentally dropped in 9.2 update

Reported-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoharfbuzz: upgrade to 2.6.1
Ross Burton [Wed, 4 Sep 2019 17:10:49 +0000 (18:10 +0100)]
harfbuzz: upgrade to 2.6.1

Add a (disabled) PACKAGECONFIG for Graphite2.

Update the license checksum for hb-ucd.cc, which for some reason was
checksumming the entire file and not just the license header.

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agopango: add PACKAGECONFIG for libthai support
Ross Burton [Wed, 4 Sep 2019 15:11:08 +0000 (16:11 +0100)]
pango: add PACKAGECONFIG for libthai support

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agopango: 1.44.6 upgrade
Ross Burton [Wed, 4 Sep 2019 13:49:46 +0000 (14:49 +0100)]
pango: 1.44.6 upgrade

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agorunqemu: Fix typo in help text.
Drew Moseley [Tue, 3 Sep 2019 21:21:25 +0000 (17:21 -0400)]
runqemu: Fix typo in help text.

Signed-off-by: Drew Moseley <drew.moseley@northern.tech>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agomusl: Update to latest master
Khem Raj [Tue, 3 Sep 2019 22:59:32 +0000 (15:59 -0700)]
musl: Update to latest master

sys/user.h related API fixed on ppc/ppc64

Detailed log [1]

https://git.musl-libc.org/cgit/musl/log/?qt=range&q=29e8737f81ccc9fbadcf61a75318aa3d0516aafa..6ad514e4e278f0c3b18eb2db1d45638c9af1c07f

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agolib/oe/gpg_sign.py: Remove unwanted import
Vijai Kumar K [Wed, 4 Sep 2019 10:01:42 +0000 (15:31 +0530)]
lib/oe/gpg_sign.py: Remove unwanted import

Remove unwanted import of oe.utils.

Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agogzip: add nativesdk support
Denys Zagorui [Wed, 4 Sep 2019 10:41:48 +0000 (10:41 +0000)]
gzip: add nativesdk support

Signed-off-by: Denys Zagorui <dzagorui@cisco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agopatch: add CVE tags to patches
Ross Burton [Tue, 3 Sep 2019 15:59:05 +0000 (16:59 +0100)]
patch: add CVE tags to patches

These patches improve CVE fixes but trip up patch status sanity checks, so add
CVE tags to them.

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoqemu: Fix dependency of PACKAGECONFIG libcurl
He Zhe [Thu, 29 Aug 2019 13:15:50 +0000 (21:15 +0800)]
qemu: Fix dependency of PACKAGECONFIG libcurl

When PACKAGECONFIG libcurl is enabled, we would get the following build failure.
ERROR: Nothing PROVIDES 'libcurl' (but perf.bb DEPENDS on or otherwise requires it). Close matches:

The dependency should be curl.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoqemu: Add pkg-config handling for libgcrypt
He Zhe [Thu, 29 Aug 2019 13:15:49 +0000 (21:15 +0800)]
qemu: Add pkg-config handling for libgcrypt

When PACKAGECONFIG libgcrypt is enabled, we would get the following error.

ERROR: /usr/bin/libgcrypt-config should not be used, use an alternative such as pkg-config

In oe-core, libgcrypt has been turned to be configured with pkg-config instead
of libgcrypt-config, but qemu configure script does not contain pkg-config
related part for libgcrypt to handle it.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agolibgpg-error: Fix build with gawk 5.x
Khem Raj [Sat, 31 Aug 2019 14:22:52 +0000 (07:22 -0700)]
libgpg-error: Fix build with gawk 5.x

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agobuild-compare: 2015.02.10 -> 2019.08.14
Robert Yang [Fri, 30 Aug 2019 07:35:30 +0000 (15:35 +0800)]
build-compare: 2015.02.10 -> 2019.08.14

* Removed the following patches which are already merged by upstream:
  0001-Add-support-for-deb-and-ipk-packaging.patch
  Rename-rpm-check.sh-to-pkg-diff.sh.patch
  functions.sh-improve-deb-and-ipk-checking.patch
  functions.sh-remove-space-at-head.patch
  functions.sh-run-rpm-once-to-make-it-faster.patch
  pkg-diff.sh-check-for-fifo-named-pipe.patch
  pkg-diff.sh-check_single_file-return-at-once-when-sa.patch
  pkg-diff.sh-remove-space-in-the-end-for-ftype.patch

* Rebased Ignore-DWARF-sections.patch

This version is very outstanding when compare binary packages, e.g.:
PRSERV_HOST = "localhost:0"
INHERIT += "packagefeed-stability"
PACKAGE_CLASSES = "package_ipk
$ bitbake opkg
$ find tmp/deploy/ipk >/tmp/ipk_1

Add a "bbnote 'hello'" to autotools.bbclass' autotools_do_configure.

* BEFORE the upgrading, the result is:
$ diff /tmp/ipk_1  /tmp/ipk_2 -Nur | diffstat
 ipk_2 | 1570 +++++++++++++++++++++++++++++++++---------------------------------
 1 file changed, 785 insertions(+), 785 deletions(-)

* AFTER the upgrading, the result is:
$ bitbake opkg
$ find tmp/deploy/ipk >/tmp/ipk_2
$ diff /tmp/ipk_1 /tmp/ipk_2 -Nur
No output

And if we really modifed a recipe such as opkg, then it would show that it is
changed.

For a full world build AFTER the upgrading:
$ diff /tmp/ipk_6 /tmp/ipk_7 -Nur | diffstat
 ipk_7 | 2090 +++++++++++++++++++++++++++++++++---------------------------------
 1 file changed, 1045 insertions(+), 1045 deletions(-)

There are 10968 packages in totall, 1045 ones have been changed, so we can still
improve it in the future.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
5 years agogcc-8.3: remove 8.3 from zeus
Armin Kuster [Tue, 3 Sep 2019 15:58:48 +0000 (08:58 -0700)]
gcc-8.3: remove 8.3 from zeus

warrior only had one gcc so lets be consistent.

This will also reduce our maintenance overhead and we don't build this either

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemtap: Drop patches merged upstream
Richard Purdie [Fri, 6 Sep 2019 07:28:17 +0000 (08:28 +0100)]
systemtap: Drop patches merged upstream

Several of our patches were merged upstream just beyond our current version.
Update to that version and drop them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoarchiver.bbclass: Do not archive srpm's if there are no package tasks
Nathan Rossi [Thu, 5 Sep 2019 14:41:31 +0000 (14:41 +0000)]
archiver.bbclass: Do not archive srpm's if there are no package tasks

Do not attempt to archive recipes which have no packaging tasks (e.g.
inherits nopackages).

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosecurity_flags.inc: Add overrides for glibc-testsuite to match glibc
Nathan Rossi [Thu, 5 Sep 2019 13:44:15 +0000 (13:44 +0000)]
security_flags.inc: Add overrides for glibc-testsuite to match glibc

Ensure glibc-testsuite has the same flags as glibc.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc-testsuite.inc: Fix ssh.exp, ensure multilib_flags are populated
Nathan Rossi [Thu, 5 Sep 2019 10:41:56 +0000 (20:41 +1000)]
gcc-testsuite.inc: Fix ssh.exp, ensure multilib_flags are populated

The 'process_multilib_options' function of dejagnu also populates the
'multilib_flags' content from the '--target_board=' arguments. The
'ssh.exp' generated is missing this call ('user.exp' includes it).

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobinutils/glibc-testsuite: inherit nopackages to fix world builds
Richard Purdie [Wed, 4 Sep 2019 10:29:31 +0000 (11:29 +0100)]
binutils/glibc-testsuite: inherit nopackages to fix world builds

These recipes don't need to generate packages but did contain the packaging tasks which
would be triggered by a world build. They showed warnings or errors. Simplest fix
is to remove the unneeded tasks with the nopackages class.

Also don't attempt stash_locales task

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglibc-testsuite: Create a recipe to implement glibc test suite
Nathan Rossi [Tue, 3 Sep 2019 16:56:41 +0000 (16:56 +0000)]
glibc-testsuite: Create a recipe to implement glibc test suite

A recipe needs to be created for the test suite due to the dependency
chain between libgcc -> glibc -> libgcc-initial, and the requirements of
the test suite to have libgcc for compilation and execution.

The glibc test suite does not use dejagnu like the gcc test suites do.
Instead a test wrapper script is used along with the assumed dependency
of having the same filesystem available on build host and target. For
qemu linux-user the same filesystem is inherently available, for remote
targets NFS is used. Separate test wrapper scripts are created for qemu
linux-user or ssh targets, with the same TOOLCHAIN_TEST_* variables used for
configuration.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc-runtime: Add do_check task for executing gcc test suites
Nathan Rossi [Tue, 3 Sep 2019 16:56:41 +0000 (16:56 +0000)]
gcc-runtime: Add do_check task for executing gcc test suites

Add a do_check task to implement execution of the gcc component test
suites. The component test suites require execution of compiled programs
on the target.

The implementation provided allows for execution testing against a host
via SSH or within the local build environment using qemu linux-user
execution. The selection of execution is done via the
TOOLCHAIN_TEST_TARGET variable, and configuration of the remote host is
done with the TOOLCHAIN_TEST_HOST, TOOLCHAIN_TEST_HOST_USER and
TOOLCHAIN_TEST_HOST_PORT variables.

By default the do_check task will execute all check targets, this can be
changed by setting MAKE_CHECK_TARGETS to the desired test suite target
(e.g. check-gcc or check-target-libatomic).

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobinutils-cross-testsuite: Create recipe for test suite execution
Nathan Rossi [Tue, 3 Sep 2019 16:56:41 +0000 (16:56 +0000)]
binutils-cross-testsuite: Create recipe for test suite execution

Create the do_check task in a new recipe 'binutils-cross-testsuite'.
This recipe is built within a target recipe (not -cross) to ensure
correct testing against target specific libraries/etc. The do_check task
is used to execute the binutils test suite for the cross target
binutils. By default this executes tests for binutils, gas and ld. This
can however be changed by setting CHECK_TARGETS to the desired test
suite target (e.g. 'gas').

The binutils test suites do not require any target execution, as such
the check task can be run without QEMU or a target device. However
since the binutils tests do rely on a C compiler there is dependence on
both gcc and libc in order to run the tests.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodejagnu: Add dejagnu for binutils/gcc test suites
Nathan Rossi [Tue, 3 Sep 2019 16:56:41 +0000 (16:56 +0000)]
dejagnu: Add dejagnu for binutils/gcc test suites

The binutils and gcc test suites use dejagnu for execution. Copy the
dejagnu recipe from meta-oe, and update it to 1.6.2.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa: reproducible: Preserve sstate mirror for first build
Joshua Watt [Sat, 31 Aug 2019 01:41:24 +0000 (20:41 -0500)]
oeqa: reproducible: Preserve sstate mirror for first build

Preserves the SSTATE_MIRROR variable for the first build in the
reproducible test. This patch is intended to test the theory that using
the Yocto autobuilder sstate mirror will still be reproducible. The
autobuilder always does clean builds and never rebuilds recipes that
were built previously, thus building with the mirror but not
sharing tmpdir and sstate with previous builds should be reproducible.

There is no guarantee that all sstate caches are populated from clean
builds so this patch cannot be submitted to master, and I'm not
bothering sending it to the mailing list.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc-cross: Fix header file corruption problems
Richard Purdie [Wed, 4 Sep 2019 10:22:22 +0000 (11:22 +0100)]
gcc-cross: Fix header file corruption problems

gcc's makefile can move files, replacing with the contents "timestamp". This
corrupts the headers and breaks things like the gcc testsuite.

Add in a fix to ensure the headers are not corrupted through their hardlink copies.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemtap: Use latest and greatest git version for 5.2 kernel support
Richard Purdie [Tue, 3 Sep 2019 21:39:37 +0000 (22:39 +0100)]
systemtap: Use latest and greatest git version for 5.2 kernel support

Systemtap has issues with the 5.2 kernel which are fixed in master, we helped
debug and submitted some of the patches. Update to a git version which includes
all the fixes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocore-image-sato: don't use 512MB in qemumips
Ross Burton [Thu, 5 Sep 2019 15:56:20 +0000 (16:56 +0100)]
core-image-sato: don't use 512MB in qemumips

qemumips doesn't appear to work well with 512MB of RAM and randomly hangs.  As
the bump to 512MB was primarily motivated by the memory needs of virtualised GL
which doesn't work in qemumips currently, drop the memory back to 256MB for
qemumips.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoRemove leftovers from the eglinfo removal
Adrian Bunk [Thu, 5 Sep 2019 17:19:24 +0000 (20:19 +0300)]
Remove leftovers from the eglinfo removal

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: Update to the latest 242 branch
Adrian Bunk [Wed, 4 Sep 2019 12:52:40 +0000 (15:52 +0300)]
systemd: Update to the latest 242 branch

Remove patch for issue fixed upstream.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooe-selftest: Implement console 'keepalive' output
Nathan Rossi [Thu, 5 Sep 2019 13:44:15 +0000 (13:44 +0000)]
oe-selftest: Implement console 'keepalive' output

Similar to bitbake, implement a 'keepalive' output to the console to
ensure CI systems do not kill the process. The default timeout for
bitbake is 5000s.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-yocto/5.2: config tweaks and kallsyms fix
Bruce Ashfield [Thu, 5 Sep 2019 03:05:35 +0000 (23:05 -0400)]
linux-yocto/5.2: config tweaks and kallsyms fix

Integrating some 5.2 configuration changes (for new board supprt), and
the following fix:

 kallsyms: Don't let kallsyms_lookup_size_offset() fail on retrieving the first symbol

With this fix, we no longer see:

   [    0.032677] kprobes: failed to populate blacklist: -22

during boot on arm/mips

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoClean up remnants of glibc-initial
Nathan Rossi [Thu, 5 Sep 2019 13:44:15 +0000 (13:44 +0000)]
Clean up remnants of glibc-initial

Remove remnants of the glibc-initial recipe.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/core/tests: Fix test_data module tests
Nathan Rossi [Tue, 3 Sep 2019 16:56:41 +0000 (16:56 +0000)]
oeqa/core/tests: Fix test_data module tests

These two tests relied on the context containing the results information.
This was moved into the OETestResults class.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/core/tests: Skip test_fail_duplicated_module
Nathan Rossi [Tue, 3 Sep 2019 16:56:41 +0000 (16:56 +0000)]
oeqa/core/tests: Skip test_fail_duplicated_module

At some point the modules in tests/cases/loader/invalid/ were removed,
this test relied on having tests/cases/loader/invalid/oetag.py to
trigger a ImportError in the loader module. Skip this test.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc-common.inc: Process staging fixme with correct target/native sysroot
Nathan Rossi [Tue, 3 Sep 2019 16:56:41 +0000 (16:56 +0000)]
gcc-common.inc: Process staging fixme with correct target/native sysroot

Correct the 'staging_processfixme' call so that target sysroot and
native sysroot paths are corrected when extracting the stashed build
directory. This is required for 'make check' to work correctly due paths
used in configuration and scripts which point at the native sysroot.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: explicitly set the path to nologin
Ross Burton [Mon, 2 Sep 2019 18:54:15 +0000 (19:54 +0100)]
systemd: explicitly set the path to nologin

Set the path to nologin as with sulogin etc so we don't try to execute binaries
from the build path on the target (as the build finds a nologin in the sysroot
at build time).

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython-numpy: rdepend on multiprocessing module
Chen Qi [Tue, 3 Sep 2019 04:13:00 +0000 (12:13 +0800)]
python-numpy: rdepend on multiprocessing module

`import numpy.distutils' gives people the following error.

  ModuleNotFoundError: No module named 'multiprocessing'

Fix it by adding multiprocessing dependency.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agologrotate:upgrade 3.15.0 -> 3.15.1
Zang Ruochen [Tue, 3 Sep 2019 02:53:17 +0000 (10:53 +0800)]
logrotate:upgrade 3.15.0 -> 3.15.1

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython-testtools: rdepend on doctest module
Chen Qi [Tue, 3 Sep 2019 02:23:08 +0000 (10:23 +0800)]
python-testtools: rdepend on doctest module

`import testtools' will give people error for lacking of
doctest module. Add it to RDEPENDS to solve the issue.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc-8.3: Security fix for CVE-2019-14250
Armin Kuster [Mon, 2 Sep 2019 20:37:59 +0000 (13:37 -0700)]
gcc-8.3: Security fix for CVE-2019-14250

Affects < 9.2

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibnl: don't patch libnl-3.0.pc
Ross Burton [Tue, 3 Sep 2019 11:19:21 +0000 (12:19 +0100)]
libnl: don't patch libnl-3.0.pc

This patch originally came from oe-classic in 2010 with the comment "fix pc file
so that it actually links to the support libraries".  If an application wants to
link to the support libraries then it should be using the relevant .pc files to
do so.

oe-core builds successfully with this patch removed and other distributions
don't carry it, so drop the patch.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibnl: upgrade to 3.5.0
Ross Burton [Tue, 3 Sep 2019 11:19:15 +0000 (12:19 +0100)]
libnl: upgrade to 3.5.0

Drop the musl workaround, as upstream has solved this correctly now.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibedit: remove FETCHCMD append
Ross Burton [Tue, 3 Sep 2019 10:57:29 +0000 (11:57 +0100)]
libedit: remove FETCHCMD append

This dates from when upstream was for some reason refusing the wget user agent,
but this isn't the case anymore:

$ wget http://www.thrysoee.dk/editline/libedit-20190324-3.1.tar.gz
...
HTTP request sent, awaiting response... 200 OK
Length: 521999 (510K) [application/x-gzip]
Saving to: â€˜libedit-20190324-3.1.tar.gz’
2019-09-03 11:53:20 (1.22 MB/s) - â€˜libedit-20190324-3.1.tar.gz’ saved [521999/521999]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoltp: syscalls: rt_sigwaitinfo01: Fix failure for MIPS arches
He Zhe [Tue, 3 Sep 2019 09:28:45 +0000 (17:28 +0800)]
ltp: syscalls: rt_sigwaitinfo01: Fix failure for MIPS arches

Backport a patch to fix the following failure.
rt_sigtimedwait01    1  TFAIL  :  .../sigwaitinfo01.c:58: test_empty_set
(.../sigwaitinfo01.c: 148): Unexpected failure:
TEST_ERRNO=EINVAL(22): Invalid argument

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosdkext: use simpler kernel module for devtool test
Mark Asselstine [Thu, 22 Aug 2019 15:56:16 +0000 (11:56 -0400)]
sdkext: use simpler kernel module for devtool test

The current devtool test for the building of an out-of-tree kernel
module uses something which requires several "high order" kconfigs to
be set. This results in the test failing, not for expected reasons,
but rather because it depends on specific kernel configuration.

You will get error messages such as

  ERROR: "video_ioctl2"
  [.../1.0-r5/testsdkext/workspace/sources/v4l2loopback-driver/v4l2loopback.ko]
  undefined!
  ERROR: "video_unregister_device"
  [.../1.0-r5/testsdkext/workspace/sources/v4l2loopback-driver/v4l2loopback.ko]
  undefined!

Using a simpler hello-world kernel module example will only require
that CONFIG_MODULE is enabled, thus avoiding a false positive.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoeglinfo: remove the recipe
Alexander Kanavin [Thu, 29 Aug 2019 16:30:19 +0000 (18:30 +0200)]
eglinfo: remove the recipe

Last commit upstream was in Sep 2014; pull requests have been ignored since.

I believe eglinfo from mesa-demos is an adequate and maintained alternative.

Also this recipe was using an ugly waf blob placed directly into oe-core, which
was also dependent on python 2.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemuriscv: Generate a wic rootFS with a larger filesystem
Alistair Francis [Fri, 30 Aug 2019 15:41:05 +0000 (08:41 -0700)]
qemuriscv: Generate a wic rootFS with a larger filesystem

This allows us to generate a rootFS with a large filesystem for use with
QEMU.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc-9.2: Security fix for CVE-2019-14250
Armin Kuster [Sat, 31 Aug 2019 21:15:49 +0000 (14:15 -0700)]
gcc-9.2: Security fix for CVE-2019-14250

Affects: <= 9.2

Signed-off-by: Armin Kuster <Akuster@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibgpg-error: Fix build with gawk 5.x
Khem Raj [Sat, 31 Aug 2019 14:22:52 +0000 (07:22 -0700)]
libgpg-error: Fix build with gawk 5.x

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc: Fix ldbl-128 support for musl
Khem Raj [Sat, 31 Aug 2019 05:23:14 +0000 (22:23 -0700)]
gcc: Fix ldbl-128 support for musl

Let the patch trigger based on target triplet instead of passing via
configure, this lets gcc compile for 64bit otherwise it ends up with
libgcc  build errors

error: unable to emulate 'TF'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc: Move STANDARD_STARTFILE_PREFIX_1 and STANDARD_STARTFILE_PREFIX_2 back to gcc.c
Khem Raj [Sat, 31 Aug 2019 05:23:13 +0000 (22:23 -0700)]
gcc: Move STANDARD_STARTFILE_PREFIX_1 and STANDARD_STARTFILE_PREFIX_2 back to gcc.c

when compiling for ppc64, build emits additional
STANDARD_STARTFILE_PREFIX_1 and STANDARD_STARTFILE_PREFIX_2 into
gcc/defaults.h which is not conditional because it really want to
override others with this new value, but it ends up with two definitions
since it gets emitted _after_ the definition this patch moves to
default.h and ends up in duplicate defines.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agotune-riscv: Drop littleendian and introduce bigendian tune
Khem Raj [Sat, 31 Aug 2019 05:23:12 +0000 (22:23 -0700)]
tune-riscv: Drop littleendian and introduce bigendian tune

Default riscv is little-endian moreover most of other arches define
bigendian as tune and treats absense as litteendian, this make risc-v
fall in line

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopowerpc-tunes: Introduce bigendian tune
Khem Raj [Sat, 31 Aug 2019 05:23:11 +0000 (22:23 -0700)]
powerpc-tunes: Introduce bigendian tune

This helps in defining LE tunes and at the same time specifies
endianness on compiler cmdline clearly, clang e.g. defaults to
little-endian always, so unless specified with -mbig-endian won't
compile the code right

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorm_work: Remove redundant 'after' in addtask statement
Jacob Kroon [Sun, 1 Sep 2019 05:53:56 +0000 (07:53 +0200)]
rm_work: Remove redundant 'after' in addtask statement

Introduced in commit b3de5d5795767a4b8c331fa5040166e7e410eeec.

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibepoxy: enable x11 PACKAGECONFIG for native/nativesdk
Alexander Kanavin [Sun, 1 Sep 2019 15:24:25 +0000 (17:24 +0200)]
libepoxy: enable x11 PACKAGECONFIG for native/nativesdk

This is needed to enable virgl support in qemu with SDL frontend

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodefault-providers.inc: set mesa as the provider for native(sdk) virtual/libgl
Alexander Kanavin [Sun, 1 Sep 2019 15:24:24 +0000 (17:24 +0200)]
default-providers.inc: set mesa as the provider for native(sdk) virtual/libgl

native/nativesdk libepoxy and libsdl2 require this to be set, when they
have the respective opengl features enabled.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoavahi: launch avahi-daemon after connman
Kai Kang [Fri, 30 Aug 2019 05:46:09 +0000 (01:46 -0400)]
avahi: launch avahi-daemon after connman

When connman installed to image, /etc/resolv.conf is link to
/etc/resolv-conf.connman. So launch avahi-daemon after connman too
just same as after systemd-resolved.service.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibxcrypt: Fix the build with -Os
Adrian Bunk [Thu, 29 Aug 2019 10:09:41 +0000 (13:09 +0300)]
libxcrypt: Fix the build with -Os

| In file included from ../git/lib/alg-des.c:66:
| ../git/lib/alg-des.c: In function '_crypt_des_set_key':
| ../git/lib/byteorder.h:24:1: error: inlining failed in call to 'be32_to_cpu': call is unlikely and code size would grow [-Werror=inline]
|  be32_to_cpu (const unsigned char *buf)
|  ^~~~~~~~~~~
| ../git/lib/alg-des.c:81:13: note: called from here
|    rawkey1 = be32_to_cpu (&key[4]);
|              ^~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobtrfs-tools: Add PACKAGECONFIG knob for controlling python support
Jacob Kroon [Thu, 29 Aug 2019 14:22:02 +0000 (16:22 +0200)]
btrfs-tools: Add PACKAGECONFIG knob for controlling python support

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoserial-getty@.service: Allow device to fast fail if it does not exist
Jason Wessel [Thu, 29 Aug 2019 14:00:31 +0000 (07:00 -0700)]
serial-getty@.service: Allow device to fast fail if it does not exist

Some BSPs use a USB serial port which may or may not actually be
plugged all the time.  It is quite useful to have a USB serial port
have a getty running but it does not make sense to wait for it for 90
seconds before completing the system startup if it might never get
plugged in.  The typical example is that a USB serial device might
only need to be plugged in when debugging, upgrading, or initially
configuring a device.

This change is somewhat subtle.  Systemd uses the "BindsTo" directive
to ensure existence of the device in order to start the service as
well as to terminate the service if the device goes away.  The "After"
directive makes that same relationship stronger.  When used together
this has the undesired side effect that systemd will wait until its
internal time out value of 90 seconds for the device to come on line
before executing a fail operation or letting other tasks and groups
continue.  This is certainly the kind of behavior we want for a disk,
but not for serial ports in general.

The "BindsTo" directive is replaced by the combination of the "PartOf"
and the "ConditionPathExists" directives.  The "After" directive is
unchanged because that will wait for the udev rules to process.  The
"PartOf" directive will issue a stop to the getty service if the
device goes away, similar to the "BindsTo" directive.  The
"ConditionPathExists" is what allows the service to fail fast vs
waiting for the timeout.  When a USB device is not plugged in at boot
you would find a message in the system journal like:

    systemd[1]: Condition check resulted in Serial Getty on \
                 ttyUSB0 being skipped.

If you want to observe the problem with qemu, it is easy to replicate.
Simply add the following line to your local.conf for a x86-64 qemu
build.

    SERIAL_CONSOLES="115200;ttyS0 115200;ttyUSB0"

Login right after the system boots and observe:

   root@qemux86-64:~# systemctl list-jobs |cat
   JOB UNIT                                 TYPE  STATE
     1 multi-user.target                    start waiting
    69 serial-getty@ttyUSB0.service         start waiting
    64 getty.target                         start waiting
    71 dev-ttyUSB0.device                   start running
    62 systemd-update-utmp-runlevel.service start waiting

   5 jobs listed.

You can see above that the dev-ttyUSB0.device will block for 1min 30
seconds.  While that might not be a problem for this reference build.
It is certainly a problem for images that have software watchdogs that
verify the system booted up all the way to systemd completion in less
than 90 seconds.

This other nice effect of this change is that the fast fail device
extend to additional serial ports that may not exist on ARM BSPs or
that might be configured in or out by the dtb files on different
boards.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogo-dep: update to 0.5.4
Oleksandr Kravchuk [Fri, 30 Aug 2019 01:04:01 +0000 (03:04 +0200)]
go-dep: update to 0.5.4

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoell: update to 0.22
Oleksandr Kravchuk [Thu, 29 Aug 2019 22:59:49 +0000 (00:59 +0200)]
ell: update to 0.22

Changelog:
- Fix issue with DHCP and T1 timeout handling.
- Fix issue with escape characters in peer identity string.
- Add support for setting peer certificate's subject CN mask.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibevdev: update to 1.8.0
Oleksandr Kravchuk [Thu, 29 Aug 2019 22:50:32 +0000 (00:50 +0200)]
libevdev: update to 1.8.0

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibsolv: update to 0.7.6
Oleksandr Kravchuk [Thu, 29 Aug 2019 22:47:16 +0000 (00:47 +0200)]
libsolv: update to 0.7.6

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodevtool: Avoid failure for recipes with S == WORKDIR and no local files
Peter Kjellerstedt [Thu, 29 Aug 2019 20:43:02 +0000 (22:43 +0200)]
devtool: Avoid failure for recipes with S == WORKDIR and no local files

When extracting the sources for a recipe that has S == WORKDIR and no
local files in the SRC_URI (which, e.g., can happen for a recipe with
a URI that has the unpack=false attribute), the extraction fails with
the following backtrace:

  Traceback (most recent call last):
    File ".../scripts/devtool", line 344, in <module>
      ret = main()
    File ".../scripts/devtool", line 331, in main
      ret = args.func(args, config, basepath, workspace)
    File ".../poky/scripts/lib/devtool/standard.py", line 762, in
    modify
      initial_rev, _ = _extract_source(srctree, args.keep_temp,
      args.branch, False, config, basepath, workspace,
      args.fixed_setup, rd, tinfoil, no_overrides=args.no_overrides)
    File ".../poky/scripts/lib/devtool/standard.py", line 647, in
    _extract_source
      bb.process.run('git %s commit -a -m "Committing local file
      symlinks\n\n%s"' % (' '.join(useroptions),
      oe.patch.GitApplyTree.ignore_commit_prefix), cwd=srctree)
    File ".../poky/bitbake/lib/bb/process.py", line 178, in run
      raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
  bb.process.ExecutionError: Execution of 'git commit -a -m
  "Committing local file symlinks

  %% ignore"' failed with exit code 1:
  On branch devtool
  nothing to commit, working tree clean

This is because no files were found in the oe-local-files directory
and consequently no symbolic links were added using `git add`, but the
`git commit` command was still executed.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibbsd: upgrade 0.9.1 -> 0.10.0
Yi Zhao [Fri, 30 Aug 2019 05:26:14 +0000 (13:26 +0800)]
libbsd: upgrade 0.9.1 -> 0.10.0

License-Update: copyright years updated.

Drop the backport patch.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd-bootchart: support usrmerge
Changqing Li [Fri, 30 Aug 2019 07:37:50 +0000 (15:37 +0800)]
systemd-bootchart: support usrmerge

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobootchart2: support usrmerge
Changqing Li [Fri, 30 Aug 2019 07:37:47 +0000 (15:37 +0800)]
bootchart2: support usrmerge

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoavahi-ui: support usrmerge
Changqing Li [Fri, 30 Aug 2019 07:37:46 +0000 (15:37 +0800)]
avahi-ui: support usrmerge

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoimage.bbclass: Fix debug output for rootfs size
Daniel Klauer [Fri, 30 Aug 2019 07:24:21 +0000 (09:24 +0200)]
image.bbclass: Fix debug output for rootfs size

The debug output showed the wrong variable.

Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoman-db: upgrade 2.8.6.1 -> 2.8.7
Yuan Chao [Fri, 30 Aug 2019 09:03:26 +0000 (18:03 +0900)]
man-db: upgrade 2.8.6.1 -> 2.8.7

Signed-off-by: Yuan Chao <yuanc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomesa: Add support for the panfrost PACKAGECONFIG
Neil Armstrong [Fri, 30 Aug 2019 08:53:41 +0000 (10:53 +0200)]
mesa: Add support for the panfrost PACKAGECONFIG

Add support to enable the Panfrost Gallium driver in PACKAGECONFIG

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowebkitgtk: update 2.24.3 -> 2.24.4
Alexander Kanavin [Fri, 30 Aug 2019 12:49:58 +0000 (14:49 +0200)]
webkitgtk: update 2.24.3 -> 2.24.4

In particular this brings an important fix for builds with py3:
"Fix build issue which would cause media controls to disappear when Python 3.x was used during the build process."

https://webkitgtk.org/2019/08/28/webkitgtk2.24.4-released.html

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowebkitgtk: use Python 3 for builds
Alexander Kanavin [Fri, 30 Aug 2019 12:49:57 +0000 (14:49 +0200)]
webkitgtk: use Python 3 for builds

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agovirglrenderer: update 0.7.0 -> 0.8.0
Alexander Kanavin [Fri, 30 Aug 2019 12:49:55 +0000 (14:49 +0200)]
virglrenderer: update 0.7.0 -> 0.8.0

This also allows building virglrenderer without python 2.x

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agollvm: use python 3 during builds
Alexander Kanavin [Fri, 30 Aug 2019 12:49:54 +0000 (14:49 +0200)]
llvm: use python 3 during builds

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopseudo: use python 3 during builds
Alexander Kanavin [Fri, 30 Aug 2019 12:49:53 +0000 (14:49 +0200)]
pseudo: use python 3 during builds

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibpsl: use python 3 during builds
Alexander Kanavin [Fri, 30 Aug 2019 12:49:52 +0000 (14:49 +0200)]
libpsl: use python 3 during builds

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoca-certificates: use python 3 for builds
Alexander Kanavin [Fri, 30 Aug 2019 12:49:51 +0000 (14:49 +0200)]
ca-certificates: use python 3 for builds

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemu: switch to '-vga std' emulated hardware from vmware/cirrus for x86/mips
Alexander Kanavin [Fri, 30 Aug 2019 12:49:48 +0000 (14:49 +0200)]
qemu: switch to '-vga std' emulated hardware from vmware/cirrus for x86/mips

This is the qemu default since qemu 2.2, is generally supported better,
and is recommended by upstream. It also has already been in use for arm/risc
and ovmf.

Additional information:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=13466
https://www.kraxel.org/blog/2014/10/qemu-using-cirrus-considered-harmful/

'-vga virtio' emulated hardware remains in use when virgl is enabled via a runqemu override.

Also, adjust the error whitelist, as there is a number of new messages
coming from the drivers that are not actual errors.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-yocto-dev: Mark qemuriscv64 as compatible
Alistair Francis [Fri, 30 Aug 2019 20:38:45 +0000 (13:38 -0700)]
linux-yocto-dev: Mark qemuriscv64 as compatible

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibffi: fix upstream version check
Alexander Kanavin [Fri, 30 Aug 2019 20:21:11 +0000 (22:21 +0200)]
libffi: fix upstream version check

As there is no version newer than 3.3-rc0 yet, an exception
from the check is needed.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolsb-release: fix upstream version check
Alexander Kanavin [Fri, 30 Aug 2019 20:21:10 +0000 (22:21 +0200)]
lsb-release: fix upstream version check

With the new recipe matching the tarbal version, there is
no need for an exception from the check.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-yocto/5.2: update qemuriscv64 SRCREV
Bruce Ashfield [Fri, 30 Aug 2019 20:17:18 +0000 (16:17 -0400)]
linux-yocto/5.2: update qemuriscv64 SRCREV

The scripts that update my SRCREVs were missing the qemuriscv64. This
SRCREV bump moves it to match the rest of the 5.2 qemu BSPs.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemu: bump linux-yocto preferred version to 5.2
Bruce Ashfield [Fri, 30 Aug 2019 16:06:32 +0000 (12:06 -0400)]
qemu: bump linux-yocto preferred version to 5.2

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-yocto: introduce 5.2 recipes
Bruce Ashfield [Fri, 30 Aug 2019 16:06:31 +0000 (12:06 -0400)]
linux-yocto: introduce 5.2 recipes

Introducing the 5.2 linux-yocto reference kernels. 5.0 is EOL and will
be removed, leaving 4.19 (LTS) and 5.2 as the reference kernels.

This has been build/boot tested on all qemu architectures for
core-image-kernel-dev, and graphics tesed via core-image-sato. No
blocking issues have been found.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-libc-headers: update to v5.2 headers
Bruce Ashfield [Fri, 30 Aug 2019 16:06:30 +0000 (12:06 -0400)]
linux-libc-headers: update to v5.2 headers

We drop the patch 0001-arm64-sve-uapi-asm-ptrace.h-should-not-depend-on-uap.patch
since it was a backport and is already part of the 5.2 headers

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc-cross: Clean up fixed-includes
Richard Purdie [Fri, 30 Aug 2019 15:50:35 +0000 (16:50 +0100)]
gcc-cross: Clean up fixed-includes

We had interesting failures where building gcc-cross-powerpc with 5.0 kernel
headers, then building eudev after moving to 5.2 headers failed.

gcc-cross doesn't rebuild when linux-libc-headers changes due to its
listing in SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS. This shouldn't matter but
fixincludes as adding asm-generic/socket.h to its filtered list which
was then replacing the real header with an older version. This mismatch
lead to build failures.

We trust the Linux kernel headers to be ANSI safe so lets just clear out
any headers and trust the originals to be correct.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoltp: move from python 2.x to python 3.x
Alexander Kanavin [Wed, 28 Aug 2019 20:50:16 +0000 (22:50 +0200)]
ltp: move from python 2.x to python 3.x

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoyocto-check-layer: Allow any case for README file detection
Mark Hatle [Wed, 28 Aug 2019 18:22:46 +0000 (14:22 -0400)]
yocto-check-layer: Allow any case for README file detection

It's become more commone for files to be named "readme" or "Readme" on github servers
in recent time.  So adjust the scanning to allow any mix of case.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobind: fix build with python3 PACKAGECONFIG enabled
Chen Qi [Fri, 23 Aug 2019 08:56:29 +0000 (16:56 +0800)]
bind: fix build with python3 PACKAGECONFIG enabled

If the PACKAGECONFIG item, python3, is enabled, we get the following
QA issue when multilib is enabled.

  ERROR: bind-9.11.5-P4-r0 do_package: QA Issue: bind: Files/directories were installed but not shipped in any package:
  /usr/lib
  /usr/lib/python3.7
  /usr/lib/python3.7/site-packages
  /usr/lib/python3.7/site-packages/isc-2.0-py3.7.egg-info
  /usr/lib/python3.7/site-packages/isc
  /usr/lib/python3.7/site-packages/isc/policy.py
  [snip]

The thing is, when --with-python is specified with a path instead of 'yes',
the --with-python-install-dir is in fact ignored.

Fix this issue by specifying the correct arguments.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodevsrc: update arm64 scripts/prepare for kernels 5.3+
Bruce Ashfield [Wed, 28 Aug 2019 19:28:41 +0000 (15:28 -0400)]
devsrc: update arm64 scripts/prepare for kernels 5.3+

We need to include a few more small files for on target module
builds for 5.3+ kernels.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoperf: v5.3+ build fixes
Bruce Ashfield [Wed, 28 Aug 2019 19:28:40 +0000 (15:28 -0400)]
perf: v5.3+ build fixes

In the 5.3+ perf builds, there are multiple unistd.h files that need
to be kept in sync. So not only do we update one, we update both to
ensure that libc-headers and the perf build are in sync.

perf checks some key files itself to be sure they are in sync, and
bits.h can be out of sync. There's no build error that results with
bits.h at the moment, but we still make sure they are in sync to
avoid the configure/compile warning.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoperf: change dependencies on python to python3
Bruce Ashfield [Thu, 29 Aug 2019 02:14:41 +0000 (22:14 -0400)]
perf: change dependencies on python to python3

The upstream kernel can now handle python3 for the perf scripts, coupled
with the impending EOL of python2, we switch the dependencies in perf
(scripting) to python3.

Outside of dependency changes, we also pass the following two variables
to the perf build: PYTHON=python3 PYTHON_CONFIG=python3-config. To
ensure that our python3 components are used.

For configurations that disable perf scripting, there is no change in
behaviour.

[YOCTO #13358]

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokernel-devsrc: remove python2 dependency
Bruce Ashfield [Wed, 28 Aug 2019 19:28:38 +0000 (15:28 -0400)]
kernel-devsrc: remove python2 dependency

Witht the approaching EOL of python2, the kernel packages need to
be updated to depend on python3.

The core kernel scripts are now python3 safe, making the RDEPENDS
change relatively simple.

but

There are some scripts that are captured in the devsrc files that
are not used, but reference /usr/bin/python. The python3 package
does not provide /usr/bin/python so any package managers with
automatic dependency detection will fail to assemble a rootfs due
to the missing intepreter.

We could drop the scripts from the source capture, but that
risks dropping something that we need in certain operations and
we'd miss when they are updated in tree to explicitly call python3
(since they won't be revisited often). Light testing shows that the
scripts do run with python3, so rather than removing them, we change
the interpreter once they are copied, and automatic dependency
detection won't cause us rootfs assembly issues.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobluez5: fix build against libc-headers 5.2+
Bruce Ashfield [Wed, 28 Aug 2019 19:28:37 +0000 (15:28 -0400)]
bluez5: fix build against libc-headers 5.2+

Backporting the following upstream commit to fix the build against
kernel 5.2+ headers:

[
   Subject: [PATCH] tools: Fix build after y2038 changes in glibc

   The 32-bit SIOCGSTAMP has been deprecated. Use the deprecated name
   to fix the build.
]

Upstream-Status: backport commit f36f71f60b1e68c0f12e615b9b128d089ec3dd19

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa: reproducible: Do two clean builds
Joshua Watt [Thu, 29 Aug 2019 15:31:06 +0000 (10:31 -0500)]
oeqa: reproducible: Do two clean builds

Perform two clean builds without sstate instead of one partial rebuild
with sstate and one clean build without. There are some classes of
reproducibility issues that this solves, and while we would like to
resolve them in the long term the direction to do so is not currently
clear.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>