]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
5 years agolttng-ust: upgrade 2.11.0 -> 2.11.1
Richard Purdie [Tue, 17 Mar 2020 22:50:46 +0000 (15:50 -0700)]
lttng-ust: upgrade 2.11.0 -> 2.11.1

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibxcrypt: upgrade 4.4.14 -> 4.4.15
Wang Mingyu [Thu, 19 Mar 2020 07:41:46 +0000 (00:41 -0700)]
libxcrypt: upgrade 4.4.14 -> 4.4.15

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoicu: upgrade 65.1 ->66.1
Wang Mingyu [Thu, 19 Mar 2020 07:41:45 +0000 (00:41 -0700)]
icu: upgrade 65.1 ->66.1

-License-Update: Copyright year updated to 2020.

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglew: upgrade 2.1.0 -> 2.2.0
Wang Mingyu [Thu, 19 Mar 2020 07:41:44 +0000 (00:41 -0700)]
glew: upgrade 2.1.0 -> 2.2.0

0001-Fixed-compilation-with-current-mesa-versions.patch
removed since it is included in 2.2.0

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agofribidi: upgrade 1.0.8 -> 1.0.9
Wang Mingyu [Thu, 19 Mar 2020 07:41:43 +0000 (00:41 -0700)]
fribidi: upgrade 1.0.8 -> 1.0.9

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobluez5: upgrade 5.53 -> 5.54
Wang Mingyu [Thu, 19 Mar 2020 07:41:42 +0000 (00:41 -0700)]
bluez5: upgrade 5.53 -> 5.54

CVE-2020-0556-1.patch
CVE-2020-0556-2.patch
removed since they are included in 5.54

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomeson: upgrade 0.53.1 -> 0.53.2
William A. Kennington III [Tue, 17 Mar 2020 07:14:10 +0000 (00:14 -0700)]
meson: upgrade 0.53.1 -> 0.53.2

Signed-off-by: William A. Kennington III <wak@google.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomusl: Add support for multilib
Khem Raj [Tue, 17 Mar 2020 07:04:17 +0000 (00:04 -0700)]
musl: Add support for multilib

ldso is always stored in /lib regardless of multilib
add ld-musl-${MUSL_LDSO_ARCH}.path to aid ldso finding default library
loading paths, it helps when using multilib, where system libraries are
moved to lib32 or lib64 paths under / or /usr

