]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agolinux-yocto: introduce 5.0 versioned recipe
Bruce Ashfield [Wed, 6 Mar 2019 16:37:11 +0000 (11:37 -0500)]
linux-yocto: introduce 5.0 versioned recipe

Introducing the 5.0 linux-yocto reference kernel, which will become
the "latest" kernel as part of the spring yocto release.

qemu* has been built and sanity tested against this kernel, and it
is suitable to become the default build for the emulated references.

Some minor configuration cleanup was performed, but otherwise, things
are very similar to the 4.19 kernel config:

  7fdb966db86 (HEAD -> yocto-5.0) aufs4: kbuild patch
  c76b027a8b2 iosched: remove configs for removed legacy io schedules
  5d1f8102244 netfilter: drop removed config options
  8ff16f508f5 kernel-yocto: 5.0 kernel prep

Feature wise, this is a match for 4.19, with yaffs2 and aufs4 being
kept around for another release. Aufs is scheduled for removal in
the fall release.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-libc-headers: update to 5.x headers
Bruce Ashfield [Wed, 6 Mar 2019 16:37:10 +0000 (11:37 -0500)]
linux-libc-headers: update to 5.x headers

Updating the linux-libc-headers to the 5.x kernel variant to match
the latest reference kernel in the 2.7 release.

We have two patches refreshed for context changes, and three patches
dropped since they have been merged to the mainline kernel and are
no longer necessary.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-yocto: allow kernel-meta repositories to be patched
Bruce Ashfield [Wed, 6 Mar 2019 16:37:09 +0000 (11:37 -0500)]
kernel-yocto: allow kernel-meta repositories to be patched

For testing purposes, it is often easier to patch a fragment
in a kernel-meta repository versus needing to make a copy or
modify the source repository.

We can allow this sort of patching when a patchdir of kernel-meta
is passed (to indicate the nested kernel-meta repository).

Also note that we must patch the meta data before they are
processed/gathered, since migrated copies to the kernel source
directory will be used later.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobind-utils: Install nslookup
Adrian Bunk [Wed, 6 Mar 2019 07:59:01 +0000 (09:59 +0200)]
bind-utils: Install nslookup

nslookup was undeprecated 15 years ago,
and installing bind-utils should replace the busybox version.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowpa-supplicant: Remove no longer required hack for libnl
Adrian Bunk [Wed, 6 Mar 2019 07:46:10 +0000 (09:46 +0200)]
wpa-supplicant: Remove no longer required hack for libnl

Upstream already fixed this properly by using pkg-config.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorng-tools: Make nistbeacon support optional
Adrian Bunk [Wed, 6 Mar 2019 07:43:44 +0000 (09:43 +0200)]
rng-tools: Make nistbeacon support optional

Downloading your randomness directly from the US government
is a rare usecase but adds heavy dependencies.

Make it optional and non-default.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorng-tools: Don't depend on libgcrypt when the PACKAGECONFIG is disabled
Adrian Bunk [Wed, 6 Mar 2019 07:43:43 +0000 (09:43 +0200)]
rng-tools: Don't depend on libgcrypt when the PACKAGECONFIG is disabled

PACKAGECONFIG[libgcrypt] already adds it when necessary.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibpam: libpamc is licensed under its own BSD-style licence
Douglas Royds [Wed, 6 Mar 2019 01:59:21 +0000 (14:59 +1300)]
libpam: libpamc is licensed under its own BSD-style licence

Or alternatively GPL, the same as the top-level Linux-PAM COPYING.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoqemuarm64: Add graphics support
Jon Mason [Tue, 5 Mar 2019 22:32:18 +0000 (17:32 -0500)]
qemuarm64: Add graphics support

Add the necessary parts to qemuarm64.conf for graphics to be shown in
the SDL window, and USB so that it is possible to interact with it.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoqemuarm64: config cleanups
Jon Mason [Tue, 5 Mar 2019 22:32:17 +0000 (17:32 -0500)]
qemuarm64: config cleanups

Add comments describing what is going on, remove an unnecessary space,
remove a duplicate comment, and increase the serial speed.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Drop upstream rejected patches
Khem Raj [Wed, 6 Mar 2019 00:19:19 +0000 (16:19 -0800)]
glibc: Drop upstream rejected patches

These patches were applied, hoping that they will eventually be accepted
upstream but they have been rejected, I think its best that they are
dropped so we can avoid novel unintended behaviours that no other
distros will be seeing

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocairo: fix CVE-2018-19876 CVE-2019-6461 CVE-2019-6462
Ross Burton [Tue, 5 Mar 2019 23:38:15 +0000 (23:38 +0000)]
cairo: fix CVE-2018-19876 CVE-2019-6461 CVE-2019-6462

CVE-2018-19876 is a backport from upstream.

CVE-2019-6461 and CVE-2019-6462 are patches taken from Clear Linux.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosend-error-report: Add --no-ssl to use http protocol
Robert Yang [Tue, 5 Mar 2019 03:30:35 +0000 (11:30 +0800)]
send-error-report: Add --no-ssl to use http protocol

