Compare commits

..

284 Commits

Author SHA1 Message Date
Richard Purdie
70b6880c55 cmake: Clarify comment in cmake toolchain file
The comment is misleading and there was confusion in a bug report. In the native
case STAGING_DATADIR would be equal to the native value so there isn't any issue
but tweak the comment.

[YOCTO #12761]

(From OE-Core rev: 0fdf76305a3cb543c23d6122c523ce5c2af04a0c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-20 13:14:22 +01:00
Richard Purdie
2b884845ec lttng-tools: Filter ptest output to remove random tmp directories
These tmp paths end up in the test names making it hard to compare test runs
so filter them out, they're not useful for our purposes.

(From OE-Core rev: dc47b3855d03af962bab176c7aed9bd47426b419)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-20 13:14:21 +01:00
Richard Purdie
719a2fe479 openssh: Add missing DEPENDS on virtual/crypt
Changes to libxcrypt revealed a missing dependency in the openssh recipe.

(From OE-Core rev: 0fd0a1b1f733a8d9978d64fa23e9d083a716de87)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-20 13:14:21 +01:00
Ross Burton
85075b80d6 oeqa/logparser: ignore test failure commentary
The output format for Python and GLib both can be of this form:

FAIL: foobar (Segmentation fault)

In this case the test is called foobar not foobar_segmentation_fault.

(From OE-Core rev: 0219e9bd0273661b4b70df97e5762f77b3ac3e8c)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-20 13:14:21 +01:00
Pierre Le Magourou
9562ec9c36 cve-check: Consider CVE that affects versions with less than operator
In the NVD json CVE feed, affected versions can be strictly matched to a
version, but they can also be matched with the operator '<='.

Add a new condition in the sqlite query to match affected versions that
are defined with the operator '<='. Then use LooseVersion to discard all
versions that are not relevant.

(From OE-Core rev: 3bf63bc60848d91e90c23f6d854d22b78832aa2d)

Signed-off-by: Pierre Le Magourou <pierre.lemagourou@softbankrobotics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-20 13:14:21 +01:00
Pierre Le Magourou
95f0d11e21 cve-check: Manage CVE_PRODUCT with more than one name
In some rare cases (eg. curl recipe) the CVE_PRODUCT contains more than
one name.

(From OE-Core rev: 7f62a20b32a3d42f04ec58786a7d0db68ef1bb05)

Signed-off-by: Pierre Le Magourou <pierre.lemagourou@softbankrobotics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-20 13:14:21 +01:00
Pierre Le Magourou
05fb9db633 cve-check: Remove dependency to cve-check-tool-native
Use the new update-cve-db recipe to update database.

(From OE-Core rev: bc144b028f6f51252f4359248f6921028bcb6780)

Signed-off-by: Pierre Le Magourou <pierre.lemagourou@softbankrobotics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-20 13:14:21 +01:00
Pierre Le Magourou
1704028878 cve-update-db: New recipe to update CVE database
cve-check-tool-native do_populate_cve_db task was using deprecated NVD
xml data feeds, cve-update-db uses NVD json data feeds.

Sqlite database schema was updated to take into account CVSSv3 CVE
scores and operator in affected product versions.
A new META table was added to store the last modification date of the
NVD json data feeds.

(From OE-Core rev: 546d14135c50c6a571dfbf3baf6e9b22ce3d58e0)

Signed-off-by: Pierre Le Magourou <pierre.lemagourou@softbankrobotics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-20 13:14:21 +01:00
Alexander Kanavin
f850f85b82 btrfs-tools: update to 5.1.1
Drop backported patch, and a patch where upstream took care of the issue.

(From OE-Core rev: 35bd7de678223f48443bddbeed4f4640534805a4)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-20 13:14:21 +01:00
Alexander Kanavin
0b67e202ad epiphany: update to 3.32.3
Drop backported patch.

(From OE-Core rev: 5e02e75e28a4480c32bff4da59e169e6a2e78469)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-20 13:14:21 +01:00
Alexander Kanavin
0d8357f9f3 libnewt: merge libnewt-python recipe into the main recipe
libnewt-python was including libnewt recipe and adding tweaks, which is bad form.

It also broke AUH, as it won't update more than one recipe in a single
transaction.

(From OE-Core rev: 282b744f46c5c058966836130084e300030d419e)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-20 13:14:21 +01:00
Alexander Kanavin
b82ea144e1 vala: upgrade 0.44.3 -> 0.44.5
(From OE-Core rev: dab2bd3d97a04f830659296034ce98bb62bc7c1c)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-20 13:14:21 +01:00
Richard Purdie
fe8d2ec19b uninative-tarball: Add libxcrypt-compat
This avoids sstate/uninative relocation issues where a binary was built against
a system with libcrypt.so.1 or libcrypt.so.2 and then run on the opposite by
ensuring both libraries are in uninative.

(From OE-Core rev: 6089bfbc059c8bebb63ae6b0bafe8fe035548ac0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-20 13:14:21 +01:00
Richard Purdie
e73e46d740 libxcrypt-compat: Add recipe to build the obsolete APIs
Add a recipe which is able to build the obsolete APIs. This is mainly
to support uninative which needs to have both the new and obsolete APIs
available to support the different host combinations.

(From OE-Core rev: ad83f35c012e84dc8d2d27e02a4847568b4f3f35)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-20 13:14:21 +01:00
Richard Purdie
9ca072d707 libxcrypt: Switch to disable obsolete APIs
Since we have a fair amount of control of what we build in OE we can disable the obsolete
APIs which is what most distros are doing at this point.

This causes the library version to bump from 1 to 2.

(From OE-Core rev: 641529503a4bce628327855dc4769b0e57a9cb1d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-20 13:14:21 +01:00
Ricardo Ribalda Delgado
1d60af733c python3: python3: Fix build error x86->x86
When building x86->x86 the system will try to execute .so and related items
from the default PYTHONPATH.  This will fail if the target CPU contains
instructions that the host CPU does not have, add CROSSPYTHONPATH
into PYTHONPATH so we can prepend the list to find correct libs.

Fixes:

Illegal instruction (core dumped)
Makefile:625: recipe for target 'sharedmods' failed
make: *** [sharedmods] Error 132
make: *** Waiting for unfinished jobs....

(From OE-Core rev: 2106a567820bad438ff78d54a49e3d87da428dcf)

Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:42 +01:00
Ricardo Ribalda Delgado
931ed3e4f8 rootfs: Fix dependency for every dpkg run
Avoid getting a warning on do_rootfs.

Fixes:

NOTE: Installing the following packages: libgdk-pixbuf-2.0-locale-en-gb glibc-locale-en-gb libatspi-locale-en-gb gstreamer1.0-locale-en-gb gtk+3-locale-en libatk-1.0-locale-en-gb gtk+3-locale-en-gb gstreamer1.0-plugins-good-locale-en-gb gstreamer1.0-plugins-base-locale-en-gb gstreamer1.0-plugins-bad-locale-en-gb libglib-2.0-locale-en-gb avahi-locale-en-gb vte-locale-en-gb xkeyboard-config-locale-en-gb
WARNING: Unable to install packages. Command '/workdir/build/tmp/work/qt5122-poky-linux/bottlecam-image/1.0-r0/recipe-sysroot-native/usr/bin/apt-get  install --force-yes --allow-unauthenticated libgdk-pixbuf-2.0-locale-en-gb glibc-locale-en-gb libatspi-locale-en-gb gstreamer1.0-locale-en-gb gtk+3-locale-en libatk-1.0-locale-en-gb gtk+3-locale-en-gb gstreamer1.0-plugins-good-locale-en-gb gstreamer1.0-plugins-base-locale-en-gb gstreamer1.0-plugins-bad-locale-en-gb libglib-2.0-locale-en-gb avahi-locale-en-gb vte-locale-en-gb xkeyboard-config-locale-en-gb' returned 100:
Reading package lists...
Building dependency tree...
Reading state information...

(From OE-Core rev: 4e315dd23c52b75fd64dca89e7bffe25a0b0e6f9)

Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:42 +01:00
Ricardo Ribalda Delgado
a935d4ce3b meson: Fix native patch to python3
Fixes:

  File "/workdir/build/tmp/work/dbfp4-poky-linux/qv4l2/1.17.0+gitAUTOINC+95f39aae48-r0/recipe-sysroot-native/usr/lib/python3.7/site-packages/mesonbuild/dependencies/base.py", line 574, in _call_pkgbin
    cache[(self.pkgbin, targs, fenv)] = self._call_pkgbin_real(args, env, use_native)
  File "/workdir/build/tmp/work/dbfp4-poky-linux/qv4l2/1.17.0+gitAUTOINC+95f39aae48-r0/recipe-sysroot-native/usr/lib/python3.7/site-packages/mesonbuild/dependencies/base.py", line 556, in _call_pkgbin_real
    cmd = self.pkgbin.get_command() + "-native" + args
TypeError: can only concatenate list (not "str") to list

(From OE-Core rev: f7a470531d4bcc2888cbb9a7b197b86174f3aba2)

Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:42 +01:00
Kai Kang
de7a2d26ec rng-tools: 6.6 -> 6.7
Upgrade rng-tools from 6.6 to latest commit 9fc873c which 26 commits
beyond release 6.7:

$ git describe 9fc873c5af0e39263
v6.7-26-g9fc873c

Because it includes some critical fixes such as configure fails and
'Import yocto fixes for 6.6'.

* remove local patches that all are merged by upstream
* backport patch to fix rngd fails to stop issue
* add PACKAGECONFIG libp11

(From OE-Core rev: 3e09c8b5b6517da97a9ec0ce5deb4ba1b066d19b)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:42 +01:00
Ricardo Ribalda Delgado
17e59cab32 dpkg: Use less as pager
Debian traditionaly uses /usr/bin/pager as the system pager, which is a
link to the user preferred pager. This is a Debianism.

Without this patch:

root@qt5122:~# dpkg -l
sh: pager: command not found
dpkg-query: error: showing package list on pager subprocess returned error exit status 127

(From OE-Core rev: 580d7f3325af0569239cdd9757ca77fbe6f29146)

Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:40 +01:00
Ross Burton
7c9ec5a2c1 glib-2.0: fix host path appearing in gsocketclient-slow test script
Glib's build looks for the 'env' binary and embeds that path into the test
script, but thanks to hosttools this is /path/to/tmpdir/hosttools/env.

Fix this by hardcoding the path to env in the cross file.

Also as the cross file is only used in target builds only add it to SRC_URI for
target builds, so that changes to the cross file don't cause a rebuild of
glib-2.0-native.

(From OE-Core rev: 05c9fb5a026e3006a1fc037f957cb4341fb55030)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:40 +01:00
Adrian Bunk
120e9ca1be wireless-regdb: Add recipe
Since wpa-supplicant is provided,
the database of permitted frequencies should also be provided.

wireless-regdb-static should be used with kernel >= 4.15.
wireless-regdb can be used with older kernels and is mostly
irrelevant here, but keeping it in meta-networking would
create needless recipe duplication.

This package was previously in meta-networking.

(From OE-Core rev: 00c5a665b48c830a0008139b7ae1a51e79b72bb5)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:40 +01:00
Martin Jansa
107c5441aa serf: stop scons trying to create directories in hosts rootfs
* since 1522f09a4d serf: cleanup recipe
  serf.do_install fails in builds with multilib enabled (with
  libdir=/usr/lib64 on host where /usr/lib64 doesn't exist)

DEBUG: Executing shell function do_install
scons: Reading SConscript files ...
PermissionError: [Errno 13] Permission denied: '/usr/lib64':
  File "TOPDIR/BUILD/work/qemux86-signage-linux/serf/1.3.9-r0/serf-1.3.9/SConstruct", line 158:
    ENV = os.environ,
  File "/TOPDIR/BUILD/work/qemux86-signage-linux/serf/1.3.9-r0/recipe-sysroot-native/usr/bin/../../usr/lib/python3.7/site-packages/SCons/Environment.py", line 965:
    variables.Update(self)
  File "/TOPDIR/BUILD/work/qemux86-signage-linux/serf/1.3.9-r0/recipe-sysroot-native/usr/bin/../../usr/lib/python3.7/site-packages/SCons/Variables/__init__.py", line 227:
    option.validator(option.key, env.subst('${%s}'%option.key), env)
  File "TOPDIR/BUILD/work/qemux86-signage-linux/serf/1.3.9-r0/serf-1.3.9/SConstruct", line 60:
    return PathVariable.PathIsDirCreate(key, val, env)
  File "/TOPDIR/BUILD/work/qemux86-signage-linux/serf/1.3.9-r0/recipe-sysroot-native/usr/bin/../../usr/lib/python3.7/site-packages/SCons/Variables/PathVariable.py", line 101:
    os.makedirs(val)
  File "TOPDIR/BUILD/work/qemux86-signage-linux/serf/1.3.9-r0/recipe-sysroot-native/usr/lib/python3.7/os.py", line 221:
    mkdir(name, mode)
ERROR: scons install execution failed.

* I don't know how exactly --install-sandbox is supposed to work but
  in this case it's trying to mkdir /usr/lib64 on the host rootfs
  which is clearly wrong and if I set LIBDIR together with
  --install-sandbox then the install paths are prefixed with $D twice
  in some cases (not for includedir and empty libdir at the end).
  So in the end I think it was an issue caused by the custom path
  validator in serf's SConstruct, removing that stops touching host
  and the installed paths (including the paths inside libserf*.pc)
  look correct

(From OE-Core rev: 7ce8b1bc510cfe8b013430a3826ece6878d8568e)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Kai Kang
34750ea4b6 systemd-conf: not configure network for nfs root
It fails to boot nfs root with systemd that systemd-networkd
re-configures wired network and breaks the connection with nfs root.

(From OE-Core rev: 2abfbf186989223d5d256c25e0b52b02f29d5bfb)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Alistair Francis
b0815e74e9 linux-yocto: Mark qemuriscv64 as compatible
(From OE-Core rev: 7cc98b0f3414ad705ac136aee4cffb827dc8aade)

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Alistair Francis
aad4228593 qemuriscv64: Add the QEMU RISC-V 64-bit machine
The include is split ready to add the 32-bit RISC-V machine as soon as
glibc supports 32-bit RISC-V.

This is based on the work in the meta-riscv layer, thanks to Khem for
starting this.

(From OE-Core rev: 11b6020dff4550fc3a42e04bc1e86baf37942c62)

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Alistair Francis
ef82d0230e opensbi: Initial commit of OpenSBI
This is used as a bootloader for RISC-V QEMU machines.

(From OE-Core rev: 112ca2174dd97f5ca9ea25f83007d44054abc487)

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Alistair Francis
462ae94d70 libffi: Add RISC-V support
Backport a libffi patch to add RISC-V support.

(From OE-Core rev: 24f4b2a8f2a0ed52fd791a5c393dea7d02f45116)

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Chee Yang Lee
fc0c36a647 wic/bootimg-efi: allow multiple initrd
Allow plugin bootimg-efi to configure with multiple initrd
through source parameter.

Uses ; to separate each initrd.

e.g:
--sourceparams="loader=${EFI_PROVIDER},initrd=initrd1;initrd2"

(From OE-Core rev: c7b0823f9ab6a9959aaa809b8c3f70d199feb64d)

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Zang Ruochen
ad636b5061 gobject-introspection:upgrade 1.60.1 -> 1.60.2
-Upgrade from gobject-introspection_1.60.1.bb to gobject-introspection_1.60.2.bb.

(From OE-Core rev: 3b556cbdff6979239dad430bb5366133416315e3)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Zang Ruochen
96d204a163 xkeyboard:upgrade 2.26 -> 2.27
-Upgrade from xkeyboard-config_2.26.bb to xkeyboard-config_2.27.bb.

(From OE-Core rev: 23dfbb27467c8e0115ce0663781e71af609106af)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Zang Ruochen
1c7546e372 lttng-ust:upgrade 2.10.3 -> 2.10.4
-Upgrade from lttng-ust_2.10.3.bb to lttng-ust_2.10.4.bb.

-lttng-ust/0001-compat-work-around-broken-_SC_NPROCESSORS_CONF-on-MU.patch
 Removed since this is included in 2.10.4

(From OE-Core rev: dc25e9525495e00940da7716cbba6bca96423acd)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Zang Ruochen
ca0eeb5c36 curl:upgrade 7.64.1 -> 7.65.1
-Upgrade from curl_7.64.1.bb to curl_7.65.1.bb.

(From OE-Core rev: e3b7cb02a86b5040b3dc1439b142f25f0f8df8a0)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Zang Ruochen
d55a4d6695 gnupg:upgrade 2.2.15 -> 2.2.16
-Upgrade from gnupg_2.2.15.bb to gnupg_2.2.16.bb.

(From OE-Core rev: 825be9d66ae9f503f1dd2dce0fac530554057613)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Zang Ruochen
8d68d482cb gnutls:upgrade 3.6.7 -> 3.6.8
-Upgrade from gnutls_3.6.7.bb to gnutls_3.6.8.bb.

(From OE-Core rev: b34486a616ab4d4b30247a5dff58a18ef26ed709)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Chen Qi
bc060556c5 target-sdk-provides-dummy: add libperl.so.5 to DUMMY_PROVIDES
Add libperl.so.5 to DUMMY_PROVIDES to avoid do_rootfs failure like
below.

Error:
Problem: package postgresql-11.3-r0.core2_32 requires libperl.so.5, but none of the providers can be installed

    package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target conflicts with perl provided by perl-5.30.0-r0.core2_32
    package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target conflicts with perl-module-strict provided by perl-5.30.0-r0.core2_32

This problem could be reproduced by add 'postgresql' to IMAGE_INSTALL
and then `bitbake core-image-minimal -c populate_sdk'.

(From OE-Core rev: 8a21559bd49feba6288ad02d928daed6c736df3d)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Zang Ruochen
3ee1db9642 libevdev:upgrade 1.6.0 -> 1.7.0
-Upgrade from libevdev_1.6.0.bb to libevdev_1.7.0.bb.

(From OE-Core rev: 7ddbe6483dd25a7bb09cdb80565df3af2d69c1f9)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Zang Ruochen
f9ac711afb libevent:upgrade 2.1.8 -> 2.1.10
-Upgrade from libevent_2.1.8.bb to libevent_2.1.10.bb.

-libevent/0001-test-fix-32bit-linux-regress.patch
Removed since this is included in 2.1.10.

(From OE-Core rev: 40ea686112e4def38363edb4a5b1cec2692e34da)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Anuj Mittal
4782ccbbde runtime/cases/logrotate: make test more reliable
By default logrotate uses 'dateext' in logrotate.conf which results in a
date string being appended at the end of log name. In cases when a test
that installs configuration in logrotate.d is executed first (dnf for
example), it might result in errors when logrotate test is executed:

error: destination /var/log/dnf.librepo.log-20190528 already exists, skipping rotation
error: destination /var/log/dnf.rpm.log-20190528 already exists, skipping rotation
error: destination /var/log/hawkey.log-20190528 already exists, skipping rotation

Tweak the test to use it's own temporary configuration that doesn't
enable dateext.

Fixes [YOCTO #13363]

(From OE-Core rev: d0a30c1c57edc9a724658e2ed312b34eed3af5a9)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 22:13:39 +01:00
Changqing Li
63371ee4ec gcc-runtime: fix C++ header mapping for n32/x32 tune
The SDK was unable to find the C++ header pieces correctly since it's
using a generic compiler, not one specifically targeting the multilib
vendor prefix and default tune.  This adds the right mapping to ensure
SDKs work as expected. And fix problem in below configurations:

multilib configuration 1:
MACHINE="qemumips64"
MULTILIBS ?= "multilib:lib32 multilib:libn32"
DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips"
DEFAULTTUNE_virtclass-multilib-libn32 ?= "mips64-n32"
MULTILIB_GLOBAL_VARIANTS_append = " libn32"
require conf/multilib.conf

ignoring nonexistent directory "<path>/sysroots/mips64-poky-linux/usr/include/c++/8.2.0/mips64-poky-linux/32

multilib configuration 2:
MACHINE="qemumips64"
MULTILIBS = 'multilib:lib64 multilib:lib32'
DEFAULTTUNE = 'mips64-n32'
DEFAULTTUNE_virtclass-multilib-lib64 = 'mips64'
DEFAULTTUNE_virtclass-multilib-lib32 = 'mips32r2'
require conf/multilib.conf

For this configuration:
for target gcc-runtime, need to create symlink like mips64-poly-linux --> mips64-poky-linux-gnu32
for target lib64-gcc-runtime, need to create symlink like mips64-poly-linux/32 --> mips64-pokymllib64-linux
in order to avoid conflict during populate_sdk, create symlink for subfoler bits/ext for target gcc-runtime,
this is ugly, but seems no better way to cover all kinds of configuration.

single lib configuration:
MACHINE="qemumips64"
DEFAULTTUNE = "mips64-n32"

(From OE-Core rev: b071a1a209556158bcfcc20e3c8bd4b15373767c)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:44 +01:00
Lei Maohui
9513e6dde4 openssl: Fix a build bug on aarch64BE.
Fix bug as following on aarch64BE:

Error: operand 1 must be an integer register -- `rev v31.16b,v31.16b'

(From OE-Core rev: f29572f70a89fd88ab3898d334c126422b66755c)

Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:44 +01:00
Martin Jansa
6bb0cf46a1 base.bbclass: define PACKAGECONFIG_CONFARGS before only sometimes appending to it
* just to make sure it's expaned by bitbake before it gets
  executed in shell
* e.g. with cmake.bbclass and cmake recipe (any recipe without
  PACKAGECONFIG options have this issue) it looks like this:
  bitbake -e cmake | grep EXTRA_OECMAKE=
  EXTRA_OECMAKE="     -DCMAKE_DOC_DIR=share/doc/cmake-3.14
    -DCMAKE_USE_SYSTEM_LIBRARIES=1 -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=0
    -DCMAKE_USE_SYSTEM_LIBRARY_LIBUV=0
    -DCMAKE_USE_SYSTEM_LIBRARY_LIBRHASH=0     -DKWSYS_CHAR_IS_SIGNED=1
    -DBUILD_CursesDialog=0     -DKWSYS_LFS_WORKS=1
    \${PACKAGECONFIG_CONFARGS}"

(From OE-Core rev: 745b63f4e11a6536cabd97013973562631a0e080)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:44 +01:00
Matt Madison
2cc0c08f80 apt: fix permissions on apt-daily script for systemd
The script needs to be executable so the service doesn't
fail.

(From OE-Core rev: 1b93bc3857b352394abd652ef83f1081298b7a5b)

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:44 +01:00
Ross Burton
d059cbcf18 libsdl2: use binconfig-disabled
Just like libsdl, we can rip out the sdl2-config script from the sysroot as
pkg-config is preferrable.

(From OE-Core rev: 8d93fc236a72cb1bb0e713c4fc5b73e65ede6f53)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:44 +01:00
Ross Burton
01bff84386 binconfig: don't try to fix up .la files
If we're going to clean buildpaths from installed .la files then we should do it
globally, not in a class that only six recipes in oe-core use.

(From OE-Core rev: bd4e2cd3f70243f52215f8c92bcd7eb088a9b9f6)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:44 +01:00
Ross Burton
dbf5d29c3d insane: remove empty test that does nothing
(From OE-Core rev: 5da7ad1a483d0840a9a2e3b95fa62a1901be73f2)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:44 +01:00
Ross Burton
ad3f53dfe4 insane: improve buildpath warning messages
Instead of reporting large chunks of the work directory and not the package
name:

"File /work/corei7-64-poky-linux/libidn2/2.2.0-r0/packages-split/libidn2-dev/usr/lib/pkgconfig/libidn2.pc in package contained reference to tmpdir"

We can clean up the paths and be more useful:

"File /usr/lib/pkgconfig/libidn2.pc in package libidn2-dev contains reference to TMPDIR"

(From OE-Core rev: 156329247b40e9ee97e6249468ac3b9af4dffb68)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:44 +01:00
Ayoub Zaki
5a0f3b18b2 kernel-fitimage: introduce FIT_HASH_ALG
sanitize fitImage hash algorithm selection with FIT_HASH_ALG
switch default hash algorithm from sha1 to sha256

(From OE-Core rev: 8c9d5d59cb1575fac17c461090937df4cbb3d3b5)

Signed-off-by: Ayoub Zaki <ayoub.zaki@embexus.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:44 +01:00
Stefano Babic
ffdd54954b systat: systemd never enables the service
Even if SYSTEMD_AUTO_ENABLE is set to "enable", the service is never
activated by systemd. The cause is the postinst function in the recipe:

 pkg_postinst_${PN} () {
         if [ -n "$D" ]; then
                 exit 0
         fi
         if [ -e /etc/init.d/populate-volatile.sh ]; then
                 /etc/init.d/populate-volatile.sh update
         fi
 }

This generates with activated systemd the following postinst script:

	set -e
	        if [ -n "$D" ]; then
	                exit 0
	        fi
	        if [ -e /etc/init.d/populate-volatile.sh ]; then
	                /etc/init.d/populate-volatile.sh update
	        fi
	OPTS=""

	if [ -n "$D" ]; then
	    OPTS="--root=$D"
	fi

	if type systemctl >/dev/null 2>/dev/null; then
		if [ -z "$D" ]; then
			systemctl daemon-reload
		fi

		systemctl $OPTS enable sysstat.service

		if [ -z "$D" -a "enable" = "enable" ]; then
			systemctl --no-block restart sysstat.service
		fi
	fi

Due to the exit statement, systemctl is never called and the service is
never enabled in rootfs.
Invert the logic for the check to let run the rest of postinst script.

(From OE-Core rev: 24ccfd80edb74871d0d69ddbe83c358f04ac0844)

Signed-off-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:43 +01:00
Chen Qi
f25d8604ea manifest.py: fix test_SDK_manifest_entries
TOOLCHAIN_OUTPUTNAME could be overridden. So use this variable directly
instead of its default value ${SDK_NAME}-toolchain-${SDK_VERSION}.

(From OE-Core rev: 35a13468f551fff6305ba1ebbcb5dd28e99ec050)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:43 +01:00
Chris PeBenito
af790692f5 volatile-binds: Change cp to use -a instead of -p.
This is needed on SELinux systems, so the labels (xattrs) are preserved.

(From OE-Core rev: ab7e3caf3e29f2d8db55e2901e0a9b01061afd88)

Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:43 +01:00
Martin Jansa
37e5436e1e buildhistory: show time spent writting buildhistory
* especially when pushing longer history to slow remote git server or when
  it timeouts during the push, it's useful to see where the time was actually
  spent

(From OE-Core rev: 96f1225d47985d94d9ed91eb5e7affdd70671c79)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:43 +01:00
He Zhe
d4b6073246 kernel: qemuarmv5: Update machine overrides of KERNEL_DEVICETREE
The original BSP qemuarm has been renamed to qemuarmv5. Update the machine
overrides accordingly to avoid not generating dtb.

(From OE-Core rev: a1ac097686daf0769e7ff94ff2c8795e1e8ae790)

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:43 +01:00
Zang Ruochen
93deba0e6d lighttpd: Upgrade 1.4.53 -> 1.4.54
Upgrade from lighttpd_1.4.53.bb to lighttpd_1.4.54.bb.

(From OE-Core rev: 57d24fbfe484df8f6c4ad7d0a5ca9d593134c4ea)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:43 +01:00
Yi Zhao
83be3e8fa1 less: upgrade 550 -> 551
(From OE-Core rev: be110d5edb3162db3452653956dc3040e4c30b44)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:43 +01:00
Yi Zhao
52fd2467c8 shadow: fix configure error with dash
A configure error occurs when /bin/sh -> dash:
  checking for is_selinux_enabled in -lselinux... yes
  checking for semanage_connect in -lsemanage... yes
  configure: 16322: test: yesyes: unexpected operator

Use "=" instead of "==" since dash doesn't support the latter.

(From OE-Core rev: a86da25d620aa9a2fd832ffe12816e7670b43633)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:43 +01:00
Denys Dmytriyenko
2806373ef2 mtd-utils: add "jffs" and "ubifs" PACKAGECONFIG options
Enabled by default, but allow to optionally disable them.

(From OE-Core rev: c8900a7e79976b044791a2d58d5e24f05b1690d5)

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:43 +01:00
Denys Dmytriyenko
e164dc4184 mtd-utils: upgrade 2.0.2 -> 2.1.0+
* 0001-Revert-Return-correct-error-number-in-ubi_get_vol_in.patch is upstreamed
* Add "crypto" PACKAGECONFIG for UBIFS crypto features
* One extra commit after 2.1.0 release tag is pulled in to fix openssl error
  when "crypto" PACKAGECONFIG is not enabled:
| In file included from ../git/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c:25:
| ../git/ubifs-utils/mkfs.ubifs/mkfs.ubifs.h:49:10: fatal error: openssl/rand.h: No such file or directory
|  #include <openssl/rand.h>
|           ^~~~~~~~~~~~~~~~
| compilation terminated.
| Makefile:3457: recipe for target 'ubifs-utils/mkfs.ubifs/mkfs_ubifs-mkfs.ubifs.o' failed
| make: *** [ubifs-utils/mkfs.ubifs/mkfs_ubifs-mkfs.ubifs.o] Error 1

(From OE-Core rev: 917050ccb750d01a793c053d4b2e0e59723d2e07)

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:43 +01:00
Tim Orling
7b077cedc7 libmodule-build-perl: upgrade 0.4224 -> 0.4229; enable ptest
* Add runtime and ptest dependencies
* Add own run-ptest, since we need to run blib

License-Update: License lines moved up in README

Upstream release notes:

0.4229 - Tue Apr 16 00:49:45 CEST 2019
  - Released 0.42_28 without changes

0.42_28 - Thu Apr 19 16:34:32 CEST 2018

  - Replace "MOTIVATIONS" section with "COMPARISON" [Dan Brook]

  - Update configure, build, test prereqs [Karen Etheridge]

0.4227 - Wed Dec 13 11:17:51 CET 2017

  - Released 0.42_26 without changes

0.42_26 - Wed Dec 13 10:52:39 CET 2017

  - Improve pureperl-only support (#119914) [Shoichi Kaji]

  - Improve the documentation of Module::Build::Compat and dynamic_config [Dan Brook]

(From OE-Core rev: f9ffeab5caa4eafc57692a90f58ff2ef34153884)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:43 +01:00
Tim Orling
c2cdb5f7b2 libmodule-build-perl: move from meta-perl
* cpan_build.bbclass DEPENDS on libmodule-build-perl
* add self as maintainer

Fixes [YOCTO #12873]

(From OE-Core rev: 81ba07d85d21456bf7248b2f04082958e8d724c2)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:43 +01:00
Tim Orling
4cab85009c libxml-sax-perl: upgrade 1.00 -> 1.02
* Sort ptest dependencies alphabetically

Upstream release notes:

1.02  14 Jun 2019  Grant McLean
    - Spelling fixes (patch from Ville Skyttä)
    - Add repo location to metadata (patches from Ville Skyttä & Martin McGrath)
    - Reorganise module files under lib/XML
    - Regenerate MANIFEST using 'make manifest' to include missing test files

(From OE-Core rev: 2bd3e9b1aa7bf550564484df842a8a6f89b73497)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:43 +01:00
Tim Orling
25230682d9 perl-rdepends.txt: more ptest dependencies fixes
* File::Spec::Unix runtime depends on Cwd and constant
* Module::Metadata runtime depends on version
* CPAN::Meta runtime depends on Parse::CPAN::Meta and JSON::PP
* ExtUtils::MakeMaker runtime depends on ExtUtils::MM_Unix
* TAP::Base runtime depends on TAP::Object
* TAP::Parser::SourceHandler::Perl runtime depends on
  TAP::Parser::SourceHandler::Executable
* TAP::Harness runtime depends on TAP::Formatter::File
* TAP::Formatter::File runtime depends on TAP::Formatter::Session
  and TAP::Formatter::Base
* Many TAP::Harness::* dependencies
* POD::Simple::Transcode runtime depends on POD::Simple::Transcode{dumb,smart}

(From OE-Core rev: c80176774f675c1f48353dfd93942c6b60cbea82)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-19 12:46:43 +01:00
Scott Rifenbark
111b7173fe dev-manual: Fixed grammar issue.
Fixed in "Selecting an Initialization Manager" section.
Extraneous word needed removed.

(From yocto-docs rev: ab97d36299a7a648bc3f3325175d8ab633ad2d1a)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:29:23 +01:00
Scott Rifenbark
ab69e1917f overview-manual: Updated SCM section
Fixes [YOCTO #10098]

I updated the "Source Control Managers (Optional)" section
to reference the "Fetchers" section in the BB manuual.

(From yocto-docs rev: 0c014fba509d3ec28236e63a7bd2355b447c4acf)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:29:23 +01:00
Scott Rifenbark
b0b59bd2b8 ref-manual: Updated "npm.bbclass" section.
I provided a general link to the wiki on npm software.
Also, updated the section to point to the new section on how to
create NPM packages, which is in the dev-manual.

(From yocto-docs rev: 03fd635d06d64a53ad00196919350a45942731ce)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:29:23 +01:00
Scott Rifenbark
4f44204d1a dev-manual: Updated the "Working with Packages" list
I added the "Creating node package manager (NPM) packages
section link to the list.  Also, made some edits to make
the capitalization consistent in the list items.

(From yocto-docs rev: d3e345cd3f44e9588c5fe8f0560e1859df0ff496)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:29:23 +01:00
Scott Rifenbark
688fee4596 Makefile: Updated to support new NPM package creation section
The newly created section on how to create NPM packages
required a figure.  I added the figure to both the dev-manual
and mega-manual tarballs creation areas.

(From yocto-docs rev: 5109274d107b6d3ae6be3f71a20379cb6abb39d6)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:29:23 +01:00
Scott Rifenbark
c19e706b2c dev-manual: Added new section for creating NPM packages
Fixes [YOCTO #10098]

This is a new section in the development tasks manual that describes
how to create Node Package Manager (NPM) packages.  I put the
section in the "Working with Packages" section.

(From yocto-docs rev: d7acd9f27418d414854d25bb27842407edfe7dda)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:29:23 +01:00
Oleksandr Kravchuk
8a5501110e bitbake: cooker: list all nonexistent bblayer directories
Check existence of all the bblayer direcotories at once and print them
all, so if there are multiple nonexistent directories, user does not
have to correct bblayers.conf and restart bitbake multiple times.

[YOCTO #11647]

(Bitbake rev: 19291f7c4d17086ebb6a7b80c3cb06333d7fd55b)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:23:48 +01:00
Richard Purdie
6896ca82f1 perl: Move perl-sanity -> perl
This was moved during the perl cleanup, it can/should be moved back now as
its confusing too many people.

(From OE-Core rev: ce69c21707aa19ab8a3f6c07dc5a560671ab53a4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:23:48 +01:00
Bonnans, Laurent
646b596c99 kernel-uboot: compress arm64 kernels
AArch64 images are not self-decompressing, thus usually much larger.
Boot times can be reduced by compressing them in FIT and uImages.

(From OE-Core rev: a725d188b5d6b5d3c5cf21cc2f3070a0fe711e18)

Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:23:48 +01:00
Kai Kang
d301571b13 openssl: fix failure of ptest test_shlibload
It fails to run ptest case test_shlibload which requires libcrypto.so
and libssl.so with version numbers now.

(From OE-Core rev: 728cd93f45096a1ba0997b3812504d27194b1b49)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:23:48 +01:00
Randy MacLeod
b56fb24f03 bash: use setpriv, sed.sed to run ptests
The execscript test in bash fails when run with ptest-runner calling
'su', with the error:
   bash: cannot set terminal process group (16036): Inappropriate ioctl for device
Even with ptest-runner fixed to make a child process use the right
process group, 'su' still results in the warning above. Use 'setpriv'
instead. 'runuser' was considered and works but depends on pam so it's
ruled out.

Now that all bash tests are run as a user, the patch:
   fix-run-coproc-run-heredoc-run-execscript-run-test-f.patch
can be removed.  Also to create the account 'bashtest' in the
'run-ptest' script the bash-ptest must depend on 'shadow'. Also,
in 'run-ptest', ensure that the bash ptests are owned by the 'bashtest' user.

Add 'sed' as a dependency for ptests since tests/exp8.sub runs:
    var=$'x\001y\177z'
    declare -p var | sed -n l
and that results in:
    sed.busybox: ""
    sed.sed: declare -- var="x\001y\177z"$
This appears to be a feature that busybox sed has not implemented.

With this series of changes, bash-ptest for qemux86-64 passes
79 of 81 tests. The remaining failures are:

1. run-read:
  # cat tests/read6.sub
  # test read with a timeout of 0 -- input polling
  # sleep with fractional seconds argument is not universal
  echo abcde | { sleep 0.25 2>/dev/null ; read -t 0; }
  echo $?

  read -t 0 < $0
  echo $?

  read -t 0
  echo $? <-- returns 1, when 0 is expected.

I can reproduce this on my workstation but only when using ptest-runner
and initially logging into the console as root. That's a little odd and
seems like I need to continue to improve ptest-runner.

2. run-trap:
  # cat tests/trap3.sub
  PS4='+[$LINENO] '
  trap 'echo trap: $LINENO' ERR

  set -x

  echo 1
  echo 2
  echo 3 | cat | false <--- error
  echo 4

This is a scheduler behaviour difference between the common case
on a workstation and the common case in qemu. The test case does
warn about the completion order not being deterministic so I plan
to ignore it.

>From tests/run-trap:
  UNIX versions number signals and schedule processes differently.
  If output differing only in line numbers is produced, please
  do not consider this a test failure.

Still, it's notable and slightly odd that the common case output
is different.

(From OE-Core rev: 81e3f01867cf114b728ab5a417c29426c9bf8122)

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:23:48 +01:00
Randy MacLeod
8478801d49 ptest-runner: enable child procs as session leader
When running the run-execscript bash ptest as a user rather than root, a warning:
  bash: cannot set terminal process group (16036): Inappropriate ioctl for device
  bash: no job control in this shell
contaminates the bash log files causing the test to fail. This happens only
when run under ptest-runner and not when interactively testing!

The changes made to fix this include:
1. Get the process group id (pgid) before forking,
2. Set the pgid in both the parent and child to avoid a race,
3. Find, open and set permission on the child tty, and
4. Allow the child to attach to controlling tty.

(From OE-Core rev: 83795a83505a311058130c662ff3342b0e39e67f)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:23:48 +01:00
Randy MacLeod
fa239aa7c1 libcap-ng: split into libcap-ng/libcap-ng-python
util-linux's setpriv needs the libcap-ng library but
not the python package so split the package up to enable
this without a dependency loop.

(From OE-Core rev: 9592b318ccd6a8dca60d1060c8255ed8e62ef046)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:23:48 +01:00
Randy MacLeod
f1a582bd0b util-linux: add setpriv utility
Enable the setpriv utility for targets only. It will be used in
the run-ptest script for bash and perhaps other packages where
the ptest code is expected to run as a user.

setpriv uses libcap-ng which doesn't build natively so disable
it for native* builds. Also, busybox has a setpriv implementation
so ensure that setpriv adheres to the alternatives scheme.

(From OE-Core rev: 587ba5f4bef18e8260fe671bd2e303140369a5e5)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:23:48 +01:00
Chen Qi
1a6d32833e context.py: fix skipping function
The current codes to skip test cases are logically correct, but they
do not work correctly in reality. It does skip the tests as the command
line argument specifies, but the related information is wrong.
e.g.
$ oe-selftest -R archiver bblayers runtime_test
2019-06-17 09:24:53,764 - oe-selftest - WARNING - meta-selftest layer not found in BBLAYERS, adding it
2019-06-17 09:25:06,309 - oe-selftest - INFO - Adding layer libraries:
2019-06-17 09:25:06,310 - oe-selftest - INFO - 	      /buildarea5/chenqi/SWAT/poky/meta/lib
2019-06-17 09:25:06,310 - oe-selftest - INFO - 	      /buildarea5/chenqi/SWAT/poky/meta-yocto-bsp/lib
2019-06-17 09:25:06,310 - oe-selftest - INFO - 	      /buildarea5/chenqi/SWAT/poky/meta-selftest/lib
2019-06-17 09:25:06,312 - oe-selftest - INFO - Running bitbake -e to test the configuration is valid/parsable
2019-06-17 09:25:10,521 - oe-selftest - INFO - Adding: "include selftest.inc" in /buildarea5/chenqi/SWAT/poky/build-selftest/conf/local.conf
2019-06-17 09:25:10,521 - oe-selftest - INFO - Adding: "include bblayers.inc" in bblayers.conf
2019-06-17 09:25:10,522 - oe-selftest - INFO - test_archiver_allows_to_filter_on_recipe_name (archiver.Archiver)
2019-06-17 09:25:10,522 - oe-selftest - INFO -  ... skipped 'Skip by the command line argument "runtime_test"'
2019-06-17 09:25:10,522 - oe-selftest - INFO - Skip by the command line argument "runtime_test"
2019-06-17 09:25:10,523 - oe-selftest - INFO - test_archiver_filters_by_type (archiver.Archiver)
2019-06-17 09:25:10,523 - oe-selftest - INFO -  ... skipped 'Skip by the command line argument "runtime_test"'
2019-06-17 09:25:10,523 - oe-selftest - INFO - Skip by the command line argument "runtime_test"

The archiver.Archiver.xxx tests should be skipped by 'archiver' command line
argument, not 'runtime_test'.

Change to use a function generator to achieve the desired effect. After the change,
the effect is as follows.

$ oe-selftest -R archiver bblayers runtime_test
2019-06-17 09:19:06,223 - oe-selftest - WARNING - meta-selftest layer not found in BBLAYERS, adding it
2019-06-17 09:19:19,598 - oe-selftest - INFO - Adding layer libraries:
2019-06-17 09:19:19,599 - oe-selftest - INFO - 	      /buildarea5/chenqi/SWAT/poky/meta/lib
2019-06-17 09:19:19,599 - oe-selftest - INFO - 	      /buildarea5/chenqi/SWAT/poky/meta-yocto-bsp/lib
2019-06-17 09:19:19,599 - oe-selftest - INFO - 	      /buildarea5/chenqi/SWAT/poky/meta-selftest/lib
2019-06-17 09:19:19,602 - oe-selftest - INFO - Running bitbake -e to test the configuration is valid/parsable
2019-06-17 09:19:24,368 - oe-selftest - INFO - Adding: "include selftest.inc" in /buildarea5/chenqi/SWAT/poky/build-selftest/conf/local.conf
2019-06-17 09:19:24,368 - oe-selftest - INFO - Adding: "include bblayers.inc" in bblayers.conf
2019-06-17 09:19:24,369 - oe-selftest - INFO - test_archiver_allows_to_filter_on_recipe_name (archiver.Archiver)
2019-06-17 09:19:24,369 - oe-selftest - INFO -  ... skipped 'Skip by the command line argument "archiver"'
2019-06-17 09:19:24,369 - oe-selftest - INFO - Skip by the command line argument "archiver"
2019-06-17 09:19:24,369 - oe-selftest - INFO - test_archiver_filters_by_type (archiver.Archiver)
2019-06-17 09:19:24,370 - oe-selftest - INFO -  ... skipped 'Skip by the command line argument "archiver"'
2019-06-17 09:19:24,370 - oe-selftest - INFO - Skip by the command line argument "archiver"
2019-06-17 09:19:24,370 - oe-selftest - INFO - test_archiver_filters_by_type_and_name (archiver.Archiver)
2019-06-17 09:19:24,370 - oe-selftest - INFO -  ... skipped 'Skip by the command line argument "archiver"'
2019-06-17 09:19:24,371 - oe-selftest - INFO - Skip by the command line argument "archiver"
2019-06-17 09:19:24,371 - oe-selftest - INFO - test_archiver_srpm_mode (archiver.Archiver)
2019-06-17 09:19:24,371 - oe-selftest - INFO -  ... skipped 'Skip by the command line argument "archiver"'
2019-06-17 09:19:24,372 - oe-selftest - INFO - Skip by the command line argument "archiver"
2019-06-17 09:19:24,372 - oe-selftest - INFO - test_bitbakelayers_add_remove (bblayers.BitbakeLayers)
2019-06-17 09:19:24,373 - oe-selftest - INFO -  ... skipped 'Skip by the command line argument "bblayers"'
2019-06-17 09:19:24,373 - oe-selftest - INFO - Skip by the command line argument "bblayers"
2019-06-17 09:19:24,373 - oe-selftest - INFO - test_bitbakelayers_createlayer (bblayers.BitbakeLayers)
2019-06-17 09:19:24,373 - oe-selftest - INFO -  ... skipped 'Skip by the command line argument "bblayers"'
2019-06-17 09:19:24,374 - oe-selftest - INFO - Skip by the command line argument "bblayers"
[snip]

(From OE-Core rev: 50004f431a71c71af4acf0f25403fee5a8447eab)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:23:48 +01:00
He Zhe
aba310e5ef lttng-modules: Add git based recipe
The git based recipe is for those who want to build lttng-modules with bleeding
edge kernel, to avoid regularly backporting patches from upstream.

Note that PREFERRED_VERSION needs to be set to select the git recipe instead of
the tar ball one.

(From OE-Core rev: 18dd8e719f7c845d7e4bb1148ef6adad80a9493e)

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:23:48 +01:00
Hongxu Jia
5758817444 openssh: fix potential signed overflow in pointer arithmatic
Pointer arithmatic results in implementation defined signed integer
type, so that 'd - dst’ in strlcat may trigger signed overflow if
pointer ‘d’ is near 0x7fffffff in 32 bits system. In case of ompilation
by gcc or clang with -ftrapv option, the overflow would generate
program abort.

(From OE-Core rev: 1c4b8d797c76a08ebd1658066e9d32972b6abe58)

Signed-off-by: hguo3 <heng.guo@windriver.com>
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-18 11:23:48 +01:00
Ross Burton
27d60c5a81 gstreamer1.0-libav: disable API documentation
With the latest gtk-doc release the gstreamer1.0-libav documentation fails to
build:

| gst-libav-plugins-docs.sgml:38: element include: XInclude error:
| could not load xml/tree_index.sgml, and no fallback was found

For the short term we can just disable the documentation.  The next upstream
release of gstreamer1.0-libav doesn't use gtk-doc anyway.

(From OE-Core rev: 27744ad292c9d7e57ebcf7c3c30acbd85aac77a4)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-15 13:46:38 +01:00
Adrian Bunk
4f60156ec1 lttng-modules: Upgrade 2.10.9 -> 2.10.10
(From OE-Core rev: 80f453da04e43cab82999249be0a9dd95322a06e)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-15 13:46:38 +01:00
Richard Purdie
5d8c4e3f47 perl: Fix setgroup call regression from 5.30
The upgrade from 5.28 to 5.30 caused acl's ptests to fail. The issue is
that the new function changes the endptr to the end of the scanned number
and this now needs to be reset to the end of the string for each iteration
of the loop.

[YOCTO #13391]

(From OE-Core rev: c1c4907f0e548564e6744fef1cb93c74bd330c55)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-15 13:46:38 +01:00
Jaewon Lee
68d6682398 devicetree.bbclass: Combine stderr into stdout to see actual dtc error
Previously the subprocess command to run dtc was not properly displaying
the error on console. Combining stderr into stdout for the dtc subprocess
so the actual error can be seen on console without having to open the
do_compile log.

For example, previously on a dtc error, just the following stack trace
and dtc command was being shown on console:

File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:devicetree_do_compile(d)
     0003:
File:
function: devicetree_do_compile
     0127:            if not(os.path.isfile(dtspath)) or
not(dts.endswith(".dts") or devicetree_source_is_overlay(dtspath)):
     0128:                continue # skip non-.dts files and non-overlay
files
     0129:        except:
     0130:            continue # skip if can't determine if overlay
 *** 0131:        devicetree_compile(dtspath, includes, d)

    ...

Exception: subprocess.CalledProcessError: Command '['dtc', '-R', '8',
'-b', '0', '-p', '0x1000', '-i', '${INCLUDES}, '-o', 'system-top.dtb',
'-I', 'dts', '-O', 'dtb', 'system-top.dts.pp']' returned non-zero exit
status 1

with this patch, the actual error from the dtc command will be appended
like the following:

Subprocess output:
Error: Label or path not found
FATAL ERROR: Syntax error parsing input tree

(From OE-Core rev: 1da43a558ffd5040a1b5aaebfc1c5118f5e59c01)

Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Anuj Mittal
2938210267 python3-scons: fix regex replacing python by python3
Match only the first line and match even if the line says python3.
Otherwise we end up with multiple 3s at the end after multiple
invocations of do_install on same source.

(From OE-Core rev: 144c6c7183dd2b32c65edf325038eb84683a28f8)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Alex Kiernan
07526deab6 systemd: Backport OpenSSL BUF_MEM fix
Building `systemd-resolve` from systemd 242 with OpenSSL 1.1.1c and enabling
DNS over TLS ends up calling abort (on 32 bit armhf):

  Program terminated with signal SIGABRT, Aborted.
  #0  __libc_do_syscall () at libc-do-syscall.S:49
  49	libc-do-syscall.S: No such file or directory.
  (gdb) where
  #0  __libc_do_syscall () at libc-do-syscall.S:49
  #1  0xb6940ea4 in __libc_signal_restore_set (set=0xbec68b78) at ../sysdeps/unix/sysv/linux/internal-signals.h:84
  #2  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:48
  #3  0xb69336e0 in __GI_abort () at abort.c:79
  #4  0xb6968428 in __libc_message (action=action@entry=do_abort, fmt=<optimized out>) at ../sysdeps/posix/libc_fatal.c:181
  #5  0xb696c7e6 in malloc_printerr (str=<optimized out>) at malloc.c:5352
  #6  0xb696ca1a in munmap_chunk (p=<optimized out>) at malloc.c:2840
  #7  0xb6bd1c4a in CRYPTO_clear_realloc (str=0xd0e59a, old_len=388, num=<optimized out>, file=0xb6c300dc "../../../../../../workspace/sources/openssl/crypto/buffer/buffer.c", line=135)
      at ../../../../../../workspace/sources/openssl/crypto/mem.c:290
  #8  0xb6b5da3a in BUF_MEM_grow_clean (str=0xcfb960, len=len@entry=393) at ../../../../../../workspace/sources/openssl/crypto/buffer/buffer.c:135
  #9  0xb6b486a0 in mem_write (b=0xcf8300, in=0xd07c6b "\027\003\003", inl=24) at ../../../../../../workspace/sources/openssl/crypto/bio/bss_mem.c:235
  #10 0xb6b45c86 in bwrite_conv (bio=<optimized out>, data=<optimized out>, datal=<optimized out>, written=0xbec68ec8) at ../../../../../../workspace/sources/openssl/crypto/bio/bio_meth.c:77
  #11 0xb6b452d4 in bio_write_intern (written=0xbec68ec8, dlen=24, data=0xd07c6b, b=0xcf8300) at ../../../../../../workspace/sources/openssl/crypto/bio/bio_lib.c:343
  #12 bio_write_intern (b=0xcf8300, data=0xd07c6b, dlen=24, written=0xbec68ec8) at ../../../../../../workspace/sources/openssl/crypto/bio/bio_lib.c:320
  #13 0xb6b455b2 in BIO_write (b=<optimized out>, data=<optimized out>, dlen=<optimized out>) at ../../../../../../workspace/sources/openssl/crypto/bio/bio_lib.c:363
  #14 0xb6cabd1a in ssl3_write_pending (s=s@entry=0xcfd2d8, type=type@entry=23, buf=buf@entry=0xcfcc28 "", len=len@entry=2, written=written@entry=0xbec698b0) at ../../../../../../workspace/sources/openssl/ssl/record/rec_layer_s3.c:1146
  #15 0xb6cac72e in do_ssl3_write (s=s@entry=0xcfd2d8, type=type@entry=23, buf=buf@entry=0xcfcc28 "", pipelens=pipelens@entry=0xbec698b4, numpipes=numpipes@entry=1, create_empty_fragment=create_empty_fragment@entry=0,
      written=written@entry=0xbec698b0) at ../../../../../../workspace/sources/openssl/ssl/record/rec_layer_s3.c:1107
  #16 0xb6cac92e in ssl3_write_bytes (s=0xcfd2d8, type=23, buf_=0xcfcc28, len=<optimized out>, written=0xbec699c0) at ../../../../../../workspace/sources/openssl/ssl/record/rec_layer_s3.c:613
  #17 0xb6cb1698 in ssl3_write (s=<optimized out>, buf=0xcfcc28, len=2, written=0xbec699c0) at ../../../../../../workspace/sources/openssl/ssl/s3_lib.c:4460
  #18 0xb6cb87b2 in ssl_write_internal (s=<optimized out>, buf=buf@entry=0xcfcc28, num=num@entry=2, written=written@entry=0xbec699c0) at ../../../../../../workspace/sources/openssl/ssl/ssl_lib.c:1943
  #19 0xb6cb8896 in SSL_write (s=<optimized out>, buf=buf@entry=0xcfcc28, num=num@entry=2) at ../../../../../../workspace/sources/openssl/ssl/ssl_lib.c:1957
  #20 0x004ddac8 in dnstls_stream_write (stream=stream@entry=0xcfca60, buf=0xcfcc28 "", count=2) at ../git/src/resolve/resolved-dnstls-openssl.c:270
  #21 0x004d8d5c in dns_stream_writev (s=s@entry=0xcfca60, iov=iov@entry=0xbec69b4c, iovcnt=iovcnt@entry=2, flags=flags@entry=0) at ../git/src/resolve/resolved-dns-stream.c:225
  #22 0x004d9516 in on_stream_io (es=<optimized out>, fd=<optimized out>, revents=4, userdata=0xcfca60) at ../git/src/resolve/resolved-dns-stream.c:334
  #23 0xb6e7f020 in source_dispatch (s=0xcf3658) at ../git/src/libsystemd/sd-event/sd-event.c:2821
  #24 0xb6e806b0 in sd_event_dispatch (e=e@entry=0xced6d0) at ../git/src/libsystemd/sd-event/sd-event.c:3234
  #25 0xb6e807f6 in sd_event_run (e=0xced6d0, timeout=<optimized out>) at ../git/src/libsystemd/sd-event/sd-event.c:3291
  #26 0xb6e809bc in sd_event_loop (e=0xced6d0) at ../git/src/libsystemd/sd-event/sd-event.c:3312
  #27 0x004bb64c in run (argv=<optimized out>, argc=<optimized out>) at ../git/src/resolve/resolved.c:84
  #28 main (argc=<optimized out>, argv=<optimized out>) at ../git/src/resolve/resolved.c:91

(From OE-Core rev: b11ddab19bc7c0ce35b95345181de8a708268472)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Anuj Mittal
53099ced25 scons: inherit python3native
scons tries to get build time vars by loading sysconfigdata. Inherit
python3native instead of using host python and unset
_PYTHON_SYSCONFIGDATA_NAME to avoid the need to depend on target
python3 for sysconfigdata when using scons to build.

Avoids build errors on still supported CentOS 7:

| DEBUG: Executing shell function do_compile
| scons: *** SCons version 3.0.5 does not run under Python version
3.4.8.
| Python 2.7 or >= 3.5 is required.

(From OE-Core rev: 44f303ba9fb193a985e8e4b7c6962883ae3970d1)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Anuj Mittal
b168b3ac94 serf: cleanup recipe
* Inherit scons bbclass and use the task definitions from there.
* Remove the DEPENDS on python3-scons-native that is already present in
scons class.

(From OE-Core rev: 1522f09a4dd21fef177d514cb4d37e94d140dd33)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Hongxu Jia
26780cbde1 diffutils/run-ptest: support to run at arbitrary path
1. Run run-ptest at arbitrary path

2. Fix large-subopt.in1 not found
...
|diff: /lib32-diffutils/3.7-r0/build/../diffutils-3.7/tests/large-subopt.in1:
No such file or directory
|diff: /lib32-diffutils/3.7-r0/build/../diffutils-3.7/tests/large-subopt.in2:
No such file or directory
...

(From OE-Core rev: 0f7ada89ef8ed65eee8ada5e766999af7771c2c8)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Oleksandr Kravchuk
ca9c738053 selftest/devtool: fix URI to MarkupSafe package
PyPi packages are now hosted at files.pythonhosted.org.

[YOCTO #13243]

(From OE-Core rev: 384e2c3765c77c29527a43f2e0bffbc41170eeb6)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Alejandro del Castillo
9d9163d36f opkg-utils: upgrade to version 0.4.1
- Drop 0001-opkg-build-do-not-set-mtime-on-data.tar.X.patch
- Drop 0001-opkg-list-fields-fix-to-print-the-fields-again.patch

(From OE-Core rev: 76a7f0d60f5dc38da15f21720cb97bf761562b44)

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Chen Qi
d9b0adbce8 oescripts.py: avoid error when cairo module is not available
When running 'oe-selftest -r oescripts', the following error appeared.

    cls.skipTest('Python module cairo is not present')
    TypeError: skipTest() missing 1 required positional argument: 'reason'

This is because the host does not have the cairo python module installed.
Fix this problem by using unittest's SkipTest exception.

(From OE-Core rev: 785bb108ceb9dc137ec8d75d887b6a3869cbfb9c)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Mariano López
e32d7565a3 linux-yocto: Add scsi_debug module when ptest is in DISTRO_FEATURES
util-linux ptest requires the scsi_debug module to perform eject/mount
tests. This will conditionally add scsi_debug module when ptest is in
DISTRO_FEATURES.

This doesn't include linux-yocto-tiny because the resulting image will
be too big and do_image would complain about this.

[YOCTO #13301]

(From OE-Core rev: 70a30872bd93cc058b05d9cf2b4f9334658629ee)

Signed-off-by: Mariano López <just.another.mariano@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Mariano López
fbee8ff72a util-linux: Stop udevd to run ptests
The util-linux's ptest uses the SCSI_DEBUG kernel module to create
virtual SCSI disks. The automount feature of udevd will try to mount
these disks by default. Because udevd controls the mount of the disks,
the eject/mount tests will fail or be skipped. This change will stop
udevd before executing the util-linux's ptest and start the daemon
again after all the tests.

This is for eudevd only, systemd-udevd doesn't present this problem
because there are no automount rules.

[YOCTO #13301]

(From OE-Core rev: f7becf0b5743dfbee06b354a086dc553db2b1348)

Signed-off-by: Mariano López <just.another.mariano@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Mingli Yu
3c5fb84222 dbus-test: Upgrade 1.12.16
(From OE-Core rev: 2a6d75242579655d9e73491b147aad8533d1bcbd)

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Mingli Yu
404347ebdb dbus: Upgrade to 1.12.16
Security fixes:
  CVE-2019-12749

(From OE-Core rev: 20fe36c347d471d79035ed7d9c2a50d4c8e7745a)

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Kai Kang
1fa9343f7c qemu/qemu-system-native: depend bison-native
Add bison-native to DEPENDS of qemu and qemu-system-native to fix
compile warning:

|      BISON dtc-parser.tab.c
| make[1]: bison: Command not found

(From OE-Core rev: ef2592eb898b494cf61f1e0614bdcaf94ec103d0)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Oleksandr Kravchuk
f1fdce83cc popt: fix SRC_URI
rpm5.org has been down for about a year now. Use linuxfromscratch.org
as an alternative reliable source instead.

(From OE-Core rev: d9224014da9a512b1b8837e4e7a736d465c97be3)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Fabio Berton
2e395d8053 mesa: Update 19.0.6 -> 19.1.0
Update all patches to apply on 19.1.0 version.

See full mesa 19.0.1 changes here:
  - https://www.mesa3d.org/relnotes/19.1.0.html

(From OE-Core rev: b16c6d0452c79dcc2fccc4a7b9b2d68d53d2b353)

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Ross Burton
b87f4d28f9 efibootmgr: add
This was in meta-oe but EFI is sufficiently widespread now that we need it in
core.

The recipe is based on the one in meta-oe but with several updates.

(From OE-Core rev: 275e5e7ecf4f79b7892ae35a47902188d9905bd0)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Ross Burton
8a8ae3759d efivar: add
This was in meta-oe but EFI is sufficiently wide spread now that we need it in
core.

The recipe is based on the one in meta-oe but with several updates.

(From OE-Core rev: 53fe0133432f62024850e87456292b044d1280ee)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Martin Jansa
2510f1c2e8 pigz: install pigz, unpigz, pigzcat in native and nativesdk builds again
* since this commit:
  commit ad1db93d134db1ec4f6d6598c9741dc13e82e1f3
  Author: Anuj Mittal <anuj.mittal@intel.com>
  Date:   Tue May 28 06:32:10 2019 +0800
  Subject: Revert "pigz: pigz is not gzip"

  pigz-native and nativesdk-pigz no longer installs pigz, unpigz, pigzcat,
  so scripts explicitly depending on pigz-native and calling pigz started to fail.

* reverse the logic
  - all the builds install pigz, unpigz, pigzcat
  - only the native one installs it as gzip as well

* it could be optimized a bit more to create gzip as just a symlink
  in native case as well, but they are in different directories
  (pigz in base_bindir and gzip in bindir) and it's only 130kB..

(From OE-Core rev: 112deafd1c144d770b6ec0953911f2adc1cb30dd)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Nicola Lunghi
6f7eaf80f7 rng-tools: harmonise systemd and sysvinit
this commit will permit to read the option from
/etc/default/rng-tools both from systemd and sysvinit unit file.

(From OE-Core rev: 16ced1a253c74c01ca414db2f1a010c083213b91)

Signed-off-by: Nicola Lunghi <nick83ola@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14 22:48:22 +01:00
Ross Burton
e00d88475d bluez: fix test case failures with GCC 9
[ YOCTO #13366 ]

(From OE-Core rev: ca737408bb7e9dd24f3a18e60fad290c6e539b7b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12 21:08:52 +01:00
Alex Kiernan
2fca533f60 kernel-fitimage: uboot-sign: Check UBOOT_DTB_BINARY before adding deps
Since UBOOT_DTB_BINARY empty means we don't need to inject signatures
into the U-Boot DTB, we can remove the dependencies between consumers of
these two classes and resolve a circular dependency between u-boot and
kernel.

(From OE-Core rev: c6b49cb75285e71909d1f9e4bf636f186941b519)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12 21:08:52 +01:00
Changqing Li
508269e4ba qemu: fix qemu ptest cannot work
do_install_ptest in recipe is covered by default function
in ptest.bbclass since inherit ptest write in wrong place,
fix it by move it to top.

(From OE-Core rev: d4ad8d95c60830ac4bd988314cd865c32d1ec4e0)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12 21:08:52 +01:00
Changqing Li
21bd096d6c multilib: add override for image recipe
MACHINE set to qemux86-64
for lib32-core-image-sato, during do_rootfs, it will run
install_complementary, which will get localedir by
d.getVar("libdir"), without override, libdir will still be
lib64. add override to fix it.

(From OE-Core rev: 8ed0cf040abbfb0999ac92b59ca9b7067d340202)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12 21:08:52 +01:00
Chen Qi
949cbf198c util-linux: upgrade to 2.33.2
The license files' names are changed, but the contents remain the
same. However, the LICENSE section of the recipe was wrong. This
upgrade change the 'BSD' part to 'BSD-3-Clause & BSD-4-Clause'.

(From OE-Core rev: 9bc68bcc79d9e2464b9b29f6bfde8322b65c09b9)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12 21:08:52 +01:00
Tom Rini
0f3a7044ce vim: Update to 8.1.1518 to fix CVE-2019-12735
(From OE-Core rev: cdd6f417c5d1535bd922703e18185b9d376e3b6f)

Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12 21:08:52 +01:00
Mike Crowe
03830e2eb9 cmake: Avoid passing empty prefix to os.path.relpath
With meta-micro, ${prefix} is the empty string. This means that
CMAKE_INSTALL_BINDIR:PATH and friends end up containing paths starting with
many instances of "../", presumably due to os.path.relpath attempting to
find its way to the current directory.

Let's avoid this by ensuring that the root path always ends in a slash. If
it already ends in a slash then adding another one shouldn't cause any
problems.

(From OE-Core rev: 67b19414c1c17f71f39c971b9f9fdd1f776516a1)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12 10:54:40 +01:00
Alexander Kanavin
fdd18c8805 gtk+3: update 3.24.5 -> 3.24.8
Rebase 0003-Add-disable-opengl-configure-option.patch
and add another fix to it (g-introspection input file list assumes
opengl is always available).

(From OE-Core rev: e6ca80559f02a8a38272ae52c568053dde52ac9f)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12 10:54:40 +01:00
Alexander Kanavin
9fbd020124 gdk-pixbuf: update 2.38.0 -> 2.38.1
Remove 0001-loaders.cache-depend-on-loaders-being-fully-build.patch
as upstream has fixed the issue.

Add a patch to revert upstream's decision to not cross-compile
thumbnailer or tests.

(From OE-Core rev: 0598f66aa823ec4355284a0a40c3d125d6c5e0c9)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12 10:54:40 +01:00
Quentin Schulz
e3d0dd9163 selftests: add tests for INCOMPATIBLE_LICENSE
One bug went unnoticed without these selftests: an INCOMPATIBLE_LICENSE
with a non-SPDX license for a package with that non-SPDX license wasn't
enforcing the denial of build for said package. See
4b6ce4604c ("meta: license: fix non-SPDX
license being removed from INCOMPATIBLE_LICENSE")

While adding a test for that particular case, let's add a few more so
that we cover a handful more use cases of INCOMPATIBLE_LICENSE.

(From OE-Core rev: 6c2ca52218c196e7ccf6b3275bffc3e3a04193c6)

Signed-off-by: Quentin Schulz <quentin.schulz@streamunlimited.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12 10:54:40 +01:00
Yeoh Ee Peng
99c821eaaa resulttool/merge: Enable control TESTSERIES and extra configurations
Current QA team need to merge test result files from multiple sources.
Adding TESTSERIES configuration too early will have negative
implication to report and regression. Enable control to add TESTSERIES
when needed. Also enable adding EXECUTED_BY configuration when
needed.

(From OE-Core rev: 651d8d371e78e77599d56681228d5782664f7743)

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12 10:54:40 +01:00
Yeoh Ee Peng
41f10ab3b1 resulttool/store: Enable add EXECUTED_BY config to results
Current results stored does not have information needed to trace who
executed the tests. Enable store to add EXECUTED_BY configuration
to results file in order to track who executed the tests.

(From OE-Core rev: dca2a57d54163a2e63b06e2f140fea3bd49cef0d)

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12 10:54:40 +01:00
Yeoh Ee Peng
588f455082 resulttool/resultutils: Enable add extra configurations to results
Current resultutils library always add "TESTSERIES" configuration
to results. Enhance this to allow control of adding "TESTSERIES"
configuration as well as allow adding extra configurations
when needed.

(From OE-Core rev: 443c0acc14ef2451b10878fc83dd11b46805daf0)

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12 10:54:40 +01:00
Nicola Lunghi
eb92c13421 rng-tools: recipe cleanup
- add missing DESCRIPTION, AUTHOR, HOMEPAGE
- cleanup DEPENDS
- fix variable ordering as per https://www.openembedded.org/wiki/Styleguide
- remove unneeded checks for systemd, sysvinit in do_install

(From OE-Core rev: 8e36880e8a36f828d4670c45f1c4d934d03d4645)

Signed-off-by: Nicola Lunghi <nick83ola@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12 10:54:40 +01:00
Matthias Schoepfer via Openembedded-core
c85b269416 python3: fix build on softfloat mips
This patch originally only meant to correct the python3 build for mips
with softfloat, as the original test only checked for mips hardfloat.

Replaced custom C Program for triplet detection with autotools triplet
detection.

(From OE-Core rev: 203336486c84528e8779db93f64cc28e4b372aab)

Signed-off-by: Matthias Schoepfer <matthias.schoepfer@ithinx.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12 10:54:39 +01:00
Ross Burton
0191f500c5 python-nose: python3-nose should be default
We have nose recipes for both Py2 and Py3, but they both want to ship the
unversioned nosetest binary.  As Py2 is approaching EOL, remove the unversioned
binary from python-nose (leaving nosetest-2.7) instead of renaming the binary to
nosetest3 in python3-nose.

(From OE-Core rev: e22111a18a0f67fefd1800f67bd5e45637deaa60)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12 10:54:39 +01:00
Richard Purdie
9e5a3f40ca bitbake: cooker: Ensure mcdeps are processed even if only one multiconfig
If you have no BBMULTICONFIG set but set mcdepends, they're currently
ignored. We can handle them correctly with this small tweak.

(Bitbake rev: 578f0c02f6a13f4315e7c2ce8b5e876dd2025055)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-11 13:27:19 +01:00
Chris Laplante
f77badd46a bitbake: build: implement custom progress handlers injected via OE_EXTRA_IMPORTS
A separate patch to base.bbclass (in poky) will add the OE_EXTRA_IMPORTS
variable. The contents are appended into OE_IMPORTS. This provides a
mechanism by which layers (in their layer.conf) can make custom progress
handlers available.

As a backup, individual recipes can inject progress handlers into
__builtins__.

Custom handlers are expected to have this __init__ signature:

    def __init__(self, d, outfile=None, otherargs=None):

Recipes can then use the handlers like this:

    do_task[progress] = "custom:mylayer.util.ProgressHandler[:args]"

The last part (everything after and including the second colon) is
optional. If provided, it is passed to HandlerClass's __init__ as
otherargs="args". Otherwise, otherargs=None.

(Bitbake rev: 20289d62c84c393990dd3deb0cca1b17c09092e6)

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-11 13:27:19 +01:00
Chris Laplante
7687469590 bitbake: build/progress: use context managers for progress handlers
It seems context management support was half-implemented, but never
finished. For example, LogTee has __enter__ and __exit__ but they
haven't been exercised until now.

(Bitbake rev: bf522ad3e0c52cdb69b406226840d870ff4f2766)

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-11 13:27:19 +01:00
Chris Laplante
575ea5532f bitbake: build: extract progress handler creation logic into its own method
(Bitbake rev: a841efa50d3aaf7c57446806327b2b687371cb29)

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-11 13:27:19 +01:00
Chris Laplante
8c15a93553 bitbake: knotty: allow progress rate for indeterminate bars
(Bitbake rev: 85f0b443b7ab1848abc6eb658be489fc1718004c)

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-11 13:27:19 +01:00
Haiqing Bai
9729d05975 kernel.bbclass: Make task clean depend on cleaning of make-mod-scripts
The package 'make-mod-scripts' creates files in 'kernel-build-artifacts/include/config'
which are removed by 'cleanall/cleansstate' of 'virtual/kernel'. And this causes the
below error while building out of tree kernel module:
ERROR: Kernel configuration is invalid.
      include/generated/autoconf.h or include/config/auto.conf are missing.
      Run 'make oldconfig && make prepare' on kernel src to fix it.

Suggested-by: Jun Nie <jun.nie@linaro.org>

(From OE-Core rev: f79c95f6a883e999e0c2ecfd60b6b696b7595497)

Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-11 13:26:55 +01:00
Kevin Hao
317a0984e7 tune-thunderx: Set the correct PACKAGE_EXTRA_ARCHS_tune-thunderx
The value of PACKAGE_EXTRA_ARCHS_tune-thunderx should be based on
PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto instead of armv8a-crc-crypto.
Otherwise we would get some sanity check error like this:
    OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Error, the PACKAGE_ARCHS variable (all any noarch armv8a-crc-crypto thunderx qemuarm64) for DEFAULTTUNE (thunderx) does not contain TUNE_PKGARCH (aarch64)

(From OE-Core rev: 13cc0f7c0bd98ea228e9bdf51043117d38837ce7)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-11 13:26:55 +01:00
Quentin Schulz
4b6ce4604c meta: license: fix non-SPDX license being removed from INCOMPATIBLE_LICENSE
A non-SPDX license (which is not an alias to an SPDX license) cannot
currently be marked as incompatible in INCOMPATIBLE_LICENSE.
In the current state, we take all INCOMPATIBLE_LICENSE and pass them
through expand_wildcard_licenses which is only adding SPDX licenses that
match the glob regexp of what is in INCOMPATIBLE_LICENSE (be it a direct
match to an SPDX license or via an alias).

This does not work well with custom licenses.

E.g.:

foo.bb:
LICENSE = "FooLicense"

conf/local.conf:
INCOMPATIBLE_LICENSE = "FooLicense"

`bitbake foo`

Gives no warning, no error, builds and packages successfully, because
INCOMPATIBLE_LICENSE is basically empty since FooLicense is neither in
SPDXLICENSEMAP nor in SRC_DISTRIBUTE_LICENSES.

Let's add the original licenses to the list returned by
expand_wildcard_licenses to be able to handle the aforementioned case.

INCOMPATIBLE_LICENSE = "FooLicense GPLv2 GPLv3+" used to "resolve" to
"GPLv2 GPLv3". It now resolves to "FooLicense GPLv2 GPLv3 GPLv3+" which
fixes the issue with custom licenses not being in SPDXLICENSEMAP or
SRC_DISTRIBUTE_LICENSES and thus being left out of the blacklisted
licenses.

I needed to pass a list to expand_wildcard_licenses from the
license_image class instead of the current output of map() because the
operator [:] does not work on this kind of type, and list(map()) or
anything that iterates over map() actually moves the iterator and breaks
the forloop right after in expand_wildcard_licenses.

(From OE-Core rev: 2d976587d703462db2b7b78661b05ac22fb93787)

Signed-off-by: Quentin Schulz <quentin.schulz@streamunlimited.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-11 13:26:55 +01:00
Chee Yang Lee
97feebdf99 wic/plugins: kernel image refer to KERNEL_IMAGETYPE
replaced hardcoded kernel image with KERNEL_IMAGETYPE.
set kernel image to "bzImage" incase KERNEL_IMAGETYPE not set.

(From OE-Core rev: 88a9fef761c5e67b2964fedc85a7e8ad37067564)

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-11 13:26:55 +01:00
Douglas Royds via Openembedded-core
ef8080c804 json-c: Backport --disable-werror patch to allow compilation under icecc
icecc preprocesses source files locally before shipping them off to be compiled
on remote hosts. This preprocessing removes comments, including /* fallthough */
comments in switch statements that normally prevent an implicit-fallthrough
warning, see https://github.com/icecc/icecream/issues/419

Rather than turning off -Werror, the upstream project has implemented a
configure option, --disable-werror, in response to Ross's
https://github.com/json-c/json-c/issues/489

This patch from
21c886534f

Upstream-Status: Backport [Not yet released]
(From OE-Core rev: c668b467415599cb95d93a231eb51d77137a57e4)

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-11 13:26:55 +01:00
Jiping Ma
fd1cfea5be dhcp:"dhclient -x eth0" action is not correct.
The action of "dhclient -x eth0" and "dhclient -r eth0" is
same when enable ENABLE_GENTLE_SHUTDOWN. Disable ENABLE_GENTLE_SHUTDOWN
that will use the default signal hander.

(From OE-Core rev: 8e5c85332f222efd5ffddaa9da9272c6e42881f5)

Signed-off-by: Jiping Ma <jiping.ma2@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-11 13:26:55 +01:00
Jaewon Lee
c07435a83a gstreamer1.0-python_1.16.0.bb: Override libpython dir
As mentioned in upstream commit a2cf84afff,
"gstpythonplugin hardcodes the location of the libpython from the build
workspace and then fails at runtime."

In other words, PYTHON_LIB_LOC was set to the recipe-sysroot-native dir
in the gstreamer1.0-python workspace on the host. Overriding
PYTHON_LIB_LOC with /usr/lib by adding --with-libpython-dir=${libdir} to
EXTRA_OECONF to fix this issue.

The error that was seen is:
** (gst-plugin-scanner:2343): CRITICAL **: 23:08:18.327: Couldn't
g_module_open libpython. Reason: ${project}/build/tmp/work/${arch}/
gstreamer1.0-python/1.14.4-r0/recipe-sysroot-native/usr/lib/libpython3.5m.so:
cannot open shared object file: No such file or directory

The comment continues and says "it still fails because it looks for
a symlinked library ending in .so instead of the actually library with
LIBNAME.so.MAJOR.MINOR. Although we could patch the code to use the path
we want, it will break again if the library version ever changes."
This isn't the case anymore as the package is deploying
/usr/lib/gstreamer-1.0/libgstpython.cpython-37m-i386-linux-gnu.so, a
versionless so.

(From OE-Core rev: ac1d6d55e9cc647caf104e94465e32cf25647ad1)

Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-11 13:26:55 +01:00
Richard Purdie
9910a3631c build-appliance-image: Update to master head revision
(From OE-Core rev: 86266dfcd70b8e3435d267538c3e6e4d69be829e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-10 17:47:35 +01:00
Maciej Pijanowski
bb59bcd016 recipetool: add python3 support
Add support for generating python3 recipes using the recipetool / devtool.
Drop python2 support at the same time.

Tested with:

oe-selftest -r recipetool.RecipetoolTest

[YOCTO #13264]

(From OE-Core rev: d8b2f58974482b3b1ccc65c5f93104d0d7ba87bc)

Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-10 17:38:10 +01:00
Adrian Freihofer
0e4c79a7c4 runqemu: QB_FSINFO to support fstype wic images
wic images are handled as vmtype images. Starting qemu with "-kernel"
parameter and an image of type wic is not supported. Especially for
"-machine virt" the combination of wic with -kernel parameter would
be beneficial.

The new parameter QB_FSINFO allows to pass image type specific flags to
runqemu. QB_FSINFO is a space separated list of parameters. Parameters are
structured according to the following pattern: image-type:flag.

For now two parameters are supported:
- wic:no-kernel-in-fs
  The wic image is treated as rootfs only image. A -kernel option is
  passed to qemu.
- wic:kernel-in-fs
  The wic image is treated as VM image including a bootloader and a
  kernel. This is still the default behavior.

Example:
QB_DEFAULT_FSTYPE = "wic"
QB_FSINFO = "wic:no-kernel-in-fs"
QB_KERNEL_ROOT = "/dev/vda1"
QB_SYSTEM_NAME = "qemu-system-aarch64"
QB_MACHINE = "-machine virt"
...

[YOCTO #13336]

(From OE-Core rev: 2aa79a67affd22dfa37e4c2945c6ab0c86321f98)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-10 17:38:10 +01:00
Richard Purdie
79ef0eab35 bitbake: cooker: Add compability handling for multiconfig: prefix migration
This allows "multiconfig:" targets to continue to work by internally
mapping them to the new "mc:" naming, allowing older builds to work
as before.

(Bitbake rev: c4d90890547af642e99cc541af3415df3559563e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-10 14:46:38 +01:00
Richard Purdie
1f68b0bd98 bitbake: multiconfig: Switch from 'multiconfig' -> 'mc'
After real world use its clear the "multiconfig:" prefix to multiconfig tasks,
whilst clear, is also clumbersome. Switch to use the short version instead.

mcdepends will continue to work with "multiconfig:" for now as well. The commandline
will only accept mc: going forward.

[YOCTO #11168]

(Bitbake rev: 821daf093b76504067a8b77dfa4b181af6ec92b4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-10 14:46:38 +01:00
Richard Purdie
32df42cff5 multiconfig: Adapt to bitbake switch 'multiconfig' -> 'mc'
(From OE-Core rev: 8a6f7c1e455156966f467008645fef14db679ccf)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-10 14:46:38 +01:00
Joshua Watt
e5217b6c10 oeqa: Add reproducible build selftest
Adds an initial test for reproducible builds to the OE selftest. This
initial test builds core-image-minimal using sstate, then does a clean
build without sstate in another build directory, and finally does a
binary comparison of the resulting package files between the two builds.

The test is currently always skipped since it doesn't pass yet, but it
can easily be enabled locally

(From OE-Core rev: 2e591bdf93ec9e59b900562263dfe8e72b163baa)

Signed-off-by: Joshua Watt <JPEWHacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-10 14:46:38 +01:00
David Reyna
17dfe628d1 bitbake: toaster: Fix Thud Bitbake release metadata
Fix the Bitbake version ID for Thud (1.40).

[YOCTO #13356]

(Bitbake rev: 7d0ab11a0d1a2510515d7ebab66b922fbfc411c3)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-10 09:44:46 +01:00
Chris Laplante
070218c1c5 base.bbclass: Add OE_EXTRA_IMPORTS
OE_IMPORTS is not intended to be touched by users, but there are cases
in which layers might want to make additional Python modules available
to Python functions. For example, Python modules defined in the layer
themselves (under meta-layer/lib).

(From OE-Core rev: 00fa8391365863fa7805ad61b2d1a8425b9ea040)

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-08 16:01:41 +01:00
Adrian Freihofer
13aa3bea40 testimage: consider QB_DEFAULT_FSTYPE
testimage.bbclass starts qemu with the first image type found in
the IMAGE_FSTYPES list. It's weird: this ['wic', 'tar'] works but
this ['tar'. 'wic'] does not. If QB_DEFAULT_FSTYPE is defined,
this fstype is booted.

(From OE-Core rev: aedb6bf9b6ccf37f69372642bc4c5dbbca92d0d9)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-08 16:01:41 +01:00
Adrian Freihofer
d6c4039e3f qemurunner: fix undefined variable
While hacking on this I got an Exception. It's better to define
variables also in python.

Signe:-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
(From OE-Core rev: 1ea225a86cdee4ed932ede509d3351d5aecae497)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-08 16:01:41 +01:00
Tim Orling
716dff0b2f oeqa/runtime: add simple test for scons
This test simply compiles a hello world program using scons.

(From OE-Core rev: bf6e3f0f3a7a134e8e3cb16366ef01b8c956e4c8)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-08 16:01:41 +01:00
Tim Orling
2209af86ed serf: switch to python3-scons-native
SCons has supported python3 since v3.0.0, use it.

(From OE-Core rev: e1de553bb2c1885f8323d9ce31b35175d5da3ef2)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-08 16:01:41 +01:00
Tim Orling
35e4834904 scons.bbclass: use python3-scons
SCons has supported python3 since 3.0.0 release, use it.

[YOCTO #13381]

(From OE-Core rev: 2ce507d65cd2558edc9e7929aff7b80463c26998)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-08 16:01:41 +01:00
Tim Orling
9a0549969d python3-scons-{native}: add recipe for v3.0.5
SCons has supported python 3 since v3.0.0
https://scons.org/tag/releases.html

Fix shebangs in scripts

[YOCTO #13381]

(From OE-Core rev: 1873f777aeddfbbf3ce06e93df3fa5318decb7b7)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-08 16:01:41 +01:00
Richard Purdie
3ef8d2175b openssh: Document skipped test dependency
In minimal images the agent-ptrace test is skipped unless gdb is
installed which explains the difference in test counts. We don't
want a build dependency on gdb and the test isn't critical so just
document the dependency.

(From OE-Core rev: d3f29e6e52367e124e3f543f970038c0332ad3e1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-08 16:01:41 +01:00
Richard Purdie
8dc2f09ea5 gawk: ptest fixes
In minimal images all tests pass due to a missing dependency on make.
Add the missing dependecy.

The test list created by the run-ptest script is incorrect as it includes
entries like "fi". Simplify it and correct it.

Some tests are skipped due to mpfr not being enabled. Correctly mark these
as SKIP.

Some tests need the "../gawk" script, create a link to it so the tests
work correctly.

Also print more information in the failed test cases.

(From OE-Core rev: 8392d60e05c4eed0b08273c1a934eeea54215079)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-08 16:01:41 +01:00
Ross Burton
946a8802be parted: drop patch for linux <2.6.20 support
We don't really care about kernels this old anymore, so drop the patch.

(From OE-Core rev: b9630048451342a0ca1080955b0df35b0c94ce46)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-08 16:01:41 +01:00
Ross Burton
939a61c5dc parted: swap patches for the commits that landed upstream
Several of the parted fixes are actually upstream in slightly different form.

(From OE-Core rev: 90e032a4dc8e7d56db667d35a15cbf30b9fcdf06)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-08 16:01:41 +01:00
Ross Burton
e7260e7c86 libxslt: add comment saying when a workaround can be removed
(From OE-Core rev: 0dc31cb680ecb07f013ae110cff688c62f20573b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-08 16:01:41 +01:00
Alexander Kanavin
3c80692e36 glib-2.0: udpate 2.58.3 -> 2.60.3
Drop autotools-specific parts from patches, as all autotools files
have been removed upstream (meson is now the only option).

Remove autotools-specific 0001-Revert-Use-absolute-paths-in-pkg-config-files.patch

Remove backported fix-nl-abaltmon.patch

Add a hunk to Enable-more-tests-while-cross-compiling.patch which comments out
the part of the tests that hard-codes native ld for building.

(From OE-Core rev: c7479bfd5fad4b9ba2e4299048a0c432200a5204)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-08 16:01:41 +01:00
Fabio Berton
62a30ab5c7 mesa: Update 19.0.5 -> 19.0.6
Mesa 19.0.6 is a bug fix release which fixes bugs found since the
19.0.5 release.

For full log see:
  - https://www.mesa3d.org/relnotes/19.0.6.html

(From OE-Core rev: 1e4a5fe4652bd957d822d0d3d6e7c8b7b4ff5b8e)

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-08 16:01:41 +01:00
Ross Burton
ca4cdfcd18 wic/filemap: handle FIGETBSZ failing
Some file systems don't support fetching the block size (notably the file system
Docker uses for containers), so handle the iotctl() failing and raise the
expected error.

(From OE-Core rev: 3757073726a00c5250556aae3d0daac76b88085e)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-08 16:01:41 +01:00
Scott Rifenbark
bbe3bf4bfe ref-manual: Grammar correction
I left out the word "not" in a key sentence in the new
"Checking on the Upgrade Status of a Recipe" section.

Little words can make big differences.

(From yocto-docs rev: 46a524a0d6c9e2ed6428039a4454e384a6ef648d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:41 +01:00
Scott Rifenbark
99f9a53b6b ref-manual: Updates to check-recipe-upgrade devtool command
I updated the section to include more detail on what the user
sees in the returned table.

(From yocto-docs rev: 671279548dde7f356888ba1ad1551b8bb1f70a65)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:41 +01:00
Scott Rifenbark
bbdf0453d0 ref-manual: do_checkpkg - added link to checking upgrade status
I show the "devtool check-upgrade-status" command as part of
the "do_checkpkg" task section.  I added a cross-reference
link to the "Checking on the Upgrade Status of a Recipe"
section in the ref-manual.

(From yocto-docs rev: 034054f431cc9f0e61c8e156eed66bdf6e1198a1)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:41 +01:00
Scott Rifenbark
40233c62f8 dev-manual: Added check-upgrade-status blurb to upgrading recipes
The section "Upgrading Recipes" covers several ways of
upgrading a recipe.  I added some stuff in the introductory
area that mentions the fact a user might want to check
the upgrade status of a recipe first.

(From yocto-docs rev: bd2fd8d0a91b64455c282ebf4974e40874274f46)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:41 +01:00
Scott Rifenbark
e6b1e54d85 ref-manual: New section "Checking Upgrade Status of a Recipe"
I added a new section showcasing the "devtool check-upgrade-status"
command.

Also, added a note in the "Upgrading a Recipe" section" to tell
the reader they might want to check on a recipe's upgrade
status before upgrading a recipe.

(From yocto-docs rev: 974f63fe8836fccd51f12b511c23644235cbd4b4)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:41 +01:00
Scott Rifenbark
50d2fb44a5 ref-manual: Udated devtool help output examples.
Specifically missing was the "devtool check-upgrade-status"
command.

(From yocto-docs rev: beaa40e8d1037f237ab588ec6ce256b8c3a18543)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:41 +01:00
Scott Rifenbark
890a993be1 ref-manual: Removed "distutils-tools" class.
This class was removed for 2.7 and I took the reference section
out of the class area.

(From yocto-docs rev: daf786bebb0286d2ced46c97957d80a94c921c56)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:41 +01:00
Scott Rifenbark
a4782409c4 ref-manual: Removed bugzilla.bbclass
The migration section noted this class as becoming obsolete.
I removed it from the class reference section.

(From yocto-docs rev: 63128888242493fb5671f11a2e5e470f2da6b22a)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:41 +01:00
Scott Rifenbark
f21fc9d1be dev-manual, ref-manual: removed "distrodata" class
Ousted these since it was noted in the migration section that
the class had been removed.  Modified all references to the
removed class as needed.

(From yocto-docs rev: 7000acc76da6b7ee850b799347ab9083663c7e6a)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:41 +01:00
Scott Rifenbark
d4fc8cf7ae ref-manual: Updated "do_fetch" to have a link to "Fetchers"
Fixes [YOCTO #10098]

This task needed to cross-reference the "Fetchers" section,
which is in the BitBake User Manual.

(From yocto-docs rev: c8862f4c8cc43777acead0e93fc728f2e8be4641)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:41 +01:00
Scott Rifenbark
d52682c054 sdk-manual: Added link to BB manual fetcher section.
In the "Use devtool upgrade to Create a Version of the Recipe
that Supports a Newer Version of the Software" section, we
reference "fetchers" but do not link to the section on them
in the BB manual.  I added a link.

(From yocto-docs rev: 633ac78daa2ab3bdde17ecb1a203f6addd6ee4af)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:41 +01:00
Adrian Bunk
39f30789e2 ref-manual: Remove irda feature
IrDA support was removed in upstream kernel 4.17,
and irda-utils as well as the feature are now also removed.

(From yocto-docs rev: 5650b3c733310b4d478440449d427de417946c81)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 13:57:41 +01:00
Philippe Normand
22c84e16f1 gnutls: Use the sysconfdir variable for the ca-certificates path
(From OE-Core rev: 666f6192aaa9e847ad0d920a487b82d984b58d26)

Signed-off-by: Philippe Normand <philn@igalia.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 09:11:49 +01:00
Joe Slater
d3b40352e4 slang: modify an array test
One array test attempts to create an array that is far too
large to exist.  Different exceptions are thrown for 32 and 64
bit machines, so we account for that when catching them.

(From OE-Core rev: 03e3721674fe7fc22911ec738524cef86c7a5357)

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 09:11:49 +01:00
Joshua Watt
1095ee1f62 bash: Replace uninative loader path in ptest
The Makefile used for bash-ptest can pick up the path to the uninative
loader through BUILD_LDFLAGS. This includes the full path to the
uninative loader, which is not reproducible. Replace it with /bin/false.
It doesn't appear as if these native programs are used in the test
suites and if there are likely to be other problems related to building
them using the BUILD_* flags.

(From OE-Core rev: 1208ff934a2bb6378aa8b219345110a0d56bf767)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 09:11:49 +01:00
Adrian Bunk
e7c39ae9cf Remove manual RDEPENDS from PN-ptest to PN package
They are now added automatically by the ptest class.

(From OE-Core rev: 25cf1820122bb2b15057aafe1c9e04a733f81bcf)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 09:11:49 +01:00
Richard Purdie
1334b064d3 gpg_sign/selftest: Fix secmem parameter handling
We keep seeing "cannot allocate memory" errors from rpm when signing packages
on the autobuilder. The following were tried:

* checking locked memory use (isn't hitting limits)
* Restricting RPM_GPG_SIGN_CHUNK to 1
* Limiting to 10 parallel do_package_write_rpm tasks
* Allowing unlimied memory overcommit
* Disabling rpm parallel compression

and the test still failed. Further invetigation showed that the --auto-expand-secmem
wasn't being passed to gpg-agent which meant the secmem couldn't be expanded hence the
errors when there was pressure on the agent.

The reason this happens is that some of the early gpg commands can start the agent
without the option and it sticks around in memory so a version with the correct
option may or may not get started.

We therefore add the option to all the key gpg calls.

(From OE-Core rev: c7e131a76e522503df55e211dd261829feacfa28)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 09:11:49 +01:00
Richard Purdie
0a72ec2ed1 openssh: Add missing ptest dependency on coreutils
This fixes the openssh tests in minimal images since they use options
not present in the busybox versions of the commands.

[YOCTO #13295]

(From OE-Core rev: 4059d8eedc5cf6f46a834997b7120150fcec4c0e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 09:11:49 +01:00
Chee Yang Lee
cc083399ce wic/engine: include .wks.in in wic search and list
allow wic to list and search for kickstart file in .wks.in extension.
basename show by wic list images to fully exclude extension.

(From OE-Core rev: 2c0a292a790ad069648e37b1b29fcea656fcf3e4)

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 09:11:49 +01:00
Adrian Bunk
9f348884ab openssl: Upgrade 1.1.1b -> 1.1.1c
Backported patch removed.

(From OE-Core rev: 147d66495622332fdbf3cb1d0c3f0948402e1d1b)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 09:11:48 +01:00
Adrian Bunk
2ac6bfc088 gcc: Remove 0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch
This was added 9 years ago as a workaround for a problem with
gcc 4.5 on mips.

Building webkitgtk works for me without it for qemumips.

Debian also builds webkitgtk for 32/64 bit big/little endian mips
without using this workaround.

(From OE-Core rev: 7af322a995a9385f7f452c2988188de98db300c2)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 09:11:48 +01:00
Kevin Hao
720474ee8d oeqa/utils/qemurunner: Set both the threadport&serverport with tcpserial parameter
After the commit ad522ea6a6 ("runqemu: Let qemuparams override default
settings"), the order of the two "-serial" parameters when running the
qemu have been switched. The effect of this is that the logging thread
will use ttyS1 (of course can't capture the kernel boot message anymore),
and the test command will run on the ttyS0. So the output of the test
command may be mangled by the kernel message (such as call trace), and
let the test command produce a fake timeout error message. We can't fix
it by just adjusting the order of the threadport and serverport, since
it will break some machines such as qemuarm64 which use the virtio
serial. So using the tcpserial to setup both the threadport and
serverport.

[YOCTO Bug 13309]

(From OE-Core rev: 9f2005dee41b1ef5a0d1f7b69bcd6c8352dac016)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 09:11:48 +01:00
Kevin Hao
e5f2684d60 runqemu: Add the support to pass multi ports to tcpserial parameter
In some cases(such as the oeqa's qemurunner), we need to setup multi
serial devices via the '-serial 127.0.0.1:xx" and the order of them
is significant. The mixing use of "tcpserial" and "-serial 127.0.0.1:xx"
cause ambiguous issues and we can't fix it by only adjusting the order
of them. So add the support to pass multi ports to the tcpserial
parameter, this will make sure that the order of setting up the serial
is really what we want.

[YOCTO Bug 13309]

(From OE-Core rev: 766c3b56e5071b5a5a64e88df6d3abe5232dd958)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 09:11:48 +01:00
Peter Kjellerstedt
f5dd71ec52 package.bbclass: Clean up writing of runtime pkgdata files
This introduces a variable, PKGDATA_VARS, that contains the names of
the variables that are to be output in the runtime pkgdata files.

(From OE-Core rev: 43e55bfa040425cf93d94ac626a31f6fd00a7a74)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-07 09:11:48 +01:00
Diego Rondini
2b8d484f96 bluez5: fix obex packaging
Ship some obex files in the appropriate obex package. This fixes boot
error:
[FAILED] Failed to start Bluetooth OBEX service.
that was caused by the obex.service being shipped in the main package,
rather than the -obex (that includes obexd).

(From OE-Core rev: bc9f5f4c107ea34171aad3245a49b25b671d8679)

Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-06 00:40:08 +01:00
Filip Jareš
9f005f0539 recipes: Fix license "names"/versions.
These were broken in commit 4786ecdf7cd427089464dcb62579110d494e7cd7
which performed a cleanup to avoid non-standard field names.

There is an SPDX License list at https://spdx.org/licenses/ which
aims to be a standard. Yocto also uses a substitution map SPDXLICENSEMAP,
default one stored at meta/conf/licenses.conf.

According to meta/conf/licenses.conf, "AFL-2" corresponds to "AFL-2.0"
which is not correct for dbus.

According to the same licenses.conf file "MPL-1" corresponds to "MPL-1.0",
which is correct for libical but since SPDX aims to be a standard
I am updating the identifier in libical's .bb file as well.

To verify the actual license used you can use:

dbus:

    cd /tmp/
    wget http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-0.110.tar.gz
    tar -xaf dbus-glib-0.110.tar.gz
    cd dbus-glib-0.110
    grep -A1 "^The Academic Free License$" COPYING

    cd /tmp/
    wget http://dbus.freedesktop.org/releases/dbus/dbus-1.12.14.tar.gz
    tar -xaf dbus-1.12.14.tar.gz
    cd dbus-1.12.14
    grep -A1 "^The Academic Free License$" COPYING

cairo:

    wget --quiet -O - https://cgit.freedesktop.org/cairo/plain/COPYING-MPL-1.1?h=1.16.0 | grep -A1 "MOZILLA PUBLIC LICENSE"

libical:

    wget --quiet -O - https://raw.githubusercontent.com/libical/libical/v2.0.0/COPYING | grep "Mozilla Public License"

taglib:

    wget --quiet -O - https://raw.githubusercontent.com/taglib/taglib/v1.11.1/COPYING.MPL | grep -A1 "MOZILLA PUBLIC LICENSE"

(From OE-Core rev: 85cdf2ddfbfa956f9fcb705f886645f1884149c1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-06 00:40:08 +01:00
Adrian Bunk
ebc8a8834a vte: Fix the license information
Several files that are part of libvte (e.g. src/widget.cc)
are licensed LGPLv3+.

(From OE-Core rev: 4e3b013daaa07934f1fa81f1b26fe40fea1e3435)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-06 00:40:07 +01:00
Ross Burton
66a0ca52ef libical: tidy up Perl finding
Instead of patching out the Perl detection, seed the search for perl with
HOSTTOOLS_DIR/perl.  This search usually fails because we don't let
find_program() hunt in the system paths currently.

(From OE-Core rev: 802091c09091b71814cbdce0ec3323741862f807)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-06 00:40:07 +01:00
Sakib Sajal
ee5544f301 ptest-runner: update SRCREV to latest HEAD on ptest-runner2 repo
63d097c Add SPDX-License-Identifier: GPL-2.0-or-later in source files (HEAD)
   fb93c99 utils.c: close all file descriptors after completing a ptest

(From OE-Core rev: 4115805fb4ff47fc794651ca59c858f91fe26fc7)

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Randy Macleod <randy.macleod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-06 00:40:07 +01:00
Martin Jansa
6832cd497b opkg-utils: fix opkg-list-fields script
(From OE-Core rev: 95c557761de6a89cc31f5a5910be3fced5259de6)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-06 00:40:07 +01:00
Alejandro Hernandez Samaniego
5afd85f1d5 newlib: export CC_FOR_TARGET as CC
Newlibs Makefiles use a variable CC_FOR_TARGET to build
libraries for the TARGET machine (as opposed to
CC_FOR_BUILD).

We pass CC on our compile function, which is normally
use to build, although in this case, the configure
script is trimming CC and using simply gcc for the target
machine, basically taking out the TUNE variables we pass
in CC as well, such as march, mfloat-abi and such.
This causes errors when building applications since
CC will try to use hard floating point for example
whereas the libc.a from newlib will contain libraries
built with the defaults which could be soft floating
point for example.

e.g.:
$ ${CC} test.c
real-ld: error: test.out uses VFP register arguments,
/usr/lib/libg.a(lib_a-stdio.o) does not.

Analizing the object files we can see that one of them
uses soft (library) and the other one uses hard
floating point (program):

$ readelf -A test.out | grep VFP
Tag_ABI_VFP_args: VFP registers

$ readelf -A usr/lib/libc.a | grep VFP

Hence why the linker complains.

Pass CC_FOR_TARGET with the contents of CC to override
the trimming from the configure script and build newlib
with the correct tune.

(From OE-Core rev: d00b32f4f961ceeb75e7a014209666c10cf3eb93)

Signed-off-by: Alejandro Enedino Hernandez Samaniego <aehs29@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-06 00:40:07 +01:00
Alejandro Hernandez Samaniego
9929318619 newlib: Upgrade to 3.1.0
Upgrade both newlib and libgloss to the yearly
release 3.1.0.

BSD-2 license was added on:
6864c08b94752d34cca

(From OE-Core rev: ef90ed7e4be3f1ed63faba73bd4bbd593ae7bdf2)

Signed-off-by: Alejandro Enedino Hernandez Samaniego <aehs29@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-06 00:40:07 +01:00
Ross Burton
f092b04d4c local.conf.sample: change default MACHINE to qemux86-64
32-bit x86 isn't really a useful target these days, and if users are
experimenting without setting MACHINE to their actual target then 64-bit x86
will have better performance.

(From meta-yocto rev: 69ddecdb15168dcd362f29226419a448d66fdacc)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 23:09:36 +01:00
Ross Burton
9d36aaacd4 libidn2: upgrade to 2.2.0
The unistring patch isn't needed anymore (the relevant lines are entirely
removed).

License checksums updated because of a typo fix, and an added author name.

(From OE-Core rev: 73fe3f7108e1d194961440f63afa73d5f7a0b983)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 23:09:25 +01:00
Anuj Mittal
6a0d6ca080 libpam: fix upstream version check
Recent upgrade to the recipe moved SRC_URI to github. Fix the version
check accordingly.

(From OE-Core rev: 6119272f8855f949d428e12ab4da987d43a6adbf)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 23:09:25 +01:00
Zhixiong Chi
c13c0cfc8d gcc: CVE-2018-12886
Backprot CVE patch from the upstream:
https://github.com/gcc-mirror/gcc.git [commit f98495d]
https://nvd.nist.gov/vuln/detail/CVE-2018-12886

(From OE-Core rev: 889ad561093c14da5fc161b137e95e46f3f9af3f)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 23:09:25 +01:00
Anuj Mittal
691a7a32a6 ffmpeg: add PACKAGECONFIG for mfx
Add option to build ffmpeg with support for Intel MediaSDK codecs. More
details on supported codecs available here:

https://trac.ffmpeg.org/wiki/Hardware/QuickSync

(From OE-Core rev: b7cfcce4d73e97fb591456ee1352a318393f89c3)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 23:09:25 +01:00
Hongxu Jia
01e9547c51 groff: improve reproducibility
As said in ${S}/m4/groff.m4
...
1642 # gdiffmk will attempt to use bash (for option -ef of 'test'). If bash
1643 # is not available it will use /bin/sh.
...

So drop hardcode shebang replacement, and pass variable to configure,
it also remove build path in gdiffmk to improve reproducibility

(From OE-Core rev: 9726c75c98f04735df33f61cf019ee50f67296f5)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 23:09:25 +01:00
Jon Mason
b6ca6ac564 resulttool: Remove prints if no tests occur
Printing the lack of a test is not necessary (per feedback).  Remove
this from the template to quieten it.

(From OE-Core rev: b1fe6ae66360e160eeaeafe456536f335a0eab60)

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 23:09:24 +01:00
Richard Purdie
d45b583da7 glib-2.0: ptest fixes
Add missing quotes in ptest runner. Without these it runs all gnome tests
which is why the counts in my minimal image tests differed from those on the
main autobuilder core-image-sato runs.

Also fix an error showing in the ptest logs where invalid options were being
passed to busybox du.

(From OE-Core rev: dc0c916e610297063821450761c17e10c53bb4dd)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 11:34:05 +01:00
Joshua Watt
0965f48949 classes/package: Sort ELF file list
Sorts the list of detected ELF files by path before processing. This
ensures that when multiple files are hardlinked together the first one
found is always the same. This is required to have reproducible builds.

(From OE-Core rev: de86bfeda6e3845336a0b56c883b49219967128f)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 09:09:42 +01:00
Joshua Watt
5eb1d8b63f zip: Remove build date to improve reproducibility
Applies a patch from Debian to remove the build date from zip.

(From OE-Core rev: 222d485e4eb789307093d57cb3c8d373c2e695b8)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 09:09:42 +01:00
sangeeta jain
d9cb1c472c resulttool/manualexecution: Enable creation of test case configuration
Allow the creation of test case configuration file based on user inputs.
Where this testcase configuration file will be used by the the manual
execution to run selected test cases for a module rather than compulsory
run all test cases in manual json file.

(From OE-Core rev: 73d2a747c17779da0ca972da776b3cf02c2e1cbc)

Signed-off-by: sangeeta jain <sangeeta.jain@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 09:09:42 +01:00
Bruce Ashfield
ce47f982fc linux-yocto: ptest: Add SCSI debug configuration for util-linux
Bumping the SRCREVs to pickup the following configuration tweak for
ptest usage:

  Author: Mariano López <just.another.mariano@gmail.com>
  Date:   Sat Jun 1 17:30:46 2019 -0500

      Add SCSI debug configuration for util-linux ptest

      The ptests from util-linux require the scsi debug module to be installed
      for a subset of tests. This patch would allow to build the kernel module
      for the linux-yocto kernel.

      Signed-off-by: Mariano López <just.another.mariano@gmail.com>

(From OE-Core rev: 1d72b295a22cde80259393e36e3515b6fa2ee34d)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 09:09:42 +01:00
Jonathan Rajotte
999879daf6 liburcu: update to 0.11.1
0.11.0 contains a major bug regarding the so versionning scheme [1].

0.11.1 includes the following fixes:
        * Fix: SONAME bump to 6.1.0
        * Fix: urcu/futex.h: users of struct timespec should include time.h

[1] https://lists.lttng.org/pipermail/lttng-dev/2019-June/029020.html

(From OE-Core rev: faefb256b63c7e4f19be8c733e8d496037603b8e)

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 09:09:42 +01:00
Richard Purdie
000dd28c6d e2fsprogs: Fix missing ptest dependencies
This allows ptests to execute successfully in minimal images.

(From OE-Core rev: 895d96fc65fbaab6d94b6e2fe56202f256d86ede)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 09:09:42 +01:00
Jon Mason
cb153e8da8 resulttool: modify to be multi-machine
Currently, the code will sum all of the different machine results into a
single report of the tests results.  This can lead to confusion as to
which machine may be experiencing issues.  Modify the code to store the
results in a per machine basis and report them accordingly.

(From OE-Core rev: 16d4031ea5df8a4ddfdb937d35464c09e1abd10e)

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 09:09:42 +01:00
Hongxu Jia
c113a83dd5 lib/oe/reciputils.py: support character `+' in git pv
While pv contains char `+' (such as ncurses 6.1+20181013),
it was incorrectly converted to `6.1'

In this commit:
- Convert [^\+]* to .*?
  Support pv to contain char `+' and not greedy match
  (Such as ncurses 6.1+20181013)

- Add [^\+] to sfx match
  Support sfx contains extra chars between `+' and `git'
  (such as asciidoc "8.6.9+py3-gitAUTOINC+618f6e6f6b")

- Make sfx and rev greedy match

Run `devtool check-upgrade-status --all' in poky and compare results,
only one difference on ncurses version:
Without the commit:
INFO: ncurses                   6.1             6.1+20181013    Hongxu Jia <hongxu.jia@windriver.com> 7a97a7f937762ba342d5b2fd7cd090885a809835

With the commit:
INFO: ncurses                   6.1+20181013    MATCH           Hongxu Jia <hongxu.jia@windriver.com> 7a97a7f937762ba342d5b2fd7cd090885a809835

(From OE-Core rev: 8049bd34b89e710f7bb20883813ba3f929d9e997)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 09:09:42 +01:00
Hongxu Jia
f6cc637b83 grub/grub-efi: fix unrecognized command line option '-pipe-Wno-error' in CFLAGS
Since commit [330fc83 grub: Use -Wno-error instead of doing this
on a per-warning basis] applied in oe-core, it missed a space
in append.

(From OE-Core rev: 62c3c8277fcea61940a4433d3796a4cec1b5f577)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 09:09:42 +01:00
Adrian Bunk
707c0830c6 libpam: Upgrade 1.3.0 -> 1.3.1
Remove patch applied upstream.
Upstream tarball location changed.

(From OE-Core rev: 40b1825a4434334f3513f94775b176545f8d2f3a)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 09:09:42 +01:00
Adrian Bunk
5690aa952a tcp-wrappers: Add compile warning fixes from Debian
(From OE-Core rev: cd1dc2334fd3e3d1db9be1d26e888051e3f59c5a)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
--
v2: Add comment in the patch headers.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 09:09:42 +01:00
Adrian Bunk
0dc37e9388 lrzsz: Add implicit declaration fixes from Debian
(From OE-Core rev: 6fa60ac102f6d3977df4236bd5a22680298bdac2)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
--
v2: Add comment in the patch header.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 09:09:42 +01:00
Kai Kang
a972e4015b systemd-conf: configure wired network with dhcp
Add a configure file for systemd.networkd to configure wired network
interfaces with dhcp. It works with common network interfaces such eth0
and eno1. And do not install it for qemu bsps.

Refer to
https://github.com/YoeDistro/meta-yoe/tree/master/recipes-core/systemd

[YOCTO #13057]

(From OE-Core rev: d87efd14ce0471135c0aa7fd7b5da2808acb9c76)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 09:09:42 +01:00
Tim Orling
0a2382cdca perl-rdepends.txt: fix perl-module-data-dumper dependencies
Data::Dumper depends on bytes

(From OE-Core rev: f044a8ceedbb6f1e429bbac19281b8ef8ff1a3be)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-04 09:09:42 +01:00
Alexander Kanavin
6bf187a6c0 mesa-demos: update to 8.4.0
(From OE-Core rev: fa51e660345ade5256a1c566ae387914ca1c109b)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-02 10:23:50 +01:00
Alexander Kanavin
6560db9ddf source-highlight: remove the recipe
gtk-doc was the only user, and has been switched over to python3-pygments.

(From OE-Core rev: 5301fe1a41ff921dcf1349dece74644bb7cc3a0f)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-02 10:23:49 +01:00
Alexander Kanavin
f867798bc0 libpsl: fix the gtk-doc 1.30 build
(From OE-Core rev: 5f672c0f80f5486016e2899bb6d3f5bbc7b5c74a)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-02 10:23:49 +01:00
Alexander Kanavin
e0cf6ef582 gtk-doc: upgrade 1.29 -> 1.30
Source-highlight support has been replaced upstream with python3-pygments.

(From OE-Core rev: 25a26ee7bc73a9a475f89cf9fc7876a4e75a26f4)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-02 10:23:49 +01:00
Bruce Ashfield
b31ca8412c linux-yocto/5.0: fix systemtap on arm
The following commit is part of 5.0.17+:

    ARM: fix function graph tracer and unwinder dependencies

    [ Upstream commit 503621628b32782a07b2318e4112bd4372aa3401 ]

    Naresh Kamboju recently reported that the function-graph tracer crashes
    on ARM. The function-graph tracer assumes that the kernel is built with
    frame pointers.

    We explicitly disabled the function-graph tracer when building Thumb2,
    since the Thumb2 ABI doesn't have frame pointers.

    We recently changed the way the unwinder method was selected, which
    seems to have made it more likely that we can end up with the function-
    graph tracer enabled but without the kernel built with frame pointers.

    Fix up the function graph tracer dependencies so the option is not
    available when we have no possibility of having frame pointers, and
    adjust the dependencies on the unwinder option to hide the non-frame
    pointer unwinder options if the function-graph tracer is enabled.

    Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
    Tested-by: Masami Hiramatsu <mhiramat@kernel.org>
    Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

As such, we no longer have UNWINDER_ARM enabled in our ARM builds by
default, since we do have FUNCTION_GRAPH_TRACER enabled in the common
ftrace configuration.

We disable FUNCTION_GRAPH_TRACER for ARM, which allows UNWINDER_ARM to
remain enabled and hence systemtap work out of the box for our ARM
reference builds. Obviously, BSPs or other users of the fragments can
make a different decision, but we chose unwinder to be on by default.

(From OE-Core rev: 8b8fb2e0d991c280317e28867224ed2080aa50c1)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-02 10:23:49 +01:00
Bruce Ashfield
5e5df59066 linux-yocto-rt/5.0: update to -rt11
Updating the 5.0 -rt to -rt11, which comprises the following commits:

   9c1e84c9b81b v5.0.19-rt11
   c4258b70deda workqueue: rework
   2a0f03c9daff softirq: rework
   cb38c9a00313 Revert "drm/i915/fence: Do not use TIMER_IRQSAFE"
   0ffa8402bf10 clocksource: TCLIB: Add proper depend
   6a2ecc186d9a arm: imx6: cpuidle: Use raw_spinlock_t
   c302271409c2 locking/lockdep: Don't complain about incorrect name for no validate class
   4042bcac2c90 v5.0.19-rt10
   d6ad4a85a911 genirq: Handle missing work_struct in irq_set_affinity_notifier()

(From OE-Core rev: 9bef18bd94af24d758d2b6e9b4a1de6f4323ce05)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-02 10:23:49 +01:00
Bruce Ashfield
d6ea341fde linux-yocto/5.0: update to v5.0.19
Integrating the korg -stable updates that comprise the following
commits:

   3f7c1cab1a61 Linux 5.0.19
   64d314bd8cc8 fbdev: sm712fb: fix memory frequency by avoiding a switch/case fallthrough
   e5c6d75b0f03 bpf, lru: avoid messing with eviction heuristics upon syscall lookup
   b5f95aa7a88b bpf: add map_lookup_elem_sys_only for lookups from syscall side
   d811930f74ac bpf: relax inode permission check for retrieving bpf program
   ca7ef7e3ddfa driver core: Postpone DMA tear-down until after devres release for probe failure
   bad4fbe76cfb md/raid: raid5 preserve the writeback action after the parity check
   3770eb3721be Revert "Don't jump to compute_result state from check_result state"
   07116a6548c8 perf/x86/intel: Fix race in intel_pmu_disable_event()
   58d1e074c742 perf cs-etm: Always allocate memory for cs_etm_queue::prev_packet
   cd448c27b08e perf bench numa: Add define for RUSAGE_THREAD if not present
   7325696ce261 i2c: designware: ratelimit 'transfer when suspended' errors
   8258661858d5 ufs: fix braino in ufs_get_inode_gid() for solaris UFS flavour
   5b73764a5d2c KVM: selftests: make hyperv_cpuid test pass on AMD
   fb654d0763c8 KVM: fix KVM_CLEAR_DIRTY_LOG for memory slots of unaligned size
   497ce5c7f538 x86/mm/mem_encrypt: Disable all instrumentation for early SME setup
   96f0be982c8a sched/cpufreq: Fix kobject memleak
   2a9605f177f8 iwlwifi: mvm: check for length correctness in iwl_mvm_create_skb()
   df5eba5f41be qmi_wwan: new Wistron, ZTE and D-Link devices
   bd61ddd3e9fc bpf: Fix preempt_enable_no_resched() abuse
   bd3713424a01 tools: bpftool: fix infinite loop in map create
   1e61a219090f power: supply: sysfs: prevent endless uevent loop with CONFIG_POWER_SUPPLY_DEBUG
   e6ae43922897 KVM: arm/arm64: Ensure vcpu target is unset on reset failure
   5450811a02f5 net: ieee802154: fix missing checks for regmap_update_bits
   15f64f420bae mac80211: Fix kernel panic due to use of txq after free
   eff6d5429bd2 x86: kvm: hyper-v: deal with buggy TLB flush requests from WS2012
   48be4d7ced2c PCI: Fix issue with "pci=disable_acs_redir" parameter being ignored
   fa42fde1f8e6 apparmorfs: fix use-after-free on symlink traversal
   cf0259f7662a securityfs: fix use-after-free on symlink traversal
   04aa8a51e723 power: supply: cpcap-battery: Fix division by zero
   38a725dd0be7 KVM: PPC: Book3S: Protect memslots while validating user address
   eec0c746757b KVM: PPC: Book3S HV: Perserve PSSCR FAKE_SUSPEND bit on guest exit
   f3adb80bb243 clk: sunxi-ng: nkmp: Avoid GENMASK(-1, 0)
   791746a758e7 ARC: PAE40: don't panic and instead turn off hw ioc
   30bd4585bf14 xfrm4: Fix uninitialized memory read in _decode_session4
   79fad8fd2b76 xfrm: Honor original L3 slave device in xfrmi policy lookup
   ff7fa2c801bc esp4: add length check for UDP encapsulation
   4e8ce2680442 xfrm: clean up xfrm protocol checks
   6c0db1cbf772 vti4: ipip tunnel deregistration fixes.
   f8a427ca50d6 xfrm6_tunnel: Fix potential panic when unloading xfrm6_tunnel module
   70a87327025a xfrm: Reset secpath in xfrm failure
   9531aac1ee3e xfrm: policy: Fix out-of-bound array accesses in __xfrm_policy_unlink
   07a573c046c0 fuse: Add FOPEN_STREAM to use stream_open()
   560c6fd312c9 dm mpath: always free attached_handler_name in parse_path()
   96ecf4c59f08 dm integrity: correctly calculate the size of metadata area
   ecff1441aa15 dm crypt: move detailed message into debug level
   862a78341ade dm delay: fix a crash when invalid device is specified
   fab2e96c6be0 dm zoned: Fix zone report handling
   ef3f84246954 dm cache metadata: Fix loading discard bitset
   6c412dc3b757 PCI: Work around Pericom PCIe-to-PCI bridge Retrain Link erratum
   d06a30b1a957 PCI: Factor out pcie_retrain_link() function
   4f22ec9f0c28 PCI: rcar: Add the initialization of PCIe link in resume_noirq()
   fbd9c6ef0dfc PCI/AER: Change pci_aer_init() stub to return void
   be361ee757b8 PCI: Init PCIe feature bits for managed host bridge alloc
   adb00a68d2dd PCI: Reset Lenovo ThinkPad P50 nvgpu at boot if necessary
   2e4017e3ddfd PCI: Mark Atheros AR9462 to avoid bus reset
   4ddfb43373ca PCI: Mark AMD Stoney Radeon R7 GPU ATS as broken
   1fbec8aa02f3 fbdev: sm712fb: fix crashes and garbled display during DPMS modesetting
   620a97786fd6 fbdev: sm712fb: use 1024x768 by default on non-MIPS, fix garbled display
   b2adbace369e fbdev: sm712fb: fix support for 1024x768-16 mode
   d119b4a43e53 fbdev: sm712fb: fix crashes during framebuffer writes by correctly mapping VRAM
   39045ad5a808 fbdev: sm712fb: fix boot screen glitch when sm712fb replaces VGA
   4badede3e74b fbdev: sm712fb: fix white screen of death on reboot, don't set CR3B-CR3F
   62463c4661f1 fbdev: sm712fb: fix VRAM detection, don't set SR70/71/74/75
   2a5d31230505 fbdev: sm712fb: fix brightness control on reboot, don't set SR30
   cfe31930dac8 fbdev/efifb: Ignore framebuffer memmap entries that lack any memory types
   a816dc52fe77 x86/mpx, mm/core: Fix recursive munmap() corruption
   9d50a05607a7 objtool: Allow AR to be overridden with HOSTAR
   93dbb5304b51 MIPS: perf: Fix build with CONFIG_CPU_BMIPS5000 enabled
   822e8c43b08a perf intel-pt: Fix sample timestamp wrt non-taken branches
   14f3460ed499 perf intel-pt: Fix improved sample timestamp
   23abb1eed2ee perf intel-pt: Fix instructions sampling rate
   c82da3e43ce1 memory: tegra: Fix integer overflow on tick value calculation
   dda71c1663c8 tracing: probeevent: Fix to make the type of $comm string
   95142e28042b tracing: Fix partial reading of trace event's id file
   9dba717a8156 ftrace/x86_64: Emulate call function while updating in breakpoint handler
   2a1069824a5c x86_64: Allow breakpoints to emulate call instructions
   16e559791d6b x86_64: Add gap to int3 to allow for call emulation
   69fc24195198 ceph: flush dirty inodes before proceeding with remount
   43cc8d378ca0 iommu/tegra-smmu: Fix invalid ASID bits on Tegra30/114
   d79e6a726acb gcc-plugins: arm_ssp_per_task_plugin: Fix for older GCC < 6
   0e83f9e5ce46 ovl: fix missing upper fs freeze protection on copy up for ioctl
   bf076fd44bd6 fuse: honor RLIMIT_FSIZE in fuse_file_fallocate
   79d8f6321221 fuse: fix writepages on 32bit
   12db517f8a3e udlfb: introduce a rendering mutex
   0bd143ed4109 udlfb: fix sleeping inside spinlock
   02851943751d udlfb: delete the unused parameter for dlfb_handle_damage
   855e2af24ab5 clk: rockchip: fix wrong clock definitions for rk3328
   317e574eaf6d clk: mediatek: Disable tuner_en before change PLL rate
   b5f7027a6f79 clk: tegra: Fix PLLM programming on Tegra124+ when PMC overrides divider
   87b083dbdd8f clk: hi3660: Mark clk_gate_ufs_subsys as critical
   3c1f44469d83 PNFS fallback to MDS if no deviceid found
   73e0d62f16ec NFS4: Fix v4.0 client state corruption when mount
   1aa8f89cf5ad RDMA/ipoib: Allow user space differentiate between valid dev_port
   90ebb540a7b1 RDMA/mlx5: Use get_zeroed_page() for clock_info
   2132baff7e0f media: imx: Clear fwnode link struct for each endpoint iteration
   7543aeaf9331 media: imx: csi: Allow unknown nearest upstream entities
   8a6a542635fe media: ov6650: Fix sensor possibly not detected on probe
   252f74c15935 phy: ti-pipe3: fix missing bit-wise or operator when assigning val
   921bb3e9be5b cifs: fix strcat buffer overflow and reduce raciness in smb21_set_oplock_level()
   6c65b5a9d829 brcmfmac: Add DMI nvram filename quirk for ACEPC T8 and T11 mini PCs
   e15c901c9b1f of: fix clang -Wunsequenced for be32_to_cpu()
   a1243cd45745 p54: drop device reference count if fails to enable device
   24cb69043d68 intel_th: msu: Fix single mode with IOMMU
   86901d0a34ab dcache: sort the freeing-without-RCU-delay mess for good.
   cb259d53313c md: add a missing endianness conversion in check_sb_changes
   ceaae3df28ef md: add mddev->pers to avoid potential NULL pointer dereference
   3d8c54fb4b8f md: batch flush requests.
   dfbe4d1af4b3 Revert "MD: fix lock contention for flush bios"
   be2bcbeda06b proc: prevent changes to overridden credentials
   e2d95e6022f9 brd: re-enable __GFP_HIGHMEM in brd_insert_page()
   019da3cf8d2d stm class: Fix channel bitmap on 32-bit systems
   e52484d4b315 stm class: Fix channel free in stm output free path
   7a76effe2dea parisc: Rename LEVEL to PA_ASM_LEVEL to avoid name clash with DRBD code
   e2d87b36a59b parisc: Use PA_ASM_LEVEL in boot code
   fac8648ec7ce parisc: Allow live-patching of __meminit functions
   62c78938e3ee parisc: Add memory barrier to asm pdc and sync instructions
   81641f9c6039 parisc: Skip registering LED when running in QEMU
   f4a05c586c3a parisc: Add memory clobber to TLB purges
   52b905433b0d parisc: Export running_on_qemu symbol for modules
   5b3b51fe5bef regulator: core: fix error path for regulator_set_voltage_unlocked
   97346dda2c99 blk-mq: free hw queue's resource in hctx's release handler
   860dde8d0962 mm/gup: Remove the 'write' parameter from gup_fast_permitted()
   b80fc1eed537 net/mlx5e: Fix ethtool rxfh commands when CONFIG_MLX5_EN_RXNFC is disabled
   5125c4d4cfca net/mlx5: Imply MLXFW in mlx5_core
   ac5465716ae6 net/mlx5e: Additional check for flow destination comparison
   e3e09b07aab6 net/mlx5e: Add missing ethtool driver info for representors
   5048d03fa137 vsock/virtio: Initialize core virtio vsock before registering the driver
   ac01b87ed3ec tipc: fix modprobe tipc failed after switch order of device registration
   51adb8ebe8c1 vsock/virtio: free packets during the socket release
   3f48a2fa3d79 tipc: switch order of device registration to fix a crash
   0501b80b158a rtnetlink: always put IFLA_LINK for links with a link-netnsid
   4d4b20738489 ppp: deflate: Fix possible crash in deflate_init
   ebf4338d96e9 nfp: flower: add rcu locks when accessing netdev for tunnels
   d818a94975ed net: usb: qmi_wwan: add Telit 0x1260 and 0x1261 compositions
   18b3bb2503b4 net: test nouarg before dereferencing zerocopy pointers
   4e6d54b16a89 net/mlx4_core: Change the error print to info print
   708c22fedf0c net: avoid weird emergency message
   145708e7d94c net: Always descend into dsa/
   6c8566ebb5f1 ipv6: prevent possible fib6 leaks
   aed9be48191f ipv6: fix src addr routing with the exception table
   8614793dbb41 Linux 5.0.18
   3dacabb35d7f ext4: don't update s_rev_level if not required
   18f59db712ce ext4: fix compile error when using BUFFER_TRACE
   593ddcbac4a4 s390/mm: convert to the generic get_user_pages_fast code
   97249a2034b6 s390/mm: make the pxd_offset functions more robust
   4999174b1a77 iov_iter: optimize page_copy_sane()
   6e52e4b6cf50 libnvdimm/namespace: Fix label tracking error
   63e54af2e570 xen/pvh: correctly setup the PV EFI interface for dom0
   a1c5c7476db0 xen/pvh: set xen_domain_type to HVM in xen_pvh_init
   9339434bdbb4 kbuild: turn auto.conf.cmd into a mandatory include file
   d71c6a4b31db KVM: lapic: Busy wait for timer to expire when using hv_timer
   fae3b156b196 KVM: x86: Skip EFER vs. guest CPUID checks for host-initiated writes
   87e61d57ae37 KVM: Fix the bitmap range to copy during clear dirty
   295a7bd172d2 jbd2: fix potential double free
   a5f8b69097a3 ALSA: hda/realtek - Fix for Lenovo B50-70 inverted internal microphone bug
   20f6e5999787 ALSA: hda/realtek - Fixup headphone noise via runtime suspend
   5ddcddba1be6 ALSA: hda/realtek - Corrected fixup for System76 Gazelle (gaze14)
   ec9ff0dd9829 ext4: avoid panic during forced reboot due to aborted journal
   297a39c6528c ext4: fix use-after-free in dx_release()
   256e27da8b62 ext4: fix data corruption caused by overlapping unaligned and aligned IO
   7f3b711cbf54 ext4: zero out the unused memory region in the extent tree block
   bde5b8473bd3 tty: Don't force RISCV SBI console as preferred console
   549b0b8a9479 fs/writeback.c: use rcu_barrier() to wait for inflight wb switches going into workqueue when umount
   f7fea7c067fb crypto: ccm - fix incompatibility between "ccm" and "ccm_base"
   638fffb11c93 ipmi:ssif: compare block number correctly for multi-part return messages
   bfc6980ff235 bcache: never set KEY_PTRS of journal key to 0 in journal_reclaim()
   5fa31fabc628 bcache: fix a race between cache register and cacheset unregister
   0e56cc24df1a Btrfs: fix race between send and deduplication that lead to failures and crashes
   0565f46b75e4 Btrfs: do not start a transaction at iterate_extent_inodes()
   d48e71659e07 Btrfs: do not start a transaction during fiemap
   e7fb540d6a06 Btrfs: send, flush dellaloc in order to avoid data loss
   b9ee62718749 btrfs: Honour FITRIM range constraints during free space trim
   4afdd2d2afbb btrfs: Correctly free extent buffer in case btree_read_extent_buffer_pages fails
   1a6e5f745b57 btrfs: Check the first key and level for cached extent buffer
   f325062756d0 ext4: fix ext4_show_options for file systems w/o journal
   91bf9123ce86 ext4: actually request zeroing of inode table after grow
   715f547a6299 ext4: fix use-after-free race with debug_want_extra_isize
   310aea022196 ext4: avoid drop reference to iloc.bh twice
   7db933229f64 ext4: ignore e_value_offs for xattrs with value-in-ea-inode
   7dfca4b97693 ext4: make sanity check in mballoc more strict
   39108bea309d jbd2: check superblock mapped prior to committing
   033b15ff6b92 tty/vt: fix write/write race in ioctl(KDSKBSENT) handler
   770e812bbc1d tty: vt.c: Fix TIOCL_BLANKSCREEN console blanking if blankinterval == 0
   9537358c9452 mtd: maps: Allow MTD_PHYSMAP with MTD_RAM
   969859b87f8b mtd: maps: physmap: Store gpio_values correctly
   8a2c3433b51b mtd: spi-nor: intel-spi: Avoid crossing 4K address boundary on read/write
   ed824ff290d3 mfd: max77620: Fix swapped FPS_PERIOD_MAX_US values
   12061d7ce0ee mfd: da9063: Fix OTP control register names to match datasheets for DA9063/63L
   966e7ae49bee ACPI: PM: Set enable_for_wake for wakeup GPEs during suspend-to-idle
   09ceb529c4ac userfaultfd: use RCU to free the task struct when fork fails
   3f26c01c4001 ocfs2: fix ocfs2 read inode data panic in ocfs2_iget
   f989305d02a4 hugetlb: use same fault hash key for shared and private mappings
   6720e0bc50e9 mm/hugetlb.c: don't put_page in lock of hugetlb_lock
   ff191b1d827d mm/huge_memory: fix vmf_insert_pfn_{pmd, pud}() crash, handle unaligned addresses
   535ca6f75ddb mm/mincore.c: make mincore() more conservative
   b5b076649d2e crypto: ccree - handle tee fips error during power management resume
   2380a8464ee1 crypto: ccree - add function to handle cryptocell tee fips error
   22a44b51f2e0 crypto: ccree - HOST_POWER_DOWN_EN should be the last CC access during suspend
   f1a7dc5d0e46 crypto: ccree - pm resume first enable the source clk
   4a807bab1431 crypto: ccree - don't map AEAD key and IV on stack
   a1cb31fd79be crypto: ccree - use correct internal state sizes for export
   3ff036422024 crypto: ccree - don't map MAC key on stack
   2e1679f6a1d0 crypto: ccree - fix mem leak on error path
   23a072df0482 crypto: ccree - remove special handling of chained sg
   8efcdb781463 bpf, arm64: remove prefetch insn in xadd mapping
   fd049ce703c3 ASoC: codec: hdac_hdmi add device_link to card device
   519511e47f79 ASoC: fsl_esai: Fix missing break in switch statement
   94748513d811 ASoC: RT5677-SPI: Disable 16Bit SPI Transfers
   dccbcc8060c8 ASoC: max98090: Fix restore of DAPM Muxes
   b2c90ad71e00 ALSA: hdea/realtek - Headset fixup for System76 Gazelle (gaze14)
   0a1cf4fdc58b ALSA: hda/realtek - EAPD turn on later
   98ffad31068d ALSA: hda/hdmi - Consider eld_valid when reporting jack event
   787d1c606f1a ALSA: hda/hdmi - Read the pin sense from register when repolling
   bc3c4c9e00b0 ALSA: usb-audio: Fix a memory leak bug
   592b655a306b ALSA: line6: toneport: Fix broken usage of timer for delayed execution
   978e70ead670 mmc: sdhci-pci: Fix BYT OCP setting
   56f590e2e30a mmc: core: Fix tag set memory leak
   1ea20c66648a mmc: tegra: fix ddr signaling for non-ddr modes
   4ea5e92a20b9 crypto: arm64/aes-neonbs - don't access already-freed walk.iv
   b51455e5493a crypto: arm/aes-neonbs - don't access already-freed walk.iv
   86d478d06696 crypto: caam/qi2 - generate hash keys in-place
   fd2830991e56 crypto: caam/qi2 - fix DMA mapping of stack memory
   0eaed393b4ec crypto: caam/qi2 - fix zero-length buffer DMA mapping
   86add9b56835 crypto: rockchip - update IV buffer to contain the next IV
   8d9cdf34aaf9 crypto: gcm - fix incompatibility between "gcm" and "gcm_base"
   246ef445e015 crypto: arm64/gcm-aes-ce - fix no-NEON fallback code
   47a9de26eb06 crypto: x86/crct10dif-pcl - fix use via crypto_shash_digest()
   8eb6266c8eb1 crypto: crct10dif-generic - fix use via crypto_shash_digest()
   043e69dd7fef crypto: skcipher - don't WARN on unprocessed data after slow walk step
   2c0f409ba69c crypto: vmx - fix copy-paste error in CTR mode
   8d02b83b332b crypto: ccp - Do not free psp_master when PLATFORM_INIT fails
   fdcd8b3b745e crypto: chacha20poly1305 - set cra_name correctly
   d6d54c7c59c6 crypto: chacha-generic - fix use as arm64 no-NEON fallback
   0a348941ad06 crypto: lrw - don't access already-freed walk.iv
   25f1509c739f crypto: salsa20 - don't access already-freed walk.iv
   fb7261b31a2c crypto: crypto4xx - fix cfb and ofb "overran dst buffer" issues
   3149ac3ef4e6 crypto: crypto4xx - fix ctr-aes missing output IV
   5404a6ff7458 x86/MCE/AMD: Don't report L1 BTB MCA errors on some family 17h models
   ad09c6ef2dcb x86/MCE: Group AMD function prototypes in <asm/mce.h>
   b05237350b4a x86/MCE/AMD: Carve out the MC4_MISC thresholding quirk
   e6b8b66f965e x86/MCE/AMD: Turn off MC4_MISC thresholding on all family 0x15 models
   993a6595b253 x86/MCE: Add an MCE-record filtering function
   52176123f9cb sched/x86: Save [ER]FLAGS on context switch
   d81b4ae57fe9 arm64: Save and restore OSDLR_EL1 across suspend/resume
   bd254f9d1157 arm64: Clear OSDLR_EL1 on CPU boot
   a184f8889306 arm64: compat: Reduce address limit
   e57320e0177a arm64: arch_timer: Ensure counter register reads occur with seqlock held
   32e802d947ca arm64: mmap: Ensure file offset is treated as unsigned
   38a6f722c01a power: supply: axp288_fuel_gauge: Add ACEPC T8 and T11 mini PCs to the blacklist
   a4e41f047a3e power: supply: axp288_charger: Fix unchecked return value
   fe3f22b7084d ARM: exynos: Fix a leaked reference by adding missing of_node_put
   a6bc3bfb8206 mmc: sdhci-of-arasan: Add DTS property to disable DCMDs.
   bf6cb21717f4 ARM: dts: exynos: Fix audio (microphone) routing on Odroid XU3
   de42e519cbee ARM: dts: exynos: Fix interrupt for shared EINTs on Exynos5260
   3ea393bb1ca4 ARM: dts: qcom: ipq4019: enlarge PCIe BAR range
   5d6fa0370c51 arm64: dts: rockchip: Disable DCMDs on RK3399's eMMC controller.
   5414a4761988 arm64: dts: rockchip: fix IO domain voltage setting of APIO5 on rockpro64
   8c1134ff70df objtool: Fix function fallthrough detection
   bc19bb7d8d10 x86/speculation/mds: Improve CPU buffer clear documentation
   d2214ccfecb5 x86/speculation/mds: Revert CPU buffer clear on double fault exit
   bfcac7872252 locking/rwsem: Prevent decrement of reader count before increment

(From OE-Core rev: a05ca00a3c44900bfeade01a998ddc8e8c61d9e4)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-02 10:23:49 +01:00
Bruce Ashfield
be8944a369 linux-yocto-rt/5.0: update to -rt9
Updating linux-yocto-rt to -rt9, which comprises the following commits:

   cc66f1b95af7 (HEAD -> v5.0/standard/preempt-rt/base) v5.0.14-rt9
   96957f0ca4a4 sched/completion: Fix a lockup in wait_for_completion()
   7108dfc6c002 iommu/dma-iommu: Remove iommu_dma_map_msi_msg()
   50e9a302a12e irqchip/gic-v3-mbi: Don't map the MSI page in mbi_compose_m{b, s}i_msg()
   4a4c41f25d90 irqchip/ls-scfg-msi: Don't map the MSI page in ls_scfg_msi_compose_msg()
   e6549dc52874 irqchip/gic-v3-its: Don't map the MSI page in its_irq_compose_msi_msg()
   21ab1a505f71 irqchip/gicv2m: Don't map the MSI page in gicv2m_compose_msi_msg()
   5c7e7ee1155f iommu/dma-iommu: Split iommu_dma_map_msi_msg() in two parts
   ed562a120218 genirq/msi: Add a new field in msi_desc to store an IOMMU cookie
   8269017c7c71 x86/fpu: Fault-in user stack if copy_fpstate_to_sigframe() fails
   834de13e9df3 v5.0.14-rt8
   60a1f2741b0b v5.0.10-rt7
   5cbcfdaf619f clocksource: improve Atmel TCB timer driver
   dde28bc12270 x86/ima: Check EFI_RUNTIME_SERVICES before using
   c02d0b49cf87 printk: kmsg_dump: remove mutex usage
   b4ccebf15704 locking/rwsem: Rename rwsem_rt.h to rwsem-rt.h
   d5758ba7a93e x86/fpu: Remove unnecessary saving of FPU registers in copy_fpstate_to_sigframe()
   e16351073c50 x86/fpu: Fault-in user stack if copy_fpstate_to_sigframe() fails
   14ff99cb7d48 v5.0.10-rt6
   843445383127 v5.0.7-rt5
   e886711e0449 drm/i915: Don't disable interrupts independently of the lock
   69e41e29c6ad clocksource: improve Atmel TCB timer driver
   c2e266f415d0 x86: load FPU registers on return to userland (Update to v9)
   4be2fd56d44f v5.0.7-rt4
   6fb29acc8efe (origin/v5.0/standard/preempt-rt/base) genirq: Prevent use-after-free and work list corruption on rt

(From OE-Core rev: 80f59dc94ab1522a70412bfb1df9086f6bb7ba22)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-02 10:23:49 +01:00
Bruce Ashfield
89bcd46b62 linux-yocto/5.0: update to v5.0.17
Integrating the korg -stable commits that comprise the following
changes:

   d59f5a01fa43 Linux 5.0.17
   ba686f90778b f2fs: Fix use of number of devices
   78b8c59eee72 PCI: hv: Add pci_destroy_slot() in pci_devices_present_work(), if necessary
   f20f463b32bc PCI: hv: Add hv_pci_remove_slots() when we unload the driver
   d3a9cd23b172 PCI: hv: Fix a memory leak in hv_eject_device_work()
   7f9572e798ea virtio_ring: Fix potential mem leak in virtqueue_add_indirect_packed
   ba81b50090a4 powerpc/booke64: set RI in default MSR
   0da52ad69b37 powerpc/powernv/idle: Restore IAMR after idle
   d314437d17ad powerpc/book3s/64: check for NULL pointer in pgd_alloc()
   79e981a8503f drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl
   1a84219f73b2 drivers/virt/fsl_hypervisor.c: dereferencing error pointers in ioctl
   8b8fc62b6c67 isdn: bas_gigaset: use usb_fill_int_urb() properly
   12786188dcf3 flow_dissector: disable preemption around BPF calls
   39f7b3941969 net: phy: fix phy_validate_pause
   4a91e5e4c58f tuntap: synchronize through tfiles array instead of tun->numqueues
   e0630246658a tuntap: fix dividing by zero in ebpf queue selection
   92edcf205388 vrf: sit mtu should not be updated when vrf netdev is the link
   13d54150e746 vlan: disable SIOCSHWTSTAMP in container
   83c25477e944 tipc: fix hanging clients using poll with EPOLLOUT flag
   be6a9818866d selinux: do not report error on connect(AF_UNSPEC)
   c3954f8f5a7e packet: Fix error path in packet_init
   7bc936f4f226 net: ucc_geth - fix Oops when changing number of buffers in the ring
   57ee33b48190 net: seeq: fix crash caused by not set dev.parent
   224b04c9e028 net: macb: Change interrupt and napi enable order in open
   a3bf31d7ffb2 net: ethernet: stmmac: dwmac-sun8i: enable support of unicast filtering
   261a8958a57e net: dsa: Fix error cleanup path in dsa_init_module
   2f679c41821f ipv4: Fix raw socket lookup for local traffic
   f8351176aed6 fib_rules: return 0 directly if an exactly same rule exists when NLM_F_EXCL not supplied
   e4607de103ba dpaa_eth: fix SG frame cleanup
   430a64f6fa2c bridge: Fix error path for kobject_init_and_add()
   69798384ba38 bonding: fix arp_validate toggling in active-backup mode
   d3ff0184ebd2 Don't jump to compute_result state from check_result state
   843135c1ce1e rtlwifi: rtl8723ae: Fix missing break in switch statement
   14654a1f2e2b mwl8k: Fix rate_idx underflow
   202436fe0810 cw1200: fix missing unlock on error in cw1200_hw_scan()
   92a9787bb38c drm/rockchip: fix for mailbox read validation.
   5b4ef3c5faf9 net: mvpp2: fix validate for PPv2.1
   45e1075e04cb net: sched: fix cleanup NULL pointer exception in act_mirr
   4b84cde61ce9 bpf: only test gso type on gso packets
   073d8f286f34 mm/page_alloc.c: avoid potential NULL pointer dereference
   61fadd8a5000 mm/memory_hotplug.c: drop memory device reference after find_memory_block()
   59c58e43e80f RDMA/hns: Bugfix for mapping user db
   26f70c4e0aef gpio: Fix gpiochip_add_data_with_key() error path
   fb53ebc9eb9a net: vrf: Fix operation not supported when set vrf mac
   ec69b3c91b3b Input: synaptics-rmi4 - fix possible double free
   6a2abf951ed3 Input: snvs_pwrkey - make it depend on ARCH_MXC
   21a3f7c2c76c drm/sun4i: Unbind components before releasing DRM and memory
   f79084e5372b Revert "drm/virtio: drop prime import/export callbacks"
   2455f6cbd19b ceph: handle the case where a dentry has been renamed on outstanding req
   d3a9275364d9 spi: ST ST95HF NFC: declare missing of table
   943609acd628 spi: Micrel eth switch: declare missing of table
   4c6df58231f8 ARM: 8856/1: NOMMU: Fix CCR register faulty initialization when MPU is disabled
   dc41fe5d6fb5 ARM: fix function graph tracer and unwinder dependencies
   0cb06e339cee drm/imx: don't skip DP channel disable for background plane
   7680e881fdaa gpu: ipu-v3: dp: fix CSC handling
   28e4593bb148 arm64/module: ftrace: deal with place relative nature of PLTs
   d0f8faa2f540 dmaengine: bcm2835: Avoid GFP_KERNEL in device_prep_slave_sg
   d4dc7d99b111 netfilter: fix nf_l4proto_log_invalid to log invalid packets
   ddb632889fae netfilter: never get/set skb->tstamp
   226ef4f27a45 selftests/net: correct the return value for run_afpackettests
   1a20185157b5 selftests/net: correct the return value for run_netsocktests
   2d83e90c2375 of_net: Fix residues after of_get_nvmem_mac_address removal
   7ba51c0e84b3 drm/sun4i: Fix component unbinding and component master deletion
   3000bdec55c8 drm/sun4i: Set device driver data at bind time for use in unbind
   1330679d64f8 s390: ctcm: fix ctcm_new_device error return code
   143c8279955e IB/mlx5: Fix scatter to CQE in DCT QP creation
   b3a64096c5ee MIPS: perf: ath79: Fix perfcount IRQ assignment
   ecef50c35a07 netfilter: nat: fix icmp id randomization
   c2987d193f8b netfilter: nf_tables: prevent shift wrap in nft_chain_parse_hook()
   b0a90cae081d netfilter: ctnetlink: don't use conntrack/expect object addresses as id
   a3a5ad78488b ipvs: do not schedule icmp errors from tunnels
   44fbb3db2bde selftests: netfilter: check icmp pkttoobig errors are set as related
   16b01614d369 drm: bridge: dw-hdmi: Fix overflow workaround for Rockchip SoCs
   5bc0352515ef init: initialize jump labels before command line option parsing
   57c2301fc9c9 mm: fix inactive list balancing between NUMA nodes and cgroups
   47d1b202e325 mm/hotplug: treat CMA pages as unmovable
   247e9fe2f4ad slab: store tagged freelist for off-slab slabmgmt
   4176e671a44e scsi: aic7xxx: fix EISA support
   e9697ba264c2 perf tools: Fix map reference counting
   d39036685e22 ocelot: Don't sleep in atomic context (irqs_disabled())
   d7200d0648e5 ipmi: ipmi_si_hardcode.c: init si_type array to fix a crash
   d2ae8127d693 perf top: Always sample time to satisfy needs of use of ordered queuing
   9b2395e2bfec tools lib traceevent: Fix missing equality check for strcmp
   b053700b6ce9 KVM: x86: avoid misreporting level-triggered irqs as edge-triggered in tracing
   7cee96602903 KVM: fix spectrev1 gadgets
   ac0cd21ff7f3 KVM: nVMX: always use early vmcs check when EPT is disabled
   ad0b4845927e x86/reboot, efi: Use EFI reboot for Acer TravelMate X514-51T
   47155c33761e x86/mm: Prevent bogus warnings with "noexec=off"
   e011d319f736 x86/build/lto: Fix truncated .bss with -fdata-sections
   5a8306e3b433 s390/pkey: add one more argument space for debug feature entry
   7a96a56eea04 drm/amd/display: If one stream full updates, full update all planes
   e3a41f93e337 qed: Fix the DORQ's attentions handling
   47ef1bab8d1d qed: Fix missing DORQ attentions
   deb2cc51dd52 qed: Fix the doorbell address sanity check
   2de1573a5ed9 qed: Delete redundant doorbell recovery types
   775e0e613250 afs: Fix in-progess ops to ignore server-level callback invalidation
   35d71b00267e afs: Unlock pages for __pagevec_release()
   f4faab6c9034 qede: fix write to free'd pointer error and double free of ptp
   40990109952a vxge: fix return of a free'd memblock on a failed dma mapping
   4230787c0655 mISDN: Check address length before reading address family
   2d56b3f53ac8 drm/amdgpu: shadow in shadow_list without tbo.mem.start cause page fault in sriov TDR
   bf4b7bc690e3 selftests: fib_tests: Fix 'Command line is not complete' errors
   b1e68de7659a clocksource/drivers/oxnas: Fix OX820 compatible
   641a9b94456d clocksource/drivers/npcm: select TIMER_OF
   44d7638b3934 drm/amd/display: extending AUX SW Timeout
   6661203b4210 drm/ttm: fix dma_fence refcount imbalance on error path
   1e1bdaca091e s390/3270: fix lockdep false positive on view->lock
   adefea883c1f tools/testing/nvdimm: Retain security state after overwrite
   40af621fefdb libnvdimm/pmem: fix a possible OOB access when read and write pmem
   7547c20fdd1c libnvdimm/security: provide fix for secure-erase to use zero-key
   8f2e6b8c9b0b nl80211: Add NL80211_FLAG_CLEAR_SKB flag for other NL commands
   0e36c8ed2d52 mac80211: fix memory accounting with A-MSDU aggregation
   c93951de3ecb cfg80211: Handle WMM rules in regulatory domain intersection
   7c7345f1cad8 mac80211: Increase MAX_MSG_LEN
   0c077b14bdc0 mac80211: fix unaligned access in mesh table hash function
   9d02fc4b7789 s390/dasd: Fix capacity calculation for large volumes
   181518b8eb4e libnvdimm/btt: Fix a kmemdup failure check
   f744a5e31a47 HID: input: add mapping for "Toggle Display" key
   0e56b93040c2 HID: input: add mapping for keyboard Brightness Up/Down/Toggle keys
   c64e4d22342c HID: input: add mapping for Expose/Overview key
   e42bcea02b46 libnvdimm/namespace: Fix a potential NULL pointer dereference
   469cc616e03c acpi/nfit: Always dump _DSM output payload
   a9189a36d66e iio: adc: xilinx: prevent touching unclocked h/w on remove
   1fc0aeddc0b7 iio: adc: xilinx: fix potential use-after-free on probe
   fc92e97e24df iio: adc: xilinx: fix potential use-after-free on remove
   a41382ca99e8 USB: serial: fix unthrottle races
   b5f2cb384e11 virt: vbox: Sanity-check parameter types for hgcm-calls coming from userspace
   a16532b59cca kernfs: fix barrier usage in __kernfs_new_node()
   0748cf2d9d1c selftests/seccomp: Handle namespace failures gracefully
   5c3c0ffa9d74 hwmon: (occ) Fix extended status bits
   a91e668131ad hwmon: (pwm-fan) Disable PWM if fetching cooling data fails
   b9d31180294a platform/x86: dell-laptop: fix rfkill functionality
   22c8b3235eb2 platform/x86: thinkpad_acpi: Disable Bluetooth for some machines
   8fb172181a29 platform/x86: sony-laptop: Fix unintentional fall-through
   54c140c5b614 bfq: update internal depth state when queue depth changes
   89e11ec0280b Linux 5.0.16
   f8bb2589227b x86/speculation/mds: Fix documentation typo
   14e3ad8a1452 Documentation: Correct the possible MDS sysfs values
   0acbbdf3e41d x86/mds: Add MDSUM variant to the MDS documentation
   4cf168a94fd5 x86/speculation/mds: Add 'mitigations=' support for MDS
   394e3d8de828 s390/speculation: Support 'mitigations=' cmdline option
   f905727fa11c powerpc/speculation: Support 'mitigations=' cmdline option
   bd600de16b82 x86/speculation: Support 'mitigations=' cmdline option
   6d7407ef9272 cpu/speculation: Add 'mitigations=' cmdline option
   c2b25b6b3582 x86/speculation/mds: Print SMT vulnerable on MSBDS with mitigations off
   3f7fe4ad1f62 x86/speculation/mds: Fix comment
   9cd62662dd7e x86/speculation/mds: Add SMT warning message
   c98b736e763d x86/speculation: Move arch_smt_update() call to after mitigation decisions
   fb49e1bb2061 x86/speculation/mds: Add mds=full,nosmt cmdline option
   08831a92501f Documentation: Add MDS vulnerability documentation
   ab8e3e63f23e Documentation: Move L1TF to separate directory
   31fd0223449e x86/speculation/mds: Add mitigation mode VMWERV
   3944139ce828 x86/speculation/mds: Add sysfs reporting for MDS
   0174e8984c2d x86/speculation/mds: Add mitigation control for MDS
   d9117863c521 x86/speculation/mds: Conditionally clear CPU buffers on idle entry
   100087c08030 x86/kvm/vmx: Add MDS protection when L1D Flush is not active
   481871997e37 x86/speculation/mds: Clear CPU buffers on exit to user
   a5a8ef7cd7c9 x86/speculation/mds: Add mds_clear_cpu_buffers()
   87f96d5e7525 x86/kvm: Expose X86_FEATURE_MD_CLEAR to guests
   78157c977674 x86/speculation/mds: Add BUG_MSBDS_ONLY
   ea3d1b32b86e x86/speculation/mds: Add basic bug infrastructure for MDS
   019159aec4b7 x86/speculation: Consolidate CPU whitelists
   26c0aff1ad63 x86/msr-index: Cleanup bit defines
   7b13756d2c32 Linux 5.0.15
   41d7bb19aa31 arm64: futex: Bound number of LDXR/STXR loops in FUTEX_WAKE_OP
   3b928b59fae0 locking/futex: Allow low-level atomic operations to return -EAGAIN
   be4b9a303a25 i3c: Fix a shift wrap bug in i3c_bus_set_addr_slot_status()
   4b1f2ad28fe1 ASoC: Intel: avoid Oops if DMA setup fails
   987722984163 UAS: fix alignment of scatter/gather segments
   349bb9138b3a Bluetooth: hci_bcm: Fix empty regulator supplies for Intel Macs
   41d5f23ef17b Bluetooth: Fix not initializing L2CAP tx_credits
   2c93762f4b38 Bluetooth: Align minimum encryption key size for LE and BR/EDR connections
   1c1727f4b948 Bluetooth: hidp: fix buffer overflow
   69d6687a5c66 scsi: qla2xxx: Fix device staying in blocked state
   aee2053554ea scsi: qla2xxx: Fix incorrect region-size setting in optrom SYSFS routines
   45076c8e403a scsi: lpfc: change snprintf to scnprintf for possible overflow
   185e58d16ac8 soc: sunxi: Fix missing dependency on REGMAP_MMIO
   34ebc8ad2ea4 ACPI / LPSS: Use acpi_lpss_* instead of acpi_subsys_* functions for hibernate
   61ae16c4586b cpufreq: armada-37xx: fix frequency calculation for opp
   573a935bfb4f iio: adc: qcom-spmi-adc5: Fix of-based module autoloading
   284af2788432 intel_th: pci: Add Comet Lake support
   704eaf49399f usb-storage: Set virt_boundary_mask to avoid SG overflows
   bba2feefcacd USB: cdc-acm: fix unthrottle races
   5b1c70f36832 USB: serial: f81232: fix interrupt worker not stop
   083a8f69962a usb: dwc3: Fix default lpm_nyet_threshold value
   9092861ce665 usb: dwc3: Allow building USB_DWC3_QCOM without EXTCON
   70a44a01f8a4 genirq: Prevent use-after-free and work list corruption
   b5dbb4058183 iommu/amd: Set exclusion range correctly
   6610c1785f70 perf/core: Fix perf_event_disable_inatomic() race
   a5f62d2c15a2 NFSv4.1 fix incorrect return value in copy_file_range
   a3aa7cab0fc2 platform/x86: pmc_atom: Drop __initconst on dmi table
   e6f2733f48cb nvmet: fix discover log page when offsets are used
   ea359038ab73 nvme-fc: correct csn initialization and increments on error
   407bb38bf3f7 nvme: cancel request synchronously
   e62732d12bd9 blk-mq: introduce blk_mq_complete_request_sync()
   e81f9ca291ac virtio-blk: limit number of hw queues by nr_cpu_ids
   677713b1254f ALSA: hda: Fix racy display power access
   7c7450aa9838 ASoC: stm32: sai: fix master clock management
   60ec4c3d39be ASoC: Intel: kbl: fix wrong number of channels
   c79f5a7a3559 drm/mediatek: no change parent rate in round_rate() for MT2701 hdmi phy
   718254750661 drm/mediatek: using new factor for tvdpll for MT2701 hdmi phy
   5b82d95ac6fe drm/mediatek: remove flag CLK_SET_RATE_PARENT for MT2701 hdmi phy
   273ed6c20cb5 drm/mediatek: make implementation of recalc_rate() for MT2701 hdmi phy
   4b112e5e6af9 drm/mediatek: fix the rate and divder of hdmi phy for MT2701
   a873474c769a drm/mediatek: fix possible object reference leak
   3051b6a1a14a scsi: csiostor: fix missing data copy in csio_scsi_err_handler()
   353392e5b9a5 KEYS: trusted: fix -Wvarags warning
   6fb3aa5d7307 RDMA/hns: Fix bug that caused srq creation to fail
   f4d87f9b027a RDMA/vmw_pvrdma: Fix memory leak on pvrdma_pci_remove
   3fa40c30fe4c virtio_pci: fix a NULL pointer reference in vp_del_vqs
   e0696fe3c10f drm/sun4i: tcon top: Fix NULL/invalid pointer dereference in sun8i_tcon_top_un/bind
   09c5ad16c22c slab: fix a crash by reading /proc/slab_allocators
   ad74ab443e30 objtool: Add rewind_stack_do_exit() to the noreturn list
   fa42760cf276 ASoC: cs35l35: Disable regulators on driver removal
   c577757d294e drm/amd/display: fix cursor black issue
   4b5f2b0ce17c drm/amdgpu: amdgpu_device_recover_vram always failed if only one node in shadow_list
   f528dbeec017 drm/amdgpu: Adjust IB test timeout for XGMI configuration
   255063992678 drm/amdkfd: Add picasso pci id
   2f0ec100032e ASoC: rockchip: pdm: fix regmap_ops hang issue
   dfa9efe42df2 xtensa: fix initialization of pt_regs::syscall in start_thread
   9680a806201d iov_iter: Fix build error without CONFIG_CRYPTO
   2e94d4e8f2b9 linux/kernel.h: Use parentheses around argument in u64_to_user_ptr()
   bae9b6b98342 perf/x86/intel: Initialize TFA MSR
   9bd3e66587f5 perf/x86/intel: Fix handling of wakeup_events for multi-entry PEBS
   83f3ed3b4bde drm/mediatek: Fix an error code in mtk_hdmi_dt_parse_pdata()
   693d72f920e7 ASoC: tlv320aic32x4: Fix Common Pins
   e904a8b14895 MIPS: KGDB: fix kgdb support for SMP platforms.
   59188acd0c7d IB/hfi1: Fix the allocation of RSM table
   a3270ed43389 IB/hfi1: Eliminate opcode tests on mr deref
   1f9f22f6c7d6 IB/hfi1: Clear the IOWAIT pending bits when QP is put into error state
   a2fdb5d19477 drm/omap: hdmi4_cec: Fix CEC clock handling for PM
   08aa8be65b52 ASoC: dapm: Fix NULL pointer dereference in snd_soc_dapm_free_kcontrol
   15d326f9548b ASoC: cs4270: Set auto-increment bit for register writes
   1be14f5da0b1 ASoC: stm32: dfsdm: fix debugfs warnings on entry creation
   9baa2f8ab758 ASoC: stm32: dfsdm: manage multiple prepare
   5bff91d2a18f clk: meson-gxbb: round the vdec dividers to closest
   b2b47cecd2ce ASoC: wm_adsp: Add locking to wm_adsp2_bus_error
   9fb991d9cf50 ASoC: rt5682: recording has no sound after booting
   b2cb6f8f307b ASoC: rt5682: fix jack type detection issue
   8425db671440 ASoC: rt5682: Check JD status when system resume
   3f60f8813be9 ASoC: samsung: odroid: Fix clock configuration for 44100 sample rate
   b44509a152a3 ASoC: nau8810: fix the issue of widget with prefixed name
   6c4a8ae4baa6 ASoC: nau8824: fix the issue of the widget with prefix name
   f4f4303c6d54 ASoC: dpcm: prevent snd_soc_dpcm use after free
   71ec072682ff ASoC:intel:skl:fix a simultaneous playback & capture issue on hda platform
   ad8af1f8d26e ASoC:hdac_hda:use correct format to setup hda codec
   30d948ac01d9 ASoC:soc-pcm:fix a codec fixup issue in TDM case
   6872cfa57c42 ASoC: stm32: sai: fix race condition in irq handler
   b329de3769b0 ASoC: stm32: sai: fix exposed capabilities in spdif mode
   27162c8fdfb9 ASoC: stm32: sai: fix iec958 controls indexation
   aba1a357cd90 ASoC: hdmi-codec: fix S/PDIF DAI
   045c73ba325d ASoC: tlv320aic3x: fix reset gpio reference counting
   ce3a072f275a staging: most: sound: pass correct device when creating a sound card
   2dbcc037de1a staging: most: cdev: fix chrdev_region leak in mod_exit
   3f57fef02fa7 staging: wilc1000: Avoid GFP_KERNEL allocation from atomic context.
   9cccac4ee35f staging: greybus: power_supply: fix prop-descriptor request size
   9fe5b8e9d4c2 ubsan: Fix nasty -Wbuiltin-declaration-mismatch GCC-9 warnings
   7c03a3534d24 Drivers: hv: vmbus: Remove the undesired put_cpu_ptr() in hv_synic_cleanup()
   634424f63373 net: stmmac: Use bfsize1 in ndesc_init_rx_desc

(From OE-Core rev: 3faea669be9aa3c75ffbd5309316116392434aff)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-02 10:23:49 +01:00
Richard Purdie
f50dd98381 libxml-perl: Fix module and ptest dependencies
This fixes runtime errors when running the ptest in a minimal image.

(From OE-Core rev: 597eddc71a963613edea243c4c320ecbd6149916)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 21:43:30 +01:00
Richard Purdie
bf5662fe4d libxml-sax-perl: Fix module ptest dependencies
This fixes runtime errors when running the ptest in a minimal image.

(From OE-Core rev: 688ac24fca404233d68f26ac8744938e96740541)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 21:43:30 +01:00
Richard Purdie
7eef8e3665 libconvert-aan1-perl: Fix module and ptest dependencies
This fixes runtime errors when running the ptest in a minimal image.

(From OE-Core rev: 531e5b0b790434d4cadd9b5abd4b76fc9f197709)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 21:43:30 +01:00
Richard Purdie
825a5c7b56 liburi-perl: Fix module ptest dependencies
This fixes runtime errors when running the ptest in a minimal image.

(From OE-Core rev: 35ec94fa3c3d3d6c2781f579c74094a271b220f9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 21:43:30 +01:00
Richard Purdie
085f2e013e perl: Add missing perl module dependency
This fixes runtime errors when using the module (as used by various other perl
module ptests).

(From OE-Core rev: ba2dff81186c194c5f4b7361f2f9678068d93769)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 21:43:30 +01:00
Richard Purdie
ef6985d990 libtimedate-perl: Fix ptest dependencies
This fixes runtime errors when running the ptest in a minimal image.

(From OE-Core rev: 0e1539bfa0e07a9d8d8a670ce4add221d1955feb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 21:43:30 +01:00
Richard Purdie
55b212945a libtest-needs-perl: Fix ptest dependencies
This fixes runtime errors when running the ptest in a minimal image.

(From OE-Core rev: a99204f36afd1b98e6a0aabe70cc4d86d8d18315)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 21:43:30 +01:00
Richard Purdie
c1e844e2eb quilt: Add patch depends for quilt-ptest
This fixes the ptest to work in minimal images.

(From OE-Core rev: 2a74e127cbb1972923d8b35f6f41b6fba6cf96fa)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 21:43:30 +01:00
Alexander Kanavin
5c0d4e59d4 python3-pygments: add a recipe
This is the new source highlighter used by gtk-doc.

(From OE-Core rev: 18ac8091728ede09024385cc71acff2b59500017)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 21:43:30 +01:00
Richard Purdie
914c33e8ff beaglebone-yocto: Add missing wic image u-boot deploy dependency
The wic image built for beaglebone-yocto needs the u-boot deployed artefacts but
there is no direct dependency. Usually this happens to work but if the u-boot
build fails, the image built with -k exposes this race.

Add the missing dependnecy.

[YOCTO #13280]

(From meta-yocto rev: d0abe4a39ad261bcd4993ebd3340c2160870959a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 11:27:42 +01:00
Alexander Kanavin
9ad477cf40 sysstat: add UPSTREAM_VERSION_UNKNOWN
We are taking a development version from an odd-even versioned project,
so upstream version check reports that the latest version is less than
the one the recipe is using.

UPSTREAM_VERSION_UNKNOWN avoids a version check failure until
there is a new stable series.

(From OE-Core rev: 0e7a4a14dc63588cfd5f6adff527f7613bb69c55)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 11:27:07 +01:00
Sakib Sajal
1233755420 bash: run bash ptest as non-root user
new-exp ptest fails as it expects non-root user.

>From the failed ptest log:
   < new-exp.tests: the test suite should not be run as root
   628c627
   < argv[1] = <host(2)[5.0]# >
   ---
   > argv[1] = <host(2)[5.0]$ >
   FAIL: run-new-exp

Many of the ptests declare that they should not be run as root
and a few fail since the expected result strings are for a
user shell.

When ptests are run as bash_user (non-root) the glob test
fails with error:
    run-glob-test
    59,60d58
    < touch: cannot touch 'a?': Permission denied
    < touch: cannot touch 'aa': Permission denied

So ensure that the bash/ptest/tests directory is owned by the
bash_user while the tests are being run and return it to root
owner afterwards.

(From OE-Core rev: c125609886b36048cfde6e694eee7fb47f197241)

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Randy Macleod <randy.macleod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 11:27:07 +01:00
Sakib Sajal
56ccaa3b8d bash: add big5hkscs gconv RDEPENDS needed by bash-ptest.
glob-test failed beacuse it could not convert big5hkscs
encoding to perform comparison.

(From OE-Core rev: 8e147863c4c0fdc22da92e2e5e35502906eac916)

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Randy Macleod <randy.macleod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 11:27:07 +01:00
Alexander Kanavin
f5cea25412 Revert "ncurses: fix incorrect UPSTREAM_CHECK_GITTAGREGEX"
This reverts commit 91227184b5.

Instead of fixing incorrect regex, the commit actually broke the correct one.

Before the reverted commit:
alexander@alexander-box:~/development/poky$ devtool check-upgrade-status ncurses
INFO: ncurses                   6.1             6.1+20181013    Hongxu Jia <hongxu.jia@windriver.com> 7a97a7f937762ba342d5b2fd7cd090885a809835

After the reverted commit:
alexander@alexander-box:~/development/poky$ devtool check-upgrade-status ncurses
INFO: ncurses                   6.1             UNKNOWN_BROKEN  Hongxu Jia <hongxu.jia@windriver.com>

The code in bitbake/lib/bb/fetch2/git.py actually splits each tag
with '/' as separator and takes only the last part for some reason,
so the "debian/" or "upstream/" prefixes are never a part of the string
that is matched against regex:
https://salsa.debian.org/debian/ncurses/tags

(From OE-Core rev: b6f4c130e5b2df458bf9d1b2d8edc8ac87fecf12)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 11:27:07 +01:00
Alexander Kanavin
6af19f6b35 ccache: fix upstream version check
(From OE-Core rev: 83ad76453a86829c07052d506bc214923e696cf5)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 11:27:07 +01:00
Fabio Berton
43ee140f5d mesa: Update 19.0.3 -> 19.0.5
Mesa 19.0.5 is a bug fix release which fixes bugs found since the
19.0.3 release.

For full log see:
 - https://www.mesa3d.org/relnotes/19.0.5.html
 - https://www.mesa3d.org/relnotes/19.0.4.html

(From OE-Core rev: 116330fb1a662353b96763169d8502d0d1ddc77c)

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 11:27:07 +01:00
Tim Orling
8a6d027fef perl: install Config_git.pl
Config_git.pl is required for Test::Builder and other perl ptest
modules. It was packaged before the perl-sanity change, but
missed in the refactoring.

(From OE-Core rev: a432df483a6b2c44518882b976c73b0d7ad28509)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 11:27:07 +01:00
Tim Orling
99f26fd314 perl-rdepends.txt: improve dependencies for perl module ptests
A number of dependencies for Test::Builder and other perl ptest
modules were missing, especially Test2::API and its like.

Fixes [YOCTO #13200]

(From OE-Core rev: bad9856570094792de22c8a857cecfcb57d3555f)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 11:27:07 +01:00
Tim Orling
729cd9c6e9 libxml-parser-perl: fix ptest dependencies
The ptests have additional dependency on:
* perl-module-filehandle
* perl-module-if
* perl-module-test

(From OE-Core rev: 278b4fb78cc35338f692c559b4e4c068e8f37c71)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 11:27:07 +01:00
Alexander Kanavin
df9f772a2f piglit: upgrade to latest revision
Switch to gitlab.freedesktop.org, as the previous
location is now a mirror of that and may be taken down.

Remove upstreamed patches.

(From OE-Core rev: a109aa96a3c3b8ce3d3e8076955fd72b3a60af77)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 11:27:07 +01:00
Alexander Kanavin
815c601db6 perl: update to 5.30.0
(From OE-Core rev: 281eff0f37c2d33ad15590ea0a21515f24fc0cb8)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 11:27:06 +01:00
Jonathan Rajotte
eb952de8fd liburcu: update to 0.11.0
Drop backported patch.
Update paths to files that establish the licensing.

(From OE-Core rev: 93b7a4f6c2149242d2390a8cbb9af86d09f1d7ca)

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 11:27:06 +01:00
Richard Purdie
44607330cd useradd: Ensure do_populate_sysroot has dependency on useradd variables
The do_populate_sysroot task doesn't rerun if you change any of the USERADD_PARAM
or GROUPADD_PARAM variables, only do_package will.

If another task depends on the recipe, this means it won't see any updated changes.

This patch adds in the missing vardeps ensuring the code is deterministic.

[YOCTO #13232]

(From OE-Core rev: 37d0382a3c67f47f8cfdd977a041069bf912b8c3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01 11:27:06 +01:00
Mingli Yu
72cc2de0d9 elfutils: fix ptest failures
* Add missing files which needed by ptest test
  to fix the ptest failures such as:
  | sh: ../src/elflint: No such file or directory
  | FAIL: asm-tst4

* Rework 0001-skip-the-test-when-gcc-not-deployed.patch
  to skip the tests which depend on gcc

* Define INHIBIT_PACKAGE_STRIP_FILES for elfutils to
  avoid stripping some generated binaries otherwise
  some of the tests such as test-nlist, run-strip-reloc.sh,
  run-strip-strmerge.sh and so on will fail

* Set EXCLUDE_PACKAGES_FROM_SHLIBS = "${PN}-ptest"
  to avoid ${PN}-ptest be the shlibs provider to
  fix below error:
  Problem 1: package rpm-1:4.14.2.1-r0.core2_32 requires elfutils-ptest >= 0.176, but none of the providers can be installed
  - conflicting requests
  - nothing provides elfutils-binutils needed by elfutils-ptest-0.176-r0.core2_32
  Problem 2: package dnf-4.2.2-r0.core2_32 requires python3-rpm, but none of the providers can be installed
  - package python3-rpm-1:4.14.2.1-r0.core2_32 requires elfutils-ptest >= 0.176, but none of the providers can be installed
  - conflicting requests
  - nothing provides elfutils-binutils needed by elfutils-ptest-0.176-r0.core2_32
  Problem 3: package ltp-20190115-r0.core2_32 requires iproute2, but none of the providers can be installed
  - package packagegroup-core-tools-testapps-1.0-r2.qemux86 requires ltp, but none of the providers can be installed
  - package iproute2-5.1.0-r0.core2_32 requires elfutils-ptest >= 0.176, but none of the providers can be installed
  - conflicting requests
  - nothing provides elfutils-binutils needed by elfutils-ptest-0.176-r0.core2_32

Before:
--------------------------------------------
Recipe   | Passed    | Failed   | Skipped
--------------------------------------------
elfutils | 176       | 23       | 4
--------------------------------------------

After:
--------------------------------------------
Recipe   | Passed    | Failed   | Skipped
--------------------------------------------
elfutils | 199       | 0       | 4
--------------------------------------------

(From OE-Core rev: 174690b1745eadc6981d83b7c6869712e835b5d0)

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 22:13:31 +01:00
Carlos Rafael Giani
e59bdafc65 gstreamer1.0-vaapi: upgrade to version 1.16.0
(From OE-Core rev: d4fe719bf10b224b2dc6e484fd88f54b9bc581c5)

Signed-off-by: Philippe Normand <philn@igalia.com>
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 22:13:31 +01:00
Joshua Watt
908e847b46 glibc-locale: DEPEND on virtual/libc
The restriction against glibc-locale depending on virtual/libc is
removed now that libc-initial no longer exists.

Adding the DEPENDS on virtual/libc fixes a race (and reproducibility
issue) where the packages created by this recipe would have different
runtime dependencies depending on if libc had generated its packages yet
or not.

(From OE-Core rev: 75539cb23073596a9f13446dd6f3921755d7fb53)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 22:13:31 +01:00
Philippe Normand
4babb468b8 gnutls: Use ca-certificates as default trust store file
Since version 2.58 the glib-networking TLS database relies on GnuTLS's system
trust store, so not enabling it leads to TLS errors in applications depending on
glib-networking. The raised runtime warning is:

process:500): GLib-Net-WARNING **: 09:14:09.321: Failed to load TLS database: Failed to load system trust store: GnuTLS was not configured with a system trust
(app:490): ... TLS Error: TLS certificate  has unknown CA.

(From OE-Core rev: 1d147be584d2f016853edbe9751247d7daa0b5d0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 22:13:31 +01:00
Philippe Normand
67edffa0ae at-spi2: Make X11 support truly optional
X11 support in at-spi2-core can be turned off at compile time, so leverage this
and disable it when X11 is not present in DISTRO_FEATURES.

(From OE-Core rev: be18dabdb28703c889f97faadbaec07e76d5e8bd)

Signed-off-by: Philippe Normand <philn@igalia.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 22:13:31 +01:00
Joshua Watt
fe44532408 perl: Set build date to SOURCE_DATE_EPOCH
Perl uses an internal #define called PERL_BUILD_DATE as the string for
the date when perl was built. If undefined, it defaults to using
__DATE__ and __TIME__, which is not reproducible. If SOURCE_DATE_EPOCH
is set at do_configure time, use it to generate a reproducible string
for PERL_BUILD_DATE.

(From OE-Core rev: 0ab44c72d0fb9b1d110ba975273b520cea5bf29f)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 22:13:31 +01:00
Richard Purdie
464a2fed0b useradd: Fix build architecture corruption of sstate artefacts
When mixing aarch64 and x86_64 host builds with common sstate, useradd failures
were found. This was due to references to:

/home/pokybuild/yocto-worker/qemuarm/build/build/tmp/sysroots-components/aarch64/pseudo-native/usr/bin/pseudo
or
/home/pokybuild/yocto-worker/qemuarm/build/build/tmp/sysroots-components/x86_64/pseudo-native/usr/bin/pseudo

on the wrong architecture within the useradd postinst files.

Instead of using COMPONENTS_DIR as the FIXME, use PSEUDO_SYSROOT which contains
the arch component as well to avoid this.

Add extra comments to cause the relavent sstate to be rebuilt.

(From OE-Core rev: 0384622f72a6c0bd8225cf06f692340fdef67d4a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 15:36:20 +01:00
Richard Purdie
a07a6a7415 runqemu: Add support for kvm on aarch64
The main issue is to make the x86 checks apply to x86 targets only. We may
end up with better checks on other architectures but this adapts the code to
allow for that and its still controlled by whether QB_CPU_KVM is set.

The code needed minor refactoring so the qemu-system-XXX name is set
earlier so the kvm code can use it.

(From OE-Core rev: 06c473a0127f19b76d0f647b87873944add1e331)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 15:36:20 +01:00
Richard Purdie
6a28a19390 qemuarm64: Add QB_CPU_KVM to allow kvm acceleration
This allows kvm acceleration on arm systems that support it. "host" is the
best option I can find right now to attempt to use the acceleration. It
potentially might not be correct but arm systems are sensitive to the
correct values and I don't want to encode the autobuilders CPU type here.

(From OE-Core rev: f13788541f64774a586971ed57699e4397b38b32)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 15:36:20 +01:00
Anuj Mittal
e1afa8762c libva: upgrade 2.4.0 -> 2.4.1
Changes in this release:

979a351 [common] Add A2RGB10 fourcc definition
22cba79 build: meson: enables va messaging and visibility
b89f6ec va/va_trace: add trace support for RIR(rolling intra refresh).
844b90c va/va_trace: add trace support for ROI(region of interest).

(From OE-Core rev: 6072f1f3a0064bbb550367386d96c6cf7d88e32c)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 15:36:20 +01:00
Adrian Bunk
f3c995ee4b dpkg: Remove workaround patches for no longer supported host distributions
(From OE-Core rev: 282ddd265d8c63975750a604bc4ac2c1ffbcbd76)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 15:36:20 +01:00
Andrei Gherzan
024825532e ca-certificates: Fix openssl runtime dependencies
Since yocto thud, and more specifically since poky switched to
openssl 1.1 line, the openssl binary is provided by 'openssl-bin'. This
impacts the native and nativesdk recipe variants as well.

(From OE-Core rev: dc778c70449ee5401b5a24ad18b22b88338c47c5)

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 15:36:20 +01:00
Bruce Ashfield
600a615042 linux-yocto-dev: bump to v5.2-rc
(From OE-Core rev: 16520b090c494eaafb2ec9eef7e8d511478860c2)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 15:36:20 +01:00
Bruce Ashfield
412b88d052 kernel: package modules.builtin.modinfo
As of commit 898490c010b [moduleparam: Save information about built-in
modules in separate file] (kernels v5.2-rc1+), modules.builtin.modinfo
is generated as part of the kernel build process.

We package it along with the other module artifacts, so it can be used
by scripts/other build steps.

(From OE-Core rev: 112a4d3b2b4a829dd5657b6533b1c1bb589d6c8e)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 15:36:20 +01:00
Bruce Ashfield
fa4798d953 linux-yocto/4.19: update to v4.19.44
Integrating the korg -stable updates that comprise the following
commits:

   dafc674bbcb1 Linux 4.19.44
   9fa23ea14e8f PCI: hv: Add pci_destroy_slot() in pci_devices_present_work(), if necessary
   76888d135c4e PCI: hv: Add hv_pci_remove_slots() when we unload the driver
   a47e0054253f PCI: hv: Fix a memory leak in hv_eject_device_work()
   4179b8580219 powerpc/booke64: set RI in default MSR
   71b20cdb4353 powerpc/powernv/idle: Restore IAMR after idle
   69c2b71cb0c1 powerpc/book3s/64: check for NULL pointer in pgd_alloc()
   e9ec5073c90d drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl
   ee3b53d89967 drivers/virt/fsl_hypervisor.c: dereferencing error pointers in ioctl
   afa485dc6f17 tipc: fix hanging clients using poll with EPOLLOUT flag
   98652e0b0a1b isdn: bas_gigaset: use usb_fill_int_urb() properly
   17d8a9ebaa99 tuntap: synchronize through tfiles array instead of tun->numqueues
   9c79732f98a8 tuntap: fix dividing by zero in ebpf queue selection
   737713e6d835 vrf: sit mtu should not be updated when vrf netdev is the link
   e38406070729 vlan: disable SIOCSHWTSTAMP in container
   dfdfad3d188f selinux: do not report error on connect(AF_UNSPEC)
   9f51d6f72063 packet: Fix error path in packet_init
   2e95eb9c92f7 net: ucc_geth - fix Oops when changing number of buffers in the ring
   210057b79e71 net: seeq: fix crash caused by not set dev.parent
   dfd919285f27 net: macb: Change interrupt and napi enable order in open
   68df8383f3ca net: ethernet: stmmac: dwmac-sun8i: enable support of unicast filtering
   9284895b7ee6 net: dsa: Fix error cleanup path in dsa_init_module
   da2e770f0c4a ipv4: Fix raw socket lookup for local traffic
   947fec630c41 fib_rules: return 0 directly if an exactly same rule exists when NLM_F_EXCL not supplied
   c7b5e55be825 dpaa_eth: fix SG frame cleanup
   a79feef32392 bridge: Fix error path for kobject_init_and_add()
   9c2cda31196a bonding: fix arp_validate toggling in active-backup mode
   0dc9ad4e904d powerpc/64s: Include cpu header
   db1b4aa651df um: Don't hardcode path as it is architecture dependent
   85f347944a6b Don't jump to compute_result state from check_result state
   ace28a8efdd4 rtlwifi: rtl8723ae: Fix missing break in switch statement
   d756d1dea670 mwl8k: Fix rate_idx underflow
   c300c98a94b4 cw1200: fix missing unlock on error in cw1200_hw_scan()
   575260507647 x86/kprobes: Avoid kretprobe recursion bug
   322a57551d06 nfc: nci: Potential off by one in ->pipes[] array
   f5e60565e6bd NFC: nci: Add some bounds checking in nci_hci_cmd_received()
   21e9515b7d16 net: strparser: partially revert "strparser: Call skb_unclone conditionally"
   85b9e8694f9c net/tls: fix the IV leaks
   e38c6748d1cc mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw workqueue
   835ae6cc28d9 mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw ordered workqueue
   880a328e197b mlxsw: core: Do not use WQ_MEM_RECLAIM for EMAD workqueue
   a80f62f781c2 mlxsw: spectrum_switchdev: Add MDB entries in prepare phase
   fb7c783b3139 net: fec: manage ahb clock in runtime pm
   c18731c2786c netfilter: nf_tables: add missing ->release_ops() in error path of newrule()
   5014aa937422 netfilter: nf_tables: use-after-free in dynamic operations
   9965da064e9a usb: typec: Fix unchecked return value
   68321994225d mm/memory.c: fix modifying of page protection by insert_pfn()
   bc3361461fcb net: dsa: mv88e6xxx: fix few issues in mv88e6390x_port_set_cmode
   19f4f94fdb2a powerpc/smp: Fix NMI IPI xmon timeout
   f8bd34d1d399 powerpc/smp: Fix NMI IPI timeout
   6a60fb62c82a mm/memory_hotplug.c: drop memory device reference after find_memory_block()
   fb67c97c4e2f RDMA/hns: Bugfix for mapping user db
   afc7cebbbb5e Input: synaptics-rmi4 - fix possible double free
   f621bc1bd7f4 drm/sun4i: Unbind components before releasing DRM and memory
   21b71e191bd8 spi: ST ST95HF NFC: declare missing of table
   09185e359827 spi: Micrel eth switch: declare missing of table
   3835cb5a911f ARM: 8856/1: NOMMU: Fix CCR register faulty initialization when MPU is disabled
   521ae4da71cc drm/imx: don't skip DP channel disable for background plane
   df3a97d197a3 gpu: ipu-v3: dp: fix CSC handling
   3a53fa469d60 netfilter: fix nf_l4proto_log_invalid to log invalid packets
   5bc3d4491821 selftests/net: correct the return value for run_netsocktests
   24b1c849ce9d drm/sun4i: Fix component unbinding and component master deletion
   1973df1ec5bc drm/sun4i: Set device driver data at bind time for use in unbind
   005325b7f026 s390: ctcm: fix ctcm_new_device error return code
   ca8648816e3d MIPS: perf: ath79: Fix perfcount IRQ assignment
   743a5a951d4d netfilter: nf_tables: prevent shift wrap in nft_chain_parse_hook()
   7b115755fb9d netfilter: ctnetlink: don't use conntrack/expect object addresses as id
   4e1994ef6365 ipvs: do not schedule icmp errors from tunnels
   cb9a11d017c6 selftests: netfilter: check icmp pkttoobig errors are set as related
   74e9b761fba0 init: initialize jump labels before command line option parsing
   6536de8232c8 mm: fix inactive list balancing between NUMA nodes and cgroups
   1134736869ef scsi: aic7xxx: fix EISA support
   ba87f547b0f7 ocelot: Don't sleep in atomic context (irqs_disabled())
   9e4fd5e0b81a ipmi: ipmi_si_hardcode.c: init si_type array to fix a crash
   7d4d8683e925 tools lib traceevent: Fix missing equality check for strcmp
   0c8afd514df0 KVM: x86: avoid misreporting level-triggered irqs as edge-triggered in tracing
   d39f3cc71382 KVM: fix spectrev1 gadgets
   4074bc379b1f x86/reboot, efi: Use EFI reboot for Acer TravelMate X514-51T
   3b51d71365e0 x86/build/lto: Fix truncated .bss with -fdata-sections
   8eb64692d6e2 s390/pkey: add one more argument space for debug feature entry
   e360515f41fc drm/amd/display: If one stream full updates, full update all planes
   58be7c109cea afs: Unlock pages for __pagevec_release()
   08f2c299b38c qede: fix write to free'd pointer error and double free of ptp
   090b74020014 vxge: fix return of a free'd memblock on a failed dma mapping
   f83beff28048 mISDN: Check address length before reading address family
   e4525c9d9ada selftests: fib_tests: Fix 'Command line is not complete' errors
   7828986b84ba clocksource/drivers/oxnas: Fix OX820 compatible
   6a414ef36840 clocksource/drivers/npcm: select TIMER_OF
   068d1cce7801 drm/amd/display: extending AUX SW Timeout
   2773e7454f4f s390/3270: fix lockdep false positive on view->lock
   4c8c9d514917 libnvdimm/pmem: fix a possible OOB access when read and write pmem
   f2565d0e5277 nl80211: Add NL80211_FLAG_CLEAR_SKB flag for other NL commands
   1d918120e37d mac80211: fix memory accounting with A-MSDU aggregation
   9d4da01f7d66 cfg80211: Handle WMM rules in regulatory domain intersection
   35e2abbaffa2 mac80211: Increase MAX_MSG_LEN
   bbe1ab38e1a2 mac80211: fix unaligned access in mesh table hash function
   e28e5055eacd s390/dasd: Fix capacity calculation for large volumes
   af5b7a150ef8 libnvdimm/btt: Fix a kmemdup failure check
   f7ab4818f74e HID: input: add mapping for "Toggle Display" key
   bbdccc170adf HID: input: add mapping for keyboard Brightness Up/Down/Toggle keys
   dc30867da997 HID: input: add mapping for Expose/Overview key
   e94f852e2034 libnvdimm/namespace: Fix a potential NULL pointer dereference
   5f72e3a021a6 acpi/nfit: Always dump _DSM output payload
   f07db1f1f54c iio: adc: xilinx: prevent touching unclocked h/w on remove
   6400212ae3b6 iio: adc: xilinx: fix potential use-after-free on probe
   06d5ea398e55 iio: adc: xilinx: fix potential use-after-free on remove
   5640d0781267 USB: serial: fix unthrottle races
   4c416eef65a7 virt: vbox: Sanity-check parameter types for hgcm-calls coming from userspace
   e361ccccdd51 kernfs: fix barrier usage in __kernfs_new_node()
   f1917f21c8f6 hwmon: (pwm-fan) Disable PWM if fetching cooling data fails
   87cc345aefc9 platform/x86: dell-laptop: fix rfkill functionality
   381eaca5017f platform/x86: thinkpad_acpi: Disable Bluetooth for some machines
   efe6802e812b platform/x86: sony-laptop: Fix unintentional fall-through
   824c212908b6 bfq: update internal depth state when queue depth changes
   3351e9d39947 Linux 4.19.43
   b21bde49d386 x86/speculation/mds: Fix documentation typo
   8e65568e9d23 Documentation: Correct the possible MDS sysfs values
   2e4c54890226 x86/mds: Add MDSUM variant to the MDS documentation
   12a0dad799fb x86/speculation/mds: Add 'mitigations=' support for MDS
   59a14fb5832c s390/speculation: Support 'mitigations=' cmdline option
   74857f69fec5 powerpc/speculation: Support 'mitigations=' cmdline option
   af5332dd991e x86/speculation: Support 'mitigations=' cmdline option
   8cb932aca5d6 cpu/speculation: Add 'mitigations=' cmdline option
   7ba793ae7b9f x86/speculation/mds: Print SMT vulnerable on MSBDS with mitigations off
   e9ae32266605 x86/speculation/mds: Fix comment
   b9faa4652867 x86/speculation/mds: Add SMT warning message
   b3a63d9c7453 x86/speculation: Move arch_smt_update() call to after mitigation decisions
   f7a119a762ef x86/speculation/mds: Add mds=full,nosmt cmdline option
   cfaa3d76301e Documentation: Add MDS vulnerability documentation
   e3803099d2f4 Documentation: Move L1TF to separate directory
   c50e81fe8a13 x86/speculation/mds: Add mitigation mode VMWERV
   8230c2028dce x86/speculation/mds: Add sysfs reporting for MDS
   2951067089a3 x86/speculation/mds: Add mitigation control for MDS
   4df98b3f3161 x86/speculation/mds: Conditionally clear CPU buffers on idle entry
   b39dc9a8cced x86/kvm/vmx: Add MDS protection when L1D Flush is not active
   e4fa775b5606 x86/speculation/mds: Clear CPU buffers on exit to user
   1f7c31be1e04 x86/speculation/mds: Add mds_clear_cpu_buffers()
   de89ff6f1674 x86/kvm: Expose X86_FEATURE_MD_CLEAR to guests
   aca9e8d8e2ce x86/speculation/mds: Add BUG_MSBDS_ONLY
   2e9104aa2633 x86/speculation/mds: Add basic bug infrastructure for MDS
   00b76324bd35 x86/speculation: Consolidate CPU whitelists
   e09450ffa980 x86/msr-index: Cleanup bit defines
   ca0056d97840 kvm: x86: Report STIBP on GET_SUPPORTED_CPUID
   1f1bc8222ce7 x86/cpu: Sanitize FAM6_ATOM naming
   34aae15cb179 Documentation/l1tf: Fix small spelling typo
   9c2556f428cf Linux 4.19.42
   9ccdbde1850c arm64: futex: Bound number of LDXR/STXR loops in FUTEX_WAKE_OP
   0f4ef8fb1dae locking/futex: Allow low-level atomic operations to return -EAGAIN
   6fee39874d1f ASoC: Intel: avoid Oops if DMA setup fails
   c3b3955f0250 UAS: fix alignment of scatter/gather segments
   38f092c41ceb Bluetooth: Align minimum encryption key size for LE and BR/EDR connections
   c6d1f9b4b2cb Bluetooth: hidp: fix buffer overflow
   de7fe08b92dc scsi: qla2xxx: Fix device staying in blocked state
   ef7014d76361 scsi: qla2xxx: Fix incorrect region-size setting in optrom SYSFS routines
   7a793ca17357 scsi: lpfc: change snprintf to scnprintf for possible overflow
   8b330b3efa91 soc: sunxi: Fix missing dependency on REGMAP_MMIO
   557be5771563 cpufreq: armada-37xx: fix frequency calculation for opp
   6b7daf1ff8bf intel_th: pci: Add Comet Lake support
   5b2ba94386eb usb-storage: Set virt_boundary_mask to avoid SG overflows
   18e6f3027642 USB: cdc-acm: fix unthrottle races
   bce2b9d63786 USB: serial: f81232: fix interrupt worker not stop
   caa5680dc05a usb: dwc3: Fix default lpm_nyet_threshold value
   33f2aa87c294 genirq: Prevent use-after-free and work list corruption
   29184cbaaec0 iommu/amd: Set exclusion range correctly
   42638d6aae06 perf/core: Fix perf_event_disable_inatomic() race
   c1189d68be7d platform/x86: pmc_atom: Drop __initconst on dmi table
   777943cd6c5f nvme-fc: correct csn initialization and increments on error
   0e8e67b8147f virtio-blk: limit number of hw queues by nr_cpu_ids
   d955bb0b3189 ASoC: Intel: kbl: fix wrong number of channels
   e5c749ad6d7f drm/mediatek: fix possible object reference leak
   8f4dbd17777f scsi: csiostor: fix missing data copy in csio_scsi_err_handler()
   fb357b9eb47d RDMA/hns: Fix bug that caused srq creation to fail
   8dfb2896d8c7 RDMA/vmw_pvrdma: Fix memory leak on pvrdma_pci_remove
   5984fd687600 virtio_pci: fix a NULL pointer reference in vp_del_vqs
   a8f5c1bceb25 drm/sun4i: tcon top: Fix NULL/invalid pointer dereference in sun8i_tcon_top_un/bind
   78bc98235e84 slab: fix a crash by reading /proc/slab_allocators
   cf6cb79d57b0 objtool: Add rewind_stack_do_exit() to the noreturn list
   e66e72710962 ASoC: cs35l35: Disable regulators on driver removal
   dd015a3b072a drm/amd/display: fix cursor black issue
   88294658ddbe ASoC: rockchip: pdm: fix regmap_ops hang issue
   95587274e9d5 linux/kernel.h: Use parentheses around argument in u64_to_user_ptr()
   7d10436ca569 perf/x86/intel: Initialize TFA MSR
   2b791e8ee7b2 perf/x86/intel: Fix handling of wakeup_events for multi-entry PEBS
   929d019d6d44 drm/mediatek: Fix an error code in mtk_hdmi_dt_parse_pdata()
   0fb785e28833 ASoC: tlv320aic32x4: Fix Common Pins
   e6efcbf3cbce MIPS: KGDB: fix kgdb support for SMP platforms.
   09c6954e83e8 IB/hfi1: Fix the allocation of RSM table
   3abd4aef917f IB/hfi1: Eliminate opcode tests on mr deref
   1ed91af83a45 drm/omap: hdmi4_cec: Fix CEC clock handling for PM
   d356db088333 ASoC: dapm: Fix NULL pointer dereference in snd_soc_dapm_free_kcontrol
   6f69661f6ebe ASoC: cs4270: Set auto-increment bit for register writes
   8f5077ceee5f ASoC: stm32: dfsdm: fix debugfs warnings on entry creation
   33ffe0807d52 ASoC: stm32: dfsdm: manage multiple prepare
   74f5898f660d clk: meson-gxbb: round the vdec dividers to closest
   8aa62dc731e5 ASoC: wm_adsp: Add locking to wm_adsp2_bus_error
   2ece73fe079b ASoC: rt5682: recording has no sound after booting
   afcbb3c755c9 ASoC: samsung: odroid: Fix clock configuration for 44100 sample rate
   7525d6104ca4 ASoC: nau8810: fix the issue of widget with prefixed name
   c2119de4ed41 ASoC: nau8824: fix the issue of the widget with prefix name
   29f1b9761520 ASoC:intel:skl:fix a simultaneous playback & capture issue on hda platform
   581a8bd9fa8b ASoC:soc-pcm:fix a codec fixup issue in TDM case
   c37f7344075a ASoC: stm32: sai: fix exposed capabilities in spdif mode
   2aeceaaff09b ASoC: stm32: sai: fix iec958 controls indexation
   6544b4966193 ASoC: hdmi-codec: fix S/PDIF DAI
   98a80393b82a ASoC: tlv320aic3x: fix reset gpio reference counting
   34ae4c6a3609 staging: most: cdev: fix chrdev_region leak in mod_exit
   2197e11bb624 staging: greybus: power_supply: fix prop-descriptor request size
   35d2c86db2d4 ubsan: Fix nasty -Wbuiltin-declaration-mismatch GCC-9 warnings
   eb7b8d1afb92 Drivers: hv: vmbus: Remove the undesired put_cpu_ptr() in hv_synic_cleanup()
   0f18e433b97b scsi: libsas: fix a race condition when smp task timeout
   e629cabe34ed net: stmmac: Use bfsize1 in ndesc_init_rx_desc
   21de7eb67cff Linux 4.19.41
   e7c2d066566b mm/kmemleak.c: fix unused-function warning
   5b94768bd07c ASoC: wm_adsp: Check for buffer in trigger stop
   c5c74e63985f media: v4l2: i2c: ov7670: Fix PLL bypass register values
   5f18c95d2964 i2c: i2c-stm32f7: Fix SDADEL minimum formula
   7a32cbf1720b x86/mm/tlb: Revert "x86/mm: Align TLB invalidation info"
   c48b027f2aa3 x86/mm: Fix a crash with kmemleak_scan()
   052c78f5cfe2 x86/mm/KASLR: Fix the size of the direct mapping section
   d572a3a03f63 clk: x86: Add system specific quirk to mark clocks as critical
   61ff44069f5b x86/mce: Improve error message when kernel cannot recover, p2
   c7e220eff874 powerpc/mm/hash: Handle mmap_min_addr correctly in get_unmapped_area topdown search
   a78c3898de59 mac80211: Honor SW_CRYPTO_CONTROL for unicast keys in AP VLAN mode
   574be221407e selinux: never allow relabeling on context mounts
   6b13ae52ac75 selinux: avoid silent denials in permissive mode under RCU walk
   53ffa56456fb gpio: mxc: add check to return defer probe if clock tree NOT ready
   a10c88bf365a Input: stmfts - acknowledge that setting brightness is a blocking call
   a99b9c82bde6 Input: snvs_pwrkey - initialize necessary driver data before enabling IRQ
   8d5c1c039708 IB/core: Destroy QP if XRC QP fails
   841487432d11 IB/core: Fix potential memory leak while creating MAD agents
   dabcbe58d8bc IB/core: Unregister notifier before freeing MAD security
   d1698f74bdbd platform/x86: intel_pmc_core: Handle CFL regmap properly
   51e777c795ce platform/x86: intel_pmc_core: Fix PCH IP name
   d4f1e3ef9586 ASoC: stm32: fix sai driver name initialisation
   7d3f7107079b ASoC: wm_adsp: Correct handling of compressed streams that restart
   3b958d5e6972 ASoC: Intel: bytcr_rt5651: Revert "Fix DMIC map headsetmic mapping"
   9d696f405e6d scsi: RDMA/srpt: Fix a credit leak for aborted commands
   f16e83170e25 staging: iio: adt7316: fix the dac write calculation
   ad774285beee staging: iio: adt7316: fix the dac read calculation
   7041e3d6b81f staging: iio: adt7316: allow adt751x to use internal vref for all dacs
   2ccaef716388 clk: qcom: Add missing freq for usb30_master_clk on 8998
   8897bf03ec30 Bluetooth: mediatek: fix up an error path to restore bdev->tx_state
   f5ad05e680aa Bluetooth: btusb: request wake pin with NOAUTOEN
   3f8497cfff3b perf/x86/amd: Update generic hardware cache events for Family 17h
   96e4471d3881 block: pass no-op callback to INIT_WORK().
   14f3c36b47ed ARM: iop: don't use using 64-bit DMA masks
   39839f3ec616 ARM: orion: don't use using 64-bit DMA masks
   04b4d5f75ab0 fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock
   a82cfd770651 xsysace: Fix error handling in ace_setup
   54ad0956ef93 sh: fix multiple function definition build errors
   b51fdcbe45d1 hugetlbfs: fix memory leak for resv_map
   6a62bbe82343 kmemleak: powerpc: skip scanning holes in the .bss section
   82e8da1f1a91 KVM: SVM: prevent DBG_DECRYPT and DBG_ENCRYPT overflow
   57186663b3a1 libcxgb: fix incorrect ppmax calculation
   5c5e9f23df7a net: hns: Fix WARNING when remove HNS driver with SMMU enabled
   c9f431017617 net: hns: fix ICMP6 neighbor solicitation messages discard problem
   1ff38d33d7c4 net: hns: Fix probabilistic memory overwrite when HNS driver initialized
   7713ee691767 net: hns: Use NAPI_POLL_WEIGHT for hns driver
   7e7befd8dee2 net: hns: fix KASAN: use-after-free in hns_nic_net_xmit_hw()
   98d6651f1878 arm64: fix wrong check of on_sdei_stack in nmi context
   69da58b7386c arm/mach-at91/pm : fix possible object reference leak
   8052c066e6d0 scsi: storvsc: Fix calculation of sub-channel count
   03260f46f2d1 scsi: core: add new RDAC LENOVO/DE_Series device
   4d043d3d2be1 vfio/pci: use correct format characters
   7ce0b428c046 HID: input: add mapping for Assistant key
   ce9e2dc03f63 rtc: da9063: set uie_unsupported when relevant
   e5be04ee1766 block: use blk_free_flush_queue() to free hctx->fq in blk_mq_init_hctx
   177edf25706a mfd: twl-core: Disable IRQ while suspended
   f0112b649525 debugfs: fix use-after-free on symlink traversal
   e22c11da0a86 jffs2: fix use-after-free on symlink traversal
   7cce2543cbcd net: stmmac: don't log oversized frames
   f86c1d3f10a2 net: stmmac: fix dropping of multi-descriptor RX frames
   0ab012e3df48 net: stmmac: don't overwrite discard_frame status
   2170bbf19f6e net: stmmac: don't stop NAPI processing when dropping a packet
   cd50daabf5ee net: stmmac: ratelimit RX error logs
   c13a936f46e3 net: stmmac: use correct DMA buffer size in the RX descriptor
   824451fdcfc2 bonding: show full hw address in sysfs for slave entries
   f91bb70a3616 net/mlx5: E-Switch, Fix esw manager vport indication for more vport commands
   7e0548e111e5 net: hns3: fix compile error
   6869dd570f10 HID: quirks: Fix keyboard + touchpad on Lenovo Miix 630
   bc031095828b riscv: fix accessing 8-byte variable from RV32
   0424b0b35793 igb: Fix WARN_ONCE on runtime suspend
   cc04b5b3314a reset: meson-audio-arb: Fix missing .owner setting of reset_controller_dev
   ef9533481c11 ARM: dts: rockchip: Fix gpu opp node names for rk3288
   894b4fc04387 batman-adv: fix warning in function batadv_v_elp_get_throughput
   7afe374cc718 batman-adv: Reduce tt_global hash refcnt only for removed entry
   6957021da735 batman-adv: Reduce tt_local hash refcnt only for removed entry
   be807f9b4fc4 batman-adv: Reduce claim hash refcnt only for removed entry
   8a734e251c0c rtc: sh: Fix invalid alarm warning for non-enabled alarm
   5b5c653ddf91 rtc: cros-ec: Fail suspend/resume if wake IRQ can't be configured
   2f4052ffd9be HID: debug: fix race condition with between rdesc_show() and device removal
   61effc648fe4 HID: logitech: check the return value of create_singlethread_workqueue
   dbfef4bd8836 arm64: dts: rockchip: fix rk3328-roc-cc gmac2io tx/rx_delay
   3e6b472f474a efi: Fix debugobjects warning on 'efi_rts_work'
   30673786f906 nvme-loop: init nvmet_ctrl fatal_err_work when allocate
   83c6688d679c USB: core: Fix bug caused by duplicate interface PM usage counter
   7b73c2a056b3 USB: core: Fix unterminated string returned by usb_string()
   7df0d2c7d092 usb: usbip: fix isoc packet num validation in get_pipe
   512ce15023a8 USB: dummy-hcd: Fix failure to give back unlinked URBs
   508954883054 USB: w1 ds2490: Fix bug caused by improper use of altsetting array
   9f632afe4f39 USB: yurex: Fix protection fault after device removal
   f02c6460a5b6 ALSA: hda/realtek - Apply the fixup for ASUS Q325UAR
   347411f9aded ALSA: hda/realtek - Fixed Dell AIO speaker noise
   f937634b6626 ALSA: hda/realtek - Add new Dell platform for headset mode
   b19c230648b5 i2c: Prevent runtime suspend of adapter when Host Notify is required
   04e07919f7da i2c: Allow recovery of the initial IRQ by an I2C client device.
   1e031ab31843 i2c: Clear client->irq in i2c_device_remove
   63eab25ed1cc i2c: Remove unnecessary call to irq_find_mapping
   e89ba70e10b2 i2c: imx: correct the method of getting private data in notifier_call
   d1493c5cbbad i2c: synquacer: fix enumeration of slave devices
   ec30811209e4 mac80211: don't attempt to rename ERR_PTR() debugfs dirs
   be7df63d3680 mwifiex: Make resume actually do something useful again on SDIO cards
   81a7534f9ef4 iwlwifi: fix driver operation for 5350

(From OE-Core rev: 0a70d1c66ccb52cbdbe655eccd0560ca38ed5677)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 15:36:20 +01:00
Bruce Ashfield
b71d3e5283 linux-yocto/4.19: update to v4.19.40
Updating to the latest -stable release which comprises the following
changes:

   1656b1457209 Linux 4.19.40
   cc313d405b0c ath10k: Drop WARN_ON()s that always trigger during system resume
   d0a5000f10e7 ALSA: line6: use dynamic buffers
   68d49ff47789 KVM: nVMX: Fix size checks in vmx_set_nested_state
   499bbe739d5a KVM: x86: Whitelist port 0x7e for pre-incrementing %rip
   d0771bd41c27 net/tls: fix copy to fragments in reencrypt
   dd424182bc2d net/tls: don't copy negative amounts of data in reencrypt
   f1fd68e93409 bnxt_en: Fix uninitialized variable usage in bnxt_rx_pkt().
   396350737326 bnxt_en: Free short FW command HWRM memory in error path in bnxt_init_one()
   09a921361353 bnxt_en: Improve multicast address setup logic.
   6a57fa6fa7d5 packet: validate msg_namelen in send directly
   7a42cf4dfa43 selftests: fib_rule_tests: print the result and return 1 if any tests failed
   b563e9bbabfe sctp: avoid running the sctp state machine recursively
   fdd36abd9d09 rxrpc: Fix net namespace cleanup
   a976384b9553 net/tls: avoid NULL pointer deref on nskb->sk in fallback
   1d412d873a12 net: phy: marvell: Fix buffer overrun with stats counters
   b48a0a1207e9 net: dsa: bcm_sf2: fix buffer overflow doing set_rxnfc
   485f382f2c6d l2tp: use rcu_dereference_sk_user_data() in l2tp_udp_encap_recv()
   e571a33963f4 l2ip: fix possible use-after-free
   f78ec0cd0664 ipv6: invert flowlabel sharing check in process and user mode
   39eddbb7cab3 ipv6/flowlabel: wait rcu grace period before put_pid()
   1a9e0134af40 ipv6: fix races in ip6_dst_destroy()
   7ea4f000c41f ipv6: A few fixes on dereferencing rt->from
   3f611a479962 ipv4: ip_do_fragment: Preserve skb_iif during fragmentation
   ad119c970bbe Linux 4.19.39
   ee096f0dc4a4 leds: trigger: netdev: use memcpy in device_name_store
   2663959af22c leds: pca9532: fix a potential NULL pointer dereference
   13a6a6dd3c11 ptrace: take into account saved_sigmask in PTRACE{GET,SET}SIGMASK
   71f3397a1c31 iommu/amd: Reserve exclusion range in iova-domain
   75a5e3e6340c kconfig/[mn]conf: handle backspace (^H) key
   458a65c71029 perf machine: Update kernel map address and re-order properly
   60d3b51d05a7 nvme-multipath: relax ANA state check
   a918af5b6fd8 gpio: of: Fix of_gpiochip_add() error path
   43dba153d52b libata: fix using DMA buffers on stack
   6a364b2e47a6 x86/mm: Don't exceed the valid physical address space
   a138f995ab84 scsi: zfcp: reduce flood of fcrscn1 trace records on multi-element RSCN
   97c4f3a8853c ceph: fix use-after-free on symlink traversal
   90ce58d457c2 usb: u132-hcd: fix resource leak
   fe71e625e23f x86/realmode: Don't leak the trampoline kernel address
   04cac1dce923 leds: trigger: netdev: fix refcnt leak on interface rename
   0018c21f34d6 usb: usb251xb: fix to avoid potential NULL pointer dereference
   4135e588274e scsi: qla4xxx: fix a potential NULL pointer dereference
   a2b302e4f2fb scsi: aacraid: Insure we don't access PCIe space during AER/EEH
   2c8c8ef8d3b4 scsi: mpt3sas: Fix kernel panic during expander reset
   6222f1c6ed97 ARM: davinci: fix build failure with allnoconfig
   5d545dde8d9d drm/meson: Uninstall IRQ handler
   efa69a66697c drm/meson: Fix invalid pointer in meson_drv_unbind()
   c87a5086d354 gpio: aspeed: fix a potential NULL pointer dereference
   c5eb9a424ebd drm: Fix drm_release() and device unplug
   11242181f52f net: ethernet: ti: fix possible object reference leak
   ae6e6bbc1741 net: ibm: fix possible object reference leak
   b9c8db41912f net: xilinx: fix possible object reference leak
   b989a3e9d260 NFS: Fix a typo in nfs_init_timeout_values()
   e0c34051669c drm/tegra: hub: Fix dereference before check
   abd76731f899 ARM: dts: imx6qdl: Fix typo in imx6qdl-icore-rqs.dtsi
   2b0e6d6bf088 net/sched: don't dereference a->goto_chain to read the chain index
   b435a79e5a87 net: macb: Add null check for PCLK and HCLK
   f85682bc594a staging: rtlwifi: Fix potential NULL pointer dereference of kzalloc
   c5750b45e406 staging: rtl8712: uninitialized memory in read_bbreg_hdl()
   5a5f1decd6fc staging: rtlwifi: rtl8822b: fix to avoid potential NULL pointer dereference
   d55bfd0746ae staging: rtl8188eu: Fix potential NULL pointer dereference of kcalloc
   bfa4cd06a902 net: ks8851: Set initial carrier state to down
   3796ab4828ed net: ks8851: Delay requesting IRQ until opened
   3005509f88e3 net: ks8851: Reassert reset pin if chip ID check fails
   fb6ca157d738 net: ks8851: Dequeue RX packets explicitly
   cdef35e83c3f i2c: i801: Add support for Intel Comet Lake
   c6694e7c8bf6 ARM: dts: pfla02: increase phy reset duration
   41be4abfb04d usb: gadget: net2272: Fix net2272_dequeue()
   edaebfe7721c usb: gadget: net2280: Fix net2280_dequeue()
   346eab0d1559 usb: gadget: net2280: Fix overrun of OUT messages
   710d4f29fe38 usb: dwc3: pci: add support for Comet Lake PCH ID
   e4705ae72736 KVM: arm/arm64: vgic-its: Take the srcu lock when parsing the memslots
   0371fa033741 KVM: arm/arm64: vgic-its: Take the srcu lock when writing to guest memory
   51a5d70a59ee KVM: arm64: Reset the PMU in preemptible context
   2ba0421f2b77 serial: ar933x_uart: Fix build failure with disabled console
   1d815c5a9434 sc16is7xx: missing unregister/delete driver on error in sc16is7xx_init()
   2cbb465e526a ARM: imx51: fix a leaked reference by adding missing of_node_put
   f67021192cc1 s390/qeth: fix race when initializing the IP address table
   e634fc48661f netfilter: ip6t_srh: fix NULL pointer dereferences
   506375f509b8 netfilter: fix NETFILTER_XT_TARGET_TEE dependencies
   a5374a3086d6 netfilter: bridge: set skb transport_header before entering NF_INET_PRE_ROUTING
   5f7e5b9bba19 netfilter: nft_set_rbtree: check for inactive element after flag mismatch
   2fbb4c48f138 staging, mt7621-pci: fix build without pci support
   99f1ba88d7f8 staging: axis-fifo: add CONFIG_OF dependency
   947bd0d9bdbc xsk: fix umem memory leak on cleanup
   fc055dffa575 qlcnic: Avoid potential NULL pointer dereference
   98650508a9d0 net: stmmac: don't set own bit too early for jumbo frames
   24a46cad0e18 ieee802154: hwsim: propagate genlmsg_reply return code
   f722b7789afa net: ieee802154: fix a potential NULL pointer dereference
   a1e34e289e15 s390: limit brk randomization to 32MB
   d52dfdf1845d ARM: dts: bcm283x: Fix hdmi hpd gpio pull
   0311ff82b70f fs: prevent page refcount overflow in pipe_buf_get
   d972ebbf42ba mm: prevent get_user_pages() from overflowing page refcount
   0612cae7ec6b mm: add 'try_get_page()' helper function
   9f6da5fd0557 mm: make page ref count overflow check tighter and more explicit
   99ae2bd0772f Revert "ACPICA: Clear status of GPEs before enabling them"
   145f6a70bb9b selinux: use kernel linux/socket.h for genheaders and mdp
   a03957ab0fd5 Linux 4.19.38
   5cb299c80651 powerpc/fsl: Add FSL_PPC_BOOK3E as supported arch for nospectre_v2 boot arg
   53db65232428 net/tls: don't leak IV and record seq when offload fails
   d3bdd359fa53 net/tls: avoid potential deadlock in tls_set_device_offload_rx()
   041b3224e8f8 net/mlx5e: Fix use-after-free after xdp_return_frame
   ae6b07107458 net/mlx5e: Fix the max MTU check in case of XDP
   b08774d38882 mlxsw: spectrum: Put MC TCs into DWRR mode
   21e47998d959 mlxsw: pci: Reincrease PCI reset timeout
   e875a409594b net: hns: Fix WARNING when hns modules installed
   7ce836e8a963 team: fix possible recursive locking when add slaves
   1f78e75e85bb stmmac: pci: Adjust IOT2000 matching
   e97f0bc7be88 net/tls: fix refcount adjustment in fallback
   b02f8aa85604 net: stmmac: move stmmac_check_ether_addr() to driver probe
   d7b10dfe6c31 net/rose: fix unbound loop in rose_loopback_timer()
   ed1866aa608a net: rds: exchange of 8K and 1M pool
   7da11d6a5d85 net/mlx5e: ethtool, Remove unsupported SFP EEPROM high pages query
   829fd9849e44 mlxsw: spectrum: Fix autoneg status in ethtool
   250e51f856e1 ipv4: set the tcp_min_rtt_wlen range from 0 to one day
   07445fea9575 ipv4: add sanity checks in ipv4_link_failure()
   d4ff57d0320b x86/fpu: Don't export __kernel_fpu_{begin,end}()
   423497a96d4a mm: Fix warning in insert_pfn()
   e923c6b70ce2 x86/retpolines: Disable switch jump tables when retpolines are enabled
   6cfcff3cfb0e x86, retpolines: Raise limit for generating indirect calls from switch-case
   e9e47779aaa7 Fix aio_poll() races
   aab66dfb757a aio: store event at final iocb_put()
   c20202c51d2b aio: keep io_event in aio_kiocb
   592ea630b081 aio: fold lookup_kiocb() into its sole caller
   c7f2525abfec pin iocb through aio.
   d6b2615f7d31 aio: simplify - and fix - fget/fput for io_submit()
   2afa01cd9186 aio: initialize kiocb private in case any filesystems expect it.
   a812f7b68a39 aio: abstract out io_event filler helper
   d384f8b855a5 aio: split out iocb copy from io_submit_one()
   4d677689742a aio: use iocb_put() instead of open coding it
   ef529eead8cf aio: don't zero entire aio_kiocb aio_get_req()
   730198c889d8 aio: separate out ring reservation from req allocation
   b3373253f0ba aio: use assigned completion handler
   9101cbe70ef6 aio: clear IOCB_HIPRI
   920ecc72093d rxrpc: fix race condition in rxrpc_input_packet()
   5a228d5ddca2 net/rds: Check address length before reading address family
   e30203e4f94d net: netrom: Fix error cleanup path of nr_proto_init
   a0cb0faa15f3 tipc: check link name with right length in tipc_nl_compat_link_set
   f21fae8049cd tipc: check bearer name with right length in tipc_nl_compat_bearer_enable
   9b9b0df4e788 fm10k: Fix a potential NULL pointer dereference
   f7dc13d6e4a2 netfilter: ebtables: CONFIG_COMPAT: drop a bogus WARN_ON
   94ad68a6e570 NFS: Forbid setting AF_INET6 to "struct sockaddr_in"->sin_family.
   245a94a0ffab sched/deadline: Correctly handle active 0-lag timers
   6bf7d3c5c0c5 binder: fix handling of misaligned binder object
   8c37f7c23c02 workqueue: Try to catch flush_work() without INIT_WORK().
   4d476a00b3f9 fs/proc/proc_sysctl.c: Fix a NULL pointer dereference
   bce00f419c9d intel_th: gth: Fix an off-by-one in output unassigning
   9c8c39bae89a slip: make slhc_free() silently accept an error pointer
   f41d2de67101 USB: Consolidate LPM checks to avoid enabling LPM twice
   50cda8891818 USB: Add new USB LPM helpers
   8c700e902ceb drm/vc4: Fix compilation error reported by kbuild test bot
   2bc7ce32eb21 Revert "drm/i915/fbdev: Actually configure untiled displays"
   2c892ef09435 drm/vc4: Fix memory leak during gpu reset.
   087341c0f40d powerpc/mm/radix: Make Radix require HUGETLB_PAGE
   478afe341d29 ARM: 8857/1: efi: enable CP15 DMB instructions before cleaning the cache
   129c337c6659 dmaengine: sh: rcar-dmac: Fix glitch in dmaengine_tx_status
   0f00e1c599b3 dmaengine: sh: rcar-dmac: With cyclic DMA residue 0 is valid
   f7b467ad1be0 vfio/type1: Limit DMA mappings per container
   ac9e2bece112 Input: synaptics-rmi4 - write config register values to the right offset
   37ecf31a3e5e perf/x86/intel: Update KBL Package C-state events to also include PC8/PC9/PC10 counters
   c0309570a5f1 sunrpc: don't mark uninitialised items as VALID.
   b4d4b5e4b839 nfsd: Don't release the callback slot unless it was actually held
   950eec812600 ceph: fix ci->i_head_snapc leak
   246d2bf32da1 ceph: ensure d_name stability in ceph_dentry_hash()
   8d693ef0141c ceph: only use d_name directly when parent is locked
   9b8c07129ddf sched/numa: Fix a possible divide-by-zero
   1af34bf97eca RDMA/mlx5: Do not allow the user to write to the clock page
   8ac57d1bdc25 IB/rdmavt: Fix frwr memory registration
   d0264d10ae6a trace: Fix preempt_enable_no_resched() abuse
   7f9c9d1d79fd MIPS: scall64-o32: Fix indirect syscall number load
   ce900ddd660d lib/Kconfig.debug: fix build error without CONFIG_BLOCK
   710733e539d1 zram: pass down the bvec we need to read into in the work struct
   a19e4a1b4c63 gpio: eic: sprd: Fix incorrect irq type setting for the sync EIC
   cffeb9c84d20 tracing: Fix buffer_ref pipe ops
   0e78e92da2d8 tracing: Fix a memory leak by early error exit in trace_pid_write()
   ee231063ff95 cifs: do not attempt cifs operation on smb2+ rename error
   d5bf783a09a0 cifs: fix memory leak in SMB2_read
   15e978391577 net: dsa: mv88e6xxx: add call to mv88e6xxx_ports_cmode_init to probe for new DSA framework
   984c4e00c387 ALSA: hda/ca0132 - Fix build error without CONFIG_PCI
   1e0cab1bce57 powerpc/vdso32: fix CLOCK_MONOTONIC on PPC64
   ae5e0c773ca6 ipvs: fix warning on unused variable
   8e59639791f2 vsock/virtio: fix kernel panic from virtio_transport_reset_no_sock
   416699b9bb90 drm/rockchip: fix for mailbox read validation.
   1832b1517c2b loop: do not print warn message if partition scan is successful
   070e34b627f4 tipc: handle the err returned from cmd header function
   8766cc7d0d1d ext4: fix some error pointer dereferences
   816e3e2258e8 net: mvpp2: fix validate for PPv2.1
   e7ddd6af17e4 net/ibmvnic: Fix RTNL deadlock during device reset
   ffc1d85e8c5f netfilter: nf_tables: bogus EBUSY in helper removal from transaction
   e313d5da057b netfilter: nf_tables: bogus EBUSY when deleting set after flush
   25ddad73070c netfilter: nf_tables: fix set double-free in abort path
   8906234c5015 netfilter: nft_compat: use .release_ops and remove list of extension
   4f67e8976f7b netfilter: nft_compat: don't use refcount_inc on newly allocated entry
   af26f3e2903b netfilter: nf_tables: unbind set in rule from commit path
   27458b5457d3 netfilter: nf_tables: warn when expr implements only one of activate/deactivate
   cb2e343d1d85 netfilter: nft_compat: destroy function must not have side effects
   3dbba8ebb066 netfilter: nf_tables: split set destruction in deactivate and destroy phase
   7693bae6b314 netfilter: nft_compat: make lists per netns
   db99f122cbf8 netfilter: nft_compat: use refcnt_t type for nft_xt reference count
   19bb613acb9a Linux 4.19.37
   cdd369fe0f98 kernel/sysctl.c: fix out-of-bounds access when setting file-max
   ac54bc121e1f Revert "locking/lockdep: Add debug_locks check in __lock_downgrade()"
   9c1862566176 i2c-hid: properly terminate i2c_hid_dmi_desc_override_table[] array
   52dde1160f17 ASoC: rockchip: add missing INTERLEAVED PCM attribute
   a782f8475715 tools include: Adopt linux/bits.h
   6580376fe810 percpu: stop printing kernel addresses
   8a6f2ea0c3dd ALSA: info: Fix racy addition/deletion of nodes
   1343fd8f9629 mm/vmstat.c: fix /proc/vmstat format for CONFIG_DEBUG_TLBFLUSH=y CONFIG_SMP=n
   628c99a836dd device_cgroup: fix RCU imbalance in error case
   c3edd427d538 sched/fair: Limit sched_cfs_period_timer() loop to avoid hard lockup
   c21bcc2352e9 Revert "kbuild: use -Oz instead of -Os when using clang"
   1c36862e8be8 tpm: Fix the type of the return value in calc_tpm2_event_size()
   18af9b7b9138 tpm/tpm_i2c_atmel: Return -E2BIG when the transfer is incomplete
   7de43cb71116 modpost: file2alias: check prototype of handler
   aa0e8cc9d7a8 modpost: file2alias: go back to simple devtable lookup
   87eadc0b8c2a mmc: sdhci: Handle auto-command errors
   ba8a6c055677 mmc: sdhci: Rename SDHCI_ACMD12_ERR and SDHCI_INT_ACMD12ERR
   b2be40b73b29 mmc: sdhci: Fix data command CRC error handling
   be608583d9c4 nfit/ars: Avoid stale ARS results
   40221d56ae28 nfit/ars: Allow root to busy-poll the ARS state machine
   bc18c2593635 nfit/ars: Introduce scrub_flags
   82a13a006ed5 nfit/ars: Remove ars_start_flags
   cd37fd46b485 timers/sched_clock: Prevent generic sched_clock wrap caused by tick_freeze()
   5680b0635cda x86/speculation: Prevent deadlock on ssb_state::lock
   90e17512f1e4 perf/x86: Fix incorrect PEBS_REGS
   293926b37013 x86/cpu/bugs: Use __initconst for 'const' init data
   f45829e6250a perf/x86/amd: Add event map for AMD Family 17h
   ba407222f563 drm/amdgpu/gmc9: fix VM_L2_CNTL3 programming
   39cad03c4360 mac80211: do not call driver wake_tx_queue op during reconfig
   852de0d53d14 rt2x00: do not increment sequence number while re-transmitting
   23a926e5edd9 kprobes: Fix error check when reusing optimized probes
   426e2a8024c2 kprobes: Mark ftrace mcount handler functions nokprobe
   1fab567a270b x86/kprobes: Verify stack frame on kretprobe
   5105fc758bdc arm64: futex: Restore oldval initialization to work around buggy compilers
   96800ba9e565 drm/ttm: fix out-of-bounds read in ttm_put_pages() v2
   fbe5cff93229 crypto: x86/poly1305 - fix overflow during partial reduction
   dacdbc115d23 ipmi: fix sleep-in-atomic in free_user at cleanup SRCU user->release_barrier
   6ff17bc5936e coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping
   3e1b3e4d3c83 Revert "svm: Fix AVIC incomplete IPI emulation"
   ee4b8e266229 Revert "scsi: fcoe: clear FC_RP_STARTED flags when receiving a LOGO"
   1aa2682d0a98 scsi: core: set result when the command cannot be dispatched
   8f2ef0e8f967 vt: fix cursor when clearing the screen
   38b7f09a9e83 serial: sh-sci: Fix HSCIF RX sampling point calculation
   de6d6b8902fb serial: sh-sci: Fix HSCIF RX sampling point adjustment
   ec96f65e1214 Input: elan_i2c - add hardware ID for multiple Lenovo laptops
   b50e435df2d8 ALSA: core: Fix card races between register and disconnect
   4171b6ee9328 ALSA: hda/realtek - add two more pin configuration sets to quirk table
   4e78a1fb8d1d staging: comedi: ni_usb6501: Fix possible double-free of ->usb_rx_buf
   09f9bacae118 staging: comedi: ni_usb6501: Fix use of uninitialized mutex
   edf2f548baa9 staging: comedi: vmk80xx: Fix possible double-free of ->usb_rx_buf
   1f01a970b8c2 staging: comedi: vmk80xx: Fix use of uninitialized semaphore
   a1da981f6643 staging: most: core: use device description as name
   b007c64d860f io: accel: kxcjk1013: restore the range after resume.
   bbe0bed4647c iio: core: fix a possible circular locking dependency
   98171e1947b6 iio: adc: at91: disable adc channel interrupt in timeout case
   36971130bb2f iio: Fix scan mask selection
   0e47edde9132 iio: dac: mcp4725: add missing powerdown bits in store eeprom
   5ad173ea6c3a iio: ad_sigma_delta: select channel when reading register
   42eae0cff22a iio: cros_ec: Fix the maths for gyro scale calculation
   adfb0f0b17a3 iio:chemical:bme680: Fix SPI read interface
   a3117576a73f iio:chemical:bme680: Fix, report temperature in millidegrees
   f7ee6890caa5 iio/gyro/bmg160: Use millidegrees for temperature scale
   8bd3fd46ec23 iio: gyro: mpu3050: fix chip ID reading
   6f3e66b155f0 staging: iio: ad7192: Fix ad7193 channel address
   c54d1258c637 Staging: iio: meter: fixed typo
   c9e34935a351 KVM: x86: svm: make sure NMI is injected after nmi_singlestep
   18cf09a81771 KVM: x86: Don't clear EFER during SMM transitions for 32-bit vCPU
   2fcee5eaae6e cifs: fix handle leak in smb2_query_symlink()
   c69330a855ab cifs: Fix use-after-free in SMB2_read
   8fb89b43b65f cifs: Fix use-after-free in SMB2_write
   8092ecc306d8 CIFS: keep FileInfo handle live during oplock break
   6e2081f29392 net: IP6 defrag: use rbtrees in nf_conntrack_reasm.c
   684685326ab0 net: IP6 defrag: use rbtrees for IPv6 defrag
   702ddf862d9d net: IP defrag: encapsulate rbtree defrag code into callable functions
   e24be8e38cd7 sch_cake: Simplify logic in cake_select_tin()
   8d9051a4680a nfp: flower: remove vlan CFI bit from push vlan action
   06f7d2182f9d nfp: flower: replace CFI with vlan present
   cbce0413f783 sch_cake: Make sure we can write the IP header before changing DSCP bits
   490532225e20 sch_cake: Use tc_skb_protocol() helper for getting packet protocol
   5f72cb2ab51d route: Avoid crash from dereferencing NULL rt->from
   1d2499b08600 net/mlx5: FPGA, tls, idr remove on flow delete
   785833b9eee0 net/tls: prevent bad memory access in tls_is_sk_tx_device_offloaded()
   7cfddb81a817 net/mlx5: FPGA, tls, hold rcu read lock a bit longer
   d1785bea2f34 net: thunderx: don't allow jumbo frames with XDP
   9de22b997fe4 net: thunderx: raise XDP MTU to 1508
   7ba5ec69e1a7 ipv4: ensure rcu_read_lock() in ipv4_link_failure()
   8a430e56a648 ipv4: recompile ip options in ipv4_link_failure
   b82df42059fb vhost: reject zero size iova range
   242e5746cb47 tipc: missing entries in name table of publications
   a60a47206a31 team: set slave to promisc if team is already in promisc mode
   6728c6174a47 tcp: tcp_grow_window() needs to respect tcp_space()
   1cd878836822 net: fou: do not use guehdr after iptunnel_pull_offloads in gue_udp_recv
   2804598764f9 net: Fix missing meta data in skb with vlan packet
   97fd88e04c8d net: bridge: multicast: use rcu to access port list from br_multicast_start_querier
   08b0b4f28008 net: bridge: fix per-port af_packet sockets
   bcb964012d1b net: atm: Fix potential Spectre v1 vulnerabilities
   fae6053d7611 failover: allow name change on IFF_UP slave interfaces
   2a458eddc4c2 bonding: fix event handling for stacked bonds
   c98875d930e9 Linux 4.19.36
   0c00f71e7d7c appletalk: Fix compile regression
   9e91db59e3b9 mm: hide incomplete nr_indirectly_reclaimable in sysfs
   d49dea545af4 mm: hide incomplete nr_indirectly_reclaimable in /proc/zoneinfo
   7a4626798276 IB/hfi1: Failed to drain send queue when QP is put into error state
   e8eef7ad9841 bpf: fix use after free in bpf_evict_inode
   40c6d718d78c include/linux/swap.h: use offsetof() instead of custom __swapoffset macro
   48b0309f85ae f2fs: fix to dirty inode for i_mode recovery
   11582064271d rxrpc: Fix client call connect/disconnect race
   a7e90c1892d9 lib/div64.c: off by one in shift
   6c42507f426b appletalk: Fix use-after-free in atalk_proc_exit
   539282e9cd9b drm/amdkfd: use init_mqd function to allocate object for hid_mqd (CI)
   91583411b5d1 ARM: 8839/1: kprobe: make patch_lock a raw_spinlock_t
   1b871f39097a drm/nouveau/volt/gf117: fix speedo readout register
   ad854fa3c8dc PCI: Blacklist power management of Gigabyte X299 DESIGNARE EX PCIe ports
   4984d918cd46 coresight: cpu-debug: Support for CA73 CPUs
   2a3c322d46e0 Revert "ACPI / EC: Remove old CLEAR_ON_RESUME quirk"
   5f516d0ba082 crypto: axis - fix for recursive locking from bottom half
   862adb5b0da6 drm/panel: panel-innolux: set display off in innolux_panel_unprepare
   2be8987a076f lkdtm: Add tests for NULL pointer dereference
   55588aebde38 lkdtm: Print real addresses
   8387c1455d34 soc/tegra: pmc: Drop locking from tegra_powergate_is_powered()
   29b934dd5fa0 scsi: core: Avoid that system resume triggers a kernel warning
   38855a84d891 iommu/dmar: Fix buffer overflow during PCI bus notification
   8c5e9ea11730 net: ip6_gre: fix possible NULL pointer dereference in ip6erspan_set_version
   d7a90ee5aadd crypto: sha512/arm - fix crash bug in Thumb2 build
   1f52fa127898 crypto: sha256/arm - fix crash bug in Thumb2 build
   bbbe47463da9 xfrm: destroy xfrm_state synchronously on net exit path
   5be4bb315de2 net/rds: fix warn in rds_message_alloc_sgs
   d801282dfd2a ACPI: EC / PM: Disable non-wakeup GPEs for suspend-to-idle
   e434fbf4f049 ALSA: hda: fix front speakers on Huawei MBXP
   b10cc0837472 drm/ttm: Fix bo_global and mem_global kfree error
   cb09e99b9ad3 platform/x86: Add Intel AtomISP2 dummy / power-management driver
   491dee743d6b kernel: hung_task.c: disable on suspend
   e9603cffb1ca cifs: fallback to older infolevels on findfirst queryinfo retry
   fc34758d4af6 net: stmmac: Set OWN bit for jumbo frames
   8722566b7870 f2fs: cleanup dirty pages if recover failed
   263ed7e66b17 netfilter: nf_flow_table: remove flowtable hook flush routine in netns exit routine
   19e6ff0146ef compiler.h: update definition of unreachable()
   f35e2a685c81 KVM: nVMX: restore host state in nested_vmx_vmexit for VMFail
   3d11fc93aa28 HID: usbhid: Add quirk for Redragon/Dragonrise Seymur 2
   1424b7fefd6b ACPI / SBS: Fix GPE storm on recent MacBookPro's
   0d41c7b3860e usbip: fix vhci_hcd controller counting
   360186d8ab02 ARM: samsung: Limit SAMSUNG_PM_CHECK config option to non-Exynos platforms
   1475ce4ff957 pinctrl: core: make sure strcmp() doesn't get a null parameter
   8e271100efa6 HID: i2c-hid: override HID descriptors for certain devices
   09b6c08061bb Bluetooth: Fix debugfs NULL pointer dereference
   6496b9636f74 media: au0828: cannot kfree dev before usb disconnect
   6947d853be19 powerpc/pseries: Remove prrn_work workqueue
   7863304bc00f serial: uartps: console_setup() can't be placed to init section
   1f2b1c6ab353 netfilter: xt_cgroup: shrink size of v2 path
   14b183214c08 f2fs: fix to do sanity check with current segment number
   7fcce1828e5f ASoC: Fix UBSAN warning at snd_soc_get/put_volsw_sx()
   4369f8a38085 9p locks: add mount option for lock retry interval
   db77c7890ed7 9p: do not trust pdu content for stat item size
   f9368366b4d1 f2fs: fix to avoid NULL pointer dereference on se->discard_map
   de1fd69b6541 rsi: improve kernel thread handling to fix kernel panic
   93b7c722637c gpio: pxa: handle corner case of unprobed device
   13cc3e6b2a18 drm/cirrus: Use drm_framebuffer_put to avoid kernel oops in clean-up
   6fd66bec6d6a ext4: prohibit fstrim in norecovery mode
   83e3e89d6639 x86/gart: Exclude GART aperture from kcore
   40276e4e2fd0 fix incorrect error code mapping for OBJECTID_NOT_FOUND
   777cd2681b2d x86/hw_breakpoints: Make default case in hw_breakpoint_arch_parse() return an error
   cff04fad89b9 iommu/vt-d: Check capability before disabling protected memory
   181117a1b4f3 drm/nouveau/debugfs: Fix check of pm_runtime_get_sync failure
   276084f0e017 x86/cpu/cyrix: Use correct macros for Cyrix calls on Geode processors
   16dab2916615 x86/hyperv: Prevent potential NULL pointer dereference
   30d9b740e201 x86/hpet: Prevent potential NULL pointer dereference
   ac0343a48e7e irqchip/mbigen: Don't clear eventid when freeing an MSI
   f3c3b0f1fae5 irqchip/stm32: Don't clear rising/falling config registers at init
   41b1234677bd drm/exynos/mixer: fix MIXER shadow registry synchronisation code
   bde271d1ad0e blk-iolatency: #include "blk.h"
   b63df738ce7d PM / Domains: Avoid a potential deadlock
   19302c51c043 ACPI / utils: Drop reference in test for device presence
   00059edd3121 perf tests: Fix a memory leak in test__perf_evsel__tp_sched_test()
   2c843ae984a8 perf tests: Fix memory leak by expr__find_other() in test__expr()
   a077618a3af8 perf tests: Fix a memory leak of cpu_map object in the openat_syscall_event_on_all_cpus test
   cf050670d092 perf evsel: Free evsel->counts in perf_evsel__exit()
   28848061d882 perf hist: Add missing map__put() in error case
   bb644ded9e6d perf top: Fix error handling in cmd_top()
   df894a047f37 perf build-id: Fix memory leak in print_sdt_events()
   871aa38e9525 perf config: Fix a memory leak in collect_config()
   9007d724cb08 perf config: Fix an error in the config template documentation
   93d449bd6552 perf list: Don't forget to drop the reference to the allocated thread_map
   c5d9104281b9 tools/power turbostat: return the exit status of a command
   ada35b525486 x86/mm: Don't leak kernel addresses
   52466ab20393 sched/core: Fix buffer overflow in cgroup2 property cpu.max
   a8c1de3ab8b6 sched/cpufreq: Fix 32-bit math overflow
   a629c32ac2d1 scsi: iscsi: flush running unbind operations when removing a session
   5b67d518eaaf thermal/intel_powerclamp: fix truncated kthread name
   193dd213bebd thermal/int340x_thermal: fix mode setting
   10313672b3f0 thermal/int340x_thermal: Add additional UUIDs
   c5161c689e81 thermal: bcm2835: Fix crash in bcm2835_thermal_debugfs
   8fd403fc2a8e thermal: samsung: Fix incorrect check after code merge
   0644ee713c00 thermal/intel_powerclamp: fix __percpu declaration of worker_data
   a803600c5b90 ALSA: opl3: fix mismatch between snd_opl3_drum_switch definition and declaration
   94a6f47a5ecb mmc: davinci: remove extraneous __init annotation
   f596ad9ea8a4 i40iw: Avoid panic when handling the inetdev event
   74ed2226e65a IB/mlx4: Fix race condition between catas error reset and aliasguid flows
   5e4dc4b6fc10 drm/udl: use drm_gem_object_put_unlocked.
   cbba1f554b4f auxdisplay: hd44780: Fix memory leak on ->remove()
   317e716a8ad9 ALSA: sb8: add a check for request_region
   17829309ec00 ALSA: echoaudio: add a check for ioremap_nocache
   a793860c0f52 ext4: report real fs size after failed resize
   f5a94fd3b375 ext4: add missing brelse() in add_new_gdb_meta_bg()
   90a1327e4ed3 ext4: avoid panic during forced reboot
   673e23ce80a6 perf/core: Restore mmap record type correctly
   ca306c17d2ed inotify: Fix fsnotify_mark refcount leak in inotify_update_existing_watch()
   618490ba5841 arc: hsdk_defconfig: Enable CONFIG_BLK_DEV_RAM
   2296eedef0c5 ARC: u-boot args: check that magic number is correct
   4b0e041c9dad Linux 4.19.35
   59bf185ae6b7 KVM: x86: nVMX: fix x2APIC VTPR read intercept
   119031be7b0a KVM: x86: nVMX: close leak of L0's x2APIC MSRs (CVE-2019-3887)
   f8053df634d4 ACPICA: AML interpreter: add region addresses in global list during initialization
   fad502a9439e arm64: dts: rockchip: Fix vcc_host1_5v GPIO polarity on rk3328-rock64
   c963475972f6 arm64: dts: rockchip: fix vcc_host1_5v pin assign on rk3328-rock64
   aa9ee4b1ed46 dm integrity: fix deadlock with overlapping I/O
   469b40a429c5 dm table: propagate BDI_CAP_STABLE_WRITES to fix sporadic checksum errors
   4f5c99e0421c dm: revert 8f50e358153d ("dm: limit the max bio size as BIO_MAX_PAGES * PAGE_SIZE")
   30dc4d7b299d dm integrity: change memcmp to strncmp in dm_integrity_ctr
   5be6e02cfbdf PCI: pciehp: Ignore Link State Changes after powering off a slot
   250fef8de77c PCI: Add function 1 DMA alias quirk for Marvell 9170 SATA controller
   056264656a67 x86/perf/amd: Remove need to check "running" bit in NMI handler
   23d39b0af08e x86/perf/amd: Resolve NMI latency issues for active PMCs
   e5a791b4ab56 x86/perf/amd: Resolve race condition when disabling PMC
   4b004504bfcc x86/asm: Use stricter assembly constraints in bitops
   356ae4deab4b x86/asm: Remove dead __GNUC__ conditionals
   f7b778b9007e xtensa: fix return_address
   cb75a0c5d381 sched/fair: Do not re-read ->h_load_next during hierarchical load calculation
   ed3adb562fc8 xen: Prevent buffer overflow in privcmd ioctl
   84c6c2af4c53 arm64: backtrace: Don't bother trying to unwind the userspace stack
   1ec54cee6333 arm64: dts: rockchip: fix rk3328 rgmii high tx error rate
   82a30a5d60e3 arm64: futex: Fix FUTEX_WAKE_OP atomic ops with non-zero result value
   4362ff977bc6 ARM: dts: at91: Fix typo in ISC_D0 on PC9
   627a7d5a4422 ARM: dts: am335x-evm: Correct the regulators for the audio codec
   57a9c1f40f5b ARM: dts: am335x-evmsk: Correct the regulators for the audio codec
   3ba48b3cf850 ARM: dts: rockchip: fix rk3288 cpu opp node reference
   32fdac09765d virtio: Honour 'may_reduce_num' in vring_create_virtqueue
   8b4f68b47448 genirq: Initialize request_mutex if CONFIG_SPARSE_IRQ=n
   cd5b06a93997 genirq: Respect IRQCHIP_SKIP_SET_WAKE in irq_chip_set_wake_parent()
   543bb48dc48b block: fix the return errno for direct IO
   2591bfc68282 block: do not leak memory in bio_copy_user_iov()
   7af20b60f6db riscv: Fix syscall_get_arguments() and syscall_set_arguments()
   54fb5c9da6cd btrfs: prop: fix vanished compression property after failed set
   fbfbb996d58e btrfs: prop: fix zstd compression parameter validation
   16515acd5bc3 Btrfs: do not allow trimming when a fs is mounted with the nologreplay option
   e6265e368022 ASoC: fsl_esai: fix channel swap issue when stream starts
   19b0a7f5a083 ASoC: intel: Fix crash at suspend/resume after failed codec registration
   43f47331a4ce mm: writeback: use exact memcg dirty counts
   576f22ac47ba include/linux/bitrev.h: fix constant bitrev
   c4f103f6ac3a kvm: svm: fix potential get_num_contig_pages overflow
   93d60348edcb drm/udl: add a release method and delay modeset teardown
   df4106f23d0b drm/i915/gvt: do not deliver a workload if its creation fails
   a5277bcc1b7d alarmtimer: Return correct remaining time
   5db86e2a9b36 parisc: also set iaoq_b in instruction_pointer_set()
   53bb8444eab2 parisc: regs_return_value() should return gpr28
   41cf8111f3cb parisc: Detect QEMU earlier in boot process
   ba5765a243ed arm64: dts: rockchip: fix rk3328 sdmmc0 write errors
   9a62d69114d7 mm/huge_memory.c: fix modifying of page protection by insert_pfn_pmd()
   b3a8a3728d7e ALSA: hda - Add two more machines to the power_save_blacklist
   bfea74941d6d ALSA: hda/realtek - Add quirk for Tuxedo XC 1509
   c6d25f0b3653 ALSA: hda/realtek: Enable headset MIC of Acer TravelMate B114-21 with ALC233
   73b50a56e51e ALSA: seq: Fix OOB-reads from strlcpy
   d4b4aeea5506 ACPICA: Namespace: remove address node from global list after method termination
   ed52b07bd698 ACPICA: Clear status of GPEs before enabling them
   370004024aec hwmon: (w83773g) Select REGMAP_I2C to fix build error
   4ebab60d6561 tty: ldisc: add sysctl to prevent autoloading of ldiscs
   894dc8495898 tty: mark Siemens R3964 line discipline as BROKEN
   902eaef7781c arm64: kaslr: Reserve size of ARM64_MEMSTART_ALIGN in linear region
   40177a7931e0 netfilter: nfnetlink_cttimeout: fetch timeouts for udplite and gre, too
   c2d27b330a98 netfilter: nfnetlink_cttimeout: pass default timeout policy to obj_to_nlattr
   564f0391b783 Revert "clk: meson: clean-up clock registration"
   3412671a781b lib/string.c: implement a basic bcmp
   c7415f2a3ad6 x86/vdso: Drop implicit common-page-size linker flag
   f66a52d991de kbuild: clang: choose GCC_TOOLCHAIN_DIR not on LD
   23605a4664ae kbuild: deb-pkg: fix bindeb-pkg breakage when O= is used
   da9b353c78b8 net/mlx5e: Update xon formula
   e2d92a74a353 net/mlx5e: Update xoff formula
   eab86503fec0 net: mlx5: Add a missing check on idr_find, free buf
   b787544dc5e7 r8169: disable default rx interrupt coalescing on RTL8168
   55a7f7b20c40 net: core: netif_receive_skb_list: unlist skb before passing to pt->func
   a2ef7723a13c net: ip6_gre: fix possible use-after-free in ip6erspan_rcv
   5c6f2f4c0e9f net: ip_gre: fix possible use-after-free in erspan_rcv
   ecee513a5273 bnxt_en: Reset device on RX buffer errors.
   d2d055a55403 bnxt_en: Improve RX consumer index validity check.
   a333fcc41075 nfp: disable netpoll on representors
   81da1314596c nfp: validate the return code from dev_queue_xmit()
   c297e8814578 net/mlx5e: Add a lock on tir list
   9441317513b7 net/mlx5e: Fix error handling when refreshing TIRs
   0516ef27ddba vrf: check accept_source_route on the original netdevice
   7243e3520956 tcp: fix a potential NULL pointer dereference in tcp_sk_exit
   0e0afb06e11c tcp: Ensure DCTCP reacts to losses
   87349583e517 sctp: initialize _pad of sockaddr_in before copying to user memory
   1e4a7e7869ac r8169: disable ASPM again
   84dc2f872d2d qmi_wwan: add Olicard 600
   ec0e32da41a6 openvswitch: fix flow actions reallocation
   eeedfa94c195 net/sched: fix ->get helper of the matchall cls
   15c0770e2e83 net/sched: act_sample: fix divide by zero in the traffic path
   78b4bf26a8a7 net: rds: force to destroy connection if t_sock is NULL in rds_tcp_kill_sock().
   a1c2f3229734 netns: provide pure entropy for net_hash_mix()
   53a1906859a2 net/mlx5: Decrease default mr cache size
   b87ec81362ac net-gro: Fix GRO flush when receiving a GSO packet.
   80c205813d3f net: ethtool: not call vzalloc for zero sized memory request
   b7b058315577 kcm: switch order of device registration to fix a crash
   42f1fa0fcf55 ipv6: sit: reset ip header pointer in ipip6_rcv
   ea06796f8857 ipv6: Fix dangling pointer when ipv6 fragment
   8e4b4da3d3d9 ip6_tunnel: Match to ARPHRD_TUNNEL6 for dev type
   167019572ca8 ibmvnic: Fix completion structure initialization
   9a7c4f5acc0e hv_netvsc: Fix unwanted wakeup after tx_disable
   902eca1a0ccf powerpc/tm: Limit TM code inside PPC_TRANSACTIONAL_MEM
   8ad895bf4b8b drm/i915/gvt: do not let pin count of shadow mm go negative
   646f8e01fc37 kvm: nVMX: NMI-window and interrupt-window exiting should wake L2 from HLT

(From OE-Core rev: 554970c74c3dc7fd11385076e75350be8afe339f)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 15:36:20 +01:00
Bruce Ashfield
ccf9258eb3 linux-yocto/5.0: update to v5.0.13
Integrating the korg stable commits that comprise the following
changes:

   e5b9547b1aa3 Linux 5.0.13
   d467f3acebc5 ath10k: Drop WARN_ON()s that always trigger during system resume
   3c13f6cd254d iwlwifi: mvm: properly check debugfs dentry before using it
   c391e6198768 ALSA: line6: use dynamic buffers
   4c38bd0d4cd6 KVM: nVMX: Fix size checks in vmx_set_nested_state
   119ac69c0772 KVM: x86: Whitelist port 0x7e for pre-incrementing %rip
   a31a8f55c8e8 net/tls: fix copy to fragments in reencrypt
   f7f4d4b85b83 net/tls: don't copy negative amounts of data in reencrypt
   126255f1ef2b bnxt_en: Fix uninitialized variable usage in bnxt_rx_pkt().
   95fc8b4b4367 bnxt_en: Fix statistics context reservation logic.
   1c38ed7b5ef6 bnxt_en: Pass correct extended TX port statistics size to firmware.
   4348cae3a6e1 bnxt_en: Fix possible crash in bnxt_hwrm_ring_free() under error conditions.
   76dba4d8d0db bnxt_en: Free short FW command HWRM memory in error path in bnxt_init_one()
   4aaaa658466a bnxt_en: Improve multicast address setup logic.
   7a0d81d12f62 udp: fix GRO packet of death
   8858d7234542 udp: fix GRO reception in case of length mismatch
   b58d12d306ae tcp: add sanity tests in tcp_add_backlog()
   4d5aaae5fa0e selftests: fib_rule_tests: Fix icmp proto with ipv6
   3362ece2719c packet: in recvmsg msg_name return at least sizeof sockaddr_ll
   3a0701b8d93a packet: validate msg_namelen in send directly
   02694885a2be selftests: fib_rule_tests: print the result and return 1 if any tests failed
   484d404fdc2a sctp: avoid running the sctp state machine recursively
   f8970584f08c rxrpc: Fix net namespace cleanup
   90cb17d3df6f net/tls: avoid NULL pointer deref on nskb->sk in fallback
   52c89e455b5c net: phy: marvell: Fix buffer overrun with stats counters
   801038cca48c net: dsa: bcm_sf2: fix buffer overflow doing set_rxnfc
   31f4cb2730d8 l2tp: use rcu_dereference_sk_user_data() in l2tp_udp_encap_recv()
   f86adc57e7db l2ip: fix possible use-after-free
   d1fa4f8784bb ipv6: invert flowlabel sharing check in process and user mode
   787a77cccb18 ipv6/flowlabel: wait rcu grace period before put_pid()
   d0aa794674e5 ipv6: fix races in ip6_dst_destroy()
   c61a4beb31f0 ipv6: A few fixes on dereferencing rt->from
   5a06ba5ed2ae ipv4: ip_do_fragment: Preserve skb_iif during fragmentation
   6006d5b02522 Linux 5.0.12
   310f9b1e52c0 leds: trigger: netdev: use memcpy in device_name_store
   004ec01370bc leds: pca9532: fix a potential NULL pointer dereference
   107cfb99c81f ptrace: take into account saved_sigmask in PTRACE{GET,SET}SIGMASK
   87eaf3d8ac51 kasan: fix variable 'tag' set but not used warning
   514860ee6633 iommu/amd: Reserve exclusion range in iova-domain
   8bd7d23a4a76 kconfig/[mn]conf: handle backspace (^H) key
   44fe72aeaae8 perf machine: Update kernel map address and re-order properly
   441d23c87644 perf cs-etm: Add missing case value
   b8bc52cd62e8 nvmet: fix error flow during ns enable
   163719bdcd9c nvmet: fix building bvec from sg list
   2e7d5b2e1fa0 nvme-multipath: relax ANA state check
   a72f60dbb557 gpio: of: Fix of_gpiochip_add() error path
   41a94b1909a4 KVM: selftests: complete IO before migrating guest state
   a312d0eaf90d KVM: selftests: disable stack protector for all KVM tests
   77507936fea3 KVM: selftests: explicitly disable PIE for tests
   e478d1c9b585 KVM: selftests: assert on exit reason in CR4/cpuid sync test
   02a7fc6c77d5 x86/kvm/hyper-v: avoid spurious pending stimer on vCPU init
   e10edda577cc kvm/x86: Move MSR_IA32_ARCH_CAPABILITIES to array emulated_msrs
   3d714ded80f6 KVM: SVM: Workaround errata#1096 (insn_len maybe zero on SMAP violation)
   5369433777ec KVM: nVMX: Do not inherit quadrant and invalid for the root shadow EPT
   e8b8dde69f81 gpio: of: Check for "spi-cs-high" in child instead of parent node
   0e48494c0edf gpio: of: Check propname before applying "cs-gpios" quirks
   fb853a4a7748 afs: Fix StoreData op marshalling
   c6d02b1ea4d7 kbuild: skip parsing pre sub-make code for recursion
   479e1afd232e libata: fix using DMA buffers on stack
   8d3c7282cec4 x86/mm: Don't exceed the valid physical address space
   ab4a5df699b5 scsi: zfcp: reduce flood of fcrscn1 trace records on multi-element RSCN
   b0921da055f1 ceph: fix use-after-free on symlink traversal
   1ab2566c5329 usb: u132-hcd: fix resource leak
   4f5d11bf2eca x86/realmode: Don't leak the trampoline kernel address
   89ae17728a98 SUNRPC: fix uninitialized variable warning
   ec44e4273006 leds: trigger: netdev: fix refcnt leak on interface rename
   facfcac8357d usb: usb251xb: fix to avoid potential NULL pointer dereference
   3ce3290dee84 scsi: qla4xxx: fix a potential NULL pointer dereference
   ab602d0043a4 scsi: aacraid: Insure we don't access PCIe space during AER/EEH
   9a5795520b91 scsi: mpt3sas: Fix kernel panic during expander reset
   08dd1acccb43 staging: vc04_services: Fix an error code in vchiq_probe()
   b2814ce32d47 sbitmap: order READ/WRITE freed instance and setting clear bit
   44a7849ecbd2 ARM: davinci: fix build failure with allnoconfig
   e24c5428060f drm/meson: Uninstall IRQ handler
   da9c64dc934a drm/meson: Fix invalid pointer in meson_drv_unbind()
   55a5c46268ff gpio: aspeed: fix a potential NULL pointer dereference
   e9917fd844ec drm: Fix drm_release() and device unplug
   c4cdbd4075a6 net: ethernet: ti: fix possible object reference leak
   6e4f7c129b24 net: ibm: fix possible object reference leak
   3da122192cde net: xilinx: fix possible object reference leak
   8dcf6dce4023 NFS: Fix a typo in nfs_init_timeout_values()
   4d88134c2f7c drm/tegra: hub: Fix dereference before check
   ec44a9a47e7e ARM: dts: imx6qdl: Fix typo in imx6qdl-icore-rqs.dtsi
   4da511ff427b net/sched: don't dereference a->goto_chain to read the chain index
   fe9fae9c5bff net: macb: Add null check for PCLK and HCLK
   ead946dc3824 net: phy: Add DP83825I to the DP83822 driver
   9bd87bbd2988 staging: rtlwifi: Fix potential NULL pointer dereference of kzalloc
   62d91f5a1ea4 staging: rtl8712: uninitialized memory in read_bbreg_hdl()
   6300a60f50b9 staging: rtlwifi: rtl8822b: fix to avoid potential NULL pointer dereference
   5fad07771fb8 staging: rtl8188eu: Fix potential NULL pointer dereference of kcalloc
   fe4e7a03c742 net: ks8851: Set initial carrier state to down
   372b41d6efe3 net: ks8851: Delay requesting IRQ until opened
   860fd08630a6 net: ks8851: Reassert reset pin if chip ID check fails
   75e3e76a45c6 net: ks8851: Dequeue RX packets explicitly
   07c5093a04f8 KVM: arm/arm64: Fix handling of stage2 huge mappings
   e68cc902c624 i2c: i801: Add support for Intel Comet Lake
   bcc78b63f0b4 ARM: dts: pfla02: increase phy reset duration
   2af87002a5e4 usb: gadget: net2272: Fix net2272_dequeue()
   202db3b5c17c usb: gadget: net2280: Fix net2280_dequeue()
   ad7be5bfe969 usb: gadget: net2280: Fix overrun of OUT messages
   e5a7f0905664 usb: dwc3: pci: add support for Comet Lake PCH ID
   7f482404c11e KVM: arm/arm64: vgic-its: Take the srcu lock when parsing the memslots
   d2eecdbc6eca KVM: arm/arm64: vgic-its: Take the srcu lock when writing to guest memory
   d6d23d335672 arm64: KVM: Always set ICH_HCR_EL2.EN if GICv4 is enabled
   e38694c6b9a8 KVM: arm64: Reset the PMU in preemptible context
   4343cbf52e36 serial: ar933x_uart: Fix build failure with disabled console
   d25b0c89b3b9 sc16is7xx: missing unregister/delete driver on error in sc16is7xx_init()
   0bb1f79a1427 ARM: imx51: fix a leaked reference by adding missing of_node_put
   42ed22a8b969 s390/qeth: fix race when initializing the IP address table
   f0028f723428 netfilter: ip6t_srh: fix NULL pointer dereferences
   21fde4fcbbd2 netfilter: fix NETFILTER_XT_TARGET_TEE dependencies
   eb213c54aaac netfilter: bridge: set skb transport_header before entering NF_INET_PRE_ROUTING
   0f9c88c5ccc9 netfilter: nft_set_rbtree: check for inactive element after flag mismatch
   7f0d096410af staging, mt7621-pci: fix build without pci support
   6c41d389904c staging: axis-fifo: add CONFIG_OF dependency
   5227fe96b107 xsk: fix umem memory leak on cleanup
   9fc5c6e8fce8 qlcnic: Avoid potential NULL pointer dereference
   2e75be8dd6fa net: stmmac: fix jumbo frame sending with non-linear skbs
   53485ee41fc3 net: stmmac: don't set own bit too early for jumbo frames
   099a26557db9 Btrfs: fix file corruption after snapshotting due to mix of buffered/DIO writes
   61a9e0f4cc86 ieee802154: hwsim: propagate genlmsg_reply return code
   645dc42f97d8 net: ieee802154: fix a potential NULL pointer dereference
   edb616838408 mt76: mt76x2: fix 2.4 GHz channel gain settings
   63019ec07c61 mt76: mt76x2: fix external LNA gain settings
   a495f4c9afbf mt76x02: fix hdr pointer in write txwi for USB
   1d568d7476da s390: limit brk randomization to 32MB
   87240adabb46 ARM: dts: bcm283x: Fix hdmi hpd gpio pull
   9979cd3953b9 arm64: dts: renesas: r8a77990: Fix SCIF5 DMA channels
   27f651142eec fs: prevent page refcount overflow in pipe_buf_get
   ad73e3a19906 mm: prevent get_user_pages() from overflowing page refcount
   bdc8dfd65873 mm: add 'try_get_page()' helper function
   258fc3baeb4b mm: make page ref count overflow check tighter and more explicit
   cc37cb69fbdc drm/i915: Do not enable FEC without DSC
   742c556944e1 Revert "ACPICA: Clear status of GPEs before enabling them"
   635e82b9bdc8 selinux: use kernel linux/socket.h for genheaders and mdp
   d5a2675b207d Linux 5.0.11
   bcf0c1f4d564 net/tls: don't leak IV and record seq when offload fails
   2adb99038ae4 net/tls: avoid potential deadlock in tls_set_device_offload_rx()
   c01e42fdccf5 net/mlx5e: Fix use-after-free after xdp_return_frame
   f9444b6aaa01 net/mlx5e: Fix the max MTU check in case of XDP
   a7b71fc253e8 mlxsw: spectrum: Put MC TCs into DWRR mode
   a3964a683ca1 mlxsw: pci: Reincrease PCI reset timeout
   72f71005903d net/ncsi: handle overflow when incrementing mac address
   19f6d3f49b28 net: socionext: replace napi_alloc_frag with the netdev variant on init
   af31849700e4 team: fix possible recursive locking when add slaves
   dc2b8b627802 stmmac: pci: Adjust IOT2000 matching
   3fd3574106de net/tls: fix refcount adjustment in fallback
   e39643c12d3f net: stmmac: move stmmac_check_ether_addr() to driver probe
   8de6f5e5b90d net/rose: fix unbound loop in rose_loopback_timer()
   b225e518109b net: rds: exchange of 8K and 1M pool
   283882b045ad net/mlx5e: ethtool, Remove unsupported SFP EEPROM high pages query
   f37782f2d708 mlxsw: spectrum: Fix autoneg status in ethtool
   d69b7c8c8ab5 ipv4: set the tcp_min_rtt_wlen range from 0 to one day
   617d24036564 ipv4: add sanity checks in ipv4_link_failure()
   7f909f520742 rdma: fix build errors on s390 and MIPS due to bad ZERO_PAGE use
   dee438745d74 x86/retpolines: Disable switch jump tables when retpolines are enabled
   6bd5637a3ebb x86, retpolines: Raise limit for generating indirect calls from switch-case
   b6dd51f041fa Fix aio_poll() races
   f6408361ded7 aio: store event at final iocb_put()
   a8a538aed4f9 aio: keep io_event in aio_kiocb
   636fa71ed5f7 aio: fold lookup_kiocb() into its sole caller
   199f34c1355b pin iocb through aio.
   e2f0a96eeb50 rxrpc: fix race condition in rxrpc_input_packet()
   4f2c07441634 net/rds: Check address length before reading address family
   d0d184559cb4 net: netrom: Fix error cleanup path of nr_proto_init
   d0cf85f49505 tipc: check link name with right length in tipc_nl_compat_link_set
   4ee29a10021f tipc: check bearer name with right length in tipc_nl_compat_bearer_enable
   a92526e257a5 fm10k: Fix a potential NULL pointer dereference
   0d41789ad820 netfilter: ebtables: CONFIG_COMPAT: drop a bogus WARN_ON
   becfa96eaecd NFS: Forbid setting AF_INET6 to "struct sockaddr_in"->sin_family.
   b5db8ea57de5 mac80211_hwsim: calculate if_combination.max_interfaces
   16de5d9b8f6b sched/deadline: Correctly handle active 0-lag timers
   bbb19ca082ce binder: fix handling of misaligned binder object
   8fe1600c91f9 workqueue: Try to catch flush_work() without INIT_WORK().
   abcbf3078130 slip: make slhc_free() silently accept an error pointer
   ba965c2c9808 tipc: handle the err returned from cmd header function
   2501b17f4f72 loop: do not print warn message if partition scan is successful
   acaec7f6e25d ext4: fix some error pointer dereferences
   2cd705091e36 USB: Consolidate LPM checks to avoid enabling LPM twice
   30d57be1f6eb USB: Add new USB LPM helpers
   6ec39721f131 drm/vc4: Fix compilation error reported by kbuild test bot
   3e869fd34856 Revert "drm/i915/fbdev: Actually configure untiled displays"
   6dca846c920d drm/ttm: fix re-init of global structures
   0b029ce3f4ee drm/vc4: Fix memory leak during gpu reset.
   aaceebbb71c5 powerpc/mm/radix: Make Radix require HUGETLB_PAGE
   b9a5bc4bb079 ARM: 8857/1: efi: enable CP15 DMB instructions before cleaning the cache
   aa5f016ba785 dmaengine: mediatek-cqdma: fix wrong register usage in mtk_cqdma_start
   9476c3ad5ee2 dmaengine: sh: rcar-dmac: Fix glitch in dmaengine_tx_status
   c46e14be004a dmaengine: sh: rcar-dmac: With cyclic DMA residue 0 is valid
   16df9424ffaa vfio/type1: Limit DMA mappings per container
   4898e9b99795 Input: synaptics-rmi4 - write config register values to the right offset
   c704bba6dd36 perf/x86/intel: Update KBL Package C-state events to also include PC8/PC9/PC10 counters
   b2eeeb49027e sunrpc: don't mark uninitialised items as VALID.
   6d29f7c720c6 nfsd: wake blocked file lock waiters before sending callback
   6569ae328aa3 nfsd: wake waiters blocked on file_lock before deleting it
   5e4a20e631a7 nfsd: Don't release the callback slot unless it was actually held
   870588487197 ceph: fix ci->i_head_snapc leak
   d9061ef0ab17 ceph: ensure d_name stability in ceph_dentry_hash()
   bcd9cbffb98f ceph: only use d_name directly when parent is locked
   e548c9702d46 sched/numa: Fix a possible divide-by-zero
   c3e4c555ac86 RDMA/ucontext: Fix regression with disassociate
   52c44c4e81b3 RDMA/mlx5: Use rdma_user_map_io for mapping BAR pages
   92d6731e6a6f RDMA/mlx5: Do not allow the user to write to the clock page
   f4dba6bf743e IB/rdmavt: Fix frwr memory registration
   e7e378ed703e arm64: mm: Ensure tail of unaligned initrd is reserved
   e5f06bf8f46c mm: do not boost watermarks to avoid fragmentation for the DISCONTIG memory model
   655b464eeaa8 trace: Fix preempt_enable_no_resched() abuse
   0f73358dff40 MIPS: scall64-o32: Fix indirect syscall number load
   928962e99694 lib/Kconfig.debug: fix build error without CONFIG_BLOCK
   f4ab3de10c84 zram: pass down the bvec we need to read into in the work struct
   e6093c0212d0 gpio: eic: sprd: Fix incorrect irq type setting for the sync EIC
   0bb4e85bbd34 crypto: lrw - Fix atomic sleep when walking skcipher
   6506cdd4205b crypto: xts - Fix atomic sleep when walking skcipher
   8659a04c77e2 tracing: Fix buffer_ref pipe ops
   68ab802fb8cc tracing: Fix a memory leak by early error exit in trace_pid_write()
   90b70b3ed31b cifs: do not attempt cifs operation on smb2+ rename error
   e6302b845f2d cifs: fix page reference leak with readv/writev
   62cf691cdf74 cifs: fix memory leak in SMB2_read
   34fb6f5eb2cd block, bfq: fix use after free in bfq_bfqq_expire
   41e09d7eab07 fs/proc/proc_sysctl.c: Fix a NULL pointer dereference
   685550ad1192 ALSA: hda/realtek - Move to ACT_INIT state
   b6f3aa978866 powerpc/vdso32: fix CLOCK_MONOTONIC on PPC64
   92d4af2766a1 intel_th: gth: Fix an off-by-one in output unassigning
   0ccd99339030 netfilter: nf_tables: bogus EBUSY in helper removal from transaction
   5b3124548062 netfilter: nf_tables: bogus EBUSY when deleting set after flush
   d3da1f09fff2 Linux 5.0.10
   c735a988a9ca kernel/sysctl.c: fix out-of-bounds access when setting file-max
   822482bff7c5 percpu: stop printing kernel addresses
   b2c65593ea62 ALSA: info: Fix racy addition/deletion of nodes
   c3d0cf332bcd mm/vmstat.c: fix /proc/vmstat format for CONFIG_DEBUG_TLBFLUSH=y CONFIG_SMP=n
   4ae522890cc1 mm/memory_hotplug: do not unlock after failing to take the device_hotplug_lock
   c138ed72186a perf/ring_buffer: Fix AUX record suppression
   65fce15dbd87 device_cgroup: fix RCU imbalance in error case
   74b4ef5df590 mt76x02: avoid status_list.lock and sta->rate_ctrl_lock dependency
   edc94cb2c13b tpm: fix an invalid condition in tpm_common_poll
   6799f32fff63 sched/fair: Limit sched_cfs_period_timer() loop to avoid hard lockup
   fb9693679feb Revert "kbuild: use -Oz instead of -Os when using clang"
   18636692a1b4 tpm: Fix the type of the return value in calc_tpm2_event_size()
   03c1d8f8afd8 tpm/tpm_i2c_atmel: Return -E2BIG when the transfer is incomplete
   4a96e63f8f7d nfit/ars: Avoid stale ARS results
   33dcadf02c1f nfit/ars: Allow root to busy-poll the ARS state machine
   b49a9157c3ec nfit/ars: Introduce scrub_flags
   2cc8e8c230e8 nfit/ars: Remove ars_start_flags
   451fd88f62b9 timers/sched_clock: Prevent generic sched_clock wrap caused by tick_freeze()
   205c53cbe553 x86/speculation: Prevent deadlock on ssb_state::lock
   19867049334b perf/x86: Fix incorrect PEBS_REGS
   5e34d62b59dd x86/cpu/bugs: Use __initconst for 'const' init data
   35f288b72f64 perf/x86/amd: Add event map for AMD Family 17h
   22cc6e1b4fc0 drm/amdgpu/gmc9: fix VM_L2_CNTL3 programming
   5b05d7d6fd5b s390/mem_detect: Use IS_ENABLED(CONFIG_BLK_DEV_INITRD)
   b1db090fb046 mac80211: do not call driver wake_tx_queue op during reconfig
   9a0748c55188 rt2x00: do not increment sequence number while re-transmitting
   44aa331f99b4 kprobes: Fix error check when reusing optimized probes
   ca61e51567a7 x86/kprobes: Avoid kretprobe recursion bug
   7b91f26c45b6 kprobes: Mark ftrace mcount handler functions nokprobe
   fbe6f067a3ad x86/kprobes: Verify stack frame on kretprobe
   f89f9d9636f0 arm64: futex: Restore oldval initialization to work around buggy compilers
   508b773175c7 drm/ttm: fix out-of-bounds read in ttm_put_pages() v2
   8223263d7c44 crypto: x86/poly1305 - fix overflow during partial reduction
   46c4f2375638 ipmi: fix sleep-in-atomic in free_user at cleanup SRCU user->release_barrier
   2f6919fdc23b x86/kvm: move kvm_load/put_guest_xcr0 into atomic context
   1eb719f09f7e coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping
   e58a114d0746 Revert "svm: Fix AVIC incomplete IPI emulation"
   922270b4f018 i3c: Fix the verification of random PID
   33a3fff44a0f i3c: dw: Fix dw_i3c_master_disable controller by using correct mask
   e6200707e648 Revert "scsi: fcoe: clear FC_RP_STARTED flags when receiving a LOGO"
   ad1deea5c4c9 scsi: core: set result when the command cannot be dispatched
   c2116717884c vt: fix cursor when clearing the screen
   5ae77c340c52 serial: sh-sci: Fix HSCIF RX sampling point calculation
   333a81c16e4f serial: sh-sci: Fix HSCIF RX sampling point adjustment
   95df599f95f3 Input: elan_i2c - add hardware ID for multiple Lenovo laptops
   6ef122eb7956 ALSA: core: Fix card races between register and disconnect
   ffd87f87a9c1 ALSA: hda/realtek - add two more pin configuration sets to quirk table
   8834139083cd staging: comedi: ni_usb6501: Fix possible double-free of ->usb_rx_buf
   16b235e81d9d staging: comedi: ni_usb6501: Fix use of uninitialized mutex
   a47fd7121627 staging: comedi: vmk80xx: Fix possible double-free of ->usb_rx_buf
   bd3011021447 staging: comedi: vmk80xx: Fix use of uninitialized semaphore
   dcff1b3c1a1d staging: most: core: use device description as name
   68bbd7524a6f io: accel: kxcjk1013: restore the range after resume.
   3e13bb9782f5 iio: core: fix a possible circular locking dependency
   1f6b63285e2f iio: adc: at91: disable adc channel interrupt in timeout case
   2b70088e1509 iio: Fix scan mask selection
   5c526f27861f iio: dac: mcp4725: add missing powerdown bits in store eeprom
   50bc2c022b6e iio: ad_sigma_delta: select channel when reading register
   f65207cfee33 iio: cros_ec: Fix the maths for gyro scale calculation
   b4dd709ada6d iio:chemical:bme680: Fix SPI read interface
   fd3c6ad2a934 iio:chemical:bme680: Fix, report temperature in millidegrees
   5527e1e58007 iio/gyro/bmg160: Use millidegrees for temperature scale
   9efe152f769c iio: gyro: mpu3050: fix chip ID reading
   25a91f7b9810 staging: iio: ad7192: Fix ad7193 channel address
   80c1486b7e20 Staging: iio: meter: fixed typo
   739969f56e4f KVM: x86: svm: make sure NMI is injected after nmi_singlestep
   935fef82120f KVM: x86: Don't clear EFER during SMM transitions for 32-bit vCPU
   d12bcf87e6ff fs/dax: Deposit pagetable even when installing zero page
   f6846161e203 cifs: fix handle leak in smb2_query_symlink()
   76dbd554c273 cifs: Fix use-after-free in SMB2_read
   e8ac406c749e cifs: Fix use-after-free in SMB2_write
   9582ba401ef0 cifs: Fix lease buffer length error
   ebac4d0adf68 CIFS: keep FileInfo handle live during oplock break
   2cf17769d6b5 sch_cake: Simplify logic in cake_select_tin()
   5aa94a5b5641 nfc: nci: Potential off by one in ->pipes[] array
   a023c1a245a7 NFC: nci: Add some bounds checking in nci_hci_cmd_received()
   d58923dac952 sch_cake: Make sure we can write the IP header before changing DSCP bits
   064290d0f6c7 sch_cake: Use tc_skb_protocol() helper for getting packet protocol
   116ac142d2c6 nfp: flower: remove vlan CFI bit from push vlan action
   51db0d068057 nfp: flower: replace CFI with vlan present
   da86299fcccb route: Avoid crash from dereferencing NULL rt->from
   6ad8c35a70cc net/mlx5: FPGA, tls, idr remove on flow delete
   d3697f88a271 net/tls: prevent bad memory access in tls_is_sk_tx_device_offloaded()
   1d9005b96dce net/mlx5: FPGA, tls, hold rcu read lock a bit longer
   abe4a1328a78 Revert "net/mlx5e: Enable reporting checksum unnecessary also for L3 packets"
   acf4d270942a net/mlx5e: Rx, Check ip headers sanity
   3ce8793e03cd net/mlx5e: Rx, Fixup skb checksum for packets with tail padding
   af294d42d43e net/mlx5e: Switch to Toeplitz RSS hash by default
   6daad2e30e0b net/mlx5e: Protect against non-uplink representor for encap
   58f682514cb5 net/mlx5e: XDP, Avoid checksum complete when XDP prog is loaded
   0e4b3800c069 net: bridge: fix netlink export of vlan_stats_per_port option
   adfc12451123 net/tls: fix build without CONFIG_TLS_DEVICE
   5e7171bf8db7 net: strparser: partially revert "strparser: Call skb_unclone conditionally"
   96418eaa8e6a net/tls: don't leak partially sent record in device mode
   b30d9457b1dc net/tls: fix the IV leaks
   ae924f4e1c45 net: thunderx: don't allow jumbo frames with XDP
   a902fe6dd585 net: thunderx: raise XDP MTU to 1508
   9be4e8224cd6 mlxsw: spectrum_router: Do not check VRF MAC address
   61647856f32a mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw workqueue
   87ffb893490a mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw ordered workqueue
   565e18a0be10 mlxsw: core: Do not use WQ_MEM_RECLAIM for EMAD workqueue
   6f180e411c3e mlxsw: spectrum_switchdev: Add MDB entries in prepare phase
   ed112abe6795 ipv4: ensure rcu_read_lock() in ipv4_link_failure()
   6bd1ee0a993f ipv4: recompile ip options in ipv4_link_failure
   8cc6c4767e49 vhost: reject zero size iova range
   e35fa0016788 tipc: missing entries in name table of publications
   aad7db2b23c1 team: set slave to promisc if team is already in promisc mode
   8aa965e92750 tcp: tcp_grow_window() needs to respect tcp_space()
   1274905c8e1b net: fou: do not use guehdr after iptunnel_pull_offloads in gue_udp_recv
   49f472ba481b net: Fix missing meta data in skb with vlan packet
   a7a3382b1564 net: fec: manage ahb clock in runtime pm
   88f561ab1bd4 net: bridge: multicast: use rcu to access port list from br_multicast_start_querier
   88c58435304b net: bridge: fix per-port af_packet sockets
   11ba95c4503b net: atm: Fix potential Spectre v1 vulnerabilities
   b633f6580b62 failover: allow name change on IFF_UP slave interfaces
   7e2c712830d6 bonding: fix event handling for stacked bonds
   e4abcebedac3 Linux 5.0.9
   2db9f8d63d74 paride/pcd: Fix potential NULL pointer dereference and mem leak
   e78434f4dcd2 paride/pf: Fix potential NULL pointer dereference
   b59d92ac8a32 IB/hfi1: Failed to drain send queue when QP is put into error state
   b05baa9f19d0 bpf: fix use after free in bpf_evict_inode
   d05fb50b3d0c include/linux/swap.h: use offsetof() instead of custom __swapoffset macro
   1c108a1b6459 f2fs: fix to add refcount once page is tagged PG_private
   b5f51f7abb43 f2fs: fix to use kvfree instead of kzfree
   c55d13d94f8c f2fs: fix to dirty inode for i_mode recovery
   4fb70c2107e9 rxrpc: Fix client call connect/disconnect race
   78154e319888 lib/div64.c: off by one in shift
   f0f1c97f38b8 cifs: return -ENODATA when deleting an xattr that does not exist
   2fbb0171b13a appletalk: Fix use-after-free in atalk_proc_exit
   a33383757975 drm/amdkfd: use init_mqd function to allocate object for hid_mqd (CI)
   3835c46e6ff5 ARM: 8839/1: kprobe: make patch_lock a raw_spinlock_t
   ed3a6901a3d7 platform/x86: intel_pmc_core: Quirk to ignore XTAL shutdown
   36f268740bce drm/nouveau/volt/gf117: fix speedo readout register
   3b2457ce9997 f2fs: sync filesystem after roll-forward recovery
   b851a25507e2 PCI/ASPM: Save LTR Capability for suspend/resume
   75e3256e2309 PCI: Blacklist power management of Gigabyte X299 DESIGNARE EX PCIe ports
   dce48c5878ab coresight: cpu-debug: Support for CA73 CPUs
   cf56bb03ffa3 RDMA/hns: Fix the Oops during rmmod or insmod ko when reset occurs
   5ada4de03943 Revert "ACPI / EC: Remove old CLEAR_ON_RESUME quirk"
   41c3883dfadb crypto: axis - fix for recursive locking from bottom half
   b9563b52e802 net: hns3: Fix NULL deref when unloading driver
   f1a2397542f6 drm/panel: panel-innolux: set display off in innolux_panel_unprepare
   3fcb02749530 drm/amdgpu: psp_ring_destroy cause psp->km_ring.ring_mem NULL
   e7ab5c78e516 lkdtm: Add tests for NULL pointer dereference
   8167ea40725d lkdtm: Print real addresses
   8bc6ef890c86 ext4: prohibit fstrim in norecovery mode
   642530739f19 x86/gart: Exclude GART aperture from kcore
   14bec2dda7a0 cifs: Fix slab-out-of-bounds when tracing SMB tcon
   a419571b2da5 fix incorrect error code mapping for OBJECTID_NOT_FOUND
   21edc981053f cifs: fix that return -EINVAL when do dedupe operation
   92b646e27677 x86/hw_breakpoints: Make default case in hw_breakpoint_arch_parse() return an error
   aca4bd1a1cc6 iommu/vt-d: Save the right domain ID used by hardware
   d96516127498 iommu/vt-d: Check capability before disabling protected memory
   d9fb98c921a8 drm/nouveau/debugfs: Fix check of pm_runtime_get_sync failure
   f0a085e99ff7 x86/cpu/cyrix: Use correct macros for Cyrix calls on Geode processors
   aaddd952f3db x86/hyperv: Prevent potential NULL pointer dereference
   105d043fedcb x86/hpet: Prevent potential NULL pointer dereference
   1512c986c578 irqchip/mbigen: Don't clear eventid when freeing an MSI
   dc60ac49b040 irqchip/stm32: Don't set rising configuration registers at init
   d79220ee57b8 irqchip/stm32: Don't clear rising/falling config registers at init
   c24b1f67cea0 drm/exynos/mixer: fix MIXER shadow registry synchronisation code
   c43003451a01 blk-iolatency: #include "blk.h"
   8bd30e5e0ec5 PM / Domains: Avoid a potential deadlock
   66495ebfd4df ACPI / utils: Drop reference in test for device presence
   fd9f338db867 perf tests: Fix a memory leak in test__perf_evsel__tp_sched_test()
   26980cd03ea6 perf tests: Fix memory leak by expr__find_other() in test__expr()
   5ffefcfe9764 perf tests: Fix a memory leak of cpu_map object in the openat_syscall_event_on_all_cpus test
   ece1fd3f4023 perf evsel: Free evsel->counts in perf_evsel__exit()
   05fe1d5b6ed1 perf top: Fix global-buffer-overflow issue
   940df86f505d perf maps: Purge all maps from the 'names' tree
   60b7f41c4aea perf map: Remove map from 'names' tree in __maps__remove()
   d86bf97d119d perf hist: Add missing map__put() in error case
   4a66a027c1ba perf top: Fix error handling in cmd_top()
   29dddb32f56b perf build-id: Fix memory leak in print_sdt_events()
   86cb58f1a12f perf config: Fix a memory leak in collect_config()
   5bb92662f2f1 perf config: Fix an error in the config template documentation
   d41f87ee413f perf tools: Fix errors under optimization level '-Og'
   84b2a2ca6d41 perf list: Don't forget to drop the reference to the allocated thread_map
   0c6568492019 perf stat: Fix --no-scale
   c957d798c11c scsi: qla2xxx: Fix NULL pointer crash due to stale CPUID
   9ec3c84936f7 scsi: core: Also call destroy_rcu_head() for passthrough requests
   638bf55940b9 tools/power turbostat: return the exit status of a command
   4a45137bb2eb x86/mm: Don't leak kernel addresses
   8764542aa21c sched/core: Fix buffer overflow in cgroup2 property cpu.max
   02abd369fa77 sched/cpufreq: Fix 32-bit math overflow
   7aa9be519579 scsi: iscsi: flush running unbind operations when removing a session
   b0b05ab719c3 thermal/intel_powerclamp: fix truncated kthread name
   800e3fd7bfce thermal/int340x_thermal: fix mode setting
   891fea677cca thermal/int340x_thermal: Add additional UUIDs
   f1a315ca06be thermal: bcm2835: Fix crash in bcm2835_thermal_debugfs
   481c8a89e89a thermal: samsung: Fix incorrect check after code merge
   74920ee161d4 thermal/intel_powerclamp: fix __percpu declaration of worker_data
   6e684bd65a5c paride/pcd: cleanup queues when detection fails
   77323732005a paride/pf: cleanup queues when detection fails
   1f208b0adaee ALSA: opl3: fix mismatch between snd_opl3_drum_switch definition and declaration
   bdb43acc8858 mmc: davinci: remove extraneous __init annotation
   e52431f7547c i40iw: Avoid panic when handling the inetdev event
   221b45319d05 IB/mlx4: Fix race condition between catas error reset and aliasguid flows
   b21723eda4cc drm/udl: use drm_gem_object_put_unlocked.
   33550275bbcf auxdisplay: hd44780: Fix memory leak on ->remove()
   4c12b50fc86a ALSA: sb8: add a check for request_region
   b3a964aea086 ALSA: echoaudio: add a check for ioremap_nocache
   2c20533ea602 ext4: report real fs size after failed resize
   d45fc2ba0e39 ext4: add missing brelse() in add_new_gdb_meta_bg()
   e23981104716 ext4: avoid panic during forced reboot
   0a7ef6820970 mips: bcm47xx: Enable USB power on Netgear WNDR3400v2
   c5d7b6089be5 perf/core: Restore mmap record type correctly
   7f434180c880 inotify: Fix fsnotify_mark refcount leak in inotify_update_existing_watch()
   9005b534c2ba arc: hsdk_defconfig: Enable CONFIG_BLK_DEV_RAM
   48de44356e07 ARC: u-boot args: check that magic number is correct
   0b9132ee7429 Linux 5.0.8
   eaa06ac5d1c1 drm/virtio: do NOT reuse resource ids
   7af79a36d188 KVM: x86: nVMX: fix x2APIC VTPR read intercept
   b564364f22ac KVM: x86: nVMX: close leak of L0's x2APIC MSRs (CVE-2019-3887)
   63bec9219c39 dm integrity: fix deadlock with overlapping I/O
   de022a3453e6 dm: disable DISCARD if the underlying storage no longer supports it
   ca7671084384 dm table: propagate BDI_CAP_STABLE_WRITES to fix sporadic checksum errors
   50b2e5c3b0a8 dm: revert 8f50e358153d ("dm: limit the max bio size as BIO_MAX_PAGES * PAGE_SIZE")
   556b7d910d5d dm integrity: change memcmp to strncmp in dm_integrity_ctr
   78dbc2482a78 powerpc/64s/radix: Fix radix segment exception handling
   49558542e0eb xprtrdma: Fix helper that drains the transport
   8af91139a0a8 PCI: pciehp: Ignore Link State Changes after powering off a slot
   9b63917c6a4c PCI: Add function 1 DMA alias quirk for Marvell 9170 SATA controller
   025768c171b8 x86/perf/amd: Remove need to check "running" bit in NMI handler
   ecb09f75a9b9 x86/perf/amd: Resolve NMI latency issues for active PMCs
   c583b4d08f3a x86/perf/amd: Resolve race condition when disabling PMC
   8b866ffe3d31 x86/asm: Use stricter assembly constraints in bitops
   3783a3b1e218 x86/asm: Remove dead __GNUC__ conditionals
   5866b5fc2b8a csky: Fix syscall_get_arguments() and syscall_set_arguments()
   b66f9a1ea65a xtensa: fix return_address
   e09deff8f8f4 sched/fair: Do not re-read ->h_load_next during hierarchical load calculation
   05acf6f5b81c xen: Prevent buffer overflow in privcmd ioctl
   e0e77b23a73d IB/mlx5: Reset access mask when looping inside page fault handler
   6b3b09cd4daa arm64/ftrace: fix inadvertent BUG() in trampoline check
   36078cae3790 arm64: backtrace: Don't bother trying to unwind the userspace stack
   de2e5ed04711 arm64: dts: rockchip: fix rk3328 rgmii high tx error rate
   7fcf2d915fa0 arm64: dts: rockchip: Fix vcc_host1_5v GPIO polarity on rk3328-rock64
   68a6a619ebd7 arm64: futex: Fix FUTEX_WAKE_OP atomic ops with non-zero result value
   b0266ece310d ARM: dts: at91: Fix typo in ISC_D0 on PC9
   a005242834ac ARM: dts: rockchip: Fix SD card detection on rk3288-tinker
   e74aa76752f4 ARM: dts: am335x-evm: Correct the regulators for the audio codec
   724d26349abf ARM: dts: am335x-evmsk: Correct the regulators for the audio codec
   4e34e23d5708 ARM: dts: rockchip: fix rk3288 cpu opp node reference
   f04200259be8 ARM: OMAP1: ams-delta: Fix broken GPIO ID allocation
   4e6f0d588cd2 drm/i915/dp: revert back to max link rate and lane count on eDP
   88fa815395e3 virtio: Honour 'may_reduce_num' in vring_create_virtqueue
   ec64558908d7 genirq: Initialize request_mutex if CONFIG_SPARSE_IRQ=n
   b8ad5278c4d3 genirq: Respect IRQCHIP_SKIP_SET_WAKE in irq_chip_set_wake_parent()
   fffb3e8b5920 block: fix the return errno for direct IO
   b4af1b3cb545 block: do not leak memory in bio_copy_user_iov()
   43d15c041ad7 block: Revert v5.0 blk_mq_request_issue_directly() changes
   6a184be78d3f riscv: Fix syscall_get_arguments() and syscall_set_arguments()
   ee02ae76d069 btrfs: prop: fix vanished compression property after failed set
   41cd8693bfcc btrfs: prop: fix zstd compression parameter validation
   ddb27d3b30f7 Btrfs: do not allow trimming when a fs is mounted with the nologreplay option
   4badea79434d ASoC: fsl_esai: fix channel swap issue when stream starts
   7c394c70a394 ASoC: intel: Fix crash at suspend/resume after failed codec registration
   3859d8fae2d8 mm: writeback: use exact memcg dirty counts
   c4727317b4e5 include/linux/bitrev.h: fix constant bitrev
   a1428aee0c69 kvm: svm: fix potential get_num_contig_pages overflow
   d2c5c9ea9a09 drm/udl: add a release method and delay modeset teardown
   7029188253fc drm/sun4i: DW HDMI: Lower max. supported rate for H6
   3e05b13e52e5 drm/i915/gvt: do not deliver a workload if its creation fails
   56487f7b8330 alarmtimer: Return correct remaining time
   b4dfbd47a494 parisc: also set iaoq_b in instruction_pointer_set()
   97ba69f22665 parisc: regs_return_value() should return gpr28
   d347bbea0668 parisc: Detect QEMU earlier in boot process
   af2abcc62e64 mmc: sdhci-omap: Don't finish_mrq() on a command error during tuning
   13771e12fb7d mmc: alcor: don't write data before command has completed
   8a3bb1553d5b arm64: dts: rockchip: fix rk3328 sdmmc0 write errors
   9e77cd4a9922 mm/huge_memory.c: fix modifying of page protection by insert_pfn_pmd()
   89944d7e95e3 ALSA: hda - Add two more machines to the power_save_blacklist
   3c20e6c50e03 ALSA: xen-front: Do not use stream buffer size before it is set
   97bf09839964 ALSA: hda/realtek - Add quirk for Tuxedo XC 1509
   acaf3a112008 ALSA: hda/realtek: Enable headset MIC of Acer TravelMate B114-21 with ALC233
   df828c33163f ALSA: seq: Fix OOB-reads from strlcpy
   cb11af93e626 ACPICA: Namespace: remove address node from global list after method termination
   da6a87fb0ad4 ACPICA: Clear status of GPEs before enabling them
   bee8b4b4c79b HID: logitech: Handle 0 scroll events for the m560
   0601ac3b4925 SMB3: Allow persistent handle timeout to be configurable on mount
   4d4ec04ed77e hwmon: (occ) Fix power sensor indexing
   026f98a1d51d hwmon: (w83773g) Select REGMAP_I2C to fix build error
   c231b6b0064d tty: ldisc: add sysctl to prevent autoloading of ldiscs
   e4ebae16792a tty: mark Siemens R3964 line discipline as BROKEN
   e2a0237494ce Revert "clk: meson: clean-up clock registration"
   62a23bbaee09 lib/string.c: implement a basic bcmp
   622902df9eba kbuild: clang: choose GCC_TOOLCHAIN_DIR not on LD
   396f116f6d0a net/mlx5e: Update xon formula
   29b4db4176da net/mlx5e: Update xoff formula
   68ef6f3e1a70 net: mlx5: Add a missing check on idr_find, free buf
   4fe853723d57 r8169: disable default rx interrupt coalescing on RTL8168
   4b780e0fc986 net: core: netif_receive_skb_list: unlist skb before passing to pt->func
   b5f69a5648b0 net: vrf: Fix ping failed when vrf mtu is set to 0
   c83447096390 net: thunderx: fix NULL pointer dereference in nicvf_open/nicvf_stop
   502de75b3b34 net: bridge: always clear mcast matching struct on reports and leaves
   f4473ccd883c net: ip6_gre: fix possible use-after-free in ip6erspan_rcv
   b49e1837b15e net: ip_gre: fix possible use-after-free in erspan_rcv
   eefa6c2464c8 bnxt_en: Reset device on RX buffer errors.
   aecbbae850ed bnxt_en: Improve RX consumer index validity check.
   c43bbe6d49f4 nfp: disable netpoll on representors
   c974a681e996 nfp: validate the return code from dev_queue_xmit()
   6fc42565470a net/mlx5e: Add a lock on tir list
   44bd84f1b5a5 net/mlx5e: Fix error handling when refreshing TIRs
   59c5f595a120 vrf: check accept_source_route on the original netdevice
   71707cc55c39 tcp: fix a potential NULL pointer dereference in tcp_sk_exit
   bc7167651e30 tcp: Ensure DCTCP reacts to losses
   cd1b7376d8a3 sctp: initialize _pad of sockaddr_in before copying to user memory
   3c36cc5bdf89 r8169: disable ASPM again
   cdeed1e0f47e qmi_wwan: add Olicard 600
   3bcad39f08ca openvswitch: fix flow actions reallocation
   48a1cd79cc7e net/sched: fix ->get helper of the matchall cls
   4edf174b821e net/sched: act_sample: fix divide by zero in the traffic path
   4e8d8e767f11 net: rds: force to destroy connection if t_sock is NULL in rds_tcp_kill_sock().
   ec7aeb6a0709 netns: provide pure entropy for net_hash_mix()
   6ced07adaead net/mlx5: Decrease default mr cache size
   67b0fbfaf828 net-gro: Fix GRO flush when receiving a GSO packet.
   88b9d6f6aff8 net: ethtool: not call vzalloc for zero sized memory request
   351ddbdf532c kcm: switch order of device registration to fix a crash
   472a290314f0 ipv6: sit: reset ip header pointer in ipip6_rcv
   ccec3a09c429 ipv6: Fix dangling pointer when ipv6 fragment
   fd4ecb124730 ip6_tunnel: Match to ARPHRD_TUNNEL6 for dev type
   4f90b9ca3cb2 ibmvnic: Fix completion structure initialization
   b68b3427a2a2 hv_netvsc: Fix unwanted wakeup after tx_disable
   5160fb3353f5 netfilter: nf_tables: add missing ->release_ops() in error path of newrule()
   19589530ec6d netfilter: nf_tables: use-after-free in dynamic operations
   43154d5c868c netfilter: nft_compat: use .release_ops and remove list of extension
   93f7f61ed079 kbuild: pkg: use -f $(srctree)/Makefile to recurse to top Makefile
   118003351916 drm/i915/gvt: do not let pin count of shadow mm go negative

(From OE-Core rev: a4544d19b4f5db419e7a02e584a28a14768c8f2f)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 15:36:20 +01:00
Zang Ruochen
a18ae07b95 dbus-test: Upgrade 1.12.12 -> 1.12.14
Upgrade from dbus-test_1.12.12.bb to dbus-test_1.12.14.bb.

(From OE-Core rev: c345e26b1ca7685c905ad41fdd436f4e4a3e68ab)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 15:36:20 +01:00
Zang Ruochen
83da3a6932 dbus: Upgrade 1.12.12 -> 1.12.14
Upgrade from dbus_1.12.12.bb to dbus_1.12.14.bb.

(From OE-Core rev: 4beec5f51582ca27963ff200a46595a16a3ba790)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 15:36:20 +01:00
Zang Ruochen
0b755e0269 openssh: Upgrade 7.9p1 -> 8.0p1
Upgrade from openssh_7.9p1.bb to openssh_8.0p1.bb.

-openssh/0001-upstream-Have-progressmeter-force-an-update-at-the-b.patch
-openssh/CVE-2018-20685.patch
-openssh/CVE-2019-6109.patch
-openssh/CVE-2019-6111.patch
-Removed since these are included in 8.0p1.

(From OE-Core rev: 7e21cfec4de3d66585c92632e1503df54a89b79a)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-31 15:36:20 +01:00
Changqing Li
6ba8e155b6 tiny-init: add rconflicts
add rconflicts since error during do_rootfs:
file /sbin/init conflicts between attempted installs of tiny-init-1.0-r3.i586 and systemd-1:242+0+db2e367bfc-r0.i586

(From meta-yocto rev: 28bdd6efe8a4fff12ee169a227762ec0978dab36)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Matthias Schiffer
482da97cfc bitbake: fetch2: runfetchcmd(): unset _PYTHON_SYSCONFIGDATA_NAME
Since warrior, python3native.bbclass sets _PYTHON_SYSCONFIGDATA_NAME;
unfortunately, this also affects Python scripts run as fetch commands like
git-make-shallow, breaking it with a message like

    Failed to import the site module
    Traceback (most recent call last):
      File "/usr/lib/python3.6/site.py", line 570, in <module>
        main()
      File "/usr/lib/python3.6/site.py", line 556, in main
        known_paths = addusersitepackages(known_paths)
      File "/usr/lib/python3.6/site.py", line 288, in addusersitepackages
        user_site = getusersitepackages()
      File "/usr/lib/python3.6/site.py", line 264, in getusersitepackages
        user_base = getuserbase() # this will also set USER_BASE
      File "/usr/lib/python3.6/site.py", line 254, in getuserbase
        USER_BASE = get_config_var('userbase')
      File "/usr/lib/python3.6/sysconfig.py", line 607, in get_config_var
        return get_config_vars().get(name)
      File "/usr/lib/python3.6/sysconfig.py", line 550, in get_config_vars
        _init_posix(_CONFIG_VARS)
      File "/usr/lib/python3.6/sysconfig.py", line 421, in _init_posix
        _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
    ModuleNotFoundError: No module named '_sysconfigdata'

on an Ubuntu 18.04 system (and likely others) when building with
BB_GIT_SHALLOW and BB_GENERATE_SHALLOW_TARBALLS.

Unset _PYTHON_SYSCONFIGDATA_NAME in runfetchcmd() to work around this.

(Bitbake rev: d94ccd506d04aff182ab48f501f6f366d5dd14f5)

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Richard Purdie
cc67ce63d5 bitbake: main: Fix error message typo
(Bitbake rev: a1330b8a15a3f12516e3e293ffb5d840f362375d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Joshua Watt
88f5abb028 bitbake: bitbake: Show base multiconfig environment
Adds support to the 'bitbake -e' command so that it can display the base
environment for a multiconfig. It was previously possible to get the
base environment for the main environment by running "bitbake -e", but
there was no support for getting the base environment for a multiconfig
without specifying a recipe. A user can now print the base environment
for the multiconfig "foo" by running:

 $ bitbake -e multiconfig:foo

(Bitbake rev: 3d657af8a6120193d45d01968605b30075a56198)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Joshua Watt
66fd4c13d9 bitbake: bitbake: cooker: Rename __depends in all multiconfigs
The renaming of the __depends variable to __base_depends and file
watches needs to occurs for all multiconfigs, not just the base config.
Failing to do this for all multiconfigs will result in a huge increase
in the size of the parsing cache (about 5x for a single mulitconfig)
because all multiconfig caches will still depend on the base config
files. This will also seen a similar jump in the amount of time required
to load the parsing cache from memory, both because the cache is larger
and because of explosion of additional existence checks that must be
done for the base files.

[YOCTO #13359]

(Bitbake rev: 34137a00f60280e9e806070c6507a0fc6284b834)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Chee Yang Lee
01543538d1 wic: bootimg-efi: add label source parameter
Add new source parameter label to allow custom boot.conf/grub.cfg label,
so far it's hardcoded to "Boot".

Default label to "Boot" for systemd-boot and blank for grub-efi when source
parameter label are not set.

(From OE-Core rev: 7a0aab1aa31e66e6bc94c04c2f6c1043b64a8967)

Signed-off-by: Chee Yang Lee <chee.yang.lee at intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Changqing Li
70db12c852 systemd: add rconflicts
add rconflicts since error during do_rootfs:
file /sbin/resolvconf conflicts between attempted installs of resolvconf-1.79-r0.noarch and systemd-1:242+0+db2e367bfc-r0.i586
file /sbin/init conflicts between attempted installs of tiny-init-1.0-r3.i586 and systemd-1:242+0+db2e367bfc-r0.i586

(From OE-Core rev: 10d0a824ad9b835b6f5ec24a49d41aead613031b)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Joshua Watt
41bd3fee9d btrfs-tools: Pass DEBUG_MAP_PREFIX flags to Python
The DEBUG_MAP_PREFIX flags need to be passed when building the Python
library to prevent these non-reproducible paths from being encoded into
the library. The patch that does this was accepted upstream and
supersedes part of a previous patch that passed LDFLAGS to the Python
library in favor of passing EXTRA_PYTHON_LDFLAGS, so the patch and
recipe has been updated to reflect this.

(From OE-Core rev: 04bb44c1b97c3183739e4836588a93dc34af8806)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Martin Jansa
570938d845 bc: use u-a for bc as well
* bc can be provided by busybox as well (e.g. if you have your own
  defconfig and forget to explicitly disable it:
  ...
  *
  * Miscellaneous Utilities
  *
  adjtimex (4.7 kb) (ADJTIMEX) [N/y/?] n
  bbconfig (9.7 kb) (BBCONFIG) [N/y/?] n
  bc (45 kb) (BC) [Y/n/?] (NEW) dc (36 kb) (DC) [Y/n/?] y
    Use bc code base for dc (larger, more features) (FEATURE_DC_BIG) [Y] (NEW) y
      Interactive mode (+4kb) (FEATURE_BC_INTERACTIVE) [Y/n/?] (NEW)     Enable bc/dc long options (FEATURE_BC_LONG_OPTIONS) [Y/n] (NEW) beep (2.4 kb) (BEEP) [N/y/?] n
  chat (6.3 kb) (CHAT) [N/y/?] n
  conspy (10 kb) (CONSPY) [N/y/?] n
  ...
  ), causing conflict in u-a:

  update-alternatives: Error: not linking /usr/bin/bc to /bin/busybox.nosuid since /usr/bin/bc exists and is not a link

  and then whole do_rootfs or do_populate_sdk to fail because busybox postinst is failing:

  do_populate_sdk: Postinstall scriptlets of ['busybox'] have failed. If the intention is to defer them to first boot,
  then please place them into pkg_postinst_ontarget_${PN} (). Deferring to first boot via 'exit 1' is no longer supported.

(From OE-Core rev: f4e712162566373279049fb952d8bceb9184128a)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Anuj Mittal
699152506c Revert "pigz: pigz is not gzip"
This reverts commit a54c59f2a2.

The compatibility issues have since been resolved [1][2] and pigz 2.4
annoucement also states that this can be considered as a drop-in
replacemment [3] now.

[1] 33c140e5fd
[2] 6fda8570f6
[3] https://zlib.net/pipermail/pigz-announce_zlib.net/2017-December/000028.html

(From OE-Core rev: ad1db93d134db1ec4f6d6598c9741dc13e82e1f3)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Anuj Mittal
762e557b3c Revert "image_types: use pigz to create .gz files"
This reverts commit a559ffab30.

This is not needed now that pigz has been marked as a drop-in
replacement.

(From OE-Core rev: 3a73662ea72fbf0180d9a66032b6d92248ae4ddf)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Khem Raj
669339f9a0 gdb: Let gdbserver be empty for riscv64
gdbserver does not yet build for riscv64, therefore
let the package be empty so we can build core-image-sato-sdk-ptest

(From OE-Core rev: 111f65528e3c0b147c1713cfc684958f94c41cd6)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Michael Ho
74331a426f base.bbclass: add named SRCREVs to the sstate hash
Several fetchers support named sources that require setting a SRCREV with
the source name as a suffix. These named SRCREV variables are not captured
in the sstate hash calculation because they're only referenced within the
bitbake fetcher function. Several recipes avoid this bug by adding the
different SRCREVs to their packaging versioning but this is not enforced so
it is very trivial to trip this bug case.

Add a snippet to the base.bbclass anonymous python to add all named SRCREV
variables to the vardeps of do_fetch to capture them in the sstate hash
calculation.

Testing of the bug can be shown by running the following bitbake commands
with this patch set not applied:

bitbake vulkan-demos | tee
sed -i 's/SRCREV_gli = ".*"/SRCREV_gli = "xxx"/' \
  ../meta/recipes-graphics/vulkan/vulkan-demos_git.bb
bitbake vulkan-demos | tee;

The above results in no errors despite a broken SRCREV because the recipe  is
considered unchanged by the bitbake sstate hash.

After applying this patch the above commands instead result in a fetcher
error which is correct.

(From OE-Core rev: fdc000b8ae1577f1b29efb2cc4927664ad41e21c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Oliver Stäbler
49e4108756 packagegroup-core-full-cmdline: Make nfs-utils/rpcbind optional
Consider DISTRO_FEATURES for nfs-utils and rpcbind.
This is to prevent the following warning while booting:
NFS daemon support not enabled in kernel

(From OE-Core rev: bd59536158ba29aec979378068d5d50b4a29282d)

Signed-off-by: Oliver Stäbler <oliver.staebler@bytesatwork.ch>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Changqing Li
0799b21260 inetutils: fix wrong package name
fix below error:
file /etc/xinetd.d/telnet conflicts between attempted installs of netkit-telnet-0.17-r0.i586 and inetutils-telnetd-1.9.4-r0.i586
file /usr/sbin/in.telnetd conflicts between attempted installs of netkit-telnet-0.17-r0.i586 and inetutils-telnetd-1.9.4-r0.i586

(From OE-Core rev: 1ceaaab6aab449f05a6e5f984bd20fa33d84937d)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Philippe Normand
a13288fd50 cmake: Use compiler launcher variable when ccache is enabled
Setting the CMAKE_C{,XX}_COMPILER_LAUNCHER variables is the recomended way to
deal with ccache in CMake. It allows build scripts to optionally opt-out of
ccache, which is especially useful when the pre-processed GCC output is required.

(From OE-Core rev: 0a36d1b342c0b4760bc75794c2e941a17012bc19)

Signed-off-by: Philippe Normand <philn@igalia.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Changqing Li
e9e7102fe2 busybox-inittab/sysvinit-inittab: add rconflicts
when both installed, do_rootfs report error like:
file /etc/inittab conflicts between attempted installs of
busybox-inittab-1.30.1-r0.qemux86 and sysvinit-inittab-2.88dsf-r10.qemux86

so add each other to rconflicts

(From OE-Core rev: d66114b07ef3e8482fee4c3c93e4f6324c38da3b)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Changqing Li
d365948ebd dropbear: add openssh/openssh-sshd as rconflict
(From OE-Core rev: 0aa21ae925d81cd10d5c44d4d98c9f06df87139d)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Changqing Li
4edba7ecd3 connman: add networkmanager as rconflict
(From OE-Core rev: 240dfe2399ec43c81b3c816c299253ddf6c3a732)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Richard Purdie
26f62f2a7d uninative: Switch from bz2 to xz
(From OE-Core rev: 29fc9210b973be68de474e75068e4c72371afe5a)

(From OE-Core rev: b6645596f2d2faf8f1fdfbedfe1edd004fbce6bc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
Richard Purdie
d57255f4c1 yocto-uninative: Update to 2.5 release
This includes libstdc++ changes from gcc 9.X.

It also switches uninative from bz2 to xz compression.

(From OE-Core rev: 7ed16ec033366aea175ac4ecf7cd82656c4141bb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:02 +01:00
Richard Purdie
cd925d23e3 mdadm: Add missing ptest dependency
Without this the ptest fails, unable to find mkfs.ext3.

(From OE-Core rev: 8f4e7f4ff4eed6503213f2d15bb86c0c86368966)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:02 +01:00
Richard Purdie
31305767c3 util-linux: Fix ptest dependencies
We should append to the ptest RDEPENDS and RRECOMMENDS otherwise the bbclass
defaults are overwritten. This leads to ptest-runner not being installed in
minimal images. Also drop the duplicate ${PN} value which is unneeded once
we do this.

(From OE-Core rev: 5054038567744d09e51e50f8c663f18224d6c555)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:02 +01:00
Richard Purdie
414215be66 ptest-packagelists: Add mdadm
(From OE-Core rev: a6a5c07b3f004f19ac45ae8f34e43d8fa0d330cb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:02 +01:00
Richard Purdie
c6d12254e9 strace: Tweak ptest disk space management
If the test is successful, remove the log and exp files. This stops strace
using around 600MB of disk space and running our ptest images out of space.

(From OE-Core rev: ae94bffc6991efd6a6a74b2c129d3743b5fd1cd3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:02 +01:00
353 changed files with 6589 additions and 4056 deletions

View File

@@ -163,12 +163,35 @@ class LogTee(object):
def __repr__(self):
return '<LogTee {0}>'.format(self.name)
def flush(self):
self.outfile.flush()
class StdoutNoopContextManager:
"""
This class acts like sys.stdout, but adds noop __enter__ and __exit__ methods.
"""
def __enter__(self):
return sys.stdout
def __exit__(self, *exc_info):
pass
def write(self, string):
return sys.stdout.write(string)
def flush(self):
sys.stdout.flush()
@property
def name(self):
return sys.stdout.name
#
# pythonexception allows the python exceptions generated to be raised
# as the real exceptions (not FuncFailed) and without a backtrace at the
# as the real exceptions (not FuncFailed) and without a backtrace at the
# origin of the failure.
#
def exec_func(func, d, dirs = None, pythonexception=False):
@@ -323,6 +346,42 @@ trap 'bb_exit_handler' 0
set -e
'''
def create_progress_handler(func, progress, logfile, d):
if progress == 'percent':
# Use default regex
return bb.progress.BasicProgressHandler(d, outfile=logfile)
elif progress.startswith('percent:'):
# Use specified regex
return bb.progress.BasicProgressHandler(d, regex=progress.split(':', 1)[1], outfile=logfile)
elif progress.startswith('outof:'):
# Use specified regex
return bb.progress.OutOfProgressHandler(d, regex=progress.split(':', 1)[1], outfile=logfile)
elif progress.startswith("custom:"):
# Use a custom progress handler that was injected via OE_EXTRA_IMPORTS or __builtins__
import functools
from types import ModuleType
parts = progress.split(":", 2)
_, cls, otherargs = parts[0], parts[1], (parts[2] or None) if parts[2:] else None
if cls:
def resolve(x, y):
if not x:
return None
if isinstance(x, ModuleType):
return getattr(x, y, None)
return x.get(y)
cls_obj = functools.reduce(resolve, cls.split("."), bb.utils._context)
if not cls_obj:
# Fall-back on __builtins__
cls_obj = functools.reduce(lambda x, y: x.get(y), cls.split("."), __builtins__)
if cls_obj:
return cls_obj(d, outfile=logfile, otherargs=otherargs)
bb.warn('%s: unknown custom progress handler in task progress varflag value "%s", ignoring' % (func, cls))
else:
bb.warn('%s: invalid task progress varflag value "%s", ignoring' % (func, progress))
return logfile
def exec_func_shell(func, d, runfile, cwd=None):
"""Execute a shell function from the metadata
@@ -360,23 +419,13 @@ exit $ret
cmd = [fakerootcmd, runfile]
if bb.msg.loggerDefaultVerbose:
logfile = LogTee(logger, sys.stdout)
logfile = LogTee(logger, StdoutNoopContextManager())
else:
logfile = sys.stdout
logfile = StdoutNoopContextManager()
progress = d.getVarFlag(func, 'progress')
if progress:
if progress == 'percent':
# Use default regex
logfile = bb.progress.BasicProgressHandler(d, outfile=logfile)
elif progress.startswith('percent:'):
# Use specified regex
logfile = bb.progress.BasicProgressHandler(d, regex=progress.split(':', 1)[1], outfile=logfile)
elif progress.startswith('outof:'):
# Use specified regex
logfile = bb.progress.OutOfProgressHandler(d, regex=progress.split(':', 1)[1], outfile=logfile)
else:
bb.warn('%s: invalid task progress varflag value "%s", ignoring' % (func, progress))
logfile = create_progress_handler(func, progress, logfile, d)
fifobuffer = bytearray()
def readfifo(data):
@@ -428,7 +477,7 @@ exit $ret
bb.debug(2, "Executing shell function %s" % func)
try:
with open(os.devnull, 'r+') as stdin:
with open(os.devnull, 'r+') as stdin, logfile:
bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
except bb.process.CmdError:
logfn = d.getVar('BB_LOGFILE')

View File

@@ -237,7 +237,7 @@ def virtualfn2realfn(virtualfn):
Convert a virtual file name to a real one + the associated subclass keyword
"""
mc = ""
if virtualfn.startswith('multiconfig:'):
if virtualfn.startswith('mc:'):
elems = virtualfn.split(':')
mc = elems[1]
virtualfn = ":".join(elems[2:])
@@ -258,7 +258,7 @@ def realfn2virtual(realfn, cls, mc):
if cls:
realfn = "virtual:" + cls + ":" + realfn
if mc:
realfn = "multiconfig:" + mc + ":" + realfn
realfn = "mc:" + mc + ":" + realfn
return realfn
def variant2virtual(realfn, variant):
@@ -267,11 +267,11 @@ def variant2virtual(realfn, variant):
"""
if variant == "":
return realfn
if variant.startswith("multiconfig:"):
if variant.startswith("mc:"):
elems = variant.split(":")
if elems[2]:
return "multiconfig:" + elems[1] + ":virtual:" + ":".join(elems[2:]) + ":" + realfn
return "multiconfig:" + elems[1] + ":" + realfn
return "mc:" + elems[1] + ":virtual:" + ":".join(elems[2:]) + ":" + realfn
return "mc:" + elems[1] + ":" + realfn
return "virtual:" + variant + ":" + realfn
def parse_recipe(bb_data, bbfile, appends, mc=''):
@@ -349,7 +349,7 @@ class NoCache(object):
bb_data = self.databuilder.mcdata[mc].createCopy()
newstores = parse_recipe(bb_data, bbfile, appends, mc)
for ns in newstores:
datastores["multiconfig:%s:%s" % (mc, ns)] = newstores[ns]
datastores["mc:%s:%s" % (mc, ns)] = newstores[ns]
return datastores

View File

@@ -378,8 +378,9 @@ class BBCooker:
if CookerFeatures.BASEDATASTORE_TRACKING in self.featureset:
self.disableDataTracking()
self.data.renameVar("__depends", "__base_depends")
self.add_filewatch(self.data.getVar("__base_depends", False), self.configwatcher)
for mc in self.databuilder.mcdata.values():
mc.renameVar("__depends", "__base_depends")
self.add_filewatch(mc.getVar("__base_depends", False), self.configwatcher)
self.baseconfig_valid = True
self.parsecache_valid = False
@@ -494,6 +495,7 @@ class BBCooker:
"""
fn = None
envdata = None
mc = ''
if not pkgs_to_build:
pkgs_to_build = []
@@ -502,6 +504,12 @@ class BBCooker:
self.enableDataTracking()
self.reset()
def mc_base(p):
if p.startswith('mc:'):
s = p.split(':')
if len(s) == 2:
return s[1]
return None
if buildfile:
# Parse the configuration here. We need to do it explicitly here since
@@ -512,18 +520,16 @@ class BBCooker:
fn = self.matchFile(fn)
fn = bb.cache.realfn2virtual(fn, cls, mc)
elif len(pkgs_to_build) == 1:
ignore = self.data.getVar("ASSUME_PROVIDED") or ""
if pkgs_to_build[0] in set(ignore.split()):
bb.fatal("%s is in ASSUME_PROVIDED" % pkgs_to_build[0])
mc = mc_base(pkgs_to_build[0])
if not mc:
ignore = self.data.getVar("ASSUME_PROVIDED") or ""
if pkgs_to_build[0] in set(ignore.split()):
bb.fatal("%s is in ASSUME_PROVIDED" % pkgs_to_build[0])
taskdata, runlist = self.buildTaskData(pkgs_to_build, None, self.configuration.abort, allowincomplete=True)
taskdata, runlist = self.buildTaskData(pkgs_to_build, None, self.configuration.abort, allowincomplete=True)
mc = runlist[0][0]
fn = runlist[0][3]
else:
envdata = self.data
data.expandKeys(envdata)
parse.ast.runAnonFuncs(envdata)
mc = runlist[0][0]
fn = runlist[0][3]
if fn:
try:
@@ -532,6 +538,12 @@ class BBCooker:
except Exception as e:
parselog.exception("Unable to read %s", fn)
raise
else:
if not mc in self.databuilder.mcdata:
bb.fatal('Not multiconfig named "%s" found' % mc)
envdata = self.databuilder.mcdata[mc]
data.expandKeys(envdata)
parse.ast.runAnonFuncs(envdata)
# Display history
with closing(StringIO()) as env:
@@ -571,10 +583,10 @@ class BBCooker:
wildcard = False
# Wild card expansion:
# Replace string such as "multiconfig:*:bash"
# into "multiconfig:A:bash multiconfig:B:bash bash"
# Replace string such as "mc:*:bash"
# into "mc:A:bash mc:B:bash bash"
for k in targetlist:
if k.startswith("multiconfig:"):
if k.startswith("mc:"):
if wildcard:
bb.fatal('multiconfig conflict')
if k.split(":")[1] == "*":
@@ -607,7 +619,7 @@ class BBCooker:
runlist = []
for k in fulltargetlist:
mc = ""
if k.startswith("multiconfig:"):
if k.startswith("mc:"):
mc = k.split(":")[1]
k = ":".join(k.split(":")[2:])
ktask = task
@@ -626,9 +638,13 @@ class BBCooker:
runlist.append([mc, k, ktask, fn])
bb.event.fire(bb.event.TreeDataPreparationProgress(current, len(fulltargetlist)), self.data)
havemc = False
for mc in self.multiconfigs:
if taskdata[mc].get_mcdepends():
havemc = True
# No need to do check providers if there are no mcdeps or not an mc build
if len(self.multiconfigs) > 1:
if havemc or len(self.multiconfigs) > 1:
seen = set()
new = True
# Make sure we can provide the multiconfig dependency
@@ -688,7 +704,7 @@ class BBCooker:
@staticmethod
def add_mc_prefix(mc, pn):
if mc:
return "multiconfig:%s:%s" % (mc, pn)
return "mc:%s:%s" % (mc, pn)
return pn
def buildDependTree(self, rq, taskdata):
@@ -1465,7 +1481,7 @@ class BBCooker:
ntargets = []
for target in runlist:
if target[0]:
ntargets.append("multiconfig:%s:%s:%s" % (target[0], target[1], target[2]))
ntargets.append("mc:%s:%s:%s" % (target[0], target[1], target[2]))
ntargets.append("%s:%s" % (target[1], target[2]))
for mc in self.multiconfigs:
@@ -1588,6 +1604,9 @@ class BBCooker:
for pkg in pkgs_to_build:
if pkg in ignore:
parselog.warning("Explicit target \"%s\" is in ASSUME_PROVIDED, ignoring" % pkg)
if pkg.startswith("multiconfig:"):
pkgs_to_build.remove(pkg)
pkgs_to_build.append(pkg.replace("multiconfig:", "mc:"))
if 'world' in pkgs_to_build:
pkgs_to_build.remove('world')
@@ -1595,7 +1614,7 @@ class BBCooker:
bb.providers.buildWorldTargetList(self.recipecaches[mc], task)
for t in self.recipecaches[mc].world_target:
if mc:
t = "multiconfig:" + mc + ":" + t
t = "mc:" + mc + ":" + t
pkgs_to_build.append(t)
if 'universe' in pkgs_to_build:
@@ -1614,7 +1633,7 @@ class BBCooker:
bb.debug(1, "Skipping %s for universe tasks as task %s doesn't exist" % (t, task))
continue
if mc:
t = "multiconfig:" + mc + ":" + t
t = "mc:" + mc + ":" + t
pkgs_to_build.append(t)
return pkgs_to_build

View File

@@ -342,14 +342,24 @@ class CookerDataBuilder(object):
data = parse_config_file(layerconf, data)
layers = (data.getVar('BBLAYERS') or "").split()
broken_layers = []
data = bb.data.createCopy(data)
approved = bb.utils.approved_variables()
# Check whether present layer directories exist
for layer in layers:
if not os.path.isdir(layer):
parselog.critical("Layer directory '%s' does not exist! "
"Please check BBLAYERS in %s" % (layer, layerconf))
sys.exit(1)
broken_layers.append(layer)
if broken_layers:
parselog.critical("The following layer directories do not exist:")
for layer in broken_layers:
parselog.critical(" %s", layer)
parselog.critical("Please check BBLAYERS in %s" % (layerconf))
sys.exit(1)
for layer in layers:
parselog.debug(2, "Adding layer %s", layer)
if 'HOME' in approved and '~' in layer:
layer = os.path.expanduser(layer)

View File

@@ -843,6 +843,11 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None, log=None, workdir=None):
if val:
cmd = 'export ' + var + '=\"%s\"; %s' % (val, cmd)
# Ensure that a _PYTHON_SYSCONFIGDATA_NAME value set by a recipe
# (for example via python3native.bbclass since warrior) is not set for
# host Python (otherwise tools like git-make-shallow will fail)
cmd = 'unset _PYTHON_SYSCONFIGDATA_NAME; ' + cmd
# Disable pseudo as it may affect ssh, potentially causing it to hang.
cmd = 'export PSEUDO_DISABLED=1; ' + cmd

View File

@@ -491,7 +491,7 @@ def setup_bitbake(configParams, configuration, extrafeatures=None):
def lockBitbake():
topdir = bb.cookerdata.findTopdir()
if not topdir:
bb.error("Unable to find conf/bblayers.conf or conf/bitbake.conf. BBAPTH is unset and/or not in a build directory?")
bb.error("Unable to find conf/bblayers.conf or conf/bitbake.conf. BBPATH is unset and/or not in a build directory?")
raise BBMainFatal
lockfile = topdir + "/bitbake.lock"
return topdir, bb.utils.lockfile(lockfile, False, False)

View File

@@ -13,6 +13,7 @@ import time
import inspect
import bb.event
import bb.build
from bb.build import StdoutNoopContextManager
class ProgressHandler(object):
"""
@@ -27,7 +28,14 @@ class ProgressHandler(object):
if outfile:
self._outfile = outfile
else:
self._outfile = sys.stdout
self._outfile = StdoutNoopContextManager()
def __enter__(self):
self._outfile.__enter__()
return self
def __exit__(self, *excinfo):
self._outfile.__exit__(*excinfo)
def _fire_progress(self, taskprogress, rate=None):
"""Internal function to fire the progress event"""
@@ -147,6 +155,12 @@ class MultiStageProgressReporter(object):
self._stage_total = None
self._callers = []
def __enter__(self):
return self
def __exit__(self, *excinfo):
pass
def _fire_progress(self, taskprogress):
bb.event.fire(bb.build.TaskProgress(taskprogress), self._data)

View File

@@ -39,7 +39,7 @@ def taskname_from_tid(tid):
return tid.rsplit(":", 1)[1]
def mc_from_tid(tid):
if tid.startswith('multiconfig:'):
if tid.startswith('mc:'):
return tid.split(':')[1]
return ""
@@ -48,12 +48,12 @@ def split_tid(tid):
return (mc, fn, taskname)
def split_tid_mcfn(tid):
if tid.startswith('multiconfig:'):
if tid.startswith('mc:'):
elems = tid.split(':')
mc = elems[1]
fn = ":".join(elems[2:-1])
taskname = elems[-1]
mcfn = "multiconfig:" + mc + ":" + fn
mcfn = "mc:" + mc + ":" + fn
else:
tid = tid.rsplit(":", 1)
mc = ""
@@ -65,7 +65,7 @@ def split_tid_mcfn(tid):
def build_tid(mc, fn, taskname):
if mc:
return "multiconfig:" + mc + ":" + fn + ":" + taskname
return "mc:" + mc + ":" + fn + ":" + taskname
return fn + ":" + taskname
class RunQueueStats:

View File

@@ -179,7 +179,7 @@ class SignatureGeneratorBasic(SignatureGenerator):
def get_taskhash(self, fn, task, deps, dataCache):
mc = ''
if fn.startswith('multiconfig:'):
if fn.startswith('mc:'):
mc = fn.split(':')[1]
k = fn + "." + task
@@ -194,7 +194,7 @@ class SignatureGeneratorBasic(SignatureGenerator):
depmc = pkgname.split(':')[1]
if mc != depmc:
continue
if dep.startswith("multiconfig:") and not mc:
if dep.startswith("mc:") and not mc:
continue
depname = dataCache.pkg_fn[pkgname]
if not self.rundep_check(fn, recipename, task, dep, depname, dataCache):
@@ -412,13 +412,13 @@ def list_inline_diff(oldlist, newlist, colors=None):
def clean_basepath(a):
mc = None
if a.startswith("multiconfig:"):
if a.startswith("mc:"):
_, mc, a = a.split(":", 2)
b = a.rsplit("/", 2)[1] + '/' + a.rsplit("/", 2)[2]
if a.startswith("virtual:"):
b = b + ":" + a.rsplit(":", 1)[0]
if mc:
b = b + ":multiconfig:" + mc
b = b + ":mc:" + mc
return b
def clean_basepaths(a):

View File

@@ -81,7 +81,7 @@ class TaskData:
def add_mcdepends(task):
for dep in task_deps['mcdepends'][task].split():
if len(dep.split(':')) != 5:
bb.msg.fatal("TaskData", "Error for %s:%s[%s], multiconfig dependency %s does not contain exactly four ':' characters.\n Task '%s' should be specified in the form 'multiconfig:fromMC:toMC:packagename:task'" % (fn, task, 'mcdepends', dep, 'mcdepends'))
bb.msg.fatal("TaskData", "Error for %s:%s[%s], multiconfig dependency %s does not contain exactly four ':' characters.\n Task '%s' should be specified in the form 'mc:fromMC:toMC:packagename:task'" % (fn, task, 'mcdepends', dep, 'mcdepends'))
if dep not in self.mcdepends:
self.mcdepends.append(dep)

View File

@@ -300,8 +300,8 @@ class TerminalFilter(object):
if start_time:
pbar.start_time = start_time
pbar.setmessage('%s:%s' % (tasknum, pbar.msg.split(':', 1)[1]))
pbar.setextra(rate)
if progress > -1:
pbar.setextra(rate)
content = pbar.update(progress)
else:
content = pbar.update(1)

View File

@@ -53,7 +53,7 @@
<object model="orm.release" pk="4">
<field type="CharField" name="name">thud</field>
<field type="CharField" name="description">Openembedded Thud</field>
<field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">1</field>
<field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">4</field>
<field type="CharField" name="branch_name">thud</field>
<field type="TextField" name="helptext">Toaster will run your builds using the tip of the &lt;a href=\"http://cgit.openembedded.org/openembedded-core/log/?h=thud\"&gt;OpenEmbedded Thud&lt;/a&gt; branch.</field>
</object>

View File

@@ -58,7 +58,7 @@
<object model="orm.release" pk="4">
<field type="CharField" name="name">thud</field>
<field type="CharField" name="description">Yocto Project 2.6 "Thud"</field>
<field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">1</field>
<field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">4</field>
<field type="CharField" name="branch_name">thud</field>
<field type="TextField" name="helptext">Toaster will run your builds using the tip of the &lt;a href="http://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=thud"&gt;Yocto Project Thud branch&lt;/a&gt;.</field>
</object>

View File

@@ -156,7 +156,7 @@ TARFILES = dev-style.css dev-manual.html \
TARFILES = dev-style.css dev-manual.html figures/buildhistory-web.png \
figures/dev-title.png figures/buildhistory.png \
figures/recipe-workflow.png figures/bitbake-build-flow.png \
figures/multiconfig_files.png
figures/multiconfig_files.png figures/cute-files-npm-example.png
endif
MANUALS = $(DOC)/$(DOC).html
@@ -260,7 +260,7 @@ TARFILES = mega-manual.html mega-style.css \
figures/sdk-devtool-modify-flow.png \
figures/sdk-devtool-upgrade-flow.png figures/bitbake-build-flow.png figures/bypqs-title.png \
figures/overview-manual-title.png figures/sdk-autotools-flow.png figures/sdk-makefile-flow.png \
figures/bb_multiconfig_files.png figures/bitbake-title.png
figures/bb_multiconfig_files.png figures/bitbake-title.png figures/cute-files-npm-example.png
endif
MANUALS = $(DOC)/$(DOC).html

View File

@@ -4197,11 +4197,27 @@
built by layer recipes.
It is recommended to keep recipes up-to-date with upstream
version releases.
</para>
<para>
While several methods exist that allow you upgrade a recipe,
you might consider checking on the upgrade status of a recipe
first.
You can do so using the
<filename>devtool check-upgrade-status</filename> command.
See the
"<ulink url='&YOCTO_DOCS_REF_URL;#devtool-checking-on-the-upgrade-status-of-a-recipe'>Checking on the Upgrade Status of a Recipe</ulink>"
section in the Yocto Project Reference Manual for more information.
</para>
<para>
The remainder of this section describes three ways you can
upgrade a recipe.
You can use the Automated Upgrade Helper (AUH) to set up
automatic version upgrades.
Alternatively, you can use <filename>devtool upgrade</filename>
to set up semi-automatic version upgrades.
Finally, you can even manually upgrade a recipe by editing the
Finally, you can manually upgrade a recipe by editing the
recipe itself.
</para>
@@ -4319,12 +4335,6 @@
directory you just created for AUH.
Make these following configurations:
<itemizedlist>
<listitem><para>
Enable "distrodata" as follows:
<literallayout class='monospaced'>
INHERIT =+ "distrodata"
</literallayout>
</para></listitem>
<listitem><para>
If you want to enable
<ulink url='&YOCTO_DOCS_DEV_URL;#maintaining-build-output-quality'>Build History</ulink>,
@@ -8964,11 +8974,17 @@
<link linkend='handling-optional-module-packaging'>Handling optional module packaging</link>
</para></listitem>
<listitem><para>
<link linkend='using-runtime-package-management'>Using Runtime Package Management</link>
<link linkend='using-runtime-package-management'>Using runtime package management</link>
</para></listitem>
<listitem><para>
<link linkend='generating-and-using-signed-packages'>Generating and using signed packages</link>
</para></listitem>
<listitem><para>
<link linkend='testing-packages-with-ptest'>Setting up and running package test (ptest)</link>
</para></listitem>
<listitem><para>
<link linkend='creating-node-package-manager-npm-packages'>Creating node package manager (NPM) packages</link>
</para></listitem>
</itemizedlist>
</para>
@@ -10397,6 +10413,292 @@
</para>
</section>
</section>
<section id='creating-node-package-manager-npm-packages'>
<title>Creating Node Package Manager (NPM) Packages</title>
<para>
<ulink url='https://en.wikipedia.org/wiki/Npm_(software)'>NPM</ulink>
is a package manager for the JavaScript programming
language.
The Yocto Project supports the NPM
<ulink url='&YOCTO_DOCS_BB_URL;#bb-fetchers'>fetcher</ulink>.
You can use this fetcher in combination with
<ulink url='&YOCTO_DOCS_REF_URL;#ref-devtool-reference'><filename>devtool</filename></ulink>
to create recipes that produce NPM packages.
</para>
<para>
Two workflows exist that allow you to create NPM packages
using <filename>devtool</filename>: the NPM registry modules
method and the NPM project code method.
<note>
While it is possible to create NPM recipes manually,
using <filename>devtool</filename> is far simpler.
</note>
Additionally, some requirements and caveats exist.
</para>
<section id='npm-package-creation-requirements'>
<title>Requirements and Caveats</title>
<para>
You need to be aware of the following before using
<filename>devtool</filename> to create NPM packages:
<itemizedlist>
<listitem><para>
Of the two methods that you can use
<filename>devtool</filename> to create NPM
packages, the registry approach is slightly
simpler.
However, you might consider the project
approach because you do not have to publish
your module in the NPM registry
(<ulink url='https://docs.npmjs.com/misc/registry'><filename>npm-registry</filename></ulink>),
which is NPM's public registry.
</para></listitem>
<listitem><para>
Be familiar with
<ulink url='&YOCTO_DOCS_REF_URL;#ref-devtool-reference'><filename>devtool</filename></ulink>.
</para></listitem>
<listitem><para>
The NPM host tools need the native
<filename>nodejs-npm</filename> package, which
is part of the OpenEmbedded environment.
You need to get the package by cloning the
<ulink url='https://github.com/openembedded/meta-openembedded'></ulink>
repository out of GitHub.
Be sure to add the path to your local copy to
your <filename>bblayers.conf</filename> file.
</para></listitem>
<listitem><para>
<filename>devtool</filename> cannot detect
native libraries in module dependencies.
Consequently, you must manually add packages
to your recipe.
</para></listitem>
<listitem><para>
While deploying NPM packages,
<filename>devtool</filename> cannot determine
which dependent packages are missing on the
target (e.g. the node runtime
<filename>nodejs</filename>).
Consequently, you need to find out what
files are missing and be sure they are on the
target.
</para></listitem>
<listitem><para>
Although you might not need NPM to run your
node package, it is useful to have NPM on your
target.
The NPM package name is
<filename>nodejs-npm</filename>.
</para></listitem>
</itemizedlist>
</para>
</section>
<section id='npm-using-the-registry-modules-method'>
<title>Using the Registry Modules Method</title>
<para>
This section presents an example that uses the
<filename>cute-files</filename> module, which is a
file browser web application.
<note>
You must know the <filename>cute-files</filename>
module version.
</note>
</para>
<para>
The first thing you need to do is use
<filename>devtool</filename> and the NPM fetcher to
create the recipe:
<literallayout class='monospaced'>
$ devtool add "npm://registry.npmjs.org;name=cute-files;version=1.0.2"
</literallayout>
The <filename>devtool add</filename> command runs
<filename>recipetool create</filename> and uses the
same fetch URI to download each dependency and capture
license details where possible.
The result is a generated recipe.
</para>
<para>
The recipe file is fairly simple and contains every
license that <filename>recipetool</filename> finds
and includes the licenses in the recipe's
<ulink url='&YOCTO_DOCS_REF_URL;#var-LIC_FILES_CHKSUM'><filename>LIC_FILES_CHKSUM</filename></ulink>
variables.
You need to examine the variables and look for those
with "unknown" in the
<ulink url='&YOCTO_DOCS_REF_URL;#var-LICENSE'><filename>LICENSE</filename></ulink>
field.
You need to track down the license information for
"unknown" modules and manually add the information to the
recipe.
</para>
<para>
<filename>recipetool</filename> creates "shrinkwrap" and
"lockdown" files for your recipe.
Shrinkwrap files capture the version of all dependent
modules.
Many packages do not provide shrinkwrap files.
<filename>recipetool</filename> create a shrinkwrap
file as it runs.
You can replace the shrinkwrap file with your own file
by setting the <filename>NPM_SHRINKWRAP</filename>
variable.
</para>
<para>
Lockdown files contain the checksum for each module
to determine if your users download the same files when
building with a recipe.
Lockdown files ensure that dependencies have not been
changed and that your NPM registry is still providing
the same file.
<note>
A package is created for each sub-module.
This policy is the only practical way to have the
licenses for all of the dependencies represented
in the license manifest of the image.
</note>
</para>
<para>
The <filename>devtool edit-recipe</filename> command
lets you take a look at the recipe:
<literallayout class='monospaced'>
$ devtool edit-recipe cute-files
SUMMARY = "Turn any folder on your computer into a cute file browser, available on the local network."
LICENSE = "BSD-3-Clause &amp; Unknown &amp; MIT &amp; ISC"
LIC_FILES_CHKSUM = "file://LICENSE;md5=71d98c0a1db42956787b1909c74a86ca \
file://node_modules/content-disposition/LICENSE;md5=c6e0ce1e688c5ff16db06b7259e9cd20 \
file://node_modules/express/LICENSE;md5=5513c00a5c36cd361da863dd9aa8875d \
...
SRC_URI = "npm://registry.npmjs.org;name=cute-files;version=${PV}"
NPM_SHRINKWRAP := "${THISDIR}/${PN}/npm-shrinkwrap.json"
NPM_LOCKDOWN := "${THISDIR}/${PN}/lockdown.json"
inherit npm
# Must be set after inherit npm since that itself sets S
S = "${WORKDIR}/npmpkg"
LICENSE_${PN}-content-disposition = "MIT"
...
LICENSE_${PN}-express = "MIT"
LICENSE_${PN} = "MIT"
</literallayout>
Three key points exist in the previous example:
<itemizedlist>
<listitem><para>
<ulink url='&YOCTO_DOCS_REF_URL;#var-SRC_URI'><filename>SRC_URI</filename></ulink>
uses the NPM scheme so that the NPM fetcher
is used.
</para></listitem>
<listitem><para>
<filename>recipetool</filename> collects all
the license information.
If a sub-module's license is unavailable,
the sub-module's name appears in the comments.
</para></listitem>
<listitem><para>
The <filename>inherit npm</filename> statement
causes the
<ulink url='&YOCTO_DOCS_REF_URL;#ref-classes-npm'><filename>npm</filename></ulink>
class to package up all the modules.
</para></listitem>
</itemizedlist>
</para>
<para>
You can run the following command to build the
<filename>cute-files</filename> package:
<literallayout class='monospaced'>
$ devtool build cute-files
</literallayout>
Remember that <filename>nodejs</filename> must be
installed on the target before your package.
</para>
<para>
Assuming 192.168.7.2 for the target's IP address, use
the following command to deploy your package:
<literallayout class='monospaced'>
$ devtool deploy-target -s cute-files root@192.168.7.2
</literallayout>
Once the package is installed on the target, you can
test the application:
<note>
Because of a know issue, you cannot simply run
<filename>cute-files</filename> as you would if you
had run <filename>npm install</filename>.
</note>
<literallayout class='monospaced'>
$ cd /usr/lib/node_modules/cute-files
$ node cute-files.js
</literallayout>
On a browser, go to
<filename>http://192.168.7.2:3000</filename> and you
see the following:
<imagedata fileref="figures/cute-files-npm-example.png" align="center" width="6in" depth="4in" />
</para>
<para>
You can find the recipe in
<filename>workspace/recipes/cute-files</filename>.
You can use the recipe in any layer you choose.
</para>
</section>
<section id='npm-using-the-npm-projects-method'>
<title>Using the NPM Projects Code Method</title>
<para>
Although it is useful to package modules already in the
NPM registry, adding <filename>node.js</filename> projects
under development is a more common developer use case.
</para>
<para>
This section covers the NPM projects code method, which is
very similar to the "registry" approach described in the
previous section.
In the NPM projects method, you provide
<filename>devtool</filename> with an URL that points to the
source files.
</para>
<para>
Replicating the same example, (i.e.
<filename>cute-files</filename>) use the following command:
<literallayout class='monospaced'>
$ devtool add https://github.com/martinaglv/cute-files.git
</literallayout>
The recipe this command generates is very similar to the
recipe created in the previous section.
However, the <filename>SRC_URI</filename> looks like the
following:
<literallayout class='monospaced'>
SRC_URI = "git://github.com/martinaglv/cute-files.git;protocol=https \
npm://registry.npmjs.org;name=commander;version=2.9.0;subdir=node_modules/commander \
npm://registry.npmjs.org;name=express;version=4.14.0;subdir=node_modules/express \
npm://registry.npmjs.org;name=content-disposition;version=0.3.0;subdir=node_modules/content-disposition \
"
</literallayout>
In this example, the main module is taken from the Git
repository and dependents are taken from the NPM registry.
Other than those differences, the recipe is basically the
same between the two methods.
You can build and deploy the package exactly as described
in the previous section that uses the registry modules
method.
</para>
</section>
</section>
</section>
<section id='efficiently-fetching-source-files-during-a-build'>
@@ -10519,7 +10821,7 @@
<title>Using systemd Exclusively</title>
<para>
Set the these variables in your distribution configuration
Set these variables in your distribution configuration
file as follows:
<literallayout class='monospaced'>
DISTRO_FEATURES_append = " systemd"

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@@ -924,17 +924,18 @@
<title>Source Control Managers (Optional)</title>
<para>
Another place the build system can get source files from is
through a Source Control Manager (SCM) such as Git or
Subversion.
Another place from which the build system can get source
files is with
<ulink url='&YOCTO_DOCS_BB_URL;#bb-fetchers'>fetchers</ulink>
employing various Source Control Managers (SCMs) such as
Git or Subversion.
In such cases, a repository is cloned or checked out.
The
<ulink url='&YOCTO_DOCS_REF_URL;#ref-tasks-fetch'><filename>do_fetch</filename></ulink>
task inside BitBake uses
the <ulink url='&YOCTO_DOCS_REF_URL;#var-SRC_URI'><filename>SRC_URI</filename></ulink>
variable and the argument's prefix to determine the correct
<ulink url='&YOCTO_DOCS_BB_URL;#bb-fetchers'><filename>fetcher</filename></ulink>
module.
fetcher module.
<note>
For information on how to have the OpenEmbedded build
system generate tarballs for Git repositories and place

View File

@@ -2566,9 +2566,7 @@
<link linkend='oe-core'>OE-Core</link>.
The change includes <filename>package_regex.inc</filename> and
<filename>distro_alias.inc</filename>, which are typically enabled
when using the
<link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
class.
when using the <filename>distrodata</filename> class.
Additionally, the contents of
<filename>upstream_tracking.inc</filename> has now been split out
to the relevant recipes.

View File

@@ -335,18 +335,6 @@
</para>
</section>
<section id='ref-classes-bugzilla'>
<title><filename>bugzilla.bbclass</filename></title>
<para>
The <filename>bugzilla</filename> class supports setting up an
instance of Bugzilla in which you can automatically files bug reports
in response to build failures.
For this class to work, you need to enable the XML-RPC interface in
the instance of Bugzilla.
</para>
</section>
<section id='ref-classes-buildhistory'>
<title><filename>buildhistory.bbclass</filename></title>
@@ -714,39 +702,6 @@
</para>
</section>
<section id='ref-classes-distrodata'>
<title><filename>distrodata.bbclass</filename></title>
<para>
The <filename>distrodata</filename> class
provides for automatic checking for upstream recipe updates.
The class creates a comma-separated value (CSV) spreadsheet that
contains information about the recipes.
The information provides the
<link linkend='ref-tasks-distrodata'><filename>do_distrodata</filename></link>
and
<filename>do_distro_check</filename> tasks, which do upstream checking
and also verify if a package is used in multiple major distributions.
</para>
<para>
The class is not included by default.
To use it, you must set the
<link linkend='var-INHERIT'><filename>INHERIT</filename></link>
variable:
<literallayout class='monospaced'>
INHERIT+= "distrodata"
</literallayout>
</para>
<para>
The <filename>distrodata</filename> class also provides the
<link linkend='ref-tasks-checkpkg'><filename>do_checkpkg</filename></link>
task, which can be used against a simple recipe or against an
image to get all its recipe information.
</para>
</section>
<section id='ref-classes-distutils'>
<title><filename>distutils*.bbclass</filename></title>
@@ -776,11 +731,6 @@
some of the <filename>distutils*</filename> classes to provide common
Python2 support.
</para>
<para>
The <filename>distutils-tools</filename> class supports recipes for
additional "distutils" tools.
</para>
</section>
<section id='ref-classes-distutils3'>
@@ -2335,13 +2285,16 @@ This check was removed for YP 2.3 release
<title><filename>npm.bbclass</filename></title>
<para>
Provides support for building Node.js software fetched using the npm
package manager.
Provides support for building Node.js software fetched using the
<ulink url='https://en.wikipedia.org/wiki/Npm_(software)'>node package manager (NPM)</ulink>.
<note>
Currently, recipes inheriting this class must use the
<filename>npm://</filename> fetcher to have dependencies fetched
and packaged automatically.
</note>
For information on how to create NPM packages, see the
"<ulink url='&YOCTO_DOCS_DEV_URL;#creating-node-package-manager-npm-packages'>Creating Node Package Manager (NPM) Packages</ulink>"
section in the Yocto Project Development Tasks Manual.
</para>
</section>

View File

@@ -34,7 +34,7 @@
You can run <filename>devtool --help</filename> to see all
the commands:
<literallayout class='monospaced'>
$ devtool --help
$ devtool -h
NOTE: Starting bitbake server...
usage: devtool [--basepath BASEPATH] [--bbpath BBPATH] [-d] [-q]
[--color COLOR] [-h]
@@ -43,50 +43,48 @@
OpenEmbedded development tool
options:
--basepath BASEPATH Base directory of SDK / build directory
--bbpath BBPATH Explicitly specify the BBPATH, rather than getting it
from the metadata
-d, --debug Enable debug output
-q, --quiet Print only errors
--color COLOR Colorize output (where COLOR is auto, always, never)
-h, --help show this help message and exit
--basepath BASEPATH Base directory of SDK / build directory
--bbpath BBPATH Explicitly specify the BBPATH, rather than getting it
from the metadata
-d, --debug Enable debug output
-q, --quiet Print only errors
--color COLOR Colorize output (where COLOR is auto, always, never)
-h, --help show this help message and exit
subcommands:
Beginning work on a recipe:
add Add a new recipe
modify Modify the source for an existing recipe
upgrade Upgrade an existing recipe
add Add a new recipe
modify Modify the source for an existing recipe
upgrade Upgrade an existing recipe
Getting information:
status Show workspace status
search Search available recipes
latest-version Report the latest version of an existing recipe
status Show workspace status
search Search available recipes
latest-version Report the latest version of an existing recipe
check-upgrade-status Report upgradability for multiple (or all) recipes
Working on a recipe in the workspace:
build Build a recipe
rename Rename a recipe file in the workspace
edit-recipe Edit a recipe file
find-recipe Find a recipe file
configure-help Get help on configure script options
update-recipe Apply changes from external source tree to recipe
reset Remove a recipe from your workspace
finish Finish working on a recipe in your workspace
build Build a recipe
rename Rename a recipe file in the workspace
edit-recipe Edit a recipe file
find-recipe Find a recipe file
configure-help Get help on configure script options
update-recipe Apply changes from external source tree to recipe
reset Remove a recipe from your workspace
finish Finish working on a recipe in your workspace
Testing changes on target:
deploy-target Deploy recipe output files to live target machine
undeploy-target Undeploy recipe output files in live target machine
build-image Build image including workspace recipe packages
deploy-target Deploy recipe output files to live target machine
undeploy-target Undeploy recipe output files in live target machine
build-image Build image including workspace recipe packages
Advanced:
create-workspace Set up workspace in an alternative location
export Export workspace into a tar archive
import Import exported tar archive into workspace
extract Extract the source for an existing recipe
sync Synchronize the source tree for an existing recipe
create-workspace Set up workspace in an alternative location
export Export workspace into a tar archive
import Import exported tar archive into workspace
extract Extract the source for an existing recipe
sync Synchronize the source tree for an existing recipe
Use devtool &lt;subcommand&gt; --help to get help on a specific command
</literallayout>
</para>
<para>
As directed in the general help output, you can get more
syntax on a specific command by providing the command
name and using <filename>--help</filename>:
As directed in the general help output, you can get more syntax
on a specific command by providing the command name and using
"--help":
<literallayout class='monospaced'>
$ devtool add --help
NOTE: Starting bitbake server...
@@ -429,6 +427,108 @@
</para>
</section>
<section id='devtool-checking-on-the-upgrade-status-of-a-recipe'>
<title>Checking on the Upgrade Status of a Recipe</title>
<para>
Upstream recipes change over time.
Consequently, you might find that you need to determine if you
can upgrade a recipe to a newer version.
</para>
<para>
To check on the upgrade status of a recipe, use the
<filename>devtool check-upgrade-status</filename> command.
The command displays a table of your current recipe versions,
the latest upstream versions, the email address of the recipe's
maintainer, and any additional information such as commit hash
strings and reasons you might not be able to upgrade a particular
recipe.
<note><title>NOTES:</title>
<itemizedlist>
<listitem><para>
For the <filename>oe-core</filename> layer, recipe
maintainers come from the
<ulink url='http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/conf/distro/include/maintainers.inc'><filename>maintainers.inc</filename></ulink>
file.
</para></listitem>
<listitem><para>
If the recipe is using the
<ulink url='&YOCTO_DOCS_BB_URL;#git-fetcher'>Git fetcher</ulink>
rather than a tarball, the commit hash points to the
commit that matches the recipe's latest version tag.
</para></listitem>
</itemizedlist>
</note>
</para>
<para>
As with all <filename>devtool</filename> commands, you can get
help on the individual command:
<literallayout class='monospaced'>
$ devtool check-upgrade-status -h
NOTE: Starting bitbake server...
usage: devtool check-upgrade-status [-h] [--all] [recipe [recipe ...]]
Prints a table of recipes together with versions currently provided by
recipes, and latest upstream versions, when there is a later version available
arguments:
recipe Name of the recipe to report (omit to report upgrade info for
all recipes)
options:
-h, --help show this help message and exit
--all, -a Show all recipes, not just recipes needing upgrade
</literallayout>
</para>
<para>
Unless you provide a specific recipe name on the command line,
the command checks all recipes in all configured layers.
</para>
<para>
Following is a partial example table that reports on all the
recipes.
Notice the reported reason for not upgrading the
<filename>base-passwd</filename> recipe.
In this example, while a new version is available upstream,
you do not want to use it because the dependency on
<filename>cdebconf</filename> is not easily satisfied.
<note>
When a reason for not upgrading displays, the reason is
usually written into the recipe using the
<filename>RECIPE_NO_UPDATE_REASON</filename> variable.
See the
<ulink url='http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb'><filename>base-passwd.bb</filename></ulink>
recipe for an example.
</note>
<literallayout class='monospaced'>
$ devtool check-upgrade-status
...
NOTE: acpid 2.0.30 2.0.31
Ross Burton &lt;ross.burton@intel.com&gt;
NOTE: u-boot-fw-utils 2018.11 2019.01
Marek Vasut &lt;marek.vasut@gmail.com&gt;
d3689267f92c5956e09cc7d1baa4700141662bff
NOTE: u-boot-tools 2018.11 2019.01
Marek Vasut &lt;marek.vasut@gmail.com&gt;
d3689267f92c5956e09cc7d1baa4700141662bff
.
.
.
NOTE: base-passwd 3.5.29 3.5.45
Anuj Mittal &lt;anuj.mittal@intel.com&gt; cannot be updated due to: Version
3.5.38 requires cdebconf for update-passwd utility
NOTE: busybox 1.29.2 1.30.0
Andrej Valek &lt;andrej.valek@siemens.com&gt;
NOTE: dbus-test 1.12.10 1.12.12
Chen Qi &lt;Qi.Chen@windriver.com&gt;
</literallayout>
</para>
</section>
<section id='devtool-upgrading-a-recipe'>
<title>Upgrading a Recipe</title>
@@ -443,6 +543,13 @@
section of the Yocto Project Development Tasks Manual.
This section overviews the <filename>devtool upgrade</filename>
command.
<note>
Before you upgrade a recipe, you can check on its upgrade
status.
See the
"<link linkend='devtool-checking-on-the-upgrade-status-of-a-recipe'>Checking on the Upgrade Status of a Recipe</link>"
for more information.
</note>
</para>
<para>

View File

@@ -76,8 +76,6 @@
</para></listitem>
<listitem><para><emphasis>ext2:</emphasis> Hardware HDD or Microdrive
</para></listitem>
<listitem><para><emphasis>irda:</emphasis> Hardware has IrDA support
</para></listitem>
<listitem><para><emphasis>keyboard:</emphasis> Hardware has a keyboard
</para></listitem>
<listitem><para><emphasis>pcbios:</emphasis> Support for booting through BIOS
@@ -190,8 +188,6 @@
support.</para></listitem>
<listitem><para><emphasis>ipv6:</emphasis> Include IPv6 support.
</para></listitem>
<listitem><para><emphasis>irda:</emphasis> Include IrDA support.
</para></listitem>
<listitem><para><emphasis>keyboard:</emphasis> Include keyboard
support (e.g. keymaps will be loaded during boot).
</para></listitem>

View File

@@ -158,32 +158,6 @@
</para>
</section>
<section id='ref-tasks-distrodata'>
<title><filename>do_distrodata</filename></title>
<para>
Provides information about the recipe.
</para>
<para>
The <filename>distrodata</filename> task is included as part of the
<link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
class.
</para>
<para>
To build the <filename>distrodata</filename> task, use the
<filename>bitbake</filename> command with the "-c" option and
task name:
<literallayout class='monospaced'>
$ bitbake core-image-minimal -c distrodata
</literallayout>
By default, the results are stored in
<link linkend='var-LOG_DIR'><filename>$LOG_DIR</filename></link>
(e.g. <filename>$BUILD_DIR/tmp/log</filename>).
</para>
</section>
<section id='ref-tasks-fetch'>
<title><filename>do_fetch</filename></title>
@@ -192,7 +166,8 @@
This task uses the
<link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
variable and the argument's prefix to determine the correct
fetcher module.
<ulink url='&YOCTO_DOCS_BB_URL;#bb-fetchers'>fetcher</ulink>
module.
</para>
</section>
@@ -635,9 +610,18 @@
</para>
<para>
The <filename>checkpkg</filename> task is included as part of the
<link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
class.
To check the upstream version and status of a recipe, use the
following devtool commands:
<literallayout class='monospaced'>
$ devtool latest-version
$ devtool check-upgrade-status
</literallayout>
See the
"<link linkend='ref-devtool-reference'><filename>devtool</filename> Quick Reference</link>"
chapter for more information on <filename>devtool</filename>.
See the
"<ulink url='&YOCTO_DOCS_REF_URL;#devtool-checking-on-the-upgrade-status-of-a-recipe'>Checking on the Upgrade Status of a Recipe</ulink>"
section for information on checking the upgrade status of a recipe.
</para>
<para>

View File

@@ -16629,16 +16629,16 @@
<glossdef>
<para role="glossdeffirst">
<!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
When the
<link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
class is enabled globally, you can perform a per-recipe
check for what the latest upstream source code version is
by calling
You can perform a per-recipe check for what the latest
upstream source code version is by calling
<filename>bitbake -c checkpkg</filename> <replaceable>recipe</replaceable>.
If the recipe source code is provided from Git
repositories, the OpenEmbedded build system determines the
latest upstream version by picking the latest tag from the
list of all repository tags.
</para>
<para>
You can use the
<filename>UPSTREAM_CHECK_GITTAGREGEX</filename>
variable to provide a regular expression to filter only the
@@ -16658,11 +16658,8 @@
<glossdef>
<para role="glossdeffirst">
<!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
When the
<link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
class is enabled globally, use the
<filename>UPSTREAM_CHECK_REGEX</filename> variable to
specify a different regular expression instead of the
Use the <filename>UPSTREAM_CHECK_REGEX</filename> variable
to specify a different regular expression instead of the
default one when the package checking system is parsing
the page found using
<link linkend='var-UPSTREAM_CHECK_URI'><filename>UPSTREAM_CHECK_URI</filename></link>.
@@ -16680,12 +16677,9 @@
<glossdef>
<para role="glossdeffirst">
<!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
When the
<link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
class is enabled globally, you can perform a per-recipe
check for what the latest upstream source code version is
by calling <filename>bitbake -c checkpkg</filename>
<replaceable>recipe</replaceable>.
You can perform a per-recipe check for what the latest
upstream source code version is by calling
<filename>bitbake -c checkpkg</filename> <replaceable>recipe</replaceable>.
If the source code is provided from tarballs, the latest
version is determined by fetching the directory listing
where the tarball is and attempting to find a later tarball.

View File

@@ -825,7 +825,9 @@
versioning schemes, extract code into or out of the
<filename>devtool</filename>
<ulink url='&YOCTO_DOCS_REF_URL;#devtool-the-workspace-layer-structure'>workspace</ulink>,
and work with any source file forms that the fetchers support.
and work with any source file forms that the
<ulink url='&YOCTO_DOCS_BB_URL;#bb-fetchers'>fetchers</ulink>
support.
</para>
<para>

View File

@@ -34,8 +34,8 @@
#MACHINE ?= "mpc8315e-rdb"
#MACHINE ?= "edgerouter"
#
# This sets the default machine to be qemux86 if no other machine is selected:
MACHINE ??= "qemux86"
# This sets the default machine to be qemux86-64 if no other machine is selected:
MACHINE ??= "qemux86-64"
#
# Where to place downloads

View File

@@ -28,3 +28,4 @@ do_install() {
}
FILES_${PN} = "/init ${sysconfdir}/rc.local.sample"
RCONFLICTS_${PN} = "systemd"

View File

@@ -0,0 +1,3 @@
SUMMARY = "Recipe with an alias of an SPDX license"
DESCRIPTION = "Is licensed with an alias of an SPDX license to be used for testing"
LICENSE = "GPLv3"

View File

@@ -0,0 +1,3 @@
SUMMARY = "Recipe with an SPDX license"
DESCRIPTION = "Is licensed with an SPDX license to be used for testing"
LICENSE = "GPL-3.0"

View File

@@ -0,0 +1,3 @@
SUMMARY = "Recipe with a non-SPDX license"
DESCRIPTION = "Is licensed with a non-SPDX license to be used for testing"
LICENSE = "FooLicense"

View File

@@ -8,7 +8,7 @@ MCIMGTYPE_virtclass-mcextend-tiny = "cpio.gz"
MC_DEPLOY_DIR_IMAGE = "${TOPDIR}/tmp-mc-${MCNAME}/deploy/images/${MCMACHINE}"
do_install[mcdepends] += "multiconfig::${MCNAME}:core-image-minimal:do_image_complete multiconfig::${MCNAME}:virtual/kernel:do_deploy"
do_install[mcdepends] += "mc::${MCNAME}:core-image-minimal:do_image_complete mc::${MCNAME}:virtual/kernel:do_deploy"
do_install () {
install -d ${D}/var/lib/machines/${MCNAME}

View File

@@ -18,7 +18,7 @@ IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap"
EXTRA_IMAGECMD_jffs2 = "-lnp "
WKS_FILE ?= "beaglebone-yocto.wks"
IMAGE_INSTALL_append = " kernel-devicetree kernel-image-zimage"
do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot u-boot:do_deploy"
SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyO0"
SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"

View File

@@ -10,9 +10,13 @@ inherit utility-tasks
inherit metadata_scm
inherit logging
OE_IMPORTS += "os sys time oe.path oe.utils oe.types oe.package oe.packagegroup oe.sstatesig oe.lsb oe.cachedpath oe.license"
OE_EXTRA_IMPORTS ?= ""
OE_IMPORTS += "os sys time oe.path oe.utils oe.types oe.package oe.packagegroup oe.sstatesig oe.lsb oe.cachedpath oe.license ${OE_EXTRA_IMPORTS}"
OE_IMPORTS[type] = "list"
PACKAGECONFIG_CONFARGS ??= ""
def oe_import(d):
import sys
@@ -639,6 +643,18 @@ python () {
if needsrcrev:
d.setVar("SRCPV", "${@bb.fetch2.get_srcrev(d)}")
# Gather all named SRCREVs to add to the sstate hash calculation
# This anonymous python snippet is called multiple times so we
# need to be careful to not double up the appends here and cause
# the base hash to mismatch the task hash
for uri in srcuri.split():
parm = bb.fetch.decodeurl(uri)[5]
uri_names = parm.get("name", "").split(",")
for uri_name in filter(None, uri_names):
srcrev_name = "SRCREV_{}".format(uri_name)
if srcrev_name not in (d.getVarFlag("do_fetch", "vardeps") or "").split():
d.appendVarFlag("do_fetch", "vardeps", " {}".format(srcrev_name))
set_packagetriplet(d)
# 'multimachine' handling

View File

@@ -40,15 +40,6 @@ binconfig_package_preprocess () {
-e 's:${STAGING_DIR_HOST}${prefix}:${prefix}:' \
$config
done
for lafile in `find ${PKGD} -type f -name "*.la"` ; do
sed -i \
-e 's:${STAGING_BASELIBDIR}:${base_libdir}:g;' \
-e 's:${STAGING_LIBDIR}:${libdir}:g;' \
-e 's:${STAGING_INCDIR}:${includedir}:g;' \
-e 's:${STAGING_DATADIR}:${datadir}:' \
-e 's:${STAGING_DIR_HOST}${prefix}:${prefix}:' \
$lafile
done
}
SYSROOT_PREPROCESS_FUNCS += "binconfig_sysroot_preprocess"

View File

@@ -839,11 +839,15 @@ python buildhistory_eventhandler() {
if e.data.getVar("BUILDHISTORY_COMMIT") == "1":
bb.note("Writing buildhistory")
bb.build.exec_func("buildhistory_write_sigs", d)
import time
start=time.time()
localdata = bb.data.createCopy(e.data)
localdata.setVar('BUILDHISTORY_BUILD_FAILURES', str(e._failures))
interrupted = getattr(e, '_interrupted', 0)
localdata.setVar('BUILDHISTORY_BUILD_INTERRUPTED', str(interrupted))
bb.build.exec_func("buildhistory_commit", localdata)
stop=time.time()
bb.note("Writing buildhistory took: %s seconds" % round(stop-start))
else:
bb.note("No commit since BUILDHISTORY_COMMIT != '1'")
}

View File

@@ -26,14 +26,16 @@ python() {
if not d.getVar('OECMAKE_C_COMPILER'):
cc_list = d.getVar('CC').split()
if cc_list[0] == 'ccache':
d.setVar('OECMAKE_C_COMPILER', '%s %s' % (cc_list[0], cc_list[1]))
d.setVar('OECMAKE_C_COMPILER_LAUNCHER', cc_list[0])
d.setVar('OECMAKE_C_COMPILER', cc_list[1])
else:
d.setVar('OECMAKE_C_COMPILER', cc_list[0])
if not d.getVar('OECMAKE_CXX_COMPILER'):
cxx_list = d.getVar('CXX').split()
if cxx_list[0] == 'ccache':
d.setVar('OECMAKE_CXX_COMPILER', '%s %s' % (cxx_list[0], cxx_list[1]))
d.setVar('OECMAKE_CXX_COMPILER_LAUNCHER', cxx_list[0])
d.setVar('OECMAKE_CXX_COMPILER', cxx_list[1])
else:
d.setVar('OECMAKE_CXX_COMPILER', cxx_list[0])
}
@@ -49,6 +51,9 @@ OECMAKE_CXX_LINK_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CXXFLAGS} ${LD
CXXFLAGS += "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS}"
CFLAGS += "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS}"
OECMAKE_C_COMPILER_LAUNCHER ?= ""
OECMAKE_CXX_COMPILER_LAUNCHER ?= ""
OECMAKE_RPATH ?= ""
OECMAKE_PERLNATIVE_DIR ??= ""
OECMAKE_EXTRA_ROOT_PATH ?= ""
@@ -86,6 +91,8 @@ set( CMAKE_SYSTEM_NAME `echo ${TARGET_OS} | sed -e 's/^./\u&/' -e 's/^\(Linux\).
set( CMAKE_SYSTEM_PROCESSOR ${@map_target_arch_to_uname_arch(d.getVar('TARGET_ARCH'))} )
set( CMAKE_C_COMPILER ${OECMAKE_C_COMPILER} )
set( CMAKE_CXX_COMPILER ${OECMAKE_CXX_COMPILER} )
set( CMAKE_C_COMPILER_LAUNCHER ${OECMAKE_C_COMPILER_LAUNCHER} )
set( CMAKE_CXX_COMPILER_LAUNCHER ${OECMAKE_CXX_COMPILER_LAUNCHER} )
set( CMAKE_ASM_COMPILER ${OECMAKE_C_COMPILER} )
set( CMAKE_AR ${OECMAKE_AR} CACHE FILEPATH "Archiver" )
set( CMAKE_C_FLAGS "${OECMAKE_C_FLAGS}" CACHE STRING "CFLAGS" )
@@ -112,7 +119,7 @@ set( ENV{QT_CONF_PATH} ${WORKDIR}/qt.conf )
# directory as rpath by default
set( CMAKE_INSTALL_RPATH ${OECMAKE_RPATH} )
# Use native cmake modules
# Use our cmake modules
list(APPEND CMAKE_MODULE_PATH "${STAGING_DATADIR}/cmake/Modules/")
# add for non /usr/lib libdir, e.g. /usr/lib64
@@ -154,15 +161,15 @@ cmake_do_configure() {
$oecmake_sitefile \
${OECMAKE_SOURCEPATH} \
-DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
-DCMAKE_INSTALL_BINDIR:PATH=${@os.path.relpath(d.getVar('bindir'), d.getVar('prefix'))} \
-DCMAKE_INSTALL_SBINDIR:PATH=${@os.path.relpath(d.getVar('sbindir'), d.getVar('prefix'))} \
-DCMAKE_INSTALL_LIBEXECDIR:PATH=${@os.path.relpath(d.getVar('libexecdir'), d.getVar('prefix'))} \
-DCMAKE_INSTALL_BINDIR:PATH=${@os.path.relpath(d.getVar('bindir'), d.getVar('prefix') + '/')} \
-DCMAKE_INSTALL_SBINDIR:PATH=${@os.path.relpath(d.getVar('sbindir'), d.getVar('prefix') + '/')} \
-DCMAKE_INSTALL_LIBEXECDIR:PATH=${@os.path.relpath(d.getVar('libexecdir'), d.getVar('prefix') + '/')} \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=${sysconfdir} \
-DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=${@os.path.relpath(d.getVar('sharedstatedir'), d. getVar('prefix'))} \
-DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=${@os.path.relpath(d.getVar('sharedstatedir'), d. getVar('prefix') + '/')} \
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=${localstatedir} \
-DCMAKE_INSTALL_LIBDIR:PATH=${@os.path.relpath(d.getVar('libdir'), d.getVar('prefix'))} \
-DCMAKE_INSTALL_INCLUDEDIR:PATH=${@os.path.relpath(d.getVar('includedir'), d.getVar('prefix'))} \
-DCMAKE_INSTALL_DATAROOTDIR:PATH=${@os.path.relpath(d.getVar('datadir'), d.getVar('prefix'))} \
-DCMAKE_INSTALL_LIBDIR:PATH=${@os.path.relpath(d.getVar('libdir'), d.getVar('prefix') + '/')} \
-DCMAKE_INSTALL_INCLUDEDIR:PATH=${@os.path.relpath(d.getVar('includedir'), d.getVar('prefix') + '/')} \
-DCMAKE_INSTALL_DATAROOTDIR:PATH=${@os.path.relpath(d.getVar('datadir'), d.getVar('prefix') + '/')} \
-DCMAKE_INSTALL_SO_NO_EXE=0 \
-DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
-DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \

View File

@@ -26,7 +26,7 @@ CVE_PRODUCT ??= "${BPN}"
CVE_VERSION ??= "${PV}"
CVE_CHECK_DB_DIR ?= "${DL_DIR}/CVE_CHECK"
CVE_CHECK_DB_FILE ?= "${CVE_CHECK_DB_DIR}/nvd.db"
CVE_CHECK_DB_FILE ?= "${CVE_CHECK_DB_DIR}/nvd-json.db"
CVE_CHECK_LOG ?= "${T}/cve.log"
CVE_CHECK_TMP_FILE ?= "${TMPDIR}/cve_check"
@@ -62,7 +62,7 @@ python do_cve_check () {
}
addtask cve_check after do_unpack before do_build
do_cve_check[depends] = "cve-check-tool-native:do_populate_sysroot cve-check-tool-native:do_populate_cve_db"
do_cve_check[depends] = "cve-update-db:do_populate_cve_db"
do_cve_check[nostamp] = "1"
python cve_check_cleanup () {
@@ -163,61 +163,55 @@ def get_patches_cves(d):
def check_cves(d, patched_cves):
"""
Run cve-check-tool looking for patched and unpatched CVEs.
Connect to the NVD database and find unpatched cves.
"""
import ast, csv, tempfile, subprocess, io
from distutils.version import LooseVersion
cves_patched = []
cves_unpatched = []
bpn = d.getVar("CVE_PRODUCT")
# CVE_PRODUCT can contain more than one product (eg. curl/libcurl)
bpn = d.getVar("CVE_PRODUCT").split()
# If this has been unset then we're not scanning for CVEs here (for example, image recipes)
if not bpn:
if len(bpn) == 0:
return ([], [])
pv = d.getVar("CVE_VERSION").split("+git")[0]
cves = " ".join(patched_cves)
cve_db_dir = d.getVar("CVE_CHECK_DB_DIR")
cve_whitelist = ast.literal_eval(d.getVar("CVE_CHECK_CVE_WHITELIST"))
cve_cmd = "cve-check-tool"
cmd = [cve_cmd, "--no-html", "--skip-update", "--csv", "--not-affected", "-t", "faux", "-d", cve_db_dir]
# If the recipe has been whitlisted we return empty lists
if d.getVar("PN") in d.getVar("CVE_CHECK_PN_WHITELIST").split():
bb.note("Recipe has been whitelisted, skipping check")
return ([], [])
try:
# Write the faux CSV file to be used with cve-check-tool
fd, faux = tempfile.mkstemp(prefix="cve-faux-")
with os.fdopen(fd, "w") as f:
for pn in bpn.split():
f.write("%s,%s,%s,\n" % (pn, pv, cves))
cmd.append(faux)
import sqlite3
db_file = d.getVar("CVE_CHECK_DB_FILE")
conn = sqlite3.connect(db_file)
c = conn.cursor()
output = subprocess.check_output(cmd).decode("utf-8")
bb.debug(2, "Output of command %s:\n%s" % ("\n".join(cmd), output))
except subprocess.CalledProcessError as e:
bb.warn("Couldn't check for CVEs: %s (output %s)" % (e, e.output))
finally:
os.remove(faux)
query = """SELECT * FROM PRODUCTS WHERE
(PRODUCT IS '{0}' AND VERSION = '{1}' AND OPERATOR IS '=') OR
(PRODUCT IS '{0}' AND OPERATOR IS '<=');"""
for idx in range(len(bpn)):
for row in c.execute(query.format(bpn[idx],pv)):
cve = row[1]
version = row[4]
for row in csv.reader(io.StringIO(output)):
# Third row has the unpatched CVEs
if row[2]:
for cve in row[2].split():
# Skip if the CVE has been whitlisted for the current version
if pv in cve_whitelist.get(cve,[]):
bb.note("%s-%s has been whitelisted for %s" % (bpn, pv, cve))
else:
cves_unpatched.append(cve)
bb.debug(2, "%s-%s is not patched for %s" % (bpn, pv, cve))
# Fourth row has patched CVEs
if row[3]:
for cve in row[3].split():
cves_patched.append(cve)
bb.debug(2, "%s-%s is patched for %s" % (bpn, pv, cve))
try:
discardVersion = LooseVersion(version) < LooseVersion(pv)
except:
discardVersion = True
return (cves_patched, cves_unpatched)
if pv in cve_whitelist.get(cve,[]):
bb.note("%s-%s has been whitelisted for %s" % (bpn[idx], pv, cve))
elif cve in patched_cves:
bb.note("%s has been patched" % (cve))
elif discardVersion:
bb.debug(2, "Do not consider version %s " % (version))
else:
cves_unpatched.append(cve)
bb.debug(2, "%s-%s is not patched for %s" % (bpn[idx], pv, cve))
conn.close()
return (list(patched_cves), cves_unpatched)
def get_cve_info(d, cves):
"""
@@ -241,9 +235,10 @@ def get_cve_info(d, cves):
for row in cur.execute(query, tuple(cves)):
cve_data[row[0]] = {}
cve_data[row[0]]["summary"] = row[1]
cve_data[row[0]]["score"] = row[2]
cve_data[row[0]]["modified"] = row[3]
cve_data[row[0]]["vector"] = row[4]
cve_data[row[0]]["scorev2"] = row[2]
cve_data[row[0]]["scorev3"] = row[3]
cve_data[row[0]]["modified"] = row[4]
cve_data[row[0]]["vector"] = row[5]
conn.close()
return cve_data
@@ -270,7 +265,8 @@ def cve_write_data(d, patched, unpatched, cve_data):
unpatched_cves.append(cve)
write_string += "CVE STATUS: Unpatched\n"
write_string += "CVE SUMMARY: %s\n" % cve_data[cve]["summary"]
write_string += "CVSS v2 BASE SCORE: %s\n" % cve_data[cve]["score"]
write_string += "CVSS v2 BASE SCORE: %s\n" % cve_data[cve]["scorev2"]
write_string += "CVSS v3 BASE SCORE: %s\n" % cve_data[cve]["scorev3"]
write_string += "VECTOR: %s\n" % cve_data[cve]["vector"]
write_string += "MORE INFORMATION: %s%s\n\n" % (nvd_link, cve)

View File

@@ -116,7 +116,7 @@ def devicetree_compile(dtspath, includes, d):
dtcargs += ["-o", "{0}.{1}".format(dtname, "dtbo" if isoverlay else "dtb")]
dtcargs += ["-I", "dts", "-O", "dtb", "{0}.pp".format(dts)]
bb.note("Running {0}".format(" ".join(dtcargs)))
subprocess.run(dtcargs, check = True)
subprocess.run(dtcargs, check = True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
python devicetree_do_compile() {
includes = expand_includes("DT_INCLUDE", d)

View File

@@ -284,7 +284,7 @@ COMPRESSIONTYPES ?= ""
CONVERSIONTYPES = "gz bz2 lzma xz lz4 lzo zip sum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum bmap u-boot vmdk vdi qcow2 base64 ${COMPRESSIONTYPES}"
CONVERSION_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
CONVERSION_CMD_gz = "pigz -f -9 -n -c ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.gz"
CONVERSION_CMD_gz = "gzip -f -9 -n -c ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.gz"
CONVERSION_CMD_bz2 = "pbzip2 -f -k ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
CONVERSION_CMD_xz = "xz -f -k -c ${XZ_COMPRESSION_LEVEL} ${XZ_DEFAULTS} --check=${XZ_INTEGRITY_CHECK} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.xz"
CONVERSION_CMD_lz4 = "lz4 -9 -z -l ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.lz4"

View File

@@ -259,13 +259,6 @@ def package_qa_check_dbg(path, name, d, elf, messages):
package_qa_add_message(messages, "debug-files", "non debug package contains .debug directory: %s path %s" % \
(name, package_qa_clean_path(path,d)))
QAPATHTEST[perms] = "package_qa_check_perm"
def package_qa_check_perm(path,name,d, elf, messages):
"""
Check the permission of files
"""
return
QAPATHTEST[arch] = "package_qa_check_arch"
def package_qa_check_arch(path,name,d, elf, messages):
"""
@@ -408,7 +401,8 @@ def package_qa_check_buildpaths(path, name, d, elf, messages):
with open(path, 'rb') as f:
file_content = f.read()
if tmpdir in file_content:
package_qa_add_message(messages, "buildpaths", "File %s in package contained reference to tmpdir" % package_qa_clean_path(path,d))
trimmed = path.replace(os.path.join (d.getVar("PKGDEST"), name), "")
package_qa_add_message(messages, "buildpaths", "File %s in package %s contains reference to TMPDIR" % (trimmed, name))
QAPATHTEST[xorg-driver-abi] = "package_qa_check_xorg_driver_abi"

View File

@@ -42,7 +42,7 @@ python __anonymous () {
# Verified boot will sign the fitImage and append the public key to
# U-Boot dtb. We ensure the U-Boot dtb is deployed before assembling
# the fitImage:
if d.getVar('UBOOT_SIGN_ENABLE') == "1":
if d.getVar('UBOOT_SIGN_ENABLE') == "1" and d.getVar('UBOOT_DTB_BINARY'):
uboot_pn = d.getVar('PREFERRED_PROVIDER_u-boot') or 'u-boot'
d.appendVarFlag('do_assemble_fitimage', 'depends', ' %s:do_populate_sysroot' % uboot_pn)
}
@@ -50,6 +50,9 @@ python __anonymous () {
# Options for the device tree compiler passed to mkimage '-D' feature:
UBOOT_MKIMAGE_DTCOPTS ??= ""
# fitImage Hash Algo
FIT_HASH_ALG ?= "sha256"
#
# Emit the fitImage ITS header
#
@@ -109,7 +112,7 @@ EOF
# $4 ... Compression type
fitimage_emit_section_kernel() {
kernel_csum="sha1"
kernel_csum="${FIT_HASH_ALG}"
ENTRYPOINT="${UBOOT_ENTRYPOINT}"
if [ -n "${UBOOT_ENTRYSYMBOL}" ]; then
@@ -142,7 +145,7 @@ EOF
# $3 ... Path to DTB image
fitimage_emit_section_dtb() {
dtb_csum="sha1"
dtb_csum="${FIT_HASH_ALG}"
dtb_loadline=""
dtb_ext=${DTB##*.}
@@ -176,7 +179,7 @@ EOF
# $3 ... Path to setup image
fitimage_emit_section_setup() {
setup_csum="sha1"
setup_csum="${FIT_HASH_ALG}"
cat << EOF >> ${1}
setup@${2} {
@@ -203,7 +206,7 @@ EOF
# $3 ... Path to ramdisk image
fitimage_emit_section_ramdisk() {
ramdisk_csum="sha1"
ramdisk_csum="${FIT_HASH_ALG}"
ramdisk_ctype="none"
ramdisk_loadline=""
ramdisk_entryline=""
@@ -261,7 +264,7 @@ EOF
# $6 ... default flag
fitimage_emit_section_config() {
conf_csum="sha1"
conf_csum="${FIT_HASH_ALG}"
if [ -n "${UBOOT_SIGN_ENABLE}" ] ; then
conf_sign_keyname="${UBOOT_SIGN_KEYNAME}"
fi

View File

@@ -5,8 +5,8 @@ uboot_prep_kimage() {
linux_comp="none"
elif [ -e arch/${ARCH}/boot/Image ] ; then
vmlinux_path="vmlinux"
linux_suffix=""
linux_comp="none"
linux_suffix=".gz"
linux_comp="gzip"
elif [ -e arch/${ARCH}/boot/vmlinuz.bin ]; then
rm -f linux.bin
cp -l arch/${ARCH}/boot/vmlinuz.bin linux.bin

View File

@@ -8,6 +8,7 @@ DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc kmod-na
PACKAGE_WRITE_DEPS += "depmodwrapper-cross"
do_deploy[depends] += "depmodwrapper-cross:do_populate_sysroot"
do_clean[depends] += "make-mod-scripts:do_clean"
CVE_PRODUCT ?= "linux_kernel"
@@ -558,7 +559,7 @@ EXPORT_FUNCTIONS do_compile do_install do_configure
# kernel-image becomes kernel-image-${KERNEL_VERSION}
PACKAGES = "${KERNEL_PACKAGE_NAME} ${KERNEL_PACKAGE_NAME}-base ${KERNEL_PACKAGE_NAME}-vmlinux ${KERNEL_PACKAGE_NAME}-image ${KERNEL_PACKAGE_NAME}-dev ${KERNEL_PACKAGE_NAME}-modules"
FILES_${PN} = ""
FILES_${KERNEL_PACKAGE_NAME}-base = "${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.order ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin"
FILES_${KERNEL_PACKAGE_NAME}-base = "${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.order ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo"
FILES_${KERNEL_PACKAGE_NAME}-image = ""
FILES_${KERNEL_PACKAGE_NAME}-dev = "/boot/System.map* /boot/Module.symvers* /boot/config* ${KERNEL_SRC_PATH} ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build"
FILES_${KERNEL_PACKAGE_NAME}-vmlinux = "/boot/vmlinux-${KERNEL_VERSION_NAME}"

View File

@@ -268,7 +268,7 @@ def expand_wildcard_licenses(d, wildcard_licenses):
wildcards from SPDXLICENSEMAP flags and SRC_DISTRIBUTE_LICENSES values.
"""
import fnmatch
licenses = []
licenses = wildcard_licenses[:]
spdxmapkeys = d.getVarFlags('SPDXLICENSEMAP').keys()
for wld_lic in wildcard_licenses:
spdxflags = fnmatch.filter(spdxmapkeys, wld_lic)

View File

@@ -40,7 +40,7 @@ def write_license_files(d, license_manifest, pkg_dic, rootfs=True):
import stat
bad_licenses = (d.getVar("INCOMPATIBLE_LICENSE") or "").split()
bad_licenses = map(lambda l: canonical_license(d, l), bad_licenses)
bad_licenses = [canonical_license(d, l) for l in bad_licenses]
bad_licenses = expand_wildcard_licenses(d, bad_licenses)
with open(license_manifest, "w") as license_file:

View File

@@ -33,6 +33,8 @@ python multilib_virtclass_handler () {
e.data.setVar("MLPREFIX", variant + "-")
e.data.setVar("PN", variant + "-" + e.data.getVar("PN", False))
e.data.setVar('SDKTARGETSYSROOT', e.data.getVar('SDKTARGETSYSROOT'))
override = ":virtclass-multilib-" + variant
e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + override)
target_vendor = e.data.getVar("TARGET_VENDOR_" + "virtclass-multilib-" + variant, False)
if target_vendor:
e.data.setVar("TARGET_VENDOR", target_vendor)

View File

@@ -1005,6 +1005,12 @@ python split_and_strip_files () {
symlinks[file] = target
results = oe.utils.multiprocess_launch(oe.package.is_elf, checkelf.keys(), d)
# Sort results by file path. This ensures that the files are always
# processed in the same order, which is important to make sure builds
# are reproducible when dealing with hardlinks
results.sort(key=lambda x: x[0])
for (file, elf_file) in results:
# It's a file (or hardlink), not a link
# ...but is it ELF, and is it already stripped?
@@ -1343,6 +1349,8 @@ EXPORT_FUNCTIONS package_name_hook
PKGDESTWORK = "${WORKDIR}/pkgdata"
PKGDATA_VARS = "PN PE PV PR PKGE PKGV PKGR LICENSE DESCRIPTION SUMMARY RDEPENDS RPROVIDES RRECOMMENDS RSUGGESTS RREPLACES RCONFLICTS SECTION PKG ALLOW_EMPTY FILES CONFFILES FILES_INFO pkg_postinst pkg_postrm pkg_preinst pkg_prerm"
python emit_pkgdata() {
from glob import glob
import json
@@ -1447,48 +1455,26 @@ fi
total_size += fstat.st_size
d.setVar('FILES_INFO', json.dumps(files, sort_keys=True))
subdata_file = pkgdatadir + "/runtime/%s" % pkg
sf = open(subdata_file, 'w')
write_if_exists(sf, pkg, 'PN')
write_if_exists(sf, pkg, 'PE')
write_if_exists(sf, pkg, 'PV')
write_if_exists(sf, pkg, 'PR')
write_if_exists(sf, pkg, 'PKGE')
write_if_exists(sf, pkg, 'PKGV')
write_if_exists(sf, pkg, 'PKGR')
write_if_exists(sf, pkg, 'LICENSE')
write_if_exists(sf, pkg, 'DESCRIPTION')
write_if_exists(sf, pkg, 'SUMMARY')
write_if_exists(sf, pkg, 'RDEPENDS')
rprov = write_if_exists(sf, pkg, 'RPROVIDES')
write_if_exists(sf, pkg, 'RRECOMMENDS')
write_if_exists(sf, pkg, 'RSUGGESTS')
write_if_exists(sf, pkg, 'RREPLACES')
write_if_exists(sf, pkg, 'RCONFLICTS')
write_if_exists(sf, pkg, 'SECTION')
write_if_exists(sf, pkg, 'PKG')
write_if_exists(sf, pkg, 'ALLOW_EMPTY')
write_if_exists(sf, pkg, 'FILES')
write_if_exists(sf, pkg, 'CONFFILES')
process_postinst_on_target(pkg, d.getVar("MLPREFIX"))
add_set_e_to_scriptlets(pkg)
write_if_exists(sf, pkg, 'pkg_postinst')
write_if_exists(sf, pkg, 'pkg_postrm')
write_if_exists(sf, pkg, 'pkg_preinst')
write_if_exists(sf, pkg, 'pkg_prerm')
write_if_exists(sf, pkg, 'FILERPROVIDESFLIST')
write_if_exists(sf, pkg, 'FILES_INFO')
for dfile in (d.getVar('FILERPROVIDESFLIST_' + pkg) or "").split():
write_if_exists(sf, pkg, 'FILERPROVIDES_' + dfile)
write_if_exists(sf, pkg, 'FILERDEPENDSFLIST')
for dfile in (d.getVar('FILERDEPENDSFLIST_' + pkg) or "").split():
write_if_exists(sf, pkg, 'FILERDEPENDS_' + dfile)
subdata_file = pkgdatadir + "/runtime/%s" % pkg
with open(subdata_file, 'w') as sf:
for var in (d.getVar('PKGDATA_VARS') or "").split():
val = write_if_exists(sf, pkg, var)
sf.write('%s_%s: %d\n' % ('PKGSIZE', pkg, total_size))
sf.close()
write_if_exists(sf, pkg, 'FILERPROVIDESFLIST')
for dfile in (d.getVar('FILERPROVIDESFLIST_' + pkg) or "").split():
write_if_exists(sf, pkg, 'FILERPROVIDES_' + dfile)
write_if_exists(sf, pkg, 'FILERDEPENDSFLIST')
for dfile in (d.getVar('FILERDEPENDSFLIST_' + pkg) or "").split():
write_if_exists(sf, pkg, 'FILERDEPENDS_' + dfile)
sf.write('%s_%s: %d\n' % ('PKGSIZE', pkg, total_size))
# Symlinks needed for rprovides lookup
rprov = d.getVar('RPROVIDES_%s' % pkg) or d.getVar('RPROVIDES')
if rprov:
for p in rprov.strip().split():
subdata_sym = pkgdatadir + "/runtime-rprovides/%s/%s" % (p, pkg)

View File

@@ -1,8 +1,11 @@
DEPENDS += "python-scons-native"
inherit python3native
DEPENDS += "python3-scons-native"
EXTRA_OESCONS ?= ""
do_configure() {
unset _PYTHON_SYSCONFIGDATA_NAME
if [ -n "${CONFIGURESTAMPFILE}" ]; then
if [ -e "${CONFIGURESTAMPFILE}" -a "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ]; then
${STAGING_BINDIR_NATIVE}/scons --clean PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS}
@@ -14,11 +17,13 @@ do_configure() {
}
scons_do_compile() {
unset _PYTHON_SYSCONFIGDATA_NAME
${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
die "scons build execution failed."
}
scons_do_install() {
unset _PYTHON_SYSCONFIGDATA_NAME
${STAGING_BINDIR_NATIVE}/scons install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} install || \
die "scons install execution failed."
}

View File

@@ -168,7 +168,7 @@ def staging_processfixme(fixme, target, recipesysroot, recipesysrootnative, d):
if not fixme:
return
cmd = "sed -e 's:^[^/]*/:%s/:g' %s | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:%s:g; s:FIXMESTAGINGDIRHOST:%s:g'" % (target, " ".join(fixme), recipesysroot, recipesysrootnative)
for fixmevar in ['COMPONENTS_DIR', 'HOSTTOOLS_DIR', 'PKGDATA_DIR', 'PSEUDO_LOCALSTATEDIR', 'LOGFIFO']:
for fixmevar in ['PSEUDO_SYSROOT', 'HOSTTOOLS_DIR', 'PKGDATA_DIR', 'PSEUDO_LOCALSTATEDIR', 'LOGFIFO']:
fixme_path = d.getVar(fixmevar)
cmd += " -e 's:FIXME_%s:%s:g'" % (fixmevar, fixme_path)
bb.debug(2, cmd)

View File

@@ -210,7 +210,11 @@ def testimage_main(d):
bb.fatal('Unsupported image type built. Add a comptible image to '
'IMAGE_FSTYPES. Supported types: %s' %
', '.join(supported_fstypes))
rootfs = '%s.%s' % (image_name, fstypes[0])
qfstype = fstypes[0]
qdeffstype = d.getVar("QB_DEFAULT_FSTYPE")
if qdeffstype:
qfstype = qdeffstype
rootfs = '%s.%s' % (image_name, qfstype)
# Get tmpdir (not really used, just for compatibility)
tmpdir = d.getVar("TMPDIR")

View File

@@ -116,7 +116,7 @@ do_install_append() {
}
python () {
if d.getVar('UBOOT_SIGN_ENABLE') == '1' and d.getVar('PN') == d.getVar('UBOOT_PN'):
if d.getVar('UBOOT_SIGN_ENABLE') == '1' and d.getVar('PN') == d.getVar('UBOOT_PN') and d.getVar('UBOOT_DTB_BINARY'):
kernel_pn = d.getVar('PREFERRED_PROVIDER_virtual/kernel')
# Make "bitbake u-boot -cdeploy" deploys the signed u-boot.dtb

View File

@@ -2,7 +2,7 @@ UNINATIVE_LOADER ?= "${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux/lib/
UNINATIVE_STAGING_DIR ?= "${STAGING_DIR}"
UNINATIVE_URL ?= "unset"
UNINATIVE_TARBALL ?= "${BUILD_ARCH}-nativesdk-libc.tar.bz2"
UNINATIVE_TARBALL ?= "${BUILD_ARCH}-nativesdk-libc.tar.xz"
# Example checksums
#UNINATIVE_CHECKSUM[aarch64] = "dead"
#UNINATIVE_CHECKSUM[i686] = "dead"
@@ -89,7 +89,7 @@ python uninative_event_fetchloader() {
cmd = d.expand("\
mkdir -p ${UNINATIVE_STAGING_DIR}-uninative; \
cd ${UNINATIVE_STAGING_DIR}-uninative; \
tar -xjf ${UNINATIVE_DLDIR}/%s/${UNINATIVE_TARBALL}; \
tar -xJf ${UNINATIVE_DLDIR}/%s/${UNINATIVE_TARBALL}; \
${UNINATIVE_STAGING_DIR}-uninative/relocate_sdk.py \
${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux \
${UNINATIVE_LOADER} \

View File

@@ -100,6 +100,8 @@ useradd_sysroot () {
# Pseudo may (do_prepare_recipe_sysroot) or may not (do_populate_sysroot_setscene) be running
# at this point so we're explicit about the environment so pseudo can load if
# not already present.
# PSEUDO_SYSROOT can contain references to the build architecture and COMPONENT_DIR
# so needs the STAGING_FIXME below
export PSEUDO="${FAKEROOTENV} ${PSEUDO_SYSROOT}${bindir_native}/pseudo"
# Explicitly set $D since it isn't set to anything
@@ -134,10 +136,10 @@ useradd_sysroot () {
}
# The export of PSEUDO in useradd_sysroot() above contains references to
# ${COMPONENTS_DIR} and ${PSEUDO_LOCALSTATEDIR}. Additionally, the logging
# ${PSEUDO_SYSROOT} and ${PSEUDO_LOCALSTATEDIR}. Additionally, the logging
# shell functions use ${LOGFIFO}. These need to be handled when restoring
# postinst-useradd-${PN} from the sstate cache.
EXTRA_STAGING_FIXMES += "COMPONENTS_DIR PSEUDO_LOCALSTATEDIR LOGFIFO"
EXTRA_STAGING_FIXMES += "PSEUDO_SYSROOT PSEUDO_LOCALSTATEDIR LOGFIFO"
python useradd_sysroot_sstate () {
scriptfile = None
@@ -182,6 +184,7 @@ def update_useradd_after_parse(d):
bb.fatal("%s inherits useradd but doesn't set USERADD_PACKAGES" % d.getVar('FILE', False))
for pkg in useradd_packages.split():
d.appendVarFlag("do_populate_sysroot", "vardeps", "USERADD_PARAM_%s GROUPADD_PARAM_%s GROUPMEMS_PARAM_%s" % (pkg, pkg, pkg))
if not d.getVar('USERADD_PARAM_%s' % pkg) and not d.getVar('GROUPADD_PARAM_%s' % pkg) and not d.getVar('GROUPMEMS_PARAM_%s' % pkg):
bb.fatal("%s inherits useradd but doesn't set USERADD_PARAM, GROUPADD_PARAM or GROUPMEMS_PARAM for package %s" % (d.getVar('FILE', False), pkg))

View File

@@ -42,6 +42,7 @@ PREFERRED_PROVIDER_opkg ?= "opkg"
PREFERRED_PROVIDER_opkg-native ?= "opkg-native"
PREFERRED_PROVIDER_nativesdk-opkg ?= "nativesdk-opkg"
PREFERRED_PROVIDER_console-tools ?= "kbd"
PREFERRED_PROVIDER_gzip-native ?= "pigz-native"
PREFERRED_PROVIDER_udev ?= "${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','eudev',d)}"
PREFERRED_RPROVIDER_bluez-hcidump ?= "${@bb.utils.contains('DISTRO_FEATURES','bluetooth bluez5','bluez5','bluez-hcidump',d)}"
# Alternative is ltp-ddt in meta-oe: meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb

View File

@@ -136,6 +136,7 @@ RECIPE_MAINTAINER_pn-cryptodev-tests = "Robert Yang <liezhi.yang@windriver.com>"
RECIPE_MAINTAINER_pn-cups = "Chen Qi <Qi.Chen@windriver.com>"
RECIPE_MAINTAINER_pn-curl = "Armin Kuster <akuster808@gmail.com>"
RECIPE_MAINTAINER_pn-cve-check-tool = "Ross Burton <ross.burton@intel.com>"
RECIPE_MAINTAINER_pn-cve-update-db = "Ross Burton <ross.burton@intel.com>"
RECIPE_MAINTAINER_pn-cwautomacros = "Ross Burton <ross.burton@intel.com>"
RECIPE_MAINTAINER_pn-db = "Mark Hatle <mark.hatle@windriver.com>"
RECIPE_MAINTAINER_pn-dbus = "Chen Qi <Qi.Chen@windriver.com>"
@@ -162,6 +163,8 @@ RECIPE_MAINTAINER_pn-dtc = "Alexander Kanavin <alex.kanavin@gmail.com>"
RECIPE_MAINTAINER_pn-dwarfsrcfiles = "Alexander Kanavin <alex.kanavin@gmail.com>"
RECIPE_MAINTAINER_pn-e2fsprogs = "Robert Yang <liezhi.yang@windriver.com>"
RECIPE_MAINTAINER_pn-ed = "Alexander Kanavin <alex.kanavin@gmail.com>"
RECIPE_MAINTAINER_pn-efivar = "Ross Burton <ross.burton@intel.com>"
RECIPE_MAINTAINER_pn-efibootmgr = "Ross Burton <ross.burton@intel.com>"
RECIPE_MAINTAINER_pn-eglinfo-fb = "Alexander Kanavin <alex.kanavin@gmail.com>"
RECIPE_MAINTAINER_pn-eglinfo-x11 = "Alexander Kanavin <alex.kanavin@gmail.com>"
RECIPE_MAINTAINER_pn-eglinfo-wayland = "Alexander Kanavin <alex.kanavin@gmail.com>"
@@ -312,6 +315,7 @@ RECIPE_MAINTAINER_pn-libatomic-ops = "Anuj Mittal <anuj.mittal@intel.com>"
RECIPE_MAINTAINER_pn-libbsd = "Yi Zhao <yi.zhao@windriver.com>"
RECIPE_MAINTAINER_pn-libcap = "Yi Zhao <yi.zhao@windriver.com>"
RECIPE_MAINTAINER_pn-libcap-ng = "Yi Zhao <yi.zhao@windriver.com>"
RECIPE_MAINTAINER_pn-libcap-ng-python = "Yi Zhao <yi.zhao@windriver.com>"
RECIPE_MAINTAINER_pn-libcgroup = "Alexander Kanavin <alex.kanavin@gmail.com>"
RECIPE_MAINTAINER_pn-libcheck = "Yi Zhao <yi.zhao@windriver.com>"
RECIPE_MAINTAINER_pn-libcomps = "Alexander Kanavin <alex.kanavin@gmail.com>"
@@ -352,6 +356,7 @@ RECIPE_MAINTAINER_pn-libksba = "Alexander Kanavin <alex.kanavin@gmail.com>"
RECIPE_MAINTAINER_pn-libmatchbox = "Ross Burton <ross.burton@intel.com>"
RECIPE_MAINTAINER_pn-libmnl = "Khem Raj <raj.khem@gmail.com>"
RECIPE_MAINTAINER_pn-libmpc = "Khem Raj <raj.khem@gmail.com>"
RECIPE_MAINTAINER_pn-libmodule-build-perl = "Tim Orling <timothy.t.orling@linux.intel.com>"
RECIPE_MAINTAINER_pn-libmodulemd = "Alexander Kanavin <alex.kanavin@gmail.com>"
RECIPE_MAINTAINER_pn-libnewt = "Hongxu Jia <hongxu.jia@windriver.com>"
RECIPE_MAINTAINER_pn-libnewt-python = "Hongxu Jia <hongxu.jia@windriver.com>"
@@ -406,6 +411,7 @@ RECIPE_MAINTAINER_pn-libxcb = "Armin Kuster <akuster808@gmail.com>"
RECIPE_MAINTAINER_pn-libxcomposite = "Armin Kuster <akuster808@gmail.com>"
RECIPE_MAINTAINER_pn-libxcursor = "Armin Kuster <akuster808@gmail.com>"
RECIPE_MAINTAINER_pn-libxcrypt = "Khem Raj <raj.khem@gmail.com>"
RECIPE_MAINTAINER_pn-libxcrypt-compat = "Khem Raj <raj.khem@gmail.com>"
RECIPE_MAINTAINER_pn-libxdamage = "Armin Kuster <akuster808@gmail.com>"
RECIPE_MAINTAINER_pn-libxdmcp = "Armin Kuster <akuster808@gmail.com>"
RECIPE_MAINTAINER_pn-libxext = "Armin Kuster <akuster808@gmail.com>"
@@ -535,6 +541,7 @@ RECIPE_MAINTAINER_pn-nspr = "Armin Kuster <akuster808@gmail.com>"
RECIPE_MAINTAINER_pn-nss = "Armin Kuster <akuster808@gmail.com>"
RECIPE_MAINTAINER_pn-nss-myhostname = "Anuj Mittal <anuj.mittal@intel.com>"
RECIPE_MAINTAINER_pn-ofono = "Ross Burton <ross.burton@intel.com>"
RECIPE_MAINTAINER_pn-opensbi = "Alistair Francis <alistair.francis@wdc.com>"
RECIPE_MAINTAINER_pn-openssh = "Armin Kuster <akuster808@gmail.com>"
RECIPE_MAINTAINER_pn-openssl = "Alexander Kanavin <alex.kanavin@gmail.com>"
RECIPE_MAINTAINER_pn-opkg = "Alejandro del Castillo <alejandro.delcastillo@ni.com>"
@@ -602,7 +609,10 @@ RECIPE_MAINTAINER_pn-python3-numpy = "Derek Straka <derek@asterius.io>"
RECIPE_MAINTAINER_pn-python3-pbr = "Derek Straka <derek@asterius.io>"
RECIPE_MAINTAINER_pn-python3-pip = "Derek Straka <derek@asterius.io>"
RECIPE_MAINTAINER_pn-python3-pycairo = "Derek Straka <derek@asterius.io>"
RECIPE_MAINTAINER_pn-python3-pygments = "Derek Straka <derek@asterius.io>"
RECIPE_MAINTAINER_pn-python3-pygobject = "Derek Straka <derek@asterius.io>"
RECIPE_MAINTAINER_pn-python3-scons = "Tim Orling <timothy.t.orling@linux.intel.com>"
RECIPE_MAINTAINER_pn-python3-scons-native = "Tim Orling <timothy.t.orling@linux.intel.com>"
RECIPE_MAINTAINER_pn-python3-setuptools = "Derek Straka <derek@asterius.io>"
RECIPE_MAINTAINER_pn-python3-six = "Derek Straka <derek@asterius.io>"
RECIPE_MAINTAINER_pn-python3-smmap = "Derek Straka <derek@asterius.io>"
@@ -644,7 +654,6 @@ RECIPE_MAINTAINER_pn-shutdown-desktop = "Alexander Kanavin <alex.kanavin@gmail.c
RECIPE_MAINTAINER_pn-signing-keys = "Richard Purdie <richard.purdie@linuxfoundation.org>"
RECIPE_MAINTAINER_pn-slang = "Yi Zhao <yi.zhao@windriver.com>"
RECIPE_MAINTAINER_pn-socat = "Hongxu Jia <hongxu.jia@windriver.com>"
RECIPE_MAINTAINER_pn-source-highlight = "Alexander Kanavin <alex.kanavin@gmail.com>"
RECIPE_MAINTAINER_pn-speex = "Tanu Kaskinen <tanuk@iki.fi>"
RECIPE_MAINTAINER_pn-speexdsp = "Tanu Kaskinen <tanuk@iki.fi>"
RECIPE_MAINTAINER_pn-sqlite3 = "Anuj Mittal <anuj.mittal@intel.com>"
@@ -722,6 +731,7 @@ RECIPE_MAINTAINER_pn-weston-init = "Denys Dmytriyenko <denys@ti.com>"
RECIPE_MAINTAINER_pn-wget = "Yi Zhao <yi.zhao@windriver.com>"
RECIPE_MAINTAINER_pn-which = "Anuj Mittal <anuj.mittal@intel.com>"
RECIPE_MAINTAINER_pn-wic-tools = "Anuj Mittal <anuj.mittal@intel.com>"
RECIPE_MAINTAINER_pn-wireless-regdb = "Adrian Bunk <bunk@kernel.org>"
RECIPE_MAINTAINER_pn-wpa-supplicant = "Changhyeok Bae <changhyeok.bae@gmail.com>"
RECIPE_MAINTAINER_pn-x11perf = "Armin Kuster <akuster808@gmail.com>"
RECIPE_MAINTAINER_pn-x264 = "Anuj Mittal <anuj.mittal@intel.com>"

View File

@@ -65,6 +65,7 @@ PTESTS_SLOW = "\
gstreamer1.0-ptest \
libevent-ptest \
lttng-tools-ptest \
mdadm-ptest \
openssh-ptest \
openssl-ptest \
perl-ptest \

View File

@@ -8,7 +8,7 @@
UNINATIVE_MAXGLIBCVERSION = "2.29"
UNINATIVE_URL ?= "http://downloads.yoctoproject.org/releases/uninative/2.4/"
UNINATIVE_CHECKSUM[aarch64] ?= "af2e2faf6cf00ff45cc1bcd5e3fb00cee7f79b3ec7c3be15917ad4ff8c154cfe"
UNINATIVE_CHECKSUM[i686] ?= "fafacfc537a6ce2bd122bd16c146881ab5ac69bd575abf6cb68a0dd33fa70ea2"
UNINATIVE_CHECKSUM[x86_64] ?= "06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0"
UNINATIVE_URL ?= "http://downloads.yoctoproject.org/releases/uninative/2.5/"
UNINATIVE_CHECKSUM[aarch64] ?= "ca977ff95c77f983570141908d451ff7d78add2864471605af404302bb36a1fa"
UNINATIVE_CHECKSUM[i686] ?= "7b5822891c293795faf8a4a80586b36f8cde405387524916a24f9055ea82f7ca"
UNINATIVE_CHECKSUM[x86_64] ?= "ed0ac07c710b711925cb976685dd855fb1d442dd840d00194751c18bf480c4ed"

View File

@@ -0,0 +1,10 @@
# RISCV Architecture definition
DEFAULTTUNE ?= "riscv64"
TUNE_ARCH = "${TUNE_ARCH_tune-${DEFAULTTUNE}}"
TUNE_PKGARCH = "${TUNE_PKGARCH_tune-${DEFAULTTUNE}}"
TUNE_CCARGS .= ""
# QEMU usermode fails with invalid instruction error (For riscv32)
MACHINE_FEATURES_BACKFILL_CONSIDERED_append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv32', ' qemu-usermode', '', d)}"

View File

@@ -0,0 +1,45 @@
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
require conf/machine/include/qemu.inc
require conf/machine/include/riscv/tune-riscv.inc
MACHINE_FEATURES = "screen keyboard ext2 ext3 serial"
KERNEL_IMAGETYPE = "Image"
SERIAL_CONSOLES ?= "115200;ttyS0 115200;hvc0"
IMAGE_FSTYPES_append = " ext4"
MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
EXTRA_IMAGEDEPENDS += "opensbi"
RISCV_SBI_PLAT ?= "qemu/virt"
RISCV_SBI_PAYLOAD ?= "${KERNEL_IMAGETYPE}-${MACHINE}.bin"
# qemuboot options
QB_KERNEL_CMDLINE_APPEND = "earlycon=sbi"
QB_MEM = "-m 512"
QB_MACHINE = "-machine virt"
QB_DEFAULT_KERNEL = "fw_jump.elf"
QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"
QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@"
QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0"
QB_SERIAL_OPT = "-device virtio-serial-device -chardev null,id=virtcon -device virtconsole,chardev=virtcon"
QB_TCPSERIAL_OPT = " -device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon"
# Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy
QB_OPT_APPEND = " -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-device,rng=rng0"
BAD_RECOMMENDATIONS += "\
libcxx-dev \
libcxx-staticdev \
compiler-rt-dev \
compiler-rt-staticdev \
"
ASSUME_PROVIDED += "\
libcxx-dev \
libcxx-staticdev \
compiler-rt-dev \
compiler-rt-staticdev \
"

View File

@@ -0,0 +1,19 @@
require conf/machine/include/riscv/arch-riscv.inc
TUNEVALID[riscv64] = "Enable 64-bit RISC-V optimizations"
TUNEVALID[riscv32] = "Enable 32-bit RISC-V optimizations"
TUNEVALID[littleendian] = "Little endian mode"
AVAILTUNES += "riscv64 riscv32"
TUNE_FEATURES_tune-riscv64 = "riscv64 littleendian"
TUNE_ARCH_tune-riscv64 = "riscv64"
TUNE_PKGARCH_tune-riscv64 = "riscv64"
PACKAGE_EXTRA_ARCHS_tune-riscv64 = "riscv64"
TUNE_FEATURES_tune-riscv32 = "riscv32 littleendian"
TUNE_ARCH_tune-riscv32 = "riscv32"
TUNE_PKGARCH_tune-riscv32 = "riscv32"
PACKAGE_EXTRA_ARCHS_tune-riscv32 = "riscv32"

View File

@@ -15,5 +15,5 @@ TUNE_FEATURES_tune-thunderx_be = "${TUNE_FEATURES_tune-thunderx} bigendian"
BASE_LIB_tune-thunderx = "lib64"
BASE_LIB_tune-thunderx_be = "lib64"
PACKAGE_EXTRA_ARCHS_tune-thunderx = "armv8a-crc-crypto thunderx"
PACKAGE_EXTRA_ARCHS_tune-thunderx = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} thunderx"
PACKAGE_EXTRA_ARCHS_tune-thunderx_be = "aarch64_be thunderx_be"

View File

@@ -14,6 +14,7 @@ QB_SYSTEM_NAME = "qemu-system-aarch64"
QB_MEM = "-m 512"
QB_MACHINE = "-machine virt"
QB_CPU = "-cpu cortex-a57"
QB_CPU_KVM = "-cpu host"
# Standard Serial console
QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0"
# For graphics to work we need to define the VGA device as well as the necessary USB devices

View File

@@ -0,0 +1,11 @@
#@TYPE: Machine
#@NAME: generic riscv64 machine
#@DESCRIPTION: Machine configuration for running a generic riscv64
require conf/machine/include/riscv/qemuriscv.inc
QB_OPT_APPEND = "-show-cursor -monitor null -device loader,file=${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE},addr=0x80200000"
EXTRA_IMAGEDEPENDS += "u-boot"
UBOOT_MACHINE = "qemu-riscv64_defconfig"
UBOOT_ELF = "u-boot"

View File

@@ -15,21 +15,27 @@ class LocalSigner(object):
def __init__(self, d):
self.gpg_bin = d.getVar('GPG_BIN') or \
bb.utils.which(os.getenv('PATH'), 'gpg')
self.gpg_path = d.getVar('GPG_PATH')
self.gpg_version = self.get_gpg_version()
self.rpm_bin = bb.utils.which(os.getenv('PATH'), "rpmsign")
self.gpg_cmd = [self.gpg_bin]
self.gpg_agent_bin = bb.utils.which(os.getenv('PATH'), "gpg-agent")
# Without this we see "Cannot allocate memory" errors when running processes in parallel
# It needs to be set for any gpg command since any agent launched can stick around in memory
# and this parameter must be set.
if self.gpg_agent_bin:
self.gpg_cmd += ["--agent-program=%s|--auto-expand-secmem" % (self.gpg_agent_bin)]
self.gpg_path = d.getVar('GPG_PATH')
self.rpm_bin = bb.utils.which(os.getenv('PATH'), "rpmsign")
self.gpg_version = self.get_gpg_version()
def export_pubkey(self, output_file, keyid, armor=True):
"""Export GPG public key to a file"""
cmd = '%s --no-permission-warning --batch --yes --export -o %s ' % \
(self.gpg_bin, output_file)
cmd = self.gpg_cmd + ["--no-permission-warning", "--batch", "--yes", "--export", "-o", output_file]
if self.gpg_path:
cmd += "--homedir %s " % self.gpg_path
cmd += ["--homedir", self.gpg_path]
if armor:
cmd += "--armor "
cmd += keyid
subprocess.check_output(shlex.split(cmd), stderr=subprocess.STDOUT)
cmd += ["--armor"]
cmd += [keyid]
subprocess.check_output(cmd, stderr=subprocess.STDOUT)
def sign_rpms(self, files, keyid, passphrase, digest, sign_chunk, fsk=None, fsk_password=None):
"""Sign RPM files"""
@@ -59,7 +65,7 @@ class LocalSigner(object):
if passphrase_file and passphrase:
raise Exception("You should use either passphrase_file of passphrase, not both")
cmd = [self.gpg_bin, '--detach-sign', '--no-permission-warning', '--batch',
cmd = self.gpg_cmd + ['--detach-sign', '--no-permission-warning', '--batch',
'--no-tty', '--yes', '--passphrase-fd', '0', '-u', keyid]
if self.gpg_path:
@@ -72,9 +78,6 @@ class LocalSigner(object):
if self.gpg_version > (2,1,):
cmd += ['--pinentry-mode', 'loopback']
if self.gpg_agent_bin:
cmd += ["--agent-program=%s|--auto-expand-secmem" % (self.gpg_agent_bin)]
cmd += [input_file]
try:
@@ -101,7 +104,8 @@ class LocalSigner(object):
def get_gpg_version(self):
"""Return the gpg version as a tuple of ints"""
try:
ver_str = subprocess.check_output((self.gpg_bin, "--version", "--no-permission-warning")).split()[2].decode("utf-8")
cmd = self.gpg_cmd + ["--version", "--no-permission-warning"]
ver_str = subprocess.check_output(cmd).split()[2].decode("utf-8")
return tuple([int(i) for i in ver_str.split("-")[0].split('.')])
except subprocess.CalledProcessError as e:
raise bb.build.FuncFailed("Could not get gpg version: %s" % e)
@@ -109,11 +113,12 @@ class LocalSigner(object):
def verify(self, sig_file):
"""Verify signature"""
cmd = self.gpg_bin + " --verify --no-permission-warning "
cmd = self.gpg_cmd + [" --verify", "--no-permission-warning"]
if self.gpg_path:
cmd += "--homedir %s " % self.gpg_path
cmd += sig_file
status = subprocess.call(shlex.split(cmd))
cmd += ["--homedir", self.gpg_path]
cmd += [sig_file]
status = subprocess.call(cmd)
ret = False if status else True
return ret

View File

@@ -934,7 +934,7 @@ def get_recipe_pv_without_srcpv(pv, uri_type):
sfx = ''
if uri_type == 'git':
git_regex = re.compile(r"(?P<pfx>v?)(?P<ver>[^\+]*)((?P<sfx>\+(git)?r?(AUTOINC\+))(?P<rev>.*))?")
git_regex = re.compile(r"(?P<pfx>v?)(?P<ver>.*?)(?P<sfx>\+[^\+]*(git)?r?(AUTOINC\+))(?P<rev>.*)")
m = git_regex.match(pv)
if m:

View File

@@ -647,6 +647,7 @@ class DpkgRootfs(DpkgOpkgRootfs):
if pkg_type in pkgs_to_install:
self.pm.install(pkgs_to_install[pkg_type],
[False, True][pkg_type == Manifest.PKG_TYPE_ATTEMPT_ONLY])
self.pm.fix_broken_dependencies()
if self.progress_reporter:
# Don't support attemptonly, so skip that

View File

@@ -155,7 +155,7 @@ class SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash):
else:
def get_mc(tid):
tid = tid.rsplit('.', 1)[0]
if tid.startswith('multiconfig:'):
if tid.startswith('mc:'):
elems = tid.split(':')
return elems[1]
def recipename_from_dep(dep):

View File

@@ -9,6 +9,7 @@ import json
import time
import logging
import collections
import unittest
from oeqa.core.loader import OETestLoader
from oeqa.core.runner import OETestRunner
@@ -45,10 +46,14 @@ class OETestContext(object):
def skipTests(self, skips):
if not skips:
return
def skipfuncgen(skipmsg):
def func():
raise unittest.SkipTest(skipmsg)
return func
for test in self.suites:
for skip in skips:
if test.id().startswith(skip):
setattr(test, 'setUp', lambda: test.skipTest('Skip by the command line argument "%s"' % skip))
setattr(test, 'setUp', skipfuncgen('Skip by the command line argument "%s"' % skip))
def loadTests(self, module_paths, modules=[], tests=[],
modules_manifest="", modules_required=[], filters={}):

View File

@@ -35,7 +35,9 @@ class LogrotateTest(OERuntimeTestCase):
@OETestDepends(['logrotate.LogrotateTest.test_1_logrotate_setup'])
def test_2_logrotate(self):
status, output = self.target.run('logrotate -f /etc/logrotate.conf')
status, output = self.target.run('echo "create \n include /etc/logrotate.d" > /tmp/logrotate-test.conf')
status, output = self.target.run('logrotate -f /tmp/logrotate-test.conf')
msg = ('logrotate service could not be reloaded. Status and output: '
'%s and %s' % (status, output))
self.assertEqual(status, 0, msg = msg)

View File

@@ -0,0 +1,37 @@
#
# SPDX-License-Identifier: MIT
#
import os
from oeqa.runtime.case import OERuntimeTestCase
from oeqa.core.decorator.depends import OETestDepends
from oeqa.runtime.decorator.package import OEHasPackage
class SconsCompileTest(OERuntimeTestCase):
@classmethod
def setUp(cls):
dst = '/tmp/'
src = os.path.join(cls.tc.runtime_files_dir, 'hello.c')
cls.tc.target.copyTo(src, dst)
src = os.path.join(cls.tc.runtime_files_dir, 'SConstruct')
cls.tc.target.copyTo(src, dst)
@classmethod
def tearDown(cls):
files = '/tmp/hello.c /tmp/hello.o /tmp/hello /tmp/SConstruct'
cls.tc.target.run('rm %s' % files)
@OETestDepends(['ssh.SSHTest.test_ssh'])
@OEHasPackage(['gcc'])
@OEHasPackage(['python3-scons'])
def test_scons_compile(self):
status, output = self.target.run('cd /tmp/ && scons')
msg = 'scons compile failed, output: %s' % output
self.assertEqual(status, 0, msg=msg)
status, output = self.target.run('/tmp/hello')
msg = 'running compiled file failed, output: %s' % output
self.assertEqual(status, 0, msg=msg)

View File

@@ -0,0 +1 @@
Program('hello.c')

View File

@@ -0,0 +1,5 @@
int
main()
{
printf("Hello, world!\n");
}

View File

@@ -393,7 +393,7 @@ class DevtoolAddTests(DevtoolBase):
tempdir = tempfile.mkdtemp(prefix='devtoolqa')
self.track_for_cleanup(tempdir)
testver = '0.23'
url = 'https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-%s.tar.gz' % testver
url = 'https://files.pythonhosted.org/packages/c0/41/bae1254e0396c0cc8cf1751cb7d9afc90a602353695af5952530482c963f/MarkupSafe-%s.tar.gz' % testver
testrecipe = 'python-markupsafe'
srcdir = os.path.join(tempdir, testrecipe)
# Test devtool add

View File

@@ -0,0 +1,41 @@
from oeqa.selftest.case import OESelftestTestCase
from oeqa.utils.commands import bitbake
class IncompatibleLicenseTests(OESelftestTestCase):
def lic_test(self, pn, pn_lic, lic):
error_msg = 'ERROR: Nothing PROVIDES \'%s\'\n%s was skipped: it has an incompatible license: %s' % (pn, pn, pn_lic)
self.write_config("INCOMPATIBLE_LICENSE += \"%s\"" % (lic))
result = bitbake('%s --dry-run' % (pn), ignore_status=True)
if error_msg not in result.output:
raise AssertionError(result.output)
# Verify that a package with an SPDX license (from SRC_DISTRIBUTE_LICENSES)
# cannot be built when INCOMPATIBLE_LICENSE contains this SPDX license
def test_incompatible_spdx_license(self):
self.lic_test('incompatible-license', 'GPL-3.0', 'GPL-3.0')
# Verify that a package with an SPDX license (from SRC_DISTRIBUTE_LICENSES)
# cannot be built when INCOMPATIBLE_LICENSE contains an alias (in
# SPDXLICENSEMAP) of this SPDX license
def test_incompatible_alias_spdx_license(self):
self.lic_test('incompatible-license', 'GPL-3.0', 'GPLv3')
# Verify that a package with an alias (from SPDXLICENSEMAP) to an SPDX
# license cannot be built when INCOMPATIBLE_LICENSE contains this SPDX
# license
def test_incompatible_spdx_license_alias(self):
self.lic_test('incompatible-license-alias', 'GPLv3', 'GPL-3.0')
# Verify that a package with an alias (from SPDXLICENSEMAP) to an SPDX
# license cannot be built when INCOMPATIBLE_LICENSE contains this alias
def test_incompatible_alias_spdx_license_alias(self):
self.lic_test('incompatible-license-alias', 'GPLv3', 'GPLv3')
# Verify that a package with a non-SPDX license (neither in
# SRC_DISTRIBUTE_LICENSES nor in SPDXLICENSEMAP) cannot be built when
# INCOMPATIBLE_LICENSE contains this license
def test_incompatible_nonspdx_license(self):
self.lic_test('incompatible-nonspdx-license', 'FooLicense', 'FooLicense')

View File

@@ -86,11 +86,8 @@ class VerifyManifest(OESelftestTestCase):
try:
mdir = self.get_dir_from_bb_var('SDK_DEPLOY', self.buildtarget)
for k in d_target.keys():
bb_vars = get_bb_vars(['SDK_NAME', 'SDK_VERSION'], self.buildtarget)
mfilename[k] = "{}-toolchain-{}.{}.manifest".format(
bb_vars['SDK_NAME'],
bb_vars['SDK_VERSION'],
k)
toolchain_outputname = get_bb_var('TOOLCHAIN_OUTPUTNAME', self.buildtarget)
mfilename[k] = "{}.{}.manifest".format(toolchain_outputname, k)
mpath[k] = os.path.join(mdir, mfilename[k])
if not os.path.isfile(mpath[k]):
self.logger.debug("{}: {} does not exist".format(

View File

@@ -3,6 +3,7 @@
#
import os
import unittest
from oeqa.selftest.case import OESelftestTestCase
from oeqa.selftest.cases.buildhistory import BuildhistoryBase
from oeqa.utils.commands import Command, runCmd, bitbake, get_bb_var, get_test_layer
@@ -38,7 +39,7 @@ class OEScriptTests(OESelftestTestCase):
try:
import cairo
except ImportError:
cls.skipTest('Python module cairo is not present')
raise unittest.SkipTest('Python module cairo is not present')
bitbake("core-image-minimal -c rootfs -f")
cls.tmpdir = get_bb_var('TMPDIR')
cls.buildstats = cls.tmpdir + "/buildstats/" + sorted(os.listdir(cls.tmpdir + "/buildstats"))[-1]

View File

@@ -435,7 +435,45 @@ class RecipetoolTests(RecipetoolBase):
checkvars = {}
checkvars['LICENSE'] = set(['Apache-2.0'])
checkvars['SRC_URI'] = 'git://github.com/mesonbuild/meson;protocol=https'
inherits = ['setuptools']
inherits = ['setuptools3']
self._test_recipe_contents(recipefile, checkvars, inherits)
def test_recipetool_create_python3_setuptools(self):
# Test creating python3 package from tarball (using setuptools3 class)
temprecipe = os.path.join(self.tempdir, 'recipe')
os.makedirs(temprecipe)
pn = 'python-magic'
pv = '0.4.15'
recipefile = os.path.join(temprecipe, '%s_%s.bb' % (pn, pv))
srcuri = 'https://files.pythonhosted.org/packages/84/30/80932401906eaf787f2e9bd86dc458f1d2e75b064b4c187341f29516945c/python-magic-%s.tar.gz' % pv
result = runCmd('recipetool create -o %s %s' % (temprecipe, srcuri))
self.assertTrue(os.path.isfile(recipefile))
checkvars = {}
checkvars['LICENSE'] = set(['MIT'])
checkvars['LIC_FILES_CHKSUM'] = 'file://LICENSE;md5=16a934f165e8c3245f241e77d401bb88'
checkvars['SRC_URI'] = 'https://files.pythonhosted.org/packages/84/30/80932401906eaf787f2e9bd86dc458f1d2e75b064b4c187341f29516945c/python-magic-${PV}.tar.gz'
checkvars['SRC_URI[md5sum]'] = 'e384c95a47218f66c6501cd6dd45ff59'
checkvars['SRC_URI[sha256sum]'] = 'f3765c0f582d2dfc72c15f3b5a82aecfae9498bd29ca840d72f37d7bd38bfcd5'
inherits = ['setuptools3']
self._test_recipe_contents(recipefile, checkvars, inherits)
def test_recipetool_create_python3_distutils(self):
# Test creating python3 package from tarball (using distutils3 class)
temprecipe = os.path.join(self.tempdir, 'recipe')
os.makedirs(temprecipe)
pn = 'docutils'
pv = '0.14'
recipefile = os.path.join(temprecipe, '%s_%s.bb' % (pn, pv))
srcuri = 'https://files.pythonhosted.org/packages/84/f4/5771e41fdf52aabebbadecc9381d11dea0fa34e4759b4071244fa094804c/docutils-%s.tar.gz' % pv
result = runCmd('recipetool create -o %s %s' % (temprecipe, srcuri))
self.assertTrue(os.path.isfile(recipefile))
checkvars = {}
checkvars['LICENSE'] = set(['PSF', '&', 'BSD', 'GPL'])
checkvars['LIC_FILES_CHKSUM'] = 'file://COPYING.txt;md5=35a23d42b615470583563132872c97d6'
checkvars['SRC_URI'] = 'https://files.pythonhosted.org/packages/84/f4/5771e41fdf52aabebbadecc9381d11dea0fa34e4759b4071244fa094804c/docutils-${PV}.tar.gz'
checkvars['SRC_URI[md5sum]'] = 'c53768d63db3873b7d452833553469de'
checkvars['SRC_URI[sha256sum]'] = '51e64ef2ebfb29cae1faa133b3710143496eca21c530f3f71424d77687764274'
inherits = ['distutils3']
self._test_recipe_contents(recipefile, checkvars, inherits)
def test_recipetool_create_github_tarball(self):
@@ -450,7 +488,7 @@ class RecipetoolTests(RecipetoolBase):
checkvars = {}
checkvars['LICENSE'] = set(['Apache-2.0'])
checkvars['SRC_URI'] = 'https://github.com/mesonbuild/meson/releases/download/${PV}/meson-${PV}.tar.gz'
inherits = ['setuptools']
inherits = ['setuptools3']
self._test_recipe_contents(recipefile, checkvars, inherits)
def test_recipetool_create_git_http(self):

View File

@@ -0,0 +1,160 @@
#
# SPDX-License-Identifier: MIT
#
# Copyright 2019 by Garmin Ltd. or its subsidiaries
from oeqa.selftest.case import OESelftestTestCase
from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars
import functools
import multiprocessing
import textwrap
import unittest
MISSING = 'MISSING'
DIFFERENT = 'DIFFERENT'
SAME = 'SAME'
@functools.total_ordering
class CompareResult(object):
def __init__(self):
self.reference = None
self.test = None
self.status = 'UNKNOWN'
def __eq__(self, other):
return (self.status, self.test) == (other.status, other.test)
def __lt__(self, other):
return (self.status, self.test) < (other.status, other.test)
class PackageCompareResults(object):
def __init__(self):
self.total = []
self.missing = []
self.different = []
self.same = []
def add_result(self, r):
self.total.append(r)
if r.status == MISSING:
self.missing.append(r)
elif r.status == DIFFERENT:
self.different.append(r)
else:
self.same.append(r)
def sort(self):
self.total.sort()
self.missing.sort()
self.different.sort()
self.same.sort()
def __str__(self):
return 'same=%i different=%i missing=%i total=%i' % (len(self.same), len(self.different), len(self.missing), len(self.total))
def compare_file(reference, test, diffutils_sysroot):
result = CompareResult()
result.reference = reference
result.test = test
if not os.path.exists(reference):
result.status = MISSING
return result
r = runCmd(['cmp', '--quiet', reference, test], native_sysroot=diffutils_sysroot, ignore_status=True)
if r.status:
result.status = DIFFERENT
return result
result.status = SAME
return result
class ReproducibleTests(OESelftestTestCase):
package_classes = ['deb']
images = ['core-image-minimal']
def setUpLocal(self):
super().setUpLocal()
needed_vars = ['TOPDIR', 'TARGET_PREFIX', 'BB_NUMBER_THREADS']
bb_vars = get_bb_vars(needed_vars)
for v in needed_vars:
setattr(self, v.lower(), bb_vars[v])
if not hasattr(self.tc, "extraresults"):
self.tc.extraresults = {}
self.extras = self.tc.extraresults
self.extras.setdefault('reproducible.rawlogs', {})['log'] = ''
def append_to_log(self, msg):
self.extras['reproducible.rawlogs']['log'] += msg
def compare_packages(self, reference_dir, test_dir, diffutils_sysroot):
result = PackageCompareResults()
old_cwd = os.getcwd()
try:
file_result = {}
os.chdir(test_dir)
with multiprocessing.Pool(processes=int(self.bb_number_threads or 0)) as p:
for root, dirs, files in os.walk('.'):
async_result = []
for f in files:
reference_path = os.path.join(reference_dir, root, f)
test_path = os.path.join(test_dir, root, f)
async_result.append(p.apply_async(compare_file, (reference_path, test_path, diffutils_sysroot)))
for a in async_result:
result.add_result(a.get())
finally:
os.chdir(old_cwd)
result.sort()
return result
@unittest.skip("Reproducible builds do not yet pass")
def test_reproducible_builds(self):
capture_vars = ['DEPLOY_DIR_' + c.upper() for c in self.package_classes]
common_config = textwrap.dedent('''\
INHERIT += "reproducible_build"
PACKAGE_CLASSES = "%s"
''') % (' '.join('package_%s' % c for c in self.package_classes))
# Do an initial build. It's acceptable for this build to use sstate
self.write_config(common_config)
vars_reference = get_bb_vars(capture_vars)
bitbake(' '.join(self.images))
# Build native utilities
bitbake("diffutils-native -c addto_recipe_sysroot")
diffutils_sysroot = get_bb_var("RECIPE_SYSROOT_NATIVE", "diffutils-native")
# Perform another build. This build should *not* share sstate or pull
# from any mirrors, but sharing a DL_DIR is fine
self.write_config(textwrap.dedent('''\
TMPDIR = "${TOPDIR}/reproducible/tmp"
SSTATE_DIR = "${TMPDIR}/sstate"
SSTATE_MIRROR = ""
''') + common_config)
vars_test = get_bb_vars(capture_vars)
bitbake(' '.join(self.images))
for c in self.package_classes:
package_class = 'package_' + c
deploy_reference = vars_reference['DEPLOY_DIR_' + c.upper()]
deploy_test = vars_test['DEPLOY_DIR_' + c.upper()]
result = self.compare_packages(deploy_reference, deploy_test, diffutils_sysroot)
self.logger.info('Reproducibility summary for %s: %s' % (c, result))
self.append_to_log('\n'.join("%s: %s" % (r.status, r.test) for r in result.total))
if result.missing or result.different:
self.fail("The following %s packages are missing or different: %s" %
(c, ' '.join(r.test for r in (result.missing + result.different))))

View File

@@ -56,7 +56,7 @@ class ResultToolTests(OESelftestTestCase):
'test4': {'status': 'ERROR'},
'test5': {'status': 'SKIPPED'}}}
report = ResultsTextReport()
result_report = report.get_aggregated_test_result(None, result_data)
result_report = report.get_aggregated_test_result(None, result_data, 'DummyMachine')
self.assertTrue(result_report['passed'] == 2, msg="Passed count not correct:%s" % result_report['passed'])
self.assertTrue(result_report['failed'] == 2, msg="Failed count not correct:%s" % result_report['failed'])
self.assertTrue(result_report['skipped'] == 1, msg="Skipped count not correct:%s" % result_report['skipped'])

View File

@@ -30,7 +30,8 @@ class Signing(OESelftestTestCase):
self.secret_key_path = os.path.join(self.testlayer_path, 'files', 'signing', "key.secret")
nsysroot = get_bb_var("RECIPE_SYSROOT_NATIVE", "gnupg-native")
runCmd('gpg --batch --homedir %s --import %s %s' % (self.gpg_dir, self.pub_key_path, self.secret_key_path), native_sysroot=nsysroot)
runCmd('gpg --agent-program=`which gpg-agent`\|--auto-expand-secmem --batch --homedir %s --import %s %s' % (self.gpg_dir, self.pub_key_path, self.secret_key_path), native_sysroot=nsysroot)
return nsysroot + get_bb_var("bindir_native")

View File

@@ -16,7 +16,7 @@ class PtestParser(object):
def parse(self, logfile):
test_regex = {}
test_regex['PASSED'] = re.compile(r"^PASS:(.+)")
test_regex['FAILED'] = re.compile(r"^FAIL:(.+)")
test_regex['FAILED'] = re.compile(r"^FAIL:([^(]+)")
test_regex['SKIPPED'] = re.compile(r"^SKIP:(.+)")
section_regex = {}
@@ -69,7 +69,7 @@ class PtestParser(object):
if result:
if current_section['name'] not in self.results:
self.results[current_section['name']] = {}
self.results[current_section['name']][result.group(1)] = t
self.results[current_section['name']][result.group(1).strip()] = t
return self.results, self.sections

View File

@@ -60,6 +60,7 @@ class QemuRunner:
self.runqemutime = 120
self.qemu_pidfile = 'pidfile_'+str(os.getpid())
self.host_dumper = HostDumper(dump_host_cmds, dump_dir)
self.monitorpipe = None
self.logger = logger
@@ -155,11 +156,11 @@ class QemuRunner:
# and analyze descendents in order to determine it.
if os.path.exists(self.qemu_pidfile):
os.remove(self.qemu_pidfile)
self.qemuparams = 'bootparams="{0}" qemuparams="-serial tcp:127.0.0.1:{1} -pidfile {2}"'.format(bootparams, threadport, self.qemu_pidfile)
self.qemuparams = 'bootparams="{0}" qemuparams="-pidfile {1}"'.format(bootparams, self.qemu_pidfile)
if qemuparams:
self.qemuparams = self.qemuparams[:-1] + " " + qemuparams + " " + '\"'
launch_cmd += ' tcpserial=%s %s' % (self.serverport, self.qemuparams)
launch_cmd += ' tcpserial=%s:%s %s' % (threadport, self.serverport, self.qemuparams)
self.origchldhandler = signal.getsignal(signal.SIGCHLD)
signal.signal(signal.SIGCHLD, self.handleSIGCHLD)

View File

@@ -0,0 +1,31 @@
From 99b578501643377e0b1994b2a068b790d189d5ad Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Wed, 13 Jun 2018 09:41:01 -0400
Subject: [PATCH] remove extra decl
Signed-off-by: Peter Jones <pjones@redhat.com>
Upstream-Status: Backport [git://github.com/rhinstaller/efibootmgr.git]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
src/efibootmgr.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/efibootmgr.c b/src/efibootmgr.c
index de38f01..4e1a680 100644
--- a/src/efibootmgr.c
+++ b/src/efibootmgr.c
@@ -1536,9 +1536,6 @@ parse_opts(int argc, char **argv)
"invalid numeric value %s\n",
optarg);
}
- /* XXX efivar-36 accidentally doesn't have a public
- * header for this */
- extern int efi_set_verbose(int verbosity, FILE *errlog);
efi_set_verbose(opts.verbose - 2, stderr);
break;
case 'V':
--
2.7.4

View File

@@ -0,0 +1,34 @@
DESCRIPTION = "Linux user-space application to modify the EFI Boot Manager."
SUMMARY = "EFI Boot Manager"
HOMEPAGE = "https://github.com/rhboot/efibootmgr"
SECTION = "base"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
DEPENDS = "efivar popt"
COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
SRC_URI = "git://github.com/rhinstaller/efibootmgr.git;protocol=https \
file://0001-remove-extra-decl.patch \
"
SRCREV = "e067160ecef8208e1944002e5d50b275733211fb"
S = "${WORKDIR}/git"
inherit pkgconfig
# The directory under the ESP that the default bootloader is found in. When
# wic uses a subdirectory, this should use the same one too.
EFIDIR ?= "/"
EXTRA_OEMAKE += "'EFIDIR=${EFIDIR}'"
CFLAGS += " -Wno-error"
do_install () {
oe_runmake install DESTDIR="${D}"
}
CLEANBROKEN = "1"

View File

@@ -0,0 +1,18 @@
Don't use -Werror because newer compilers introduce newer warnings.
Upstream-Status: Inappropriate [https://github.com/rhboot/efivar/issues/131]
Signed-off-by: Ross Burton <ross.burton@intel.com>
diff --git a/gcc.specs b/gcc.specs
index 45d43d1..1baf11a 100644
--- a/gcc.specs
+++ b/gcc.specs
@@ -2,7 +2,7 @@
+ -D_GNU_SOURCE
*efivar_cpp_options:
- -Werror -Wall -std=gnu11 -Wextra
+ -Wall -std=gnu11 -Wextra
*cpp_options:
+ %(efivar_cpp_options)

View File

@@ -0,0 +1,37 @@
SUMMARY = "Tools to manipulate UEFI variables"
DESCRIPTION = "efivar provides a simple command line interface to the UEFI variable facility"
HOMEPAGE = "https://github.com/rhboot/efivar"
LICENSE = "LGPLv2.1+"
LIC_FILES_CHKSUM = "file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"
COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
SRC_URI = "git://github.com/rhinstaller/efivar.git \
file://no-werror.patch"
SRCREV = "c1d6b10e1ed4ba2be07f385eae5bceb694478a10"
S = "${WORKDIR}/git"
inherit pkgconfig
export CCLD_FOR_BUILD = "${BUILD_CCLD}"
# Upstream uses --add-needed in gcc.specs which gold doesn't support, so
# enforce BFD.
LDFLAGS += "-fuse-ld=bfd"
do_compile_prepend() {
# Remove when https://github.com/rhboot/efivar/issues/130 is fixed
oe_runmake CFLAGS="${BUILD_CFLAGS}" -C src makeguids
}
do_install() {
oe_runmake install DESTDIR=${D}
}
BBCLASSEXTEND = "native"
RRECOMMENDS_${PN}_class-target = "kernel-module-efivarfs"
CLEANBROKEN = "1"

View File

@@ -60,7 +60,7 @@ BUILD_CFLAGS = ""
BUILD_CXXFLAGS = ""
BUILD_LDFLAGS = ""
CFLAGS_append = "-Wno-error"
CFLAGS_append = " -Wno-error"
do_configure_prepend() {
# The grub2 configure script uses variables such as TARGET_CFLAGS etc

View File

@@ -0,0 +1,25 @@
Implicit declaration compile warning fixes from Debian
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Upstream-Status: Inappropriate [upstream is dead]
--- lrzsz-0.12.21.orig/lib/long-options.c
+++ lrzsz-0.12.21/lib/long-options.c
@@ -22,6 +22,7 @@
#endif
#include <stdio.h>
+#include <stdlib.h>
#include <getopt.h>
#include "long-options.h"
--- lrzsz-0.12.21.orig/src/lsyslog.c
+++ lrzsz-0.12.21/src/lsyslog.c
@@ -22,6 +22,7 @@
#ifdef ENABLE_SYSLOG
#include "zglobal.h"
#include <pwd.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#endif

View File

@@ -20,6 +20,7 @@ SRC_URI = "http://www.ohse.de/uwe/releases/lrzsz-${PV}.tar.gz \
file://lrzsz_fix_for_automake-1.12.patch \
file://lrzsz-check-locale.h.patch \
file://cve-2018-10195.patch \
file://include.patch \
"
SRC_URI[md5sum] = "b5ce6a74abc9b9eb2af94dffdfd372a4"

View File

@@ -0,0 +1,38 @@
From f5871e1f3650d6c8a032928cb5d8ca00c275c377 Mon Sep 17 00:00:00 2001
From: Alistair Francis <alistair.francis@wdc.com>
Date: Fri, 15 Feb 2019 14:57:41 -0800
Subject: [PATCH] Makefile: Don't specify mabi or march
To avoid
can't link double-float modules with soft-float modules
errors when building 32-bit openSBI don't specify mabi or march.
Upstream-Status: Inappropriate [Fixes a 32-bit Yocto flow bug]
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
Makefile | 2 --
1 file changed, 2 deletions(-)
diff --git a/Makefile b/Makefile
index ae68f55..10851fc 100644
--- a/Makefile
+++ b/Makefile
@@ -145,7 +145,6 @@ GENFLAGS += $(firmware-genflags-y)
CFLAGS = -g -Wall -Werror -nostdlib -fno-strict-aliasing -O2
CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
CFLAGS += -mno-save-restore -mstrict-align
-CFLAGS += -mabi=$(PLATFORM_RISCV_ABI) -march=$(PLATFORM_RISCV_ISA)
CFLAGS += -mcmodel=$(PLATFORM_RISCV_CODE_MODEL)
CFLAGS += $(GENFLAGS)
CFLAGS += $(platform-cflags-y)
@@ -158,7 +157,6 @@ CPPFLAGS += $(firmware-cppflags-y)
ASFLAGS = -g -Wall -nostdlib -D__ASSEMBLY__
ASFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
ASFLAGS += -mno-save-restore -mstrict-align
-ASFLAGS += -mabi=$(PLATFORM_RISCV_ABI) -march=$(PLATFORM_RISCV_ISA)
ASFLAGS += -mcmodel=$(PLATFORM_RISCV_CODE_MODEL)
ASFLAGS += $(GENFLAGS)
ASFLAGS += $(platform-asflags-y)
--
2.20.1

View File

@@ -0,0 +1,128 @@
From 508a27204cbbca0a9430236e56681e5e0d343fb9 Mon Sep 17 00:00:00 2001
From: Alistair Francis <alistair.francis@wdc.com>
Date: Fri, 8 Mar 2019 11:22:22 -0800
Subject: [PATCH] lib: Create a sbi_ipi_data structure
Create a sbi_ipi_data structure that holds unpacked IPI information. At
the same time remove ipi_type from the sbi_scratch struct and use a
fixed offset to access it.
This structure fits in behind the sbi_scratch structure.
This fixes https://github.com/riscv/opensbi/issues/81
Upstream-Status: Backport [https://github.com/riscv/opensbi/commit/508a27204cbbca0a9430236e56681e5e0d343fb9]
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
firmware/fw_base.S | 1 -
include/sbi/sbi_scratch.h | 23 ++++++++++++++++-------
lib/sbi_ipi.c | 8 +++++---
3 files changed, 21 insertions(+), 11 deletions(-)
diff --git a/firmware/fw_base.S b/firmware/fw_base.S
index cf2c6a0..69cfc90 100644
--- a/firmware/fw_base.S
+++ b/firmware/fw_base.S
@@ -183,7 +183,6 @@ _start_warm:
REG_S a4, SBI_SCRATCH_PLATFORM_ADDR_OFFSET(tp)
la a4, _hartid_to_scratch
REG_S a4, SBI_SCRATCH_HARTID_TO_SCRATCH_OFFSET(tp)
- REG_S zero, SBI_SCRATCH_IPI_TYPE_OFFSET(tp)
REG_S zero, SBI_SCRATCH_TMP0_OFFSET(tp)
/* Setup stack */
diff --git a/include/sbi/sbi_scratch.h b/include/sbi/sbi_scratch.h
index 8389ef3..70ab384 100644
--- a/include/sbi/sbi_scratch.h
+++ b/include/sbi/sbi_scratch.h
@@ -28,17 +28,24 @@
#define SBI_SCRATCH_PLATFORM_ADDR_OFFSET (6 * __SIZEOF_POINTER__)
/** Offset of hartid_to_scratch member in sbi_scratch */
#define SBI_SCRATCH_HARTID_TO_SCRATCH_OFFSET (7 * __SIZEOF_POINTER__)
-/** Offset of ipi_type member in sbi_scratch */
-#define SBI_SCRATCH_IPI_TYPE_OFFSET (8 * __SIZEOF_POINTER__)
/** Offset of tmp0 member in sbi_scratch */
-#define SBI_SCRATCH_TMP0_OFFSET (9 * __SIZEOF_POINTER__)
-/** Maximum size of sbi_scratch */
-#define SBI_SCRATCH_SIZE 256
+#define SBI_SCRATCH_TMP0_OFFSET (8 * __SIZEOF_POINTER__)
+
+/** sbi_ipi_data is located behind sbi_scratch. This struct is not packed. */
+/** Offset of ipi_type in sbi_ipi_data */
+#define SBI_IPI_DATA_IPI_TYPE_OFFSET (15 * __SIZEOF_POINTER__)
+
+/** Maximum size of sbi_scratch and sbi_ipi_data */
+#define SBI_SCRATCH_SIZE (32 * __SIZEOF_POINTER__)
#ifndef __ASSEMBLY__
#include <sbi/sbi_types.h>
+struct sbi_ipi_data {
+ unsigned long ipi_type;
+};
+
/** Representation of per-HART scratch space */
struct sbi_scratch {
/** Start (or base) address of firmware linked to OpenSBI library */
@@ -57,8 +64,6 @@ struct sbi_scratch {
unsigned long platform_addr;
/** Address of HART ID to sbi_scratch conversion function */
unsigned long hartid_to_scratch;
- /** IPI type (or flags) */
- unsigned long ipi_type;
/** Temporary storage */
unsigned long tmp0;
} __packed;
@@ -71,6 +76,10 @@ struct sbi_scratch {
#define sbi_scratch_thishart_arg1_ptr() \
((void *)(sbi_scratch_thishart_ptr()->next_arg1))
+/** Get pointer to sbi_ipi_data from sbi_scratch */
+#define sbi_ipi_data_ptr(scratch) \
+((struct sbi_ipi_data *)(void*)scratch + SBI_IPI_DATA_IPI_TYPE_OFFSET)
+
#endif
#endif
diff --git a/lib/sbi_ipi.c b/lib/sbi_ipi.c
index 0e371d7..e0f2a19 100644
--- a/lib/sbi_ipi.c
+++ b/lib/sbi_ipi.c
@@ -31,7 +31,7 @@ static int sbi_ipi_send(struct sbi_scratch *scratch, u32 hartid, u32 event)
* trigger the interrupt
*/
remote_scratch = sbi_hart_id_to_scratch(scratch, hartid);
- atomic_raw_set_bit(event, &remote_scratch->ipi_type);
+ atomic_raw_set_bit(event, &sbi_ipi_data_ptr(remote_scratch)->ipi_type);
mb();
sbi_platform_ipi_send(plat, hartid);
if (event != SBI_IPI_EVENT_SOFT)
@@ -80,7 +80,7 @@ void sbi_ipi_process(struct sbi_scratch *scratch)
sbi_platform_ipi_clear(plat, hartid);
do {
- ipi_type = scratch->ipi_type;
+ ipi_type = sbi_ipi_data_ptr(scratch)->ipi_type;
rmb();
ipi_event = __ffs(ipi_type);
switch (ipi_event) {
@@ -97,12 +97,14 @@ void sbi_ipi_process(struct sbi_scratch *scratch)
sbi_hart_hang();
break;
};
- ipi_type = atomic_raw_clear_bit(ipi_event, &scratch->ipi_type);
+ ipi_type = atomic_raw_clear_bit(ipi_event, &sbi_ipi_data_ptr(scratch)->ipi_type);
} while(ipi_type > 0);
}
int sbi_ipi_init(struct sbi_scratch *scratch, bool cold_boot)
{
+ sbi_ipi_data_ptr(scratch)->ipi_type = 0x00;
+
/* Enable software interrupts */
csr_set(CSR_MIE, MIP_MSIP);
--
2.22.0

View File

@@ -0,0 +1,37 @@
def riscv_get_extra_oemake_image(d):
sbi_payload = d.getVar('RISCV_SBI_PAYLOAD')
deploy_dir = d.getVar('DEPLOY_DIR_IMAGE')
if sbi_payload is None:
return ""
if d.getVar('RISCV_SBI_PAYLOAD'):
return "FW_PAYLOAD_PATH=" + deploy_dir + "/" + sbi_payload
return ""
def riscv_get_extra_oemake_fdt(d):
sbi_fdt_payload = d.getVar('RISCV_SBI_FDT')
deploy_dir = d.getVar('DEPLOY_DIR_IMAGE')
if sbi_fdt_payload is None:
return ""
if d.getVar('RISCV_SBI_PAYLOAD'):
# This is internal to openSBI, not a full path
return "FW_PAYLOAD_FDT=" + sbi_fdt_payload
return ""
def riscv_get_do_compile_depends(d):
sbi_payload = d.getVar('RISCV_SBI_PAYLOAD')
if sbi_payload is None:
return ""
if 'linux' in sbi_payload or 'Image' in sbi_payload:
return "virtual/kernel:do_deploy"
if 'u-boot' in sbi_payload:
return "virtual/bootloader:do_deploy"
return ""

View File

@@ -0,0 +1,49 @@
SUMMARY = "RISC-V Open Source Supervisor Binary Interface (OpenSBI)"
DESCRIPTION = "OpenSBI aims to provide an open-source and extensible implementation of the RISC-V SBI specification for a platform specific firmware (M-mode) and a general purpose OS, hypervisor or bootloader (S-mode or HS-mode). OpenSBI implementation can be easily extended by RISC-V platform or System-on-Chip vendors to fit a particular hadware configuration."
LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://COPYING.BSD;md5=c36118b4f615f9da37635f2a7ac8ccaf"
DEPENDS += "dtc-native"
require opensbi-payloads.inc
inherit autotools-brokensep
SRCREV = "ca20ac0cd4c099006d4eea4d9ac7bd7b58e2ae0f"
SRC_URI = "git://github.com/riscv/opensbi.git \
file://0001-Makefile-Don-t-specify-mabi-or-march.patch \
file://0002-lib-Create-a-sbi_ipi_data-structure.patch \
"
S = "${WORKDIR}/git"
SRC_URI[md5sum] = "621f38d8205ef5fb185e4055025e73df"
SRC_URI[sha256sum] = "07f18b73abf3b85aabe5bead19a923716c100d30eb58033459f39c3a224be300"
EXTRA_OEMAKE += "PLATFORM=${RISCV_SBI_PLAT} I=${D}"
# If RISCV_SBI_PAYLOAD is set then include it as a payload
EXTRA_OEMAKE_append = " ${@riscv_get_extra_oemake_image(d)} ${@riscv_get_extra_oemake_fdt(d)}"
# Required if specifying a custom payload
do_compile[depends] += "${@riscv_get_do_compile_depends(d)}"
do_install_append() {
# In the future these might be required as a dependency for other packages.
# At the moment just delete them to avoid warnings
rm -r ${D}/include
rm -r ${D}/platform/${RISCV_SBI_PLAT}/lib
rm -r ${D}/platform/${RISCV_SBI_PLAT}/firmware/payloads
}
do_deploy () {
install -d ${DEPLOY_DIR_IMAGE}
install -m 755 ${D}/platform/${RISCV_SBI_PLAT}/firmware/fw_payload.* ${DEPLOY_DIR_IMAGE}/
install -m 755 ${D}/platform/${RISCV_SBI_PLAT}/firmware/fw_jump.* ${DEPLOY_DIR_IMAGE}/
}
addtask deploy after do_install
FILES_${PN} += "/platform/${RISCV_SBI_PLAT}/firmware/fw_jump.*"
FILES_${PN} += "/platform/${RISCV_SBI_PLAT}/firmware/fw_payload.*"
COMPATIBLE_HOST = "(riscv64|riscv32).*"
INHIBIT_PACKAGE_STRIP = "1"

View File

@@ -56,6 +56,7 @@ SRC_URI = "\
file://0001-test-gatt-Fix-hung-issue.patch \
file://0001-Makefile.am-Fix-a-race-issue-for-tools.patch \
file://CVE-2018-10910.patch \
file://gcc9-fixes.patch \
"
S = "${WORKDIR}/bluez-${PV}"
@@ -119,7 +120,10 @@ FILES_${PN}-dev += " \
FILES_${PN}-obex = "${libexecdir}/bluetooth/obexd \
${exec_prefix}/lib/systemd/user/obex.service \
${systemd_system_unitdir}/obex.service \
${sysconfdir}/systemd/system/multi-user.target.wants/obex.service \
${datadir}/dbus-1/services/org.bluez.obex.service \
${sysconfdir}/dbus-1/system.d/obexd.conf \
"
SYSTEMD_SERVICE_${PN}-obex = "obex.service"

View File

@@ -0,0 +1,301 @@
Backported commit from upstream master branch (post 5.50 release), which
resolves assertion failures in several unit tests.
https://git.kernel.org/pub/scm/bluetooth/bluez.git/patch/?id=0be5246170
Upstream-Status: Backport
Signed-off-by: Ross Burton <ross.burton@intel.com>
diff --git a/unit/test-avctp.c b/unit/test-avctp.c
index 3bc3569..24de663 100644
--- a/unit/test-avctp.c
+++ b/unit/test-avctp.c
@@ -43,7 +43,7 @@
struct test_pdu {
bool valid;
- const uint8_t *data;
+ uint8_t *data;
size_t size;
};
@@ -66,7 +66,7 @@ struct context {
#define raw_pdu(args...) \
{ \
.valid = true, \
- .data = data(args), \
+ .data = g_memdup(data(args), sizeof(data(args))), \
.size = sizeof(data(args)), \
}
@@ -91,6 +91,11 @@ static void test_debug(const char *str, void *user_data)
static void test_free(gconstpointer user_data)
{
const struct test_data *data = user_data;
+ struct test_pdu *pdu;
+ int i;
+
+ for (i = 0; (pdu = &data->pdu_list[i]) && pdu->valid; i++)
+ g_free(pdu->data);
g_free(data->test_name);
g_free(data->pdu_list);
diff --git a/unit/test-avdtp.c b/unit/test-avdtp.c
index dd8aed7..e2c951a 100644
--- a/unit/test-avdtp.c
+++ b/unit/test-avdtp.c
@@ -47,7 +47,7 @@
struct test_pdu {
bool valid;
bool fragmented;
- const uint8_t *data;
+ uint8_t *data;
size_t size;
};
@@ -61,7 +61,7 @@ struct test_data {
#define raw_pdu(args...) \
{ \
.valid = true, \
- .data = data(args), \
+ .data = g_memdup(data(args), sizeof(data(args))), \
.size = sizeof(data(args)), \
}
@@ -69,7 +69,7 @@ struct test_data {
{ \
.valid = true, \
.fragmented = true, \
- .data = data(args), \
+ .data = g_memdup(data(args), sizeof(data(args))), \
.size = sizeof(data(args)), \
}
@@ -81,7 +81,7 @@ struct test_data {
static struct test_data data; \
data.test_name = g_strdup(name); \
data.pdu_list = g_memdup(pdus, sizeof(pdus)); \
- tester_add(name, &data, NULL, function, NULL); \
+ tester_add(name, &data, NULL, function, NULL); \
} while (0)
struct context {
@@ -109,6 +109,11 @@ static void test_debug(const char *str, void *user_data)
static void test_free(gconstpointer user_data)
{
const struct test_data *data = user_data;
+ struct test_pdu *pdu;
+ int i;
+
+ for (i = 0; (pdu = &data->pdu_list[i]) && pdu->valid; i++)
+ g_free(pdu->data);
g_free(data->test_name);
g_free(data->pdu_list);
diff --git a/unit/test-avrcp.c b/unit/test-avrcp.c
index 01307e6..f1aa353 100644
--- a/unit/test-avrcp.c
+++ b/unit/test-avrcp.c
@@ -49,7 +49,7 @@ struct test_pdu {
bool fragmented;
bool continuing;
bool browse;
- const uint8_t *data;
+ uint8_t *data;
size_t size;
};
@@ -74,7 +74,7 @@ struct context {
#define raw_pdu(args...) \
{ \
.valid = true, \
- .data = data(args), \
+ .data = g_memdup(data(args), sizeof(data(args))), \
.size = sizeof(data(args)), \
}
@@ -82,7 +82,7 @@ struct context {
{ \
.valid = true, \
.browse = true, \
- .data = data(args), \
+ .data = g_memdup(data(args), sizeof(data(args))), \
.size = sizeof(data(args)), \
}
@@ -90,7 +90,7 @@ struct context {
{ \
.valid = true, \
.fragmented = true, \
- .data = data(args), \
+ .data = g_memdup(data(args), sizeof(data(args))), \
.size = sizeof(data(args)), \
}
@@ -98,7 +98,7 @@ struct context {
{ \
.valid = true, \
.continuing = true, \
- .data = data(args), \
+ .data = g_memdup(data(args), sizeof(data(args))), \
.size = sizeof(data(args)), \
}
@@ -123,6 +123,11 @@ static void test_debug(const char *str, void *user_data)
static void test_free(gconstpointer user_data)
{
const struct test_data *data = user_data;
+ struct test_pdu *pdu;
+ int i;
+
+ for (i = 0; (pdu = &data->pdu_list[i]) && pdu->valid; i++)
+ g_free(pdu->data);
g_free(data->test_name);
g_free(data->pdu_list);
diff --git a/unit/test-gatt.c b/unit/test-gatt.c
index c7e28f8..d49f7a0 100644
--- a/unit/test-gatt.c
+++ b/unit/test-gatt.c
@@ -48,7 +48,7 @@
struct test_pdu {
bool valid;
- const uint8_t *data;
+ uint8_t *data;
size_t size;
};
@@ -86,7 +86,7 @@ struct context {
#define raw_pdu(args...) \
{ \
.valid = true, \
- .data = data(args), \
+ .data = g_memdup(data(args), sizeof(data(args))), \
.size = sizeof(data(args)), \
}
@@ -306,6 +306,11 @@ static bt_uuid_t uuid_char_128 = {
static void test_free(gconstpointer user_data)
{
const struct test_data *data = user_data;
+ struct test_pdu *pdu;
+ int i;
+
+ for (i = 0; (pdu = &data->pdu_list[i]) && pdu->valid; i++)
+ g_free(pdu->data);
g_free(data->test_name);
g_free(data->pdu_list);
@@ -1911,6 +1916,8 @@ static void test_server(gconstpointer data)
g_assert_cmpint(len, ==, pdu.size);
util_hexdump('<', pdu.data, len, test_debug, "GATT: ");
+
+ g_free(pdu.data);
}
static void test_search_primary(gconstpointer data)
diff --git a/unit/test-hfp.c b/unit/test-hfp.c
index f2b9622..890eee6 100644
--- a/unit/test-hfp.c
+++ b/unit/test-hfp.c
@@ -43,7 +43,7 @@ struct context {
struct test_pdu {
bool valid;
- const uint8_t *data;
+ uint8_t *data;
size_t size;
enum hfp_gw_cmd_type type;
bool fragmented;
@@ -63,7 +63,7 @@ struct test_data {
#define raw_pdu(args...) \
{ \
.valid = true, \
- .data = data(args), \
+ .data = g_memdup(data(args), sizeof(data(args))), \
.size = sizeof(data(args)), \
}
@@ -75,7 +75,7 @@ struct test_data {
#define type_pdu(cmd_type, args...) \
{ \
.valid = true, \
- .data = data(args), \
+ .data = g_memdup(data(args), sizeof(data(args))), \
.size = sizeof(data(args)), \
.type = cmd_type, \
}
@@ -83,7 +83,7 @@ struct test_data {
#define frg_pdu(args...) \
{ \
.valid = true, \
- .data = data(args), \
+ .data = g_memdup(data(args), sizeof(data(args))), \
.size = sizeof(data(args)), \
.fragmented = true, \
}
@@ -119,6 +119,11 @@ struct test_data {
static void test_free(gconstpointer user_data)
{
const struct test_data *data = user_data;
+ struct test_pdu *pdu;
+ int i;
+
+ for (i = 0; (pdu = &data->pdu_list[i]) && pdu->valid; i++)
+ g_free(pdu->data);
g_free(data->test_name);
g_free(data->pdu_list);
diff --git a/unit/test-hog.c b/unit/test-hog.c
index d117968..25bdb42 100644
--- a/unit/test-hog.c
+++ b/unit/test-hog.c
@@ -68,11 +68,11 @@ struct context {
#define data(args...) ((const unsigned char[]) { args })
-#define raw_pdu(args...) \
-{ \
- .valid = true, \
- .data = data(args), \
- .size = sizeof(data(args)),\
+#define raw_pdu(args...) \
+{ \
+ .valid = true, \
+ .data = g_memdup(data(args), sizeof(data(args))), \
+ .size = sizeof(data(args)), \
}
#define false_pdu() \
diff --git a/unit/test-sdp.c b/unit/test-sdp.c
index ac921a9..c71ee1f 100644
--- a/unit/test-sdp.c
+++ b/unit/test-sdp.c
@@ -59,14 +59,14 @@ struct test_data {
#define raw_pdu(args...) \
{ \
.valid = true, \
- .raw_data = raw_data(args), \
+ .raw_data = g_memdup(raw_data(args), sizeof(raw_data(args))), \
.raw_size = sizeof(raw_data(args)), \
}
#define raw_pdu_cont(cont, args...) \
{ \
.valid = true, \
- .raw_data = raw_data(args), \
+ .raw_data = g_memdup(raw_data(args), sizeof(raw_data(args))), \
.raw_size = sizeof(raw_data(args)), \
.cont_len = cont, \
}
@@ -103,7 +103,7 @@ struct test_data_de {
#define define_test_de_attr(name, input, exp) \
do { \
static struct test_data_de data; \
- data.input_data = input; \
+ data.input_data = g_memdup(input, sizeof(input)); \
data.input_size = sizeof(input); \
data.expected = exp; \
tester_add("/sdp/DE/ATTR/" name, &data, NULL, \

View File

@@ -14,3 +14,4 @@ SRC_URI[md5sum] = "75012084f14fb63a84b116e66c6e94fb"
SRC_URI[sha256sum] = "6ce29b3eb0bb16a7387bc609c39455fd13064bdcde5a4d185fab3a0c71946e16"
RRECOMMENDS_${PN} = "connman-conf"
RCONFLICTS_${PN} = "networkmanager"

View File

@@ -1,27 +0,0 @@
From 01641d146e4e6bea954e4a4ee1f6230b822665b4 Mon Sep 17 00:00:00 2001
From: Chen Qi <Qi.Chen@windriver.com>
Date: Tue, 15 Aug 2017 15:37:49 +0800
Subject: [PATCH 06/11] site.h: enable gentle shutdown
Upstream-Status: Inappropriate [configuration]
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Rebase to 4.3.6
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
includes/site.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: dhcp-4.4.1/includes/site.h
===================================================================
--- dhcp-4.4.1.orig/includes/site.h
+++ dhcp-4.4.1/includes/site.h
@@ -295,7 +295,7 @@
situations. We plan to revisit this feature and may
make non-backwards compatible changes including the
removal of this define. Use at your own risk. */
-/* #define ENABLE_GENTLE_SHUTDOWN */
+#define ENABLE_GENTLE_SHUTDOWN
/* Include old error codes. This is provided in case you
are building an external program similar to omshell for

View File

@@ -5,7 +5,6 @@ SRC_URI += "file://0001-define-macro-_PATH_DHCPD_CONF-and-_PATH_DHCLIENT_CON.pat
file://0003-link-with-lcrypto.patch \
file://0004-Fix-out-of-tree-builds.patch \
file://0005-dhcp-client-fix-invoke-dhclient-script-failed-on-Rea.patch \
file://0006-site.h-enable-gentle-shutdown.patch \
file://0007-Add-configure-argument-to-make-the-libxml2-dependenc.patch \
file://0009-remove-dhclient-script-bash-dependency.patch \
file://0012-dhcp-correct-the-intention-for-xml2-lib-search.patch \

View File

@@ -200,7 +200,7 @@ RDEPENDS_${PN}-tftpd += "xinetd"
FILES_${PN}-telnetd = "${sbindir}/in.telnetd ${sysconfdir}/xinetd.d/telnet"
FILES_${PN}-telnetd-dbg = "${sbindir}/.debug/in.telnetd"
RCONFLICTS_${PN}-telnetd += "netkit-telnetd"
RCONFLICTS_${PN}-telnetd += "netkit-telnet"
RPROVIDES_${PN}-telnetd = "telnetd"
RDEPENDS_${PN}-telnetd += "xinetd"

View File

@@ -1,121 +0,0 @@
From 5df934e2279e8ed1f07b990f4b2b3baf6470f7e5 Mon Sep 17 00:00:00 2001
From: "dtucker@openbsd.org" <dtucker@openbsd.org>
Date: Thu, 24 Jan 2019 16:52:17 +0000
Subject: [PATCH] upstream: Have progressmeter force an update at the beginning
and
end of each transfer. Fixes the problem recently introduces where very quick
transfers do not display the progressmeter at all. Spotted by naddy@
OpenBSD-Commit-ID: 68dc46c259e8fdd4f5db3ec2a130f8e4590a7a9a
Upstream-Status: Backport
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
---
progressmeter.c | 13 +++++--------
progressmeter.h | 4 ++--
scp.c | 2 +-
sftp-client.c | 2 +-
4 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/progressmeter.c b/progressmeter.c
index add462d..e385c12 100644
--- a/progressmeter.c
+++ b/progressmeter.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: progressmeter.c,v 1.46 2019/01/23 08:01:46 dtucker Exp $ */
+/* $OpenBSD: progressmeter.c,v 1.47 2019/01/24 16:52:17 dtucker Exp $ */
/*
* Copyright (c) 2003 Nils Nordman. All rights reserved.
*
@@ -59,9 +59,6 @@ static void format_rate(char *, int, off_t);
static void sig_winch(int);
static void setscreensize(void);
-/* updates the progressmeter to reflect the current state of the transfer */
-void refresh_progress_meter(void);
-
/* signal handler for updating the progress meter */
static void sig_alarm(int);
@@ -120,7 +117,7 @@ format_size(char *buf, int size, off_t bytes)
}
void
-refresh_progress_meter(void)
+refresh_progress_meter(int force_update)
{
char buf[MAX_WINSIZE + 1];
off_t transferred;
@@ -131,7 +128,7 @@ refresh_progress_meter(void)
int hours, minutes, seconds;
int file_len;
- if ((!alarm_fired && !win_resized) || !can_output())
+ if ((!force_update && !alarm_fired && !win_resized) || !can_output())
return;
alarm_fired = 0;
@@ -254,7 +251,7 @@ start_progress_meter(const char *f, off_t filesize, off_t *ctr)
bytes_per_second = 0;
setscreensize();
- refresh_progress_meter();
+ refresh_progress_meter(1);
signal(SIGALRM, sig_alarm);
signal(SIGWINCH, sig_winch);
@@ -271,7 +268,7 @@ stop_progress_meter(void)
/* Ensure we complete the progress */
if (cur_pos != end_pos)
- refresh_progress_meter();
+ refresh_progress_meter(1);
atomicio(vwrite, STDOUT_FILENO, "\n", 1);
}
diff --git a/progressmeter.h b/progressmeter.h
index 8f66780..1703ea7 100644
--- a/progressmeter.h
+++ b/progressmeter.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: progressmeter.h,v 1.4 2019/01/23 08:01:46 dtucker Exp $ */
+/* $OpenBSD: progressmeter.h,v 1.5 2019/01/24 16:52:17 dtucker Exp $ */
/*
* Copyright (c) 2002 Nils Nordman. All rights reserved.
*
@@ -24,5 +24,5 @@
*/
void start_progress_meter(const char *, off_t, off_t *);
-void refresh_progress_meter(void);
+void refresh_progress_meter(int);
void stop_progress_meter(void);
diff --git a/scp.c b/scp.c
index 4a342a6..0587cec 100644
--- a/scp.c
+++ b/scp.c
@@ -585,7 +585,7 @@ scpio(void *_cnt, size_t s)
off_t *cnt = (off_t *)_cnt;
*cnt += s;
- refresh_progress_meter();
+ refresh_progress_meter(0);
if (limit_kbps > 0)
bandwidth_limit(&bwlimit, s);
return 0;
diff --git a/sftp-client.c b/sftp-client.c
index 2bc698f..cf2887a 100644
--- a/sftp-client.c
+++ b/sftp-client.c
@@ -101,7 +101,7 @@ sftpio(void *_bwlimit, size_t amount)
{
struct bwlimit *bwlimit = (struct bwlimit *)_bwlimit;
- refresh_progress_meter();
+ refresh_progress_meter(0);
if (bwlimit != NULL)
bandwidth_limit(bwlimit, amount);
return 0;
--
2.7.4

Some files were not shown because too many files have changed in this diff Show More