[YOCTO #11971]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinuxloader: Add get_musl_loader_arch function
Khem Raj [Tue, 17 Mar 2020 07:04:16 +0000 (00:04 -0700)]
linuxloader: Add get_musl_loader_arch function

get_musl_loader_arch returns the arch part of ldso for musl, this is
used in get_musl_loader() as well as independently usable, which is
needed for multilib support in musl. Musl stores all ldso in /lib
be it multilib or not, therefore do not use base_libdir instead directly
use /lib

[YOCTO #11971]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogtk+3: upgrade 3.24.13 -> 3.24.14
Wang Mingyu [Tue, 17 Mar 2020 07:16:49 +0000 (00:16 -0700)]
gtk+3: upgrade 3.24.13 -> 3.24.14

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobase-passwd: LICENSE changed to GPLv2
Wang Mingyu [Tue, 17 Mar 2020 07:16:48 +0000 (00:16 -0700)]
base-passwd: LICENSE changed to GPLv2

The source code such as update-passwd.c states the license to be under
GPL v2 only and does not contain the "or later" clause so correct the
recipe LICENSE field to match.

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocmake: Update 3.16.1 -> 3.16.5
Domarys Correa [Tue, 17 Mar 2020 12:44:54 +0000 (09:44 -0300)]
cmake: Update 3.16.1 -> 3.16.5

Signed-off-by: Domarys Correa <domarys.correa@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolttng-modules: update to 2.11.2
Daniel Dragomir [Wed, 18 Mar 2020 16:42:35 +0000 (16:42 +0000)]
lttng-modules: update to 2.11.2

Upgrade to version 2.11.2 in order to fix some build errors
with latest 5.4 kernel.

- conflicting types for 'trace_fast_page_fault'
Reproductible on kernel greater than v5.4.19, starting with commit
8a1cd01bee ("KVM: x86: Use gpa_t for cr2/gpa to fix TDP support on
32-bit KVM")

Error messages:
lttng-modules-2.11.1/probes/../probes/lttng-tracepoint-event-impl.h:130:6:
error:
  130 | void trace_##_name(_proto);
tmp/work-shared/axxiax86-64/kernel-source/include/linux/tracepoint.h:233:21:
note: previous definition of 'trace_fast_page_fault' was here
  233 |  static inline void trace_##name(proto)

- conflicting types for 'trace_rcu_dyntick'
Reproductible on kernel greater than v5.4.22, starting with commit
6cf539a87a ("rcu: Fix data-race due to atomic_t copy-by-value")

Error messages:
lttng-modules-2.11.1/probes/../probes/lttng-tracepoint-event-impl.h:130:6:
error: conflicting types for 'trace_rcu_dyntick'
  130 | void trace_##_name
tmp/work-shared/axxiax86-64/kernel-source/include/linux/tracepoint.h:233:21:
note: previous definition of 'trace_rcu_dyntick' was here
  233 |  static inline void trace_##name(proto)

Signed-off-by: Daniel Dragomir <Daniel.Dragomir@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/manual/bsp-hw.json: fix syntax error
Yi Zhao [Wed, 18 Mar 2020 03:38:00 +0000 (11:38 +0800)]
oeqa/manual/bsp-hw.json: fix syntax error

Remove the redundant comma to fix the json decode error:

$ resulttool manualexecution ../meta/lib/oeqa/manual/bsp-hw.json
Traceback (most recent call last):
[snip]
  File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 948 column 1 (char 39810)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibucontext: Fix multilib build
Khem Raj [Tue, 17 Mar 2020 18:32:20 +0000 (11:32 -0700)]
libucontext: Fix multilib build

libdir is hardcoded to /lib which is not going to work in multilib
scene, patch makefile to add a variable to override the libdir from env

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorunqemu: support multiple NICs
Adrian Freihofer [Tue, 17 Mar 2020 15:26:50 +0000 (16:26 +0100)]
runqemu: support multiple NICs

Emulating more than one network interface with runqemu is a bit tricky,
but possible. For example, the following leads to an emulated device with
eth0 and eth1:

QB_NETWORK_DEVICE_prepend = " \
    -device virtio-net-device,mac=52:54:00:12:34:03 \
"

or

QB_NETWORK_DEVICE_append = " \
    -device virtio-net-pci,mac=52:54:00:12:34:03 \
"

When booting Qemu with two NICs, the kernel does not know which
interface the specified ip=192.168.7.... command line argument
should be applied. This delays the boot process for a very long
time and a guest wihtout IP configuration.

This add two new configuraton parameters to runqemu:
QB_CMDLINE_IP_SLIRP and QB_CMDLINE_IP_TAP to explicitely specify the ip=
kernel command line arguments for tap and slirp mode.

Note: Simply adding "::eth0" broke some builds on the Yocto autobuilder.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Sun, 15 Mar 2020 22:48:51 +0000 (22:48 +0000)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolayer.conf: Allow compatibility with zeus for now
Richard Purdie [Sun, 15 Mar 2020 22:48:36 +0000 (22:48 +0000)]
layer.conf: Allow compatibility with zeus for now

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Sun, 15 Mar 2020 22:27:16 +0000 (22:27 +0000)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolayer.conf: Update to LAYERSERIES_CORENAME to dunfell
Richard Purdie [Sun, 15 Mar 2020 22:21:55 +0000 (22:21 +0000)]
layer.conf: Update to LAYERSERIES_CORENAME to dunfell

Update the layer core name to the new release name.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoscripts/pybootchartgui: Fix to work with python 3.8
Richard Purdie [Sun, 15 Mar 2020 12:03:20 +0000 (12:03 +0000)]
scripts/pybootchartgui: Fix to work with python 3.8

time.clock() was removed in python 3.8, use one of its recommended replacements
to fix failures on python 3.8 systems.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoltp: make multilib installable.
Jeremy Puhlman [Fri, 13 Mar 2020 22:55:22 +0000 (15:55 -0700)]
ltp: make multilib installable.

Many of ltp's tests are of syscalls and libc content. Enable installing
mulitpule abi's.

Use prefix consistently rather then hardcoded /opt/ltp everywhere.

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomusl: removes aliases for glibc provided libraries
Jan Kaisrlik [Fri, 13 Mar 2020 19:44:51 +0000 (12:44 -0700)]
musl: removes aliases for glibc provided libraries

Based on the recommendation in musl mailing list[1] All symlinks have
been removed from musl recipe.

Move stub libraries into -dev package
having them treated as normal .a which they are not, is not correct and
packages shoves them into static archives, which are not installed on
target usually unless asked for

this should help in linking with -lm, -lpthread etc. on target

[1]: https://www.openwall.com/lists/musl/2020/03/10/11

Signed-off-by: Jan Kaisrlik <ja.kaisrlik@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobabeltrace2: updated to 2.0.2
Anders Wallin [Fri, 13 Mar 2020 12:14:58 +0000 (13:14 +0100)]
babeltrace2: updated to 2.0.2

Signed-off-by: Anders Wallin <wallinux@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython: upgrade 3.8.1 -> 3.8.2
Trevor Gamblin [Fri, 13 Mar 2020 11:27:20 +0000 (04:27 -0700)]
python: upgrade 3.8.1 -> 3.8.2

THE LICENSE checksum changed in this update due to copyright notice
added for 2020.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoinitramfs-framework: fix boothang when console=null
Stefan Eichenberger [Fri, 13 Mar 2020 11:09:07 +0000 (12:09 +0100)]
initramfs-framework: fix boothang when console=null

If console=null systemd-udevd throws an assertion which prevents the
system from booting. This patch redirects stdin, stdout and stderr to
/dev/null in case that the console can't be opened so that udevd still
boots.

A systemd issue was reported here. However, they will not fix this
specific use-case:
https://github.com/systemd/systemd/issues/13332

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobinutils: fix CVE-2020-0551
Anuj Mittal [Fri, 13 Mar 2020 01:09:39 +0000 (09:09 +0800)]
binutils: fix CVE-2020-0551

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobluez: fix CVE-2020-0556
Anuj Mittal [Fri, 13 Mar 2020 01:09:38 +0000 (09:09 +0800)]
bluez: fix CVE-2020-0556

It was discovered that BlueZ's HID and HOGP profiles implementations
don't specifically require bonding between the device and the host.

This creates an opportunity for an malicious device to connect to a
target host to either impersonate an existing HID device without
security or to cause an SDP or GATT service discovery to take place
which would allow HID reports to be injected to the input subsystem from
a non-bonded source.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc: Upgrade to 9.3 bugfix release
Khem Raj [Thu, 12 Mar 2020 23:08:40 +0000 (16:08 -0700)]
gcc: Upgrade to 9.3 bugfix release

This brings ~157 bugfixes [1] to gcc-9 with no features
Drop backports which are already part of the release now

[1] https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&list_id=260610&resolution=FIXED&target_milestone=9.3

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/qemuarm64: Ignore logind: failed to get session seat
Khem Raj [Thu, 12 Mar 2020 07:50:14 +0000 (00:50 -0700)]
oeqa/qemuarm64: Ignore logind: failed to get session seat

When booting weston images this error is seen commonly, but Qemu boots
the image fine, session seat error is thrown by libweston perhaps using
--seat option or setting XDG_SEAT variable in weston.ini could fix it

[YOCTO #13828]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibsdl2: upgrade 2.0.10 -> 2.0.12
Andreas Müller [Thu, 12 Mar 2020 14:43:31 +0000 (15:43 +0100)]
libsdl2: upgrade 2.0.10 -> 2.0.12

* checked all hunks: backported patches can go
* for machines with neon in TUNE_FEATURES enable new configure option
  --enable-arm-neon. If enabled, license must be extended to MIT
* license checksum changed by copyright year

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoweston-init: Launch weston with WESTON_DISABLE_ATOMIC on musl/x86
Khem Raj [Thu, 12 Mar 2020 23:02:38 +0000 (16:02 -0700)]
weston-init: Launch weston with WESTON_DISABLE_ATOMIC on musl/x86

Since we enabled drm/kms backend for qemux86, it does not work with musl
fdbdev worked ok, we see this error

[18:58:45.628] launching '/usr/libexec/weston-desktop-shell'
[18:58:45.737] atomic: couldn't commit new state: Invalid argument
[18:58:45.737] repaint-flush failed: Invalid argument

There seems to be some problem with atomics in libdrm, until that gets
diagnosed, simple solution is to not use it on musl when drm backend is used
thats why WESTON_DISABLE_ATOMIC=Y is set in environment file for such
cases

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoscritpts/tiny/ksize: Cleanup some python2 leftover in ksize.py
jan [Thu, 12 Mar 2020 20:44:44 +0000 (21:44 +0100)]
scritpts/tiny/ksize: Cleanup some python2 leftover in ksize.py

Although the script was running with Python3, almost no detailed
output was generated.

Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocoreutils: Add extra hint about DEPENDS changes affect on -dev dependencies
Richard Purdie [Thu, 12 Mar 2020 22:51:19 +0000 (22:51 +0000)]
coreutils: Add extra hint about DEPENDS changes affect on -dev dependencies

Add an extra comment about the implications of changing DEPENDS.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoscripts/oe-buildenv-internal: Add BB_LOGCONFIG
Richard Purdie [Thu, 12 Mar 2020 13:19:25 +0000 (13:19 +0000)]
scripts/oe-buildenv-internal: Add BB_LOGCONFIG

We should allow the logging configurations to be specificed from the
environment, for example for autobuilder setups.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemu: fix CVE-2020-7039
Changqing Li [Thu, 27 Feb 2020 05:25:46 +0000 (13:25 +0800)]
qemu: fix CVE-2020-7039

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobabeltrace2: initialize the other_entry pointer
Mingli Yu [Wed, 11 Mar 2020 13:49:33 +0000 (21:49 +0800)]
babeltrace2: initialize the other_entry pointer

When add below line to local.conf to enable debug build:

DEBUG_BUILD = "1"

There comes below failure when run "bitbake babeltrace2"
| ../../../../../git/src/plugins/ctf/fs-src/fs.c: In function 'ds_index_insert_ds_index_entry_sorted':
| ../../../../../git/src/plugins/ctf/fs-src/fs.c:702:5: error: 'other_entry' may be used uninitialized in this function [-Werror=maybe-uninitialized]
|   702 |    !ds_index_entries_equal(entry, other_entry)) {

So initialize the other_entry pointer to fix the above error.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa: enable testresults.json for testexport
Stefan Kral [Wed, 11 Mar 2020 16:37:30 +0000 (17:37 +0100)]
oeqa: enable testresults.json for testexport

Add the option --json-result-dir to oeqa core context to enable
testresults.json creation for test runs via testexport.

Eg. oe-test runtime --json-result-dir .

Signed-off-by: Stefan Kral <sk@typedivision.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoweston-init: Allow use of weston without input devices
Domarys Correa [Wed, 11 Mar 2020 16:52:21 +0000 (13:52 -0300)]
weston-init: Allow use of weston without input devices

Don't force users to have input device in your targets. As the default
option require-input is set to true, Weston only starts if we have a
device in /dev/input/event* and this not a requirement for all applications,
e.g. kiosk browser.

Signed-off-by: Domarys Correa <domarys.correa@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoboost: fix reproducibilty issues
Jeremy Puhlman [Wed, 11 Mar 2020 22:25:46 +0000 (15:25 -0700)]
boost: fix reproducibilty issues

fix cmake file references of image dir path

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodnf: fix reproducibilty issue
Jeremy Puhlman [Wed, 11 Mar 2020 22:25:45 +0000 (15:25 -0700)]
dnf: fix reproducibilty issue

Script points to native python3

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogtk-doc: Fix reproducibity issues
Jeremy Puhlman [Wed, 11 Mar 2020 22:25:44 +0000 (15:25 -0700)]
gtk-doc: Fix reproducibity issues

path to pkg-config and python3 encoded in scripts

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoltp: fix reproducibilty issues
Jeremy Puhlman [Wed, 11 Mar 2020 22:25:43 +0000 (15:25 -0700)]
ltp: fix reproducibilty issues

Man pages are copied in to the target filesystem from the configured
build, which leaks paths in to the work directory

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemu: Fix reproducibilty issues
Jeremy Puhlman [Wed, 11 Mar 2020 22:25:42 +0000 (15:25 -0700)]
qemu: Fix reproducibilty issues

tests/qemu-iotests/common.env is generated from configure which
we pass ${HOSTTOOLS_DIR}/python3 as our python to use, which gets
copied into the ptests. Correct python3 path.

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agostrace: Fix reproducibility issues
Jeremy Puhlman [Wed, 11 Mar 2020 22:25:41 +0000 (15:25 -0700)]
strace: Fix reproducibility issues

gen_tests script encodes its full path to itself in each script

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglib-2.0: Correct multilib conflict
Jeremy Puhlman [Wed, 11 Mar 2020 22:22:49 +0000 (15:22 -0700)]
glib-2.0: Correct multilib conflict

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobabletrace2: make manpages multilib identical
Jeremy Puhlman [Wed, 11 Mar 2020 22:22:48 +0000 (15:22 -0700)]
babletrace2: make manpages multilib identical

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocurl: upgrade 7.69.0 -> 7.69.1
Pierre-Jean Texier [Wed, 11 Mar 2020 16:38:38 +0000 (17:38 +0100)]
curl: upgrade 7.69.0 -> 7.69.1

Contains a number of fixes for issues discovered post-7.69.0.
For details, see full changelog:

https://curl.haxx.se/changes.html#7_69_1

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/runtime/context.py: fix typo
Stefan Kral [Wed, 11 Mar 2020 16:36:49 +0000 (17:36 +0100)]
oeqa/runtime/context.py: fix typo

Signed-off-by: Stefan Kral <sk@typedivision.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglew/curl: specify exclusive package configs
Kai Kang [Tue, 10 Dec 2019 09:35:35 +0000 (17:35 +0800)]
glew/curl: specify exclusive package configs

Specify exclusive package configs for glew and curl to make sure that
conflict package configs will NOT set at same time.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobase.bbclass: extend PACKAGECONFIG for conflict package configs
Kai Kang [Tue, 10 Dec 2019 09:35:34 +0000 (17:35 +0800)]
base.bbclass: extend PACKAGECONFIG for conflict package configs

There are mutually exclusive PACKAGECONFIGs in recipes. Though it
declares that package configs are exclusive, it can't prevent users to
set them at same time. Extend PACKAGECONFIG to support specifying
conflicted package configs.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agonspr: Move to meta-oe
Adrian Bunk [Sun, 23 Feb 2020 19:34:08 +0000 (21:34 +0200)]
nspr: Move to meta-oe

It was used only by nss.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agonss: Move to meta-oe
Adrian Bunk [Sun, 23 Feb 2020 19:34:07 +0000 (21:34 +0200)]
nss: Move to meta-oe

rpm was the last user in OE-core.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc: strip line numbers from generated code in gcc-plugins on target
Ross Burton [Tue, 10 Mar 2020 13:48:26 +0000 (13:48 +0000)]
gcc: strip line numbers from generated code in gcc-plugins on target

The line numbers are influenced by the gcc version on the host used to generate
the code. Remove these to ensure the shipped source code is the same.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc: don't ship build host information in the target gcc-plugins package
Ross Burton [Tue, 10 Mar 2020 14:07:01 +0000 (14:07 +0000)]
gcc: don't ship build host information in the target gcc-plugins package

The build host configuration isn't reproducible as it varies depending
on the gcc version of the build host. This information isn't useful on the
target anyway so remove it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocoreutils: Fix -dev package dependencies
Richard Purdie [Sun, 8 Mar 2020 14:35:58 +0000 (14:35 +0000)]
coreutils: Fix -dev package dependencies

The new ptest dependencies present some challenges, in particular libmodule-build-perl
which effectively depends on gcc. In multilib images, this results in both
libXX-gcc-symlinks and libYY-gcc-symlinks being installed which conflict. This also
makes little sense.

The easiest way to fix this is to disable the automatic -dev package dependencies
and manually specify the correct ones.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoptest-packagelists.inc: add coreutils to SLOW
Trevor Gamblin [Wed, 11 Mar 2020 11:32:35 +0000 (04:32 -0700)]
ptest-packagelists.inc: add coreutils to SLOW

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocoreutils: add ptest
Trevor Gamblin [Wed, 11 Mar 2020 11:32:34 +0000 (04:32 -0700)]
coreutils: add ptest

coreutils has a large number of tests, including some added by the
Makefile flags RUN_EXPENSIVE_TESTS and RUN_VERY_EXPENSIVE_TESTS that
significantly increase runtime (and that have been disabled). Note
that the coreutils ptest directory is given blanket permissions at
runtime with chmod -R 777 to ensure that the user created for the
tests will be able to run the test scripts and create the necessary
files in the process.

There is still room to improve the results of this ptest without
the aforementioned additions. Of the tests marked SKIP, there are
30 tests that are currently counted as SKIP because they require
sudo permissions, and another 21 that require membership in
multiple user groups. It is important to know that coreutils has
tests for both root and non-root users. Testing showed that 42
tests are skipped when running as root versus 30 when running as a
non-root user, so the decision was made to run the suite as the
latter. Additionally, gdb, valgrind, and strace could be included
in the RDEPENDS list to increase pass rate, but their total
contribution is 13 tests, so they were omitted to reduce image size.

Finally, note that at least one ptest (misc/head-write-error.sh) is
prone to ERROR on builds of core-image-minimal if extra space is
not provided with IMAGE_ROOTFS_EXTRA_SPACE.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogrub-efi-cfg: enable per-label APPEND override
Rich Persaud [Mon, 9 Mar 2020 22:44:57 +0000 (18:44 -0400)]
grub-efi-cfg: enable per-label APPEND override

For legacy bios boot configurations, syslinux supports multiple
labels with per-label APPEND definitions.  grub-efi-cfg supports
multiple labels, but only a single APPEND definition.

Enable optional per-label APPEND definitions for grub EFI, with
variable names prefixed by "grub_" to isolate grub definitions from
syslinux defintions.

Example use from an ISO image recipe that inherits grub-efi-cfg:

 LABELS_LIVE="foo bar"
 APPEND_grub_foo = "linuxcmdline"

No change in behavior for those using APPEND without overrides.

Signed-off-by: Rich Persaud <rp@stacktrust.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoimage-prelink: remove assumption of sysconfdir presence
Christopher Clark [Tue, 10 Mar 2020 21:55:13 +0000 (14:55 -0700)]
image-prelink: remove assumption of sysconfdir presence

If sysconfdir is not present in the image filesystem then the temporary
creation of a prelink.conf will fail. Fix this by creating sysconfdir
temporarily if needed beforehand and then remove any directories that
were created afterwards.

fixes: OpenXT OXT-1751

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibdnf: fix upstream version check
Alexander Kanavin [Tue, 10 Mar 2020 19:43:28 +0000 (20:43 +0100)]
libdnf: fix upstream version check

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agovalgrind: Fix timerfd syscall test to be 64bit time_t safe
Khem Raj [Tue, 10 Mar 2020 01:15:43 +0000 (18:15 -0700)]
valgrind: Fix timerfd syscall test to be 64bit time_t safe

This helps compile the testcase with musl on 32bit arches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoruby: Use arm32 for coroutines on 32bit-arm
Khem Raj [Tue, 10 Mar 2020 01:19:38 +0000 (18:19 -0700)]
ruby: Use arm32 for coroutines on 32bit-arm

in 2.7 [2] ruby enabled ucontext for coroutines on arm32 but it does not
work for musl since it uses glibc specific functions e.g.
getcontext/swapcontext/swapcontext also see [1]

This patch reverts back to using arm32 implementation for coroutines on
arm

[1] https://bugs.ruby-lang.org/issues/16455#change-83442
[2] https://github.com/ruby/ruby/commit/6c6bf9ffcbfeb8be9d9c342e7604b74ec819e88a#diff-7fccec8474e2184cd2518046bf39d54cL10

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobuildtools-extended-tarball: Add locale command
Richard Purdie [Mon, 9 Mar 2020 21:09:43 +0000 (21:09 +0000)]
buildtools-extended-tarball: Add locale command

The eSDK installation code checks installed locales with the locale command which is
from glibc-utils. Add this so that we find the correct locales from the buildtools.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglibc: Update nativesdk locale relocation patch
Richard Purdie [Mon, 9 Mar 2020 20:59:11 +0000 (20:59 +0000)]
glibc: Update nativesdk locale relocation patch

The locale binary reported incorrect locale lists in relocated toolchains
as some path references were not relocated by this patch. Fix this missing
relocations so the locale binary correctly reports the locales.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agofiles/toolchain-shar-extract.sh: Rework PATH cleaning
Richard Purdie [Sat, 7 Mar 2020 13:43:44 +0000 (13:43 +0000)]
files/toolchain-shar-extract.sh: Rework PATH cleaning

Trying to create a clean PATH breaks cases where we install a buildtools tarball
on hosts to provide newer versions of gcc. Rework the fix for #8698 to clean up
directories in PATH which don't exist isntead. Do it with python as the shell
version was too fraught with corner cases.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/testsdk: Use original PATH
Richard Purdie [Sun, 8 Mar 2020 10:20:12 +0000 (10:20 +0000)]
oeqa/testsdk: Use original PATH

We want to test the SDK with PATH from the original host, not with our own
tools injected via HOSTTOOLS. It even uses some tools which aren't in
HOSTTOOLS.

This is necessary after changing the SDK to not reset PATH to the system
default which is bad for other reasons and brings the testing into sync
with that change.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/selftest: Ensure buildtools in environment variables isn't replaced
Richard Purdie [Tue, 10 Mar 2020 13:02:07 +0000 (13:02 +0000)]
oeqa/selftest: Ensure buildtools in environment variables isn't replaced

This avoids the seeing broken replacements like:
oe-selftest-centos/build/build-st-926tools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt
which understandably break builds.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglibc: CVE-2020-10029
Zhixiong Chi [Mon, 9 Mar 2020 07:43:41 +0000 (00:43 -0700)]
glibc: CVE-2020-10029

Backport the CVE patch from upstream:
[https://sourceware.org/git/gitweb.cgi?p=glibc.git;
a=patch;h=9333498794cde1d5cca518badf79533a24114b6f]

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoe2fsprogs: backport upstream patch
Anuj Mittal [Mon, 9 Mar 2020 00:45:02 +0000 (08:45 +0800)]
e2fsprogs: backport upstream patch

Fixes a bug wherein a use after free could potentially be used to run
malicious code if a user can be tricked into running e2fsck on a
maliciously crafted file system.

Also see:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=948517

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoe2fsprogs: fix CVE-2019-5188
Anuj Mittal [Mon, 9 Mar 2020 00:45:01 +0000 (08:45 +0800)]
e2fsprogs: fix CVE-2019-5188

Also see:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=948508

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosqlite3: fix CVE-2020-9327
Anuj Mittal [Mon, 9 Mar 2020 00:45:00 +0000 (08:45 +0800)]
sqlite3: fix CVE-2020-9327

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokernel.bbclass: fix SOURCE_DATE_EPOCH for non-git kernel builds
Christopher Clark [Mon, 9 Mar 2020 04:48:13 +0000 (21:48 -0700)]
kernel.bbclass: fix SOURCE_DATE_EPOCH for non-git kernel builds

The source directory is not always a git repository, so when querying
git for data to set SOURCE_DATE_EPOCH, specify ${S}/.git as the git
directory to prevent retrieving incorrect data from any parent directory.

Fixes the following errors with the prior logic when building a kernel
that is not obtained from a git repository:

1. With TMPDIR set to a directory outside any git repository on a
mounted filesystem, reproducible builds fail in do_compile with this git
error:

  fatal: not a git repository (or any parent up to mount point <abspath>)
  Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

aborting before the error handling logic.

2. With TMPDIR located within a subdirectory of a git repository, the
SOURCE_DATE_EPOCH timestamp would be that of said repository rather than
that of the kernel.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-check: fix ValueError
Chee Yang Lee [Mon, 9 Mar 2020 04:57:03 +0000 (12:57 +0800)]
cve-check: fix ValueError

fix below error for whitelisted recipe and recipe skip cve check.

Error:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:do_cve_check(d)
     0003:
File: '/poky-master/meta/classes/cve-check.bbclass', lineno: 59, function: do_cve_check
     0055:        try:
     0056:            patched_cves = get_patches_cves(d)
     0057:        except FileNotFoundError:
     0058:            bb.fatal("Failure in searching patches")
 *** 0059:        whitelisted, patched, unpatched = check_cves(d, patched_cves)
     0060:        if patched or unpatched:
     0061:            cve_data = get_cve_info(d, patched + unpatched)
     0062:            cve_write_data(d, patched, unpatched, whitelisted, cve_data)
     0063:    else:
Exception: ValueError: not enough values to unpack (expected 3, got 2)

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agop11-kit: Add nativesdk variant
Codrin Ciubotariu [Mon, 9 Mar 2020 17:55:35 +0000 (19:55 +0200)]
p11-kit: Add nativesdk variant

The nativesdk variant is needed by the buildtools-tarball, when
p11-kit feature is enabled for gnutls. The error message is:

Missing or unbuildable dependency chain was: ['buildtools-tarball', 'nativesdk-wget', 'nativesdk-gnutls', 'nativesdk-p11-kit']

Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokernel-yocto.bbclass: Support config fragments with externalsrc
Paul Barker [Mon, 9 Mar 2020 14:21:39 +0000 (14:21 +0000)]
kernel-yocto.bbclass: Support config fragments with externalsrc

The merging of config fragments is performend in the do_kernel_configme
task and so config fragments will not be supported when this task is
removed from the dependency tree.

kernel-yocto adds additional tasks which may modify the source directory
to SRCTREECOVEREDTASKS so that they are removed when using externalsrc.
However, do_kernel_configme should be safe to use, the only modification
to the source tree is the potential creation of the '.kernel-meta'
directory and the '.metadir' file.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoperf: Fix externalsrc support
Paul Barker [Mon, 9 Mar 2020 14:21:38 +0000 (14:21 +0000)]
perf: Fix externalsrc support

When the externalsrc class is used the tasks listed in
SRCTREECOVEREDTASKS are deleted to prevent them being executed. If
externalsrc is used for the kernel then this will include
virtual/kernel:do_patch.

We can depend on do_shared_workdir instead as this will survive when
externalsrc is used.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokernelsrc.bbclass: Fix externalsrc support
Paul Barker [Mon, 9 Mar 2020 14:21:37 +0000 (14:21 +0000)]
kernelsrc.bbclass: Fix externalsrc support

When the externalsrc class is used the tasks listed in
SRCTREECOVEREDTASKS are deleted to prevent them being executed. If
externalsrc is used for the kernel then this will include
virtual/kernel:do_patch.

We can depend on do_shared_workdir instead as this will survive when
externalsrc is used.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoreproducibile_build: Fix SDE file generation when unpack reruns
Richard Purdie [Sat, 7 Mar 2020 18:03:40 +0000 (18:03 +0000)]
reproducibile_build: Fix SDE file generation when unpack reruns

Currently, if an existing TMPDIR is rebuilt, do_fetch/do_unpack can rerun
but SDE would remain unchanged. This leads to different results compared
to a fresh build. An example change which triggered this is:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=cb4e69e6346a9fbeebf83a5d5397cacbd41d48b5

Instead, delete any existing SDE and recalculate if we're reunning.
Also rename and drop the do_ prefix since these are for tasks,
not functions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglibc: Explicitly disable msgfmt
Richard Purdie [Sat, 7 Mar 2020 17:20:16 +0000 (17:20 +0000)]
glibc: Explicitly disable msgfmt

If configure is rerun it finds msgfmt from gettext-native which is installed
during package_write_ipk|deb and means builds are not determinisic.

Whether msgfmt is needed is debatable (libc.mo files aren't generated without
it), however, we should at least be consistent which this patch ensures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogroff: Make manpages binary identical
Jeremy Puhlman [Sat, 7 Mar 2020 14:05:48 +0000 (06:05 -0800)]
groff: Make manpages binary identical

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoxinit: make manpages multilib identical
Jeremy Puhlman [Sat, 7 Mar 2020 13:51:05 +0000 (05:51 -0800)]
xinit: make manpages multilib identical

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoxserver-xorg: make manpage mutlilib identical
Jeremy Puhlman [Sat, 7 Mar 2020 13:51:04 +0000 (05:51 -0800)]
xserver-xorg: make manpage mutlilib identical

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoopenssl: fix perl shebang in c_rehash
Martin Jansa [Sat, 7 Mar 2020 13:30:06 +0000 (14:30 +0100)]
openssl: fix perl shebang in c_rehash

* passing PERL=perl breaks c_rehash calls from dash (works fine with bash)

  dash doesn't like
  #!perl
  shebang

  PERL="/usr/bin/env perl"
  unfortunately just passing PERL like this doesn't pass do_configure:
  Creating Makefile
  sh: 1: /usr/bin/env perl: not found
  WARNING: exit code 1 from a shell command.

  But passing it as:
  HASHBANGPERL="/usr/bin/env perl" PERL=perl
  seems to work.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomake: Fix build on arm/clang
Khem Raj [Sat, 7 Mar 2020 07:29:04 +0000 (23:29 -0800)]
make: Fix build on arm/clang

clang defines __arm which is interpreted as non-posix by make build
system but thats not correct when using clang so patch addresses that

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoopenssl: recommend cryptodev-module for corresponding PACKAGECONFIG
Denys Dmytriyenko [Tue, 3 Mar 2020 23:45:09 +0000 (18:45 -0500)]
openssl: recommend cryptodev-module for corresponding PACKAGECONFIG

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemuarm64: Add -machine gic-version=3 with kvm
Khem Raj [Sat, 29 Feb 2020 19:18:41 +0000 (11:18 -0800)]
qemuarm64: Add -machine gic-version=3 with kvm

qemuarm64 on aarch64 host errors out when using kvm

qemu-system-aarch64: PMU: KVM_SET_DEVICE_ATTR: Invalid argument
qemu-system-aarch64: failed to set irq for PMU
Aborted

machines with GICv3 that don’t support GICv2 guests you must have ‘-machine gic-version=3’ on the QEMU command line.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogettext: fix ptest package reproducibilty
Alexander Kanavin [Fri, 6 Mar 2020 21:51:38 +0000 (22:51 +0100)]
gettext: fix ptest package reproducibilty

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomesa: updated to mesa 20.0.1 release
Nathan Hartman [Fri, 6 Mar 2020 20:19:36 +0000 (12:19 -0800)]
mesa: updated to mesa 20.0.1 release

Updated to 20.0.1 release: https://www.mesa3d.org/relnotes/20.0.1.html

Signed-off-by: Nathan Hartman <hnathan918@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocurl: upgrade 7.68.0 -> 7.69.0
Pierre-Jean Texier [Thu, 5 Mar 2020 16:33:53 +0000 (17:33 +0100)]
curl: upgrade 7.68.0 -> 7.69.0

Bugfix release. For details, see full changelog

 - https://curl.haxx.se/changes.html#7_69_0

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-firmware: TI: fix wl18xx support
André Draszik [Fri, 6 Mar 2020 09:35:15 +0000 (09:35 +0000)]
linux-firmware: TI: fix wl18xx support

wl1271-nvs.bin belongs to the wl18xx driver (and respective
package created here), see kernel source.
Due to the way packages are assembled here it ends up in the
wrong package, though.

Fix by placing it in the -common package as it's merely a
symlink to wl127x-nvs.bin (which does belong to the wl12xx),
so that both drivers have access to it.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-firmware: drop remnants of pre-2.6.37 support (TI)
André Draszik [Fri, 6 Mar 2020 09:35:14 +0000 (09:35 +0000)]
linux-firmware: drop remnants of pre-2.6.37 support (TI)

Now that this recipe uses make install, we don't manually
create symlinks for firmware files for older kernel in
do_install(). As such, the FILES statement can be updated
as well.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-check: show whitelisted status
Chee Yang Lee [Fri, 6 Mar 2020 02:27:26 +0000 (10:27 +0800)]
cve-check: show whitelisted status

change whitelisted CVE status from "Patched" to "Whitelisted".

[Yocto #13687]

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopopulate_sdk_ext: enable custom templateconf.cfg
Andrej Valek [Fri, 6 Mar 2020 15:32:33 +0000 (16:32 +0100)]
populate_sdk_ext: enable custom templateconf.cfg

Do not always override templateconf.cfg content. Add option to use
already existing file.

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-firmware: Fix usrmerge builds
Alex Kiernan [Fri, 6 Mar 2020 14:35:18 +0000 (14:35 +0000)]
linux-firmware: Fix usrmerge builds

FIRMWAREDIR defaults to /lib, failing when usrmerge is enabled:

  ERROR: linux-firmware-1_20200122-r0 do_install: Execution of '/home/akiernan/poky/build/tmp/work/core2-64-poky-linux/linux-firmware/1_20200122-r0/temp/run.do_install.31218' failed with exit code 1:
  mkdir -p /home/akiernan/poky/build/tmp/work/core2-64-poky-linux/linux-firmware/1_20200122-r0/image/lib/firmware
  ./copy-firmware.sh /home/akiernan/poky/build/tmp/work/core2-64-poky-linux/linux-firmware/1_20200122-r0/image/lib/firmware
  cp: target '/home/akiernan/poky/build/tmp/work/core2-64-poky-linux/linux-firmware/1_20200122-r0/image/usr/lib/firmware/' is not a directory

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoparselogs.py: ignore rdrand initialization failure
Mingli Yu [Fri, 6 Mar 2020 11:25:16 +0000 (19:25 +0800)]
parselogs.py: ignore rdrand initialization failure

On the system whose cpu doesn't support rdrand,
there comes below message when start rngd service
 #systemctl status rngd
 [snip]
 Feb 25 05:08:14 qemux86-64 rngd[133]: [rdrand]: Initialization Failed
 [snip]

Actually the failed message doesn't matter as it
only indicates one entropy source as rdrand fails
to initialize and won't affect rngd function.

So add to ignore the failure message to fix below
error during do_testimage:
NOTE: ======================================================================
NOTE: FAIL: test_parselogs (parselogs.ParseLogsTest)
NOTE: ----------------------------------------------------------------------
NOTE: Traceback (most recent call last):
  File "/buildarea/layers/oe-core/meta/lib/oeqa/core/decorator/__init__.py", line 36, in wrapped_f
    return func(*args, **kwargs)
  File "/buildarea/layers/oe-core/meta/lib/oeqa/runtime/cases/parselogs.py", line 370, in test_parselogs
    self.assertEqual(errcount, 0, msg=self.msg)
AssertionError: 1 != 0 : Log: /buildarea/tmp/work/qemux86-64-wrs-linux/wrlinux-image-std/1.0-r5/target_logs/daemon.log
Central error: 2020-03-06T09:45:12.774286+00:00 qemux86-64 rngd[134]: [rdrand]: Initialization Failed

Reference: https://github.com/nhorman/rng-tools/pull/84

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosstate: Drop obsolete check in hash validation
Richard Purdie [Thu, 5 Mar 2020 15:27:41 +0000 (15:27 +0000)]
sstate: Drop obsolete check in hash validation

Now this function has a summary parameter we can drop this check.

It could well be why the mysterious "locked sigs" selftest fails
intermittently if this function were called with a single hash
to check.

[YOCTO #13605] (with luck)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibdnf: fix deprecation warning
Joe Slater [Thu, 5 Mar 2020 22:04:54 +0000 (14:04 -0800)]
libdnf: fix deprecation warning

Backport from libdnf.  Fix is in version 0.35.2.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopulseaudio: Fix inline assembly syntax for arm
Khem Raj [Thu, 5 Mar 2020 21:18:55 +0000 (13:18 -0800)]
pulseaudio: Fix inline assembly syntax for arm

Ensures that gcc can use right operand constraints

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa-runtime: add missing import os to ptest case
Stefan Kral [Thu, 5 Mar 2020 19:30:00 +0000 (20:30 +0100)]
oeqa-runtime: add missing import os to ptest case

Add missing import os statement to the oeqa runtime ptest.py

Signed-off-by: Stefan Kral <sk@typedivision.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>