The script use https protocol by default, but the error-report-web server's
https connection may not work (e.g., doesn't work with python 2.7.6), so add an
option --no-ssl to make it use http.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibpng: fix CVE-2019-7317
Ross Burton [Tue, 5 Mar 2019 16:30:03 +0000 (16:30 +0000)]
libpng: fix CVE-2019-7317

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibarchive: integrate security fixes
Ross Burton [Tue, 5 Mar 2019 16:30:02 +0000 (16:30 +0000)]
libarchive: integrate security fixes

Fix the following CVEs by backporting patches from upstream:
- CVE-2019-1000019
- CVE-2019-1000020
- CVE-2018-1000877
- CVE-2018-1000878
- CVE-2018-1000879
- CVE-2018-1000880

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agofile: upgrade to 5.36
Ross Burton [Tue, 5 Mar 2019 16:30:01 +0000 (16:30 +0000)]
file: upgrade to 5.36

Upgrade to 5.36.

Drop debian-742262.patch, this appears to have been fixed properly upstream some
releases ago.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoicu: fix CVE-2018-18928
Ross Burton [Tue, 5 Mar 2019 16:30:00 +0000 (16:30 +0000)]
icu: fix CVE-2018-18928

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsndfile1: update security patches
Ross Burton [Tue, 5 Mar 2019 16:29:59 +0000 (16:29 +0000)]
libsndfile1: update security patches

Remove CVE-2017-14245-14246.patch, fix rejected upstream as it doesn't solve the
underlying issue.

Instead 0001-a-ulaw-fix-multiple-buffer-overflows-432 also solves CVE-2017-14245
and CVE-2017-14246 properly.

Add patches for CVE-2017-12562 and CVE-2018-19758.

Refresh CVE-2018-13139.patch.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooe.scriptutils: enable color in a more flexible way
Christopher Larson [Mon, 4 Mar 2019 21:36:23 +0000 (21:36 +0000)]
oe.scriptutils: enable color in a more flexible way

Rather than recreating handlers and forcing them, iterate over the handlers
and enable color on ones we can handle. This makes it easier to handle color
properly when we introduce the bb.msg default log filters.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomusl: Update for few bugfixes
Khem Raj [Tue, 5 Mar 2019 04:37:00 +0000 (20:37 -0800)]
musl: Update for few bugfixes

We have seen/reported few dlopen related fixes which has been fixed
upstream, therefore upgrade

all set of changes

https://git.musl-libc.org/cgit/musl/log/?qt=range&q=6516282d2adfad2c7e66d854cde3357120c75dbd..43e7efb46555f13a556d92944ac05c19b8929b60

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodevtool: Support kmeta directory usage with devtool modify/finish
Jaewon Lee [Sat, 15 Dec 2018 00:39:22 +0000 (16:39 -0800)]
devtool: Support kmeta directory usage with devtool modify/finish

When using Kmeta directories, devtool finish will add every single file
in the directory to the bbappend. This is because in the current
implementation, the get_recipe_local_files function treats the kmeta
directory like a file. Modifying the function to loop through the
provided directories and return all included files instead of just the
top level directory. This will enable correct file to file comparison
when determing which files are new/changed and need to be added to the
bbappend.

Adding an extra check in devtool-source.bbclass to not copy the cfg file
if its already included somewhere in the kmeta directory

Also during 'modify', when moving necessary files in the kmeta directory
from the workdir to oe-local-files, the dangling parent directories are
left behind.  This in itself is not an issue as the temporary devtool
workspace is automatically deleted, but this causes an incorrect include
directory to be added in kernel-yocto.bbclass.  Changing the order of
the if statements to catch the correct conditional. This is safe to do
as when not in the devtool context, there will be no oe-local-files
directory.

Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Acked-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobtrfs-tools: pass V=1 to get verbose builds
Ross Burton [Mon, 4 Mar 2019 21:59:00 +0000 (21:59 +0000)]
btrfs-tools: pass V=1 to get verbose builds

Quiet builds are nice for interactive builds, but hide information we'd like in
the logs.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobtrfs-tools: remove redundant cross-compilation patch
Ross Burton [Mon, 4 Mar 2019 21:58:59 +0000 (21:58 +0000)]
btrfs-tools: remove redundant cross-compilation patch

This patch was to use BUILD_CC instead of CC when building mktables, a binary
used to generate tables.c.

However due to cross-compilation problems such as this, upstream since 4.12.1
(f929b62 specifically) avoids the entire issue and ships tables.c in the
repository, updating it as required.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosquashfs-tools: add PACKAGECONFIGs for all the tunables
Ross Burton [Mon, 4 Mar 2019 17:31:44 +0000 (17:31 +0000)]
squashfs-tools: add PACKAGECONFIGs for all the tunables

Upstream lets you control what compression algorithms are used, so add
PACKAGECONFIGs for them all.

Instead of bundling a copy of the SevenZIP SDK from 2009 (!), reuse XZ.  This
means we can drop Public Domain from the license list.

Also -e was removed from EXTRA_OEMAKE in 2016 (oe-core aeb653) so the fiddling
to work around that can be removed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoutil-linux: remove spurious lzo-native dependency
Ross Burton [Mon, 4 Mar 2019 17:31:43 +0000 (17:31 +0000)]
util-linux: remove spurious lzo-native dependency

This was added with no explanation in 2010 (17f3c548c) and doesn't appear to be
needed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomtd-utils: add lzo PACKAGECONFIG
Ross Burton [Mon, 4 Mar 2019 17:31:42 +0000 (17:31 +0000)]
mtd-utils: add lzo PACKAGECONFIG

LZO support is optional so add a PACKAGECONFIG to control this.

Also clean up the xattr PACKAGECONFIG to explicitly enable/disable.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackagegroup-core-tools-testapps: remove lrzsz
Ross Burton [Mon, 4 Mar 2019 17:31:41 +0000 (17:31 +0000)]
packagegroup-core-tools-testapps: remove lrzsz

We can assume that modern boards don't need X/Y/ZMODEM transfer tools for
testing purposes.  The few users that need this tool for testing can add it
themselves.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackagegroup-self-hosted: remove lrzsz
Ross Burton [Mon, 4 Mar 2019 17:31:40 +0000 (17:31 +0000)]
packagegroup-self-hosted: remove lrzsz

A X/Y/ZMODEM transfer tool is not a required package for self-hosted builds.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinitscripts: Add support for /etc/default/timestamp
Jeroen Hofstee via Openembedded-core [Fri, 1 Mar 2019 20:16:02 +0000 (20:16 +0000)]
initscripts: Add support for /etc/default/timestamp

Source /etc/default/timestamp if present. This allows the rootfs to be
read-only / store the file in a persistant location if the whole rootfs
is updated.

Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomasterimage: remove code duplication
André Draszik [Mon, 4 Mar 2019 09:07:24 +0000 (09:07 +0000)]
masterimage: remove code duplication

Two identical classes exist for SystemdbootTarget,
introduced in commit f9a61d3400ad
("gummiboot: Remove/change gummiboot references with systemd-boot")
poky commit 2dce2648e3d8

Remove the duplicated copy.

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl: Add cryptodev-linux PACKAGECONFIG
Ovidiu Panait [Mon, 4 Mar 2019 11:38:45 +0000 (13:38 +0200)]
openssl: Add cryptodev-linux PACKAGECONFIG

The old bsd cryptodev engine was removed in
https://github.com/openssl/openssl/pull/3699
and the new one added in:
https://github.com/openssl/openssl/pull/3744

It can be enabled by configuring with "enable-devcryptoeng".

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopango: fix markup-parse test case
Ross Burton [Mon, 4 Mar 2019 13:47:37 +0000 (13:47 +0000)]
pango: fix markup-parse test case

The test case expects that printf(0x0) is (null) but for us this it is (NULL).

Use case-insensitive diff as the rest of the tests don't care about case.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoswig: fix build with musl
Luca Boccassi [Mon, 4 Mar 2019 12:42:08 +0000 (12:42 +0000)]
swig: fix build with musl

Building with musl currently fails. The fix has been committed
upstream, so backport it.
Note that it requires running yacc again to regenerate the parser file,
so a bison-native dependency is needed. Also the upstream's configure
step creates the directory where the parser file is generated at
make-dist time, and for some reason running through bitbake does not
create it, so do it manually. All of this can be reverted once a new
swig version that includes the fix is released and rebased onto.

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxserver-xorg: Fix build errors with clang
Khem Raj [Sun, 3 Mar 2019 00:38:34 +0000 (16:38 -0800)]
xserver-xorg: Fix build errors with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogrub: Enhance Waddress-of-packed-member patch to cover x86_64 testcase
Khem Raj [Sun, 3 Mar 2019 00:38:33 +0000 (16:38 -0800)]
grub: Enhance Waddress-of-packed-member patch to cover x86_64 testcase

This was not compiled for x86_64 when previously testing aarch64
so some tests were missed.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agouboot-extlinux-config.bbclass: add missing variable dependencies
Matt Madison [Sun, 3 Mar 2019 13:31:42 +0000 (05:31 -0800)]
uboot-extlinux-config.bbclass: add missing variable dependencies

do_create_extlinux_config performs its own override processing
for several variables, so we have to explicitly add the label-
suffixed variable names to its vardeps to make sure that changes
get detected.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogdk-pixbuf: export XDG_DATA_DIRS in wrappers
Ming Liu [Sun, 3 Mar 2019 09:08:41 +0000 (10:08 +0100)]
gdk-pixbuf: export XDG_DATA_DIRS in wrappers

We need export XDG_DATA_DIRS to be ${STAGING_DATADIR} for gdk-pixbuf*
wrappers or else they will try to load mime from /usr/share/mime of the
host machine.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoselftest: add tests for virgl GL acceleration
Alexander Kanavin [Sun, 3 Mar 2019 11:27:50 +0000 (12:27 +0100)]
selftest: add tests for virgl GL acceleration

Note that the tests require that the host machine has a X display,
has mesa development files installed and is able to create OpenGL contexts.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorunqemu: make gl options gtk+-specific
Alexander Kanavin [Sun, 3 Mar 2019 11:27:45 +0000 (12:27 +0100)]
runqemu: make gl options gtk+-specific

If in the future GL is enabled for SDL frontend, or some other
frontend, it would be useful to be able to differentiate.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorunqemu: add an option to choose the SDL frontend instead of Gtk+ default
Alexander Kanavin [Sun, 3 Mar 2019 11:27:44 +0000 (12:27 +0100)]
runqemu: add an option to choose the SDL frontend instead of Gtk+ default

When Gtk+ and SDL are both enabled, qemu defaults to Gtk+.
This option allows to revert to the 'classic' frontend.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoelfutils: Refresh patches after upgrade
Richard Purdie [Mon, 4 Mar 2019 11:57:12 +0000 (11:57 +0000)]
elfutils: Refresh patches after upgrade

Use devtool to refresh the patches. This avoids fuzz warnings.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoelfutils: upgrade 0.175 -> 0.176
Zang Ruochen [Fri, 1 Mar 2019 09:03:50 +0000 (17:03 +0800)]
elfutils: upgrade 0.175 -> 0.176

upgrade from elfutils_0.175.bb to elfutils_0.176.bb

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoselftest: Add multiconfig test
Richard Purdie [Sat, 2 Mar 2019 15:00:43 +0000 (15:00 +0000)]
selftest: Add multiconfig test

Add a test for a multiconfig build which mixes tiny and musl builds
along with using the mcextend class to combine and package multiple images
into another image. This gives the multiconfig a decent test in a scenario
users may use.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomcextend: Add helper class useful for multiconfig
Richard Purdie [Sat, 2 Mar 2019 14:34:01 +0000 (14:34 +0000)]
mcextend: Add helper class useful for multiconfig

This class allows users to easily create multiconfig BBCLASSEXTEND recipes
and is generally useful. It will be used by new tests so add as a general
feature.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoparselogs.py: ignore regulatory.db load failure messages for x86*
Naveen Saini [Fri, 1 Mar 2019 07:55:17 +0000 (15:55 +0800)]
parselogs.py: ignore regulatory.db load failure messages for x86*

[YOCTO #13098]

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd-boot: upgrade to 241
Chen Qi [Tue, 26 Feb 2019 06:38:58 +0000 (14:38 +0800)]
systemd-boot: upgrade to 241

The following two patches are added because I cannot figure
out how to pass parameter to efi-cc if it's changed to be
an array value.

  systemd/0001-Revert-meson-print-EFI-CC-configuration-nicely.patch
  systemd/0001-Revert-meson-use-an-array-option-for-efi-cc.patch

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd-conf: add version info in recipe name
Chen Qi [Tue, 26 Feb 2019 04:43:13 +0000 (12:43 +0800)]
systemd-conf: add version info in recipe name

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: upgrade to 241
Chen Qi [Tue, 26 Feb 2019 01:20:16 +0000 (09:20 +0800)]
systemd: upgrade to 241

PATCH REBASED:
==============
0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch
0004-rules-whitelist-hd-devices.patch
0007-rules-watch-metadata-changes-in-ide-devices.patch
0001-Use-getenv-when-secure-versions-are-not-available.patch
0002-don-t-use-glibc-specific-qsort_r.patch
0004-add-fallback-parse_printf_format-implementation.patch
0006-src-basic-missing.h-check-for-missing-strndupa.patch
0007-Include-netinet-if_ether.h.patch
0008-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch
0009-add-missing-FTW_-macros-for-musl.patch
0012-fix-missing-of-__register_atfork-for-non-glibc-build.patch
0013-Use-uintmax_t-for-handling-rlim_t.patch
0014-fix-missing-ULONG_LONG_MAX-definition-in-case-of-mus.patch
0021-Hide-__start_BUS_ERROR_MAP-and-__stop_BUS_ERROR_MAP.patch

PATCH DROPPED:
==============
0005-Make-root-s-home-directory-configurable.patch
  systemd has its hardcoded assumption about /home and /, and it also respects
  $HOME environment var, so this patch is somehow useless. This patch was originally
  added but in fact had no real runtime effect except messing up some hardcoded assumptions,
  and it was accidently manipulated during systemd upgrade. We have in fact not
  used the orignal patch for more than two releases and things were working out
  well.
0006-remove-nobody-user-group-checking.patch
  The issue has been fixed upstream by the following commit.
    "check nobody user/group validity only when not cross compiling"
0008-Do-not-enable-nss-tests-if-nss-systemd-is-not-enable.patch
0009-nss-mymachines-Build-conditionally-when-ENABLE_MYHOS.patch
  The issue has been fixed upstream by the following commit.
    "meson: allow building resolved and machined without nss modules"
0001-login-use-parse_uid-when-unmounting-user-runtime-dir.patch
0001-sd-bus-make-BUS_DEFAULT_TIMEOUT-configurable.patch
  Backport
0022-build-sys-Detect-whether-struct-statx-is-defined-in-.patch
  Merged
0023-resolvconf-fixes-for-the-compatibility-interface.patch
0001-core-when-deserializing-state-always-use-read_line-L.patch
0001-chown-recursive-let-s-rework-the-recursive-logic-to-.patch
0001-dhcp6-make-sure-we-have-enough-space-for-the-DHCP6-o.patch
0001-Revert-sysctl.d-request-ECN-on-both-in-and-outgoing-.patch
0001-timesync-changes-type-of-drift_freq-to-int64_t.patch
  Backport
0001-sysctl-Don-t-pass-null-directive-argument-to-s.patch
0002-core-Fix-use-after-free-case-in-load_from_path.patch
  Merged
0001-meson-rename-Ddebug-to-Ddebug-extra.patch
0024-journald-do-not-store-the-iovec-entry-for-process-co.patch
0025-journald-set-a-limit-on-the-number-of-fields.patch
0026-journal-fix-out-of-bounds-read-CVE-2018-16866.patch
CVE-2019-6454.patch
sd-bus-if-we-receive-an-invalid-dbus-message-ignore-.patch
0005-basic-user-util-properly-protect-use-of-gshadow.patch
0022-Use-if-instead-of-ifdef-for-ENABLE_GSHADOW.patch
  Backport
0001-Remove-fstack-protector-flags-to-workaround-musl-bui.patch
  No build failure for qemux86/qemuppc + musl

PATCH ADDED:
============
0020-missing_type.h-add-__compar_d_fn_t-definition.patch
0021-avoid-redefinition-of-prctl_mm_map-structure.patch
0022-include-sys-wait.h-to-avoid-compile-failure.patch
0023-socket-util.h-include-string.h.patch
0024-test-json.c-define-M_PIl.patch
0001-do-not-disable-buffer-in-writing-files.patch

PATCH OTHERS:
=============
0003-comparison_fn_t-is-glibc-specific-use-raw-signature-.patch
0011-src-basic-missing.h-check-for-missing-__compar_fn_t-.patch
are combined into one patch:
0003-missing_type.h-add-__compare_fn_t-and-comparison_fn_.patch

Add two more PACKAGECONFIG, nss-mymachines and nss-resolve  which are introduced
by the following commit.
  meson: allow building resolved and machined without nss modules

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoacpid: upgrade 2.0.30 -> 2.0.31
Zang Ruochen [Fri, 1 Mar 2019 10:04:00 +0000 (18:04 +0800)]
acpid: upgrade 2.0.30 -> 2.0.31

upgrade from acpid_2.0.30.bb  to acpid_2.0.31.bb

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl10: Fix mutliple include assumptions for des.h in opensslconf.h
Denys Dmytriyenko [Fri, 1 Mar 2019 20:05:59 +0000 (15:05 -0500)]
openssl10: Fix mutliple include assumptions for des.h in opensslconf.h

The fix is heavily based on Khem's previous fix for bn.h/BN_LLONG breakage:
https://git.openembedded.org/openembedded-core/commit/?id=f787b0bb9b0626ddbf2ac94cb206c76716a3773d

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Cc: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogdk-pixbuf: fix Meson variable names
Stefan Agner [Fri, 1 Mar 2019 22:58:26 +0000 (23:58 +0100)]
gdk-pixbuf: fix Meson variable names

With 2.38.0 gdk-pixbuf dopped the enable_ prefix from the Meson
build options.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopsplash: improve make-image-header.sh call
Stefan Agner [Fri, 1 Mar 2019 22:58:02 +0000 (23:58 +0100)]
psplash: improve make-image-header.sh call

Simplify make-image-header.sh call and make sure it gets called in
the current working directory. Also check the return value of the
function call.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomusl: Fix out of bounds data access in dlopen
Khem Raj [Fri, 1 Mar 2019 03:21:12 +0000 (19:21 -0800)]
musl: Fix out of bounds data access in dlopen

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoperf: Set libunwind dir explicitly to point into staging sysroot
Khem Raj [Fri, 1 Mar 2019 03:21:11 +0000 (19:21 -0800)]
perf: Set libunwind dir explicitly to point into staging sysroot

This helps it find the unwind library in sysroot always and not
look around and confuse with host

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake.conf: Drop -fno-omit-frame-pointer
Khem Raj [Fri, 1 Mar 2019 03:21:10 +0000 (19:21 -0800)]
bitbake.conf: Drop -fno-omit-frame-pointer

Let -Og decide the best debugging experience

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Disable Werror when building with debug options
Khem Raj [Fri, 1 Mar 2019 03:21:09 +0000 (19:21 -0800)]
glibc: Disable Werror when building with debug options

Since compiler does not optimize away a lot of stuff we end up with
Werrors e.g.

./sysdeps/ieee754/flt-32/s_log1pf.c: In function '__log1pf':
../sysdeps/ieee754/flt-32/s_log1pf.c:114:22: error: 'c' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  114 |        + (k * ln2_lo + c))) - f);
      |          ~~~~~~~~~~~~^~~~

which otherwise wont happen, so lets build with warnings-as-errors
disabled in debug mode

given we disable werror, now we don't have to restrict user to compile
without -O0

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake.conf: Use -Og in DEBUG_OPTIMIZATION
Khem Raj [Fri, 1 Mar 2019 03:21:08 +0000 (19:21 -0800)]
bitbake.conf: Use -Og in DEBUG_OPTIMIZATION

-Og is for optimized debugging experience.
this makes this consistent across different compilers especially gcc and
clang, -O in clang is equal to -O2 where as in gcc its similar to -O1
so it was not giving consistent debugging experience across compilers

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto: qemuarm|qemuarm64: graphics support
Bruce Ashfield [Fri, 1 Mar 2019 05:34:25 +0000 (00:34 -0500)]
linux-yocto: qemuarm|qemuarm64: graphics support

Integrating the configuration changes from Jon Mason <jdmason@kudzu.us>
to enable graphics for qemuarm/qemuarm64.

Note2: This requires the machine/configuration changes also sent by
       John to have working graphics.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel: add objtool to shared workdir when CONFIG_UNWINDER_ORC is set
Justin Bronder [Fri, 1 Mar 2019 05:34:26 +0000 (00:34 -0500)]
kernel: add objtool to shared workdir when CONFIG_UNWINDER_ORC is set

Based on: https://patchwork.openembedded.org/patch/148047/

When x86_64 enables CONFIG_UNWINDER_ORC [ORC (Oops Rewind Capability)
unwinder for unwinding kernel stack traces], objtool is required to
generate the required information.

If we don't copy objtool to the shared workdir, out-of-tree modules
cannot generate object files.

For instance, meta-skeleton/hello-mod fails with:
    | make[3]: *** No rule to make target 'tools/objtool/objtool', needed by ...

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto/4.19: configuration cleanups
Bruce Ashfield [Fri, 1 Mar 2019 05:34:24 +0000 (00:34 -0500)]
linux-yocto/4.19: configuration cleanups

Integrating the following configuration tweaks (which were already
on yocto-4.18):

   9bddc4aa1eb bsp/intel-x86: Rename CONFIG_R8723BE to CONFIG_RTL8723BE
   6504b0ed616 features: drop the obsolete kernel option
   5d18756a7fc features/hostapd: drop obsolete configs
   bdf91f835b9 bsp/intel-x86: Drop configs that has been removed by kernel
   0f8bb536c22 intel-x86: Drop configs which are not defined in kernel

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto: netfilter: Enable CONFIG_NETFILTER_XT_TARGET_LOG
Bruce Ashfield [Fri, 1 Mar 2019 05:34:23 +0000 (00:34 -0500)]
linux-yocto: netfilter: Enable CONFIG_NETFILTER_XT_TARGET_LOG

[
    In order for logging to work, as for example seen with the default
    configuration of 'ufw' we need to have logging support enabled.  This is
    currently gated on the CONFIG_NETFILTER_XT_TARGET_LOG option, so enable
    it here.

Fixes: f56608b405f0 ("meta: cleanup invalid/obselete 3.4 CONFIG options")
Signed-off-by: Tom Rini <trini@konsulko.com>
]

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoperl: apply a native-only patch only to -native
Alexander Kanavin [Thu, 28 Feb 2019 16:58:59 +0000 (17:58 +0100)]
perl: apply a native-only patch only to -native

Otherwise some of ptests were failing on target:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=13194

[YOCTO #13194]

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/metadata: Add commit_count to fallback logic
Richard Purdie [Sat, 23 Feb 2019 15:54:35 +0000 (15:54 +0000)]
oeqa/utils/metadata: Add commit_count to fallback logic

Currently if python3-git isn't installed we can get odd behaviours when the
commit_count is absent. Avoid this set of bugs by adding a fallback here.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/oetest: Drop unused import
Richard Purdie [Thu, 28 Feb 2019 12:18:41 +0000 (12:18 +0000)]
oeqa/oetest: Drop unused import

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoscripts/wic: Be consistent about how we call bitbake
Richard Purdie [Thu, 28 Feb 2019 12:24:49 +0000 (12:24 +0000)]
scripts/wic: Be consistent about how we call bitbake

Whilst its tempting to call bitbake_main(), the script also directly executes
bitbake. By doing both this creates all kinds of races. Therefore
change to use subprocess execution in all cases.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibdazzle: add check for GTK3DISTROFEATURES
Mingli Yu [Tue, 26 Feb 2019 02:50:25 +0000 (10:50 +0800)]
libdazzle: add check for GTK3DISTROFEATURES

When do world buid, there comes below error:
| ERROR: Nothing PROVIDES 'gtk+3' (but /build/layers/oe-core/meta/recipes-gnome/libdazzle/libdazzle_3.30.2.bb DEPENDS on or otherwise requires it)
| gtk+3 was skipped: one of 'x11 wayland' needs to be in DISTRO_FEATURES

Add the check for GTK3DISTROFEATURES to make
the world build work even without GTK3DISTROFEATURES.

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-fitimage: Replace tabs with spaces in python
Alex Kiernan [Wed, 27 Feb 2019 06:57:09 +0000 (06:57 +0000)]
kernel-fitimage: Replace tabs with spaces in python

Fix:

  WARNING: python should use 4 spaces indentation, but found tabs in kernel-fitimage.bbclass, line 33

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowic: Ensure that sourceparams values can contain '='
Jan Kiszka [Thu, 28 Feb 2019 08:47:56 +0000 (09:47 +0100)]
wic: Ensure that sourceparams values can contain '='

This allows '--sourceparams key1=val1=val11,key2=val2'.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoresulttool/regression: Ensure regressoin results are sorted
Yeoh Ee Peng [Thu, 28 Feb 2019 01:58:57 +0000 (09:58 +0800)]
resulttool/regression: Ensure regressoin results are sorted

Sorted regression results to provide friendly viewing of report.

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Move common bits to glibc-common.inc
Khem Raj [Thu, 28 Feb 2019 00:37:24 +0000 (16:37 -0800)]
glibc: Move common bits to glibc-common.inc

We have been duplicating few variables in glibc recipes which could
actually be defined once, therefore move them to glibc-common.inc which is
included by all glibc family of recipes

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibpcre: enable JIT
Ross Burton [Wed, 27 Feb 2019 18:33:55 +0000 (18:33 +0000)]
libpcre: enable JIT

PCRE has an optional JIT for performance.

Add a PACKAGECONFIG for this, enabled by default.

Also add a patch so that auto-detection of JIT availablity, which is required to
enable the JIT by default, works with out-of-tree builds.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibpcre: recipe cleanup
Ross Burton [Wed, 27 Feb 2019 18:33:54 +0000 (18:33 +0000)]
libpcre: recipe cleanup

The following options are the defaults, so remove them:
--enable-newline-is-lf
--with-match-size=2
--with-match-limit=10000000

We don't appear to need to pass -D_REENTRANT anymore (added with no explanation
to oe-classic in 2006).

Explicitly adding -lstdc++ doesn't appear to be required anymore (added for
PowerPC in 2008).

This recipe has always rebuilt the character tables but back in PCRE 4.4 (first
added to OE) a copy of the tables wasn't distributed with the tarball so this
was required.  Since 2007 the tarball includes the tables for ASCII and
regeneration is only required if we wish to use EBCDIC, which we do not. Drop
the patch adding CC_FOR_BUILD support and remove --enable-rebuild-chartables

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoqemu: remove glx/virgl/gtk options from darwin/mingw targets
Alexander Kanavin [Thu, 28 Feb 2019 13:15:03 +0000 (14:15 +0100)]
qemu: remove glx/virgl/gtk options from darwin/mingw targets

As they are not supported, and would lead to build failures.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomesa-gl: Set PACKAGECONFIG for target
Khem Raj [Mon, 25 Feb 2019 23:17:42 +0000 (15:17 -0800)]
mesa-gl: Set PACKAGECONFIG for target

mesa.inc uses PACKAGECONFIG_class-target override to setup default
packageconfigs, which means that when we build mesa-gl for target then
it does no honor the ??= setting we have in mesa-gl recipe, and ends up
compiling egl, gles2 as well, which is not intended.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc: Update to 8.3 latest on 8.x release
Khem Raj [Wed, 27 Feb 2019 18:07:25 +0000 (10:07 -0800)]
gcc: Update to 8.3 latest on 8.x release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl: drop Python 2.x dependency in -ptest
Alexander Kanavin [Wed, 27 Feb 2019 14:36:48 +0000 (15:36 +0100)]
openssl: drop Python 2.x dependency in -ptest

It is only needed by 95-test_external_pyca_data which is
actually skipped on the target.

[YOCTO #13204]

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoutil-linux: fix multilib qa issue
Kai Kang [Wed, 27 Feb 2019 09:50:32 +0000 (04:50 -0500)]
util-linux: fix multilib qa issue

Update RCONFLICTS and RREPLACES for util-linux to fix 'multilib' qa issue:

| ERROR: lib32-util-linux-2.32.1-r0 do_package: QA Issue: lib32-util-linux
  package lib32-util-linux-blkid - suspicious values 'e2fsprogs-blkid' in
  RREPLACES [multilib]
| ERROR: lib32-util-linux-2.32.1-r0 do_package: QA Issue: lib32-util-linux
  package lib32-util-linux-blkid - suspicious values 'e2fsprogs-blkid' in
  RCONFLICTS [multilib]

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxserver-xorg: upgrade 1.20.3 -> 1.20.4
Anuj Mittal [Wed, 27 Feb 2019 03:17:10 +0000 (11:17 +0800)]
xserver-xorg: upgrade 1.20.3 -> 1.20.4

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodefault-distrovars: Drop DISTRO_FEATURES_LIBC
Khem Raj [Wed, 27 Feb 2019 02:27:04 +0000 (18:27 -0800)]
default-distrovars: Drop DISTRO_FEATURES_LIBC

After eglibc was merged into glibc, Kconfig support was also dropped so
these libc features therefore are not effective anymore and can be
removed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolocal.conf.sample: adjust the qemu configuration to refer to qemu-system-native
Alexander Kanavin [Wed, 27 Feb 2019 17:47:33 +0000 (18:47 +0100)]
local.conf.sample: adjust the qemu configuration to refer to qemu-system-native

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: depend on qemu-native, not qemu-helper-native
Alexander Kanavin [Wed, 27 Feb 2019 17:47:32 +0000 (18:47 +0100)]
python3: depend on qemu-native, not qemu-helper-native

qemu-helper-native would erroneously pull in the qemu system
parts, where we only want usermode parts for pgo.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoqemu: split the native version into usermode and system parts
Alexander Kanavin [Wed, 27 Feb 2019 17:47:31 +0000 (18:47 +0100)]
qemu: split the native version into usermode and system parts

The rationale is to streamline the overall build.

The system parts are only needed to run target images, and so can be
built towards the end of the build process. At the same time, the
system parts may need gtk+-native and mesa-native which add significantly
to the build time.

On the other hand, the usermode parts have almost no dependencies
and can be built quickly. They are needed at recipes build time to
run target binaries, and so are required quite early in the typical
build process.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoresulttool/store: Fix missing variable causing testresult corruption
Richard Purdie [Thu, 28 Feb 2019 13:16:47 +0000 (13:16 +0000)]
resulttool/store: Fix missing variable causing testresult corruption

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolocal.conf.sample.extended: Use IMAGE_CLASSES to inherit extrausers
Peter Kjellerstedt [Thu, 17 Jan 2019 02:55:00 +0000 (03:55 +0100)]
local.conf.sample.extended: Use IMAGE_CLASSES to inherit extrausers

Since the extrausers class is only useful for image recipes, it is
better to suggest adding it via IMAGE_CLASSES instead of INHERIT in the
example.

Also make the example a bit more readable by indenting the variable
values.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years ago resulttool/report: Ensure ptest results are sorted
Richard Purdie [Wed, 27 Feb 2019 17:10:19 +0000 (17:10 +0000)]
 resulttool/report: Ensure ptest results are sorted

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoresulttool/report: Ensure test suites with no results show up on the report
Richard Purdie [Wed, 27 Feb 2019 17:05:29 +0000 (17:05 +0000)]
resulttool/report: Ensure test suites with no results show up on the report

ptest suites with no results don't show up on the reports even though we have
a duration for them. Fix this so the fact they report no tests is visible.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoresulttool/report: Handle missing metadata sections more cleanly
Richard Purdie [Wed, 27 Feb 2019 16:51:56 +0000 (16:51 +0000)]
resulttool/report: Handle missing metadata sections more cleanly

Currently some older results files cause the code to give tracebacks.
Handle these missing sections more cleanly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoresulttool/store: Handle results files for multiple revisions
Richard Purdie [Wed, 27 Feb 2019 11:59:54 +0000 (11:59 +0000)]
resulttool/store: Handle results files for multiple revisions

Currently we cant store results if the results files span multiple
different build revisons. Remove this limitation by iterating.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl: Fix ptest test output translation
Richard Purdie [Wed, 27 Feb 2019 00:29:46 +0000 (00:29 +0000)]
openssl: Fix ptest test output translation

openssl-ptest was recording now results, despite most tests passing. Fix
so that the successes/skips/failures are reported correctly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosyslinux: upgrade to 6.04-pre2
Anuj Mittal [Tue, 26 Feb 2019 13:22:53 +0000 (21:22 +0800)]
syslinux: upgrade to 6.04-pre2

For changes in this release, see:

http://www.syslinux.org/wiki/index.php?title=Syslinux_6_Changelog

Backport a patch to fix compilation failures and remove the patches that
are not needed anymore.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocpio: avoid conflict with tar-doc and rmt.8
Mark Asselstine [Tue, 26 Feb 2019 17:10:35 +0000 (12:10 -0500)]
cpio: avoid conflict with tar-doc and rmt.8

This fixes:
    Error: Transaction check error:
      file /usr/share/man/man8/rmt.8 conflicts between attempted installs of
      cpio-doc-2.12-r0.core2_64 and tar-doc-1.31-r0.core2_64

Prior to commit 348a96a5b401 [tar: upgrade to 1.31] the copies of
rmt.8 found in the tar(-doc) and cpio(-doc) packages were the same and
thus no conflict was seen. After the upgrade there were small changes
in the manpage header which results in the conflict quoted above. The
applications themselves make use of the 'update-alternatives'
mechanism to allow a user to select which version of 'rmt' to use but
since the man pages are essentially the same we disambiguate the
source of the man pages and make them both available should both
cpio-doc and tar-doc are both installed. And as such we avoid the
conflict.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolttng-tools: Disable hanging tests and other ptest fixes
Richard Purdie [Tue, 26 Feb 2019 22:49:39 +0000 (22:49 +0000)]
lttng-tools: Disable hanging tests and other ptest fixes

Disable some tests which hang, blocking many other ptests.

Also add missing test artefacts to improve test pass rate and
fix failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-fitimage.bbclass: Introduce a way to provide external dtb
Manjukumar Matha [Wed, 20 Feb 2019 18:29:06 +0000 (10:29 -0800)]
kernel-fitimage.bbclass: Introduce a way to provide external dtb

Currently kernel-fitimage gets the dtb from KERNEL_DEVICETREE, however
there are instances when the DTB file can be generated using other
recipes, provide a way to include the DTB instead of inkernel device
tree.

Add support for external device tree during the creation of fitimage.  If
virtual/dtb is set using PREFERRED_PROVIDER_virtual/dtb = "devicetree", which
inherits the devicetree.bbclass then use the path provided in
EXTERNAL_KERNEL_DEVICETREE else use KERNEL_DEVICETREE during fitimage process

Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Install AArch64 loader link correctly for usrmerge+multilib
Mike Crowe [Sun, 24 Feb 2019 21:00:52 +0000 (21:00 +0000)]
glibc: Install AArch64 loader link correctly for usrmerge+multilib

The AArch64 little-endian ABI requires that the dynamic loader is always
available at /lib/ld-linux-aarch64.so.1. Similarly, the big-endian ABI
requires that the dynamic loader is always available at
/lib/ld-linux-aarch64_be.so.1.

glibc-package.inc contains code that tries to ensure this, but
unfortunately it is defeated by the combination of multilib and usrmerge
because it does not take into account that /lib is the same as /usr/lib
with usrmerge when it adds the loader path to libc_baselibs and when it
attempts to show that /usr/lib is empty in do_poststash_install_cleanup.
This results in the symlink not being included in the package and a build
failure due to rmdir failing.

Richard Purdie also suggested[1] that ${nonarch_base_libdir} should not be
used as a synonym for /lib in this case.

This hopefully-fixed version always sets ARCH_DYNAMIC_LOADER and then uses
${root_prefix}/lib/${ARCH_DYNAMIC_LOADER} to refer to the dynamic loader
which works with both multilib and usrmerge. Since ARCH_DYNAMIC_LOADER is
only non-empty if the symlink is required, the code to create it can move
to do_install_append. Then do_poststash_install_cleanup needs to be taught
that ${exec_prefix}/lib may not be empty if the dynamic loader symlink is
there.

It appears not to be possible to specify the name of the loader via a
variable with an override, since the _aarch64 override is applied even for
_aarch64-be, so I've set the loader name using ${TARGET_ARCH} instead.

Build-tested and inspected core-image-minimal rootfs with:

* AArch64 no multilib (real loader in correct place)
  MACHINE = "qemuarm64"

* AArch64 multilib (symlink in correct place)
  MACHINE = "qemuarm64"
  MULTILIBS = "multilib:lib32"
  DEFAULTTUNE_virtclass-multilib-lib32 = "armv7at-neon"
  require conf/multilib.conf

* AArch64 usrmerge (real loader in correct place)
  DISTRO_FEATURES += "usrmerge"
  MACHINE = "qemuarm64"

* AArch64 multilib usrmerge (symlink in correct place)
  DISTRO_FEATURES += "usrmerge"
  MACHINE = "qemuarm64"
  MULTILIBS = "multilib:lib32"
  DEFAULTTUNE_virtclass-multilib-lib32 = "armv7at-neon"
  require conf/multilib.conf

* big-endian versions of all of the above by also setting
  DEFAULTTUNE = "aarch64_be".
  (building glibc only.)

* x86_64 (real loader in /lib as before)[2]
  MACHINE = "qemux86"

* x86_64 multilib (real loader in /lib64 as before)
  MACHINE="qemux86-64"
  MULTILIBS = "multilib:lib32"
  DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
  require conf/multilib.conf

I also tested leaving an unwanted file in ${exec_prefix}/lib for
do_poststash_install_cleanup to detect, and I believe the detection always
worked correctly.

[1] http://lists.openembedded.org/pipermail/openembedded-core/2018-November/276120.html

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoarch-armv8a.inc: Add missing BASE_LIB tune overrides
Mike Crowe [Sat, 23 Feb 2019 20:12:37 +0000 (20:12 +0000)]
arch-armv8a.inc: Add missing BASE_LIB tune overrides

For multilib to work correctly, BASE_LIB overrides must be provided for
each new tune added in this file.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoalsa-tools: 1.1.6 -> 1.1.7
Tanu Kaskinen [Mon, 25 Feb 2019 15:56:15 +0000 (17:56 +0200)]
alsa-tools: 1.1.6 -> 1.1.7

Changelog:
http://alsa-project.org/main/index.php/Changes_v1.1.6_v1.1.7

The two patches have now been upstreamed. Apart from those changes, the
only thing that changed was the hwmixvolume tool, which got ported from
PyGTK to PyGObject, and from GTK 2 to GTK 3.

When testing hwmixvolume, I found that it depends on pyalsa, which has
not been packaged for OE. I believe hwmixvolume has never worked on OE.
It certainly didn't work before this patch, trying to build it failed
due to python-pygtk not being available. Even if python-pygtk was
available at some point in the past, hwmixvolume has always used pyalsa,
but the alsa-tools recipe has never had that dependency declared.

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoltp: Add patch for string formatting security warning
Daniel Díaz [Mon, 25 Feb 2019 22:02:52 +0000 (16:02 -0600)]
ltp: Add patch for string formatting security warning

A revamp of the syscalls/setregid tests made to use a new
library [LTP:7a1b4427] required a conversion to test messages.
This test in particular did not include a formatted string,
but a just a string element:
  testcases/kernel/syscalls/setregid/setregid01.c

This patch allows LTP to be built with -Wformat,
-Wformat-security, and -Werror=format-security.

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Remove ChangeLog diff from patch
Alistair Francis [Mon, 25 Feb 2019 21:39:45 +0000 (21:39 +0000)]
glibc: Remove ChangeLog diff from patch

To avoid conflicts with other forks of glibc remove the diff from the
ChangeLog.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomusl: Update to latest beyond 1.21
Khem Raj [Mon, 25 Feb 2019 17:28:29 +0000 (09:28 -0800)]
musl: Update to latest beyond 1.21

https://git.musl-libc.org/cgit/musl/log/?qt=range&q=1691b23955590d1eb66a11158fdd91c86337e886..6516282d2adfad2c7e66d854cde3357120c75dbd

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl: move c_rehash pkg to avoid perl dep
Brad Bishop [Mon, 14 Jan 2019 22:04:33 +0000 (17:04 -0500)]
openssl: move c_rehash pkg to avoid perl dep

Perl and its dependencies have a decent footprint impact.  On my
xz compressed filesystem:

634880: /usr/lib/libperl.so.5.24.4

Put c_rehash in the openssl-misc package so the dependency can be
avoided where it isn't needed.

Change-Id: Iae9bccabfb1c8cfa1401ca6785abc39713d3fdf0
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>