]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agolibsecret: 0.18.8
Oleksandr Kravchuk [Mon, 1 Apr 2019 22:05:03 +0000 (00:05 +0200)]
libsecret: 0.18.8

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowget: update to 1.20.2
Oleksandr Kravchuk [Mon, 1 Apr 2019 21:59:49 +0000 (23:59 +0200)]
wget: update to 1.20.2

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxcrypt: update to 4.4.4
Oleksandr Kravchuk [Mon, 1 Apr 2019 21:54:30 +0000 (23:54 +0200)]
libxcrypt: update to 4.4.4

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxmu: update to 1.1.3
Oleksandr Kravchuk [Mon, 1 Apr 2019 21:30:42 +0000 (23:30 +0200)]
libxmu: update to 1.1.3

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibrepo: update to 1.9.6
Oleksandr Kravchuk [Sun, 31 Mar 2019 23:59:09 +0000 (01:59 +0200)]
librepo: update to 1.9.6

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoffmpeg: update to 4.1.2
Oleksandr Kravchuk [Sun, 31 Mar 2019 16:37:27 +0000 (18:37 +0200)]
ffmpeg: update to 4.1.2

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotar: update to 1.32
Oleksandr Kravchuk [Sun, 31 Mar 2019 16:21:51 +0000 (18:21 +0200)]
tar: update to 1.32

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoethtool: update to 5.0
Oleksandr Kravchuk [Sat, 30 Mar 2019 23:00:29 +0000 (00:00 +0100)]
ethtool: update to 5.0

Changelog:
- Feature: don't report UFO on kernels v4.14 and above
- Fix: zero initialize coalesce struct
- Feature: dsa: add pretty dump
- Feature: dsa: mv88e6xxx: add pretty dump
- Feature: dsa: mv88e6xxx: add pretty dump for 88E6185
- Feature: dsa: mv88e6xxx: add pretty dump for 88E6161
- Feature: dsa: mv88e6xxx: add pretty dump for 88E6352
- Feature: dsa: mv88e6xxx: add pretty dump for 88E6390
- Feature: dsa: mv88e6xxx: add pretty dump for others

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoconnman: update to 1.37
Oleksandr Kravchuk [Sat, 30 Mar 2019 18:50:25 +0000 (19:50 +0100)]
connman: update to 1.37

Removed patch has been upstreamed.

Changelog:
- Fix issue with handling invalid gateway addresses.
- Fix issue with handling updates of default gateway.
- Fix issue with DHCP servers that require broadcast flag.
- Add support for option to use gateways as time servers.
- Add support for option to select default technology.
- Add support for Address Conflict Detection (ACD).
- Add support for IPv6 iptables management.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxrandr: update to 1.5.2
Oleksandr Kravchuk [Mon, 1 Apr 2019 01:15:09 +0000 (03:15 +0200)]
libxrandr: update to 1.5.2

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxvmc: update to 1.0.11
Oleksandr Kravchuk [Mon, 1 Apr 2019 01:13:43 +0000 (03:13 +0200)]
libxvmc: update to 1.0.11

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxkbfile: update 1.1.0
Oleksandr Kravchuk [Mon, 1 Apr 2019 00:44:07 +0000 (02:44 +0200)]
libxkbfile: update 1.1.0

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxdmcp: update to 1.1.3
Oleksandr Kravchuk [Mon, 1 Apr 2019 00:42:09 +0000 (02:42 +0200)]
libxdmcp: update to 1.1.3

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agox11perf: update to 1.6.1
Oleksandr Kravchuk [Mon, 1 Apr 2019 00:39:39 +0000 (02:39 +0200)]
x11perf: update to 1.6.1

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxext: update to 1.3.4
Oleksandr Kravchuk [Mon, 1 Apr 2019 00:32:15 +0000 (02:32 +0200)]
libxext: update to 1.3.4

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocurl: update to 7.64.1
Oleksandr Kravchuk [Sun, 31 Mar 2019 16:29:56 +0000 (18:29 +0200)]
curl: update to 7.64.1

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoiproute2: update to 5.0.0
Oleksandr Kravchuk [Sun, 31 Mar 2019 16:55:15 +0000 (18:55 +0200)]
iproute2: update to 5.0.0

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxtrans:upgrade 1.3.5 -> 1.4.0
Zang Ruochen [Mon, 1 Apr 2019 09:29:44 +0000 (17:29 +0800)]
xtrans:upgrade 1.3.5 -> 1.4.0

-Upgrade from xtrans_1.3.5.bb to xtrans_1.4.0.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibtirpc:upgrade 1.0.3 -> 1.1.4
Zang Ruochen [Mon, 1 Apr 2019 08:57:38 +0000 (16:57 +0800)]
libtirpc:upgrade 1.0.3 -> 1.1.4

-Upgrade from libtirpc_1.0.3.bb to libtirpc_1.1.4.bb.

-Delete libtirpc/libtirpc-1.0.4-rc1.patch beacuse this patch has been
adopted in the high version.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosysprof:upgrade 3.30.2 -> 3.32.0
Zang Ruochen [Mon, 1 Apr 2019 08:56:06 +0000 (16:56 +0800)]
sysprof:upgrade 3.30.2 -> 3.32.0

-Upgrade from sysprof_3.30.2.bb to sysprof_3.32.0.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonss:upgrade 3.42.1 -> 3.43
Zang Ruochen [Mon, 1 Apr 2019 07:13:37 +0000 (15:13 +0800)]
nss:upgrade 3.42.1 -> 3.43

-Upgrade from nss_3.42.1.bb to nss_3.43.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxxf86dga:upgrade 1.1.4 -> 1.1.5
Zang Ruochen [Mon, 1 Apr 2019 03:28:22 +0000 (11:28 +0800)]
libxxf86dga:upgrade 1.1.4 -> 1.1.5

-Upgrade from libxxf86dga_1.1.4.bb to libxxf86dga_1.1.5.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxft:upgrade 2.3.2 -> 2.3.3
Zang Ruochen [Mon, 1 Apr 2019 03:17:21 +0000 (11:17 +0800)]
libxft:upgrade 2.3.2 -> 2.3.3

-Upgrade from libxft_2.3.2.bb to libxft_2.3.3.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibgpg-error:upgrade 1.35 -> 1.36
Zang Ruochen [Mon, 1 Apr 2019 02:17:39 +0000 (10:17 +0800)]
libgpg-error:upgrade 1.35 -> 1.36

-Upgrade from libgpg-error_1.35.bb to libgpg-error_1.36.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibatomic-ops:upgrade 7.6.8 -> 7.6.10
Zang Ruochen [Mon, 1 Apr 2019 02:05:01 +0000 (10:05 +0800)]
libatomic-ops:upgrade 7.6.8 -> 7.6.10

-Upgrade from libatomic-ops_7.6.8.bb to libatomic-ops_7.6.10.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Fri, 12 Apr 2019 13:00:04 +0000 (14:00 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobuild-appliance-image: Update to warrior head revision
Richard Purdie [Fri, 12 Apr 2019 12:52:11 +0000 (13:52 +0100)]
build-appliance-image: Update to warrior head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-fitimage: support RISC-V
Michael Scott [Fri, 12 Apr 2019 05:46:25 +0000 (22:46 -0700)]
kernel-fitimage: support RISC-V

Support RISC-V kernel image, using the "Image" target.

This change allows RISC-V support for fitImage via the following
flow: OpenSBI -> u-boot (as payload) -> Linux kernel (as fitImage
with ramdisk and dtb).

This was tested using QEMU RISC-V 64-bit.

Signed-off-by: Michael Scott <mike@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonettle: fix ptest failure
Mingli Yu [Fri, 12 Apr 2019 03:27:57 +0000 (11:27 +0800)]
nettle: fix ptest failure

Remove dlopen-test.patch which originally used
to fix the test dlopen-test, but autually the
patch didn't resolve the issue as dlopen-test.patch
supposes the file /usr/lib/libnettle.so exists.
Instead deploy ${D}${PTEST_PATH}/libnettle.so to
fix the dlopen-test failure.

Update the initialization for the salt to fix
below Segmentation fault and also nettle-pbkdf2-test
failure.
 # echo -n passwd| nettle-pbkdf2 -i 1 -l 16 salt
 [65534.886509] nettle-pbkdf2[708]: segfault at 1f594260 ip 00007f3332256998 sp 00007fff60d44410 error 4 in libnettle.so.6.5[7f3332244000+1d00]
 [65534.887525] Code: e8 6d db fe ff 44 01 6d 68 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 2e 0f 1f 84 00 00 00 00 00 49 89 dc e9 68 ff f
 Segmentation fault

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorunqemu: do not check return code of tput
Chen Qi [Fri, 12 Apr 2019 01:40:06 +0000 (09:40 +0800)]
runqemu: do not check return code of tput

The subprocess.run was replaced by subprocess.check_call because
of compatibility support down to python 3.4. But we really don't
care about whether that command succeeds. Some user reports that
in some tmux environment, this command fails and gives some
unpleasant traceback output. So we use 'call' instead of 'check_call'
to avoid such problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc-cross-canadian: Make baremetal specific code generic
Khem Raj [Thu, 11 Apr 2019 22:11:50 +0000 (15:11 -0700)]
gcc-cross-canadian: Make baremetal specific code generic

baremetal override is not valid for cross-canadian anymore
therefore use the TARGET_OS overrides

Fixes
e.g. https://github.com/riscv/meta-riscv/issues/117

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoimage_types.bbclass: fix a race between the ubi and ubifs FSTYPES
Hongxu Jia [Fri, 12 Apr 2019 09:10:38 +0000 (05:10 -0400)]
image_types.bbclass: fix a race between the ubi and ubifs FSTYPES

The ubi, ubifs and multiubi FSTYPES calls `mkfs.ubifs' to create UBIFS
images.

In do_image_ubi, $vname is empty, the name of UBIFS image conflicts with
the one in do_image_ubifs, and it's a race risk.
[do_image_ubi]
mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${IMGDEPLOYDIR}/${IMAGE_NAME}${vname}${IMAGE_NAME_SUFFIX}.ubifs ${mkubifs_args}
[do_image_ubi]

[do_image_ubifs]
mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.ubifs ${MKUBIFS_ARGS}
[do_image_ubifs]

In do_image_multiubi, $vname is not empty, the UBIFS image name does
not conflict with others.

So do not call mkfs.ubifs in do_image_ubi and depend on do_image_ubifs
to create UBIFS images.

The fix does not affect do_image_multiubi which still call mkfs.ubifs to
create multiple UBIFS images and symlinks.

[YOCTO #13272]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoe2fsprogs: Skip slow ptest tests
Richard Purdie [Thu, 11 Apr 2019 21:34:57 +0000 (22:34 +0100)]
e2fsprogs: Skip slow ptest tests

The slow tests run unreliably with our current setup/infrsstructure/timeouts.

There are only five slow ones and having the other ~250 run reliably without timeouts
is the priority right now. We can revisit the slow tests at some later date if wanted.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogoarch.bbclass: Simplify logic
Richard Purdie [Thu, 11 Apr 2019 20:41:37 +0000 (21:41 +0100)]
goarch.bbclass: Simplify logic

Further simplification of the go_map_arm() function.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogo.bbclass: Remove unused override
Richard Purdie [Thu, 11 Apr 2019 20:39:50 +0000 (21:39 +0100)]
go.bbclass: Remove unused override

The x86 override means the i586 one isn't necessary.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: add a tr-tr locale for test_locale ptest
Alexander Kanavin [Thu, 11 Apr 2019 16:00:37 +0000 (18:00 +0200)]
python3: add a tr-tr locale for test_locale ptest

With this change, the ptests do not fail anymore,
except for the three failures caused by the 5.0 kernel regression:

- test_ssl and test_httplib lock up, and are skipped
(there is a separate patch for it)

- test_asyncio fails but does not lock up

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoperf: workaround the error cased by maybe-uninitialized warning
Dengke Du [Thu, 4 Apr 2019 09:02:33 +0000 (17:02 +0800)]
perf: workaround the error cased by maybe-uninitialized warning

When enable DEBUG_BUILD, the perf build failed by the following error:
    libbpf.c:727:36: error: 'data' may be used uninitialized in this function [-Werror=maybe-uninitialized]
This is ok until Khem commit a patch in oe-core:
    16643b03227466e2c80a24c2d079fe36e89553c1
This commit import "-Og" option to "DEBUG_OPTIMIZATION", result in this error.

Actually, the warning was misinformation. We explore the code in libbpf.c:
    https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/lib/bpf/libbpf.c#n640
--------------------------------------------------------------------------
if (scn)
data = elf_getdata(scn, NULL);
if (!scn || !data) {
pr_warning("failed to get Elf_Data from map section %d\n",
   obj->efile.maps_shndx);
return -EINVAL;
}
......
using data...
......
--------------------------------------------------------------------------
If the 'scn' was not null, the data will be initialized. if the data was null,
the function will return -EINVAL, so the data must be not null, but compiler
can't see it in 'if' code block, so treat it as 'maybe-uninitialized'.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoresulttool/manualexecution: Refactor and remove duplicate code
Yeoh Ee Peng [Thu, 11 Apr 2019 05:20:49 +0000 (13:20 +0800)]
resulttool/manualexecution: Refactor and remove duplicate code

Remove duplicate codes. Replace unnecessary class variables with
local variables. Rename variables and arguments with simple and
standard name.

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoccmake.bbclass: Fix up un-escaped quotes in output formatting
Nathan Rossi [Thu, 11 Apr 2019 04:03:52 +0000 (04:03 +0000)]
ccmake.bbclass: Fix up un-escaped quotes in output formatting

The quotes should be generated in the output to match the expected cmake
syntax for setting cache variables.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocogl: fix compile error caused by -Werror=maybe-uninitialized
Changqing Li [Thu, 11 Apr 2019 08:20:46 +0000 (16:20 +0800)]
cogl: fix compile error caused by -Werror=maybe-uninitialized

When enable DEBUG_BUILD, cogl compile failed with error:

| ../../cogl-1.22.2/cogl/driver/gl/gles/cogl-driver-gles.c:217:17: error: 'gltype' may be used uninitialized in this function [-Werror=maybe-uninitialized]
|      *out_gltype = gltype;
|      ~~~~~~~~~~~~^~~~~~~~
| ../../cogl-1.22.2/cogl/driver/gl/gles/cogl-driver-gles.c:213:22: error: 'glintformat' may be used uninitialized in this function [-Werror=maybe-uninitialized]
|      *out_glintformat = glintformat;
|      ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~

Source: https://gitlab.gnome.org/GNOME/cogl/blob/master/cogl/driver/gl/gles/cogl-driver-gles.c
it can handle correctly, so fix with -Wnoerror

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-devsrc: check for localversion files in the kernel source tree
Beniamin Sandu [Thu, 11 Apr 2019 07:28:54 +0000 (10:28 +0300)]
kernel-devsrc: check for localversion files in the kernel source tree

The kernel-devsrc rework doesn't take into account localversion
files in the kernel source tree. This might result in modules with an
incomplete version magic when building out-of-tree using the SDK.

Before:
root@qemux86:~# insmod hello.ko
[   42.000212] hello: version magic '5.0.3-yocto-standard SMP preempt
mod_unload PENTIUMM ' should be '5.0.3-my-custom-release-yocto-standard
SMP preempt mod_unload PENTIUMM '
[   42.008200] hello: version magic '5.0.3-yocto-standard SMP preempt
mod_unload PENTIUMM ' should be '5.0.3-my-custom-release-yocto-standard
SMP preempt mod_unload PENTIUMM '
insmod: can't insert 'hello.ko': invalid module format

After:
root@qemux86:~# insmod hello.ko
[   39.094288] hello: loading out-of-tree module taints kernel.
[   39.108044] Hello World!

Signed-off-by: Beniamin Sandu <beniamin.sandu@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoruby: add ptest
Changqing Li [Thu, 11 Apr 2019 07:02:33 +0000 (15:02 +0800)]
ruby: add ptest

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoruby: make ext module fiddle can compile success
Changqing Li [Thu, 11 Apr 2019 07:02:32 +0000 (15:02 +0800)]
ruby: make ext module fiddle can compile success

ext module fiddle depend on libffi, in ruby source tree,
there is in internal libffi in case target platfrom don't
install libffi, but autotools.bbclass delete configure
under libffi and not run autoreconf to regenerate one.so
we met this error:
ruby-2.5.3/ext/fiddle/libffi-3.2.1/configure: No such file or directory

the fix is add depend and extra_oeconf to use libffi in the system

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: install libnss-myhostname.so when myhostname be enabled
Wenlin Kang [Wed, 10 Apr 2019 09:24:33 +0000 (17:24 +0800)]
systemd: install libnss-myhostname.so when myhostname be enabled

This fixes the follow issue, the cause is that net-tools needs
libnss-myhostname.so when run "hostname -s".

root@qemuarm64:~# hostname -s
hostname: Unknown host

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorecipetool: add missed module
Lei Yang [Wed, 10 Apr 2019 06:04:09 +0000 (14:04 +0800)]
recipetool: add missed module

When I use recipetool to add a new recipe, it says:

[snip]
sys.exit(14)
NameError: name 'sys' is not defined
[snip]

Signed-off-by: Lei Yang <Lei.Yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopkg: add ptest
Alejandro del Castillo [Wed, 10 Apr 2019 20:54:23 +0000 (15:54 -0500)]
opkg: add ptest

Install opkg test suite and run it as ptest.

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosanity: check_perl_modules bug fix
Zheng Ruoqin [Wed, 10 Apr 2019 15:44:10 +0000 (23:44 +0800)]
sanity: check_perl_modules bug fix

Fix Python3 TypeError error in check_perl_modules:

Executing bitbake, the following error message will be throwed:

  File ".../poky/meta/classes/sanity.bbclass", line
979, in check_sanity_eventhandler
    check_sanity(sanity_data)
  File ".../poky/meta/classes/sanity.bbclass", line
943, in check_sanity
    check_sanity_version_change(status, sanity_data)
  File ".../poky/meta/classes/sanity.bbclass", line
637, in check_sanity_version_change
    status.addresult(check_perl_modules(d))
  File ".../poky/meta/classes/sanity.bbclass", line
563, in check_perl_modules
    errresult += e.output
TypeError: must be str, not bytes

So here, transfer e.output from bytes to str.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinsane.bbclass: Trigger unrecognzed configure option for meson
Andreas Müller [Fri, 5 Apr 2019 06:37:24 +0000 (08:37 +0200)]
insane.bbclass: Trigger unrecognzed configure option for meson

Tested with 'unknown-configure-option' in ERROR_QA:

For meson (glib-2.0-native):
1. add 'EXTRA_OEMESON_append = "-Dschnitzel=true -Dwurst=true"'
   | ERROR: glib-2.0-native-1_2.58.3-r0 do_configure: QA Issue: glib-2.0-native: configure was passed unrecognised options: schnitzel wurst [unknown-configure-option]
2. add 'UNKNOWN_CONFIGURE_WHITELIST_append=" schnitzel"'
   | ERROR: glib-2.0-native-1_2.58.3-r0 do_configure: QA Issue: glib-2.0-native: configure was passed unrecognised options: wurst [unknown-configure-option]
3. change to 'UNKNOWN_CONFIGURE_WHITELIST_append=" schnitzel wurst"'
   => builds without issues

For autotools (readline-native):
1. add 'EXTRA_OECONF = "--with-schnitzel --with-wurst"'
   | ERROR: readline-native-8.0-r0 do_configure: QA Issue: readline-native: configure was passed unrecognised options: --with-wurst --with-schnitzel [unknown-configure-option]
2. add 'UNKNOWN_CONFIGURE_WHITELIST_append=" --with-schnitzel"'
   | ERROR: readline-native-8.0-r0 do_configure: QA Issue: readline-native: configure was passed unrecognised options: --with-wurst [unknown-configure-option]
3. add 'UNKNOWN_CONFIGURE_WHITELIST_append=" --with-schnitzel --with-wurst"'
   => builds without issues

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogstreamer1.0-python: rework gobject-introspection handling
Andreas Müller [Fri, 5 Apr 2019 20:20:59 +0000 (22:20 +0200)]
gstreamer1.0-python: rework gobject-introspection handling

gobject-introspection is mandatory for gstreamer1.0-python - there is no
configure option to enable or disable it.

To handle properly, this patch does:

* Make 'gobject-introspection-data' a required distro feature
* Add
  'UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-introspection --disable-introspection"'
   - it was removed in gobject-introspection.bbclass to avoid
  | ERROR: libgee-0.18.0-r0 do_configure: QA Issue: libgee: configure was passed unrecognised options: --disable-schemas-install [unknown-configure-option]

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogst-plugins: move 'inherit gobject-introspection' to recipes supporting GI
Andreas Müller [Fri, 5 Apr 2019 06:37:36 +0000 (08:37 +0200)]
gst-plugins: move 'inherit gobject-introspection' to recipes supporting GI

Now that whitelisting for unknown configure options was removed in
gobject-introspection.bbclass gstreamer1.0-plugins-ugly/-good start complaining

| ERROR: gstreamer1.0-plugins-ugly-1.14.4-r0 do_configure: QA Issue: gstreamer1.0-plugins-ugly: configure was passed unrecognised options: --enable-introspection [unknown-configure-option]
| ERROR: gstreamer1.0-plugins-good-1.14.4-r0 do_configure: QA Issue: gstreamer1.0-plugins-good: configure was passed unrecognised options: --enable-introspection [unknown-configure-option]

So let only those gst-plugin recipes inherit gobject-introspection whose sources
support GI.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglib-networking: upgrade 2.58.0 -> 2.60.1
Andreas Müller [Fri, 5 Apr 2019 06:37:35 +0000 (08:37 +0200)]
glib-networking: upgrade 2.58.0 -> 2.60.1

this version support gnutls option again - it was mandatory for 2.58.0

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsoup-2.4: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:34 +0000 (08:37 +0200)]
libsoup-2.4: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoatk: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:33 +0000 (08:37 +0200)]
atk: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoat-spi2-core: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:32 +0000 (08:37 +0200)]
at-spi2-core: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopango: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:31 +0000 (08:37 +0200)]
pango: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoclutter-gtk-1.0: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:30 +0000 (08:37 +0200)]
clutter-gtk-1.0: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibdazzle: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:29 +0000 (08:37 +0200)]
libdazzle: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agojson-glib: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:28 +0000 (08:37 +0200)]
json-glib: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogdk-pixbuf: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:27 +0000 (08:37 +0200)]
gdk-pixbuf: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibmodulemd: use gobject-introspection.bbclass on/off mechanism
Andreas Müller [Fri, 5 Apr 2019 06:37:26 +0000 (08:37 +0200)]
libmodulemd: use gobject-introspection.bbclass on/off mechanism

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogobject-introspection: auto-enable/-disable gobject-introspection for meson
Andreas Müller [Fri, 5 Apr 2019 06:37:25 +0000 (08:37 +0200)]
gobject-introspection: auto-enable/-disable gobject-introspection for meson

* the class sets defaults used most common which can be overriden by recipes
* UNKNOWN_CONFIGURE_WHITELIST was removed for autotools (and not added for meson)
  as suggested by Alexander Kanavin [1]

[1] http://lists.openembedded.org/pipermail/openembedded-core/2019-April/280716.html

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoelfutils: remove Elfutils-Exception and include GPLv2 for shared libraries
Mikko Rapeli [Thu, 11 Apr 2019 13:41:49 +0000 (16:41 +0300)]
elfutils: remove Elfutils-Exception and include GPLv2 for shared libraries

Elfutils-Exception no longer exists after upstream release 0.154
and commit:

commit de2ed97f33139af5c7a0811e4ec66fc896a13cf2
Author: Mark Wielaard <mjw@redhat.com>
Date:   Tue Jun 5 17:15:16 2012 +0200

NEWS file in the sources says this about switch from GPLv2 to
GPLv3 license:

https://sourceware.org/git/?p=elfutils.git;a=blob;f=NEWS;h=5a06047f255e3c9a63828953759fd18a4ba9a3f3;hb=HEAD#l362

 362 The license is now GPLv2/LGPLv3+ for the libraries and GPLv3+ for stand-alone
 363 programs. There is now also a formal CONTRIBUTING document describing how to
 364 submit patches.

libasm, libdw and libelf are thus covered optionally by GPLv2 license.

See also Debian copyright summary for elfutils:

https://tracker.debian.org/media/packages/e/elfutils/copyright-0.175-1

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: Fix ptest output parsing
Richard Purdie [Mon, 8 Apr 2019 22:14:12 +0000 (23:14 +0100)]
python3: Fix ptest output parsing

A previous fix to python added -W and removed -v. This reverts that part of the change
since we're no longer getting ptest results at all. This change back to more
verbose output means we start getting test results again.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: Avoid hanging tests
Richard Purdie [Sun, 7 Apr 2019 22:15:04 +0000 (23:15 +0100)]
python3: Avoid hanging tests

There are python tests which hang with recent kernels, 5.0 onwards. This causes
ptest to timeout for python3. Disable the problematic test until we better understand
the real cause and fix of the issue (discussions are happening with upstream).

See the patch for details/links.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopseudo: Update to gain key bugfixes
Richard Purdie [Wed, 10 Apr 2019 23:07:02 +0000 (00:07 +0100)]
pseudo: Update to gain key bugfixes

Newer distros are using new versions of glibc and coreutils which use the new glibc
renameat2 function. We need to intercept this for correct functioning of pseudo. This
is essential to ensure new distros continue to work with the project.

Also, this version has a fix for path/inode cross corruption problems which
may explain our mysterious locale permissions issues.

Many thanks to Otavio and Peter Seebach for the help in figuring this out and
fixing it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobusybox: Use PTEST binary directory
Mariano Lopez [Tue, 9 Apr 2019 05:44:15 +0000 (00:44 -0500)]
busybox: Use PTEST binary directory

This will generate the symlinks in the ptest binary directory using the
ptest class functionality instead of generating them manually. Because
the ptest class uses update-alternatives to get the metadata for the
symlinks it will respect the use of BUSYBOX_SPLIT_SUID automatically.

[YOCTO #12597]

Signed-off-by: Mariano Lopez <just.another.mariano@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoutil-linux: Use PTEST binary directory
Mariano Lopez [Tue, 9 Apr 2019 05:44:14 +0000 (00:44 -0500)]
util-linux: Use PTEST binary directory

Some binaries generated by util-linux will be replaced by core-utils
in the final image by update-alternatives, so use a dedicated directory
with symlinks to avoid using a binary generated by another package.

This will solve the issue with the ptest runner timing out when
running the kill ptests for util-linux.

[YOCTO #13238]

Signed-off-by: Mariano Lopez <just.another.mariano@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoptest.bbclass: Add feature to populate a binary directory
Mariano Lopez [Tue, 9 Apr 2019 05:44:13 +0000 (00:44 -0500)]
ptest.bbclass: Add feature to populate a binary directory

This adds the functionality to create a binary directory within
PTEST_PATH directory. This directory will be populated with
symlinks pointing to the binaries installed by the package and
then renamed by update-alternatives. This way the ptest only needs
to source this binary directory in order to use the expected
binaries.

To enable this feature just add PTEST_BINDIR = "1" to the recipe.

[YOCTO #12597]
[YOCTO #13238]

Signed-off-by: Mariano Lopez <just.another.mariano@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoupdate-alternatives.bbclass: Add function to get metadata
Mariano Lopez [Tue, 9 Apr 2019 05:44:12 +0000 (00:44 -0500)]
update-alternatives.bbclass: Add function to get metadata

This adds update_alternatives_alt_targets function to get the metadata
for a package. This is for code reuse because the metadata would help
other classes that needs to be aware of how update-alternatives modify
the final package.

[YOCTO #12597]
[YOCTO #13238]

Signed-off-by: Mariano Lopez <just.another.mariano@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogoarch.bbclass: use MACHINEOVERRIDES and simplify go_map_arm()
Mark Asselstine [Mon, 18 Mar 2019 15:21:53 +0000 (11:21 -0400)]
goarch.bbclass: use MACHINEOVERRIDES and simplify go_map_arm()

Per https://github.com/golang/go/wiki/GoArm we need to set GOARM when
cross building for ARMv5, ARMv6 and ARMv7. The current approach of
using TUNE_FEATURES can be error prone, as we can see today when
attempting to build for Cortex-A7 which results in GOARM=''.

Since the value of MACHINEOVERRIDES already consolidates the values of
TUNE_FEATURES into something more consistent we can use the overrides
mechanism to set GOARM, leaving just a little bit of logic in
go_map_arm() to trigger off the arch (basically target vs host)
for the setting of GOARM.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogo.bbclass: Export more GO* environment variables
Mark Asselstine [Mon, 18 Mar 2019 15:21:52 +0000 (11:21 -0400)]
go.bbclass: Export more GO* environment variables

Currently we are not doing a good job of consolidating GO environment
variables used by the go build system in the go.bbclass, instead we
are relying on the individual GO recipe authors to perform the
exports. This can result in inconsistent build results and often
binaries that are not properly cross compiled, resulting in segfaults
when the applications are run on the target.

For example the GO documentation recommends that the environment
include a value assigned to GOARM when cross building for ARMv5, ARMv6
and ARMv7 (https://github.com/golang/go/wiki/GoArm).

In order to avoid polluting the build scripts with unnecessary
exports, such as run.do_compile, we attempt to only export variables
when they apply to a specific arch.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinsane: fix gettext dependency warning
Ross Burton [Mon, 8 Apr 2019 10:57:27 +0000 (11:57 +0100)]
insane: fix gettext dependency warning

This message was using %s markers but nothing was being passed in.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: fix predictable network interface names in initrd
Tomasz Meresiński [Tue, 9 Apr 2019 15:06:53 +0000 (17:06 +0200)]
systemd: fix predictable network interface names in initrd

https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
says, that udev is responsible for predictable network interface names,
so udev package is a better place for its configuration file.

Signed-off-by: Tomasz Meresiński <tomasz.meresinski@comarch.pl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosstate.bbclass: Use bb.utils.to_boolean() for BB_NO_NETWORK
Robert Yang [Tue, 9 Apr 2019 08:34:32 +0000 (16:34 +0800)]
sstate.bbclass: Use bb.utils.to_boolean() for BB_NO_NETWORK

Make it consistent with bitbake

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoresulttool/manualexecution: Enable creation of configuration option file
Yeoh Ee Peng [Tue, 9 Apr 2019 05:53:08 +0000 (13:53 +0800)]
resulttool/manualexecution: Enable creation of configuration option file

Allow the creation of configuration option file based on user inputs.
Where this configuration option file will be used by the the manual
execution to display options for configuration rather than user
need to inputs configuration manually.

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoresulttool/manualexecution: Enable configuration options selection
Yeoh Ee Peng [Tue, 9 Apr 2019 05:53:07 +0000 (13:53 +0800)]
resulttool/manualexecution: Enable configuration options selection

Current manualexecution required user to input configuration manually
where there were inconsistent inputs and human typo issues.

Enable manualexecution to have the optional feature where it
will use pre-compiled configuration options file where user will
be able to select configuration from the pre-compiled list instead
of manual key-in the configuration. This will eliminate human error.

Expect the pre-compiled configuration options file in json format below

{
    "bsps-hw": {
        "IMAGE_BASENAME": {
            "1": "core-image-sato-sdk"
        },
        "MACHINE": {
            "1": "beaglebone-yocto",
            "2": "edgerouter",
            "3": "mpc8315e-rdb",
            "4": "genericx86",
            "5": "genericx86-64"
        }
    },
    "bsps-qemu": {
        "IMAGE_BASENAME": {
            "1": "core-image-sato-sdk"
        },
        "MACHINE": {
            "1": "qemuarm",
            "2": "qemuarm64",
            "3": "qemumips",
            "4": "qemumips64",
            "5": "qemuppc",
            "6": "qemux86",
            "7": "qemux86-64"
        }
    }
}

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocmake: Support Eclipse and other cmake generators
Nikhil Pal Singh [Mon, 8 Apr 2019 21:24:36 +0000 (09:24 +1200)]
cmake: Support Eclipse and other cmake generators

Support project-file generators such as CodeBlocks, CodeLite,
Eclipse, Sublime, and Kate for both make and Ninja build systems.

The following generators are listed in cmake --help:

  Unix Makefiles               = Generates standard UNIX makefiles.
  Ninja                        = Generates build.ninja files.
  Watcom WMake                 = Generates Watcom WMake makefiles.
  CodeBlocks - Ninja           = Generates CodeBlocks project files.
  CodeBlocks - Unix Makefiles  = Generates CodeBlocks project files.
  CodeLite - Ninja             = Generates CodeLite project files.
  CodeLite - Unix Makefiles    = Generates CodeLite project files.
  Sublime Text 2 - Ninja       = Generates Sublime Text 2 project files.
  Sublime Text 2 - Unix Makefiles
                               = Generates Sublime Text 2 project files.
  Kate - Ninja                 = Generates Kate project files.
  Kate - Unix Makefiles        = Generates Kate project files.
  Eclipse CDT4 - Ninja         = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.

All but one of these contain one of the strings, "Unix Makefiles" or "Ninja".
In each of these cases, cmake generates the Makefiles (or ninja files respectively),
and also the appropriate project files, eg. .project and .cproject for Eclipse.

A user can set OECMAKE_GENERATOR in their local.conf to any
one of these strings, except "Watcom WMake" (not supported).

Signed-off-by: Nikhil Pal Singh <nikhilpal.singh@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobind: upgrade 9.11.5 -> 9.11.5-P4
Adrian Bunk [Mon, 8 Apr 2019 12:08:56 +0000 (15:08 +0300)]
bind: upgrade 9.11.5 -> 9.11.5-P4

Bugfix-only compared to 9.11.5, mostly CVE fixes.

COPYRIGHT checksum changed due to 2018 -> 2019.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoRevert "mdadm: fix gcc8 maybe-uninitialized/format-overflow warning"
Khem Raj [Mon, 8 Apr 2019 17:47:32 +0000 (10:47 -0700)]
Revert "mdadm: fix gcc8 maybe-uninitialized/format-overflow warning"

This patch tried to address a gcc problem when -Og is used, but it did
cause regressions on normal compiles when using clang e.g. the real
problem is to fix the compiler until then disable the warning in
DEBUG_FLAGS

This reverts commit 630281663893cdcfa9c4323b717b415d87d5510f.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto/4.18: remove versioned recipes
Bruce Ashfield [Tue, 9 Apr 2019 15:37:57 +0000 (11:37 -0400)]
linux-yocto/4.18: remove versioned recipes

The 4.18 kernel has been replaced by 4.19 and 5.0 in master.
poky-tiny has been tested against 5.0, so we can now remove
the 4.18 recipes.

The 4.18 branches will continue to be maintained, but we only
want two active kernels in the master/releases branches.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto/5.0: tweak qemuarm -tiny configuration
Bruce Ashfield [Tue, 9 Apr 2019 15:37:56 +0000 (11:37 -0400)]
linux-yocto/5.0: tweak qemuarm -tiny configuration

Tweaking the qemuarm -tiny configuration so it will boot to a
prompt. There are still some remaining issues (like hvc console
warnings), but this is much better than a silent boot, or boot
hang like we previously had.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoqemumips: Enable the poweroff driver
Bruce Ashfield [Tue, 9 Apr 2019 15:37:55 +0000 (11:37 -0400)]
qemumips: Enable the poweroff driver

Integrating the following configuration change:

Author: Kevin Hao <kexin.hao@windriver.com>
Date:   Wed Apr 3 19:30:58 2019 +0800

    mips: Enable the poweroff driver for the qemumips/qemumips64

    As Indicated by Richard Purdie, in order to shutdown the machine we have
    to explicitly enable the PIIX4 poweroff driver for the
    qemumips/qemumips64 after the kernel commit dd129c6374e9 ("MIPS: Malta:
    Use PIIX4 poweroff driver to power down") is merged.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto/4.18: update to v4.18.33
Bruce Ashfield [Tue, 9 Apr 2019 15:37:54 +0000 (11:37 -0400)]
linux-yocto/4.18: update to v4.18.33

Integrating Paul Gortmaker's -stable ports to 4.18 which comprise the
following commits:

   56f9fe35a4c5 Linux 4.18.33
   bf44ff79b855 net: hns: Fixes the missing put_device in positive leg for roce reset
   81614c514f4e mm: Use fixed constant in page_frag_alloc instead of size + 1
   035b5a7a3e3f ipvs: fix warning on unused variable
   58ab04e46d92 intel_th: gth: Fix an off-by-one in output unassigning
   8cb600d53c6c ARM: dts: exynos: Fix max voltage for buck8 regulator on Odroid XU3/XU4
   f11b815f39bf s390/setup: fix boot crash for machine without EDAT-1
   4059d23a36a6 KVM: nVMX: Ignore limit checks on VMX instructions using flat segments
   d94637dc73e5 KVM: nVMX: Apply addr size mask to effective address for VMX instructions
   ee356457f2a3 KVM: nVMX: Sign extend displacements of VMX instr's mem operands
   b4485d9eb039 KVM: x86/mmu: Do not cache MMIO accesses while memslots are in flux
   fe7d69927661 KVM: x86/mmu: Detect MMIO generation wrap in any address space
   c34cae89374b KVM: Call kvm_arch_memslots_updated() before updating memslots
   9fb8b858d552 drm/amd/display: don't call dm_pp_ function from an fpu block
   d4302b79ffbd drm/amd/powerplay: correct power reading on fiji
   5f8c51055244 drm/radeon/evergreen_cs: fix missing break in switch statement
   3fc39cdce701 media: imx: csi: Stop upstream before disabling IDMA channel
   5c008f7971b8 media: imx: csi: Disable CSI immediately after last EOF
   74a5ff7db3b2 media: uvcvideo: Avoid NULL pointer dereference at the end of streaming
   142a9bd66395 media: lgdt330x: fix lock status reporting
   465204a0c772 media: imx: prpencvf: Stop upstream before disabling IDMA channel
   42a2c1a40db0 rcu: Do RCU GP kthread self-wakeup from softirq and interrupt
   f9480ca4fb29 tpm: Unify the send callback behaviour
   5f28509f81ad tpm/tpm_crb: Avoid unaligned reads in crb_recv()
   ea37270d4c87 md: Fix failed allocation of md_register_thread
   bd77b69a20ba perf intel-pt: Fix divide by zero when TSC is not available
   c9a63c17458f perf/x86/intel/uncore: Fix client IMC events return huge result
   63a25bdd4227 perf intel-pt: Fix overlap calculation for padding
   66a57e3b95b5 perf auxtrace: Define auxtrace record alignment
   76650254e18e perf intel-pt: Fix CYC timestamp calculation after OVF
   274ef4840d79 x86/unwind/orc: Fix ORC unwind table alignment
   3928a903e185 vt: perform safe console erase in the right order
   645a7ca69855 stable-kernel-rules.rst: add link to networking patch queue
   1c14622adb15 bcache: never writeback a discard operation
   261aad0b3ea7 PM / wakeup: Rework wakeup source timer cancellation
   ee610ce938cd svcrpc: fix UDP on servers with lots of threads
   0530b66bfd53 NFSv4.1: Reinitialise sequence results before retransmitting a request
   9a1d7090b36e nfsd: fix wrong check in write_v4_end_grace()
   e7edb30fd6b7 nfsd: fix memory corruption caused by readdir
   672f2e600d21 nfsd: fix performance-limiting session calculation
   624865483faa NFS: Don't recoalesce on error in nfs_pageio_complete_mirror()
   2b5fef7c9927 NFS: Fix an I/O request leakage in nfs_do_recoalesce
   63adecfe53e9 NFS: Fix I/O request leakages
   0b0545dd7e6e cpcap-charger: generate events for userspace
   8f27f8570fa7 mfd: sm501: Fix potential NULL pointer dereference
   f964d308797d dm integrity: limit the rate of error messages
   1ed46c0c4f65 dm: fix to_sector() for 32bit
   ea77e999f649 ipmi_si: fix use-after-free of resource->name
   5a0bc68e9a0d arm64: KVM: Fix architecturally invalid reset value for FPEXC32_EL2
   9dc4a1a6447e arm64: debug: Ensure debug handlers check triggering exception level
   c33e96f8ddb2 arm64: Fix HCR.TGE status for NMI contexts
   bb7edb8a409a ARM: s3c24xx: Fix boolean expressions in osiris_dvs_notify
   e8d7edd36a92 powerpc/traps: Fix the message printed when stack overflows
   fbea0579063f powerpc/hugetlb: Don't do runtime allocation of 16G pages in LPAR configuration
   88d0042148f0 powerpc/ptrace: Simplify vr_get/set() to avoid GCC warning
   b0fc119506bf powerpc: Fix 32-bit KVM-PR lockup and host crash with MacOS guest
   6e975dad4a8e powerpc/powernv: Don't reprogram SLW image on every KVM guest entry/exit
   fcf2d15a0a32 powerpc/83xx: Also save/restore SPRG4-7 during suspend
   87481c65c805 powerpc/powernv: Make opal log only readable by root
   12319dcc9a80 powerpc/wii: properly disable use of BATs when requested.
   be851891b1c9 powerpc/32: Clear on-stack exception marker upon exception return
   24d0b4b51dd1 security/selinux: fix SECURITY_LSM_NATIVE_LABELS on reused superblock
   3ea70bdc892f selinux: add the missing walk_size + len check in selinux_sctp_bind_connect
   00d550a195f2 jbd2: fix compile warning when using JBUFFER_TRACE
   b18848cc624a jbd2: clear dirty flag when revoking a buffer from an older transaction
   108ba9f62780 serial: 8250_pci: Have ACCES cards that use the four port Pericom PI7C9X7954 chip use the pci_pericom_setup()
   a79bc3e5fb7c serial: 8250_pci: Fix number of ports for ACCES serial cards
   78e39f8bb56e serial: 8250_of: assume reg-shift of 2 for mrvl,mmp-uart
   04eb2755b4e9 serial: uartps: Fix stuck ISR if RX disabled with non-empty FIFO
   9007ccc01a91 bpf: only test gso type on gso packets
   ef5b4e1f5735 drm/i915: Relax mmap VMA check
   23ca68189393 can: flexcan: FLEXCAN_IFLAG_MB: add () around macro argument
   8529fecb481e gpio: pca953x: Fix dereference of irq data in shutdown
   31e04ac8a8ba media: i2c: ov5640: Fix post-reset delay
   1855d8c9e6c4 i2c: tegra: fix maximum transfer size
   8bc3433b216d parport_pc: fix find_superio io compare code, should use equal test.
   2c0542dbb267 intel_th: Don't reference unassigned outputs
   c64422307c34 device property: Fix the length used in PROPERTY_ENTRY_STRING()
   c88db9c0d127 kernel/sysctl.c: add missing range check in do_proc_dointvec_minmax_conv
   5374924c9332 mm/memory.c: do_fault: avoid usage of stale vm_area_struct
   db693b432779 mm/vmalloc: fix size check for remap_vmalloc_range_partial()
   1811478753e3 mm: hwpoison: fix thp split handing in soft_offline_in_use_page()
   492ea426ddce dmaengine: usb-dmac: Make DMAC system sleep callbacks explicit
   f1bb88d5cee1 usb: chipidea: tegra: Fix missed ci_hdrc_remove_device()
   9377917b523a clk: ingenic: Fix doc of ingenic_cgu_div_info
   f0412cfc06af clk: ingenic: Fix round_rate misbehaving with non-integer dividers
   b6b4011ce7d1 clk: samsung: exynos5: Fix kfree() of const memory on setting driver_override
   715fe29adfd1 clk: samsung: exynos5: Fix possible NULL pointer exception on platform_device_alloc() failure
   eb9aa4ebf835 clk: clk-twl6040: Fix imprecise external abort for pdmclk
   917fa829bbf5 clk: uniphier: Fix update register for CPU-gear
   80d526380136 ext2: Fix underflow in ext2_max_size()
   bbf30be02326 cxl: Wrap iterations over afu slices inside 'afu_list_lock'
   94f31d712f26 IB/hfi1: Close race condition on user context disable and close
   a80eceacf85c PCI: dwc: skip MSI init if MSIs have been explicitly disabled
   084005af4966 PCI/ASPM: Use LTR if already enabled by platform
   821934eb7e75 ext4: fix crash during online resizing
   01767d409537 ext4: add mask of ext4 flags to swap
   f21830e67d5d ext4: update quota information while swapping boot loader inode
   4de71f7481a7 ext4: cleanup pagecache before swap i_data
   4821bf3c61bb ext4: fix check of inode in swap_inode_boot_loader
   3cd2f1153739 cpufreq: pxa2xx: remove incorrect __init annotation
   dc4443928ee2 cpufreq: tegra124: add missing of_node_put()
   a0e15a764318 cpufreq: kryo: Release OPP tables on module removal
   d28564a8e60e x86/kprobes: Prohibit probing on optprobe template code
   56955276ba2e irqchip/brcmstb-l2: Use _irqsave locking variants in non-interrupt code
   14dda7949f82 irqchip/gic-v3-its: Avoid parsing _indirect_ twice for Device table
   3a8560230470 libertas_tf: don't set URB_ZERO_PACKET on IN USB transfer
   7e7e5728d161 Btrfs: fix corruption reading shared and compressed extents after hole punching
   be1ee0e2fd42 btrfs: ensure that a DUP or RAID1 block group has exactly two stripes
   cb292a678ee2 Btrfs: setup a nofs context for memory allocation at __btrfs_set_acl
   f1f0ee2859e6 Btrfs: setup a nofs context for memory allocation at btrfs_create_tree()
   0e6de290666f m68k: Add -ffreestanding to CFLAGS
   f78f0d35d43a splice: don't merge into linked buffers
   433cbc2d30f3 fs/devpts: always delete dcache dentry-s in dput()
   dbb3e594eecd scsi: target/iscsi: Avoid iscsit_release_commands_from_conn() deadlock
   528af139ff6b scsi: sd: Optimal I/O size should be a multiple of physical block size
   ee579fc4e875 scsi: aacraid: Fix performance issue on logical drives
   818838eea45d scsi: virtio_scsi: don't send sc payload with tmfs
   478bd6b7f170 s390/virtio: handle find on invalid queue gracefully
   47c6ea331f58 s390/setup: fix early warning messages
   69304bcf9021 clocksource/drivers/arch_timer: Workaround for Allwinner A64 timer instability
   947a053a6d47 clocksource/drivers/exynos_mct: Clear timer interrupt when shutdown
   084c1f5522f1 clocksource/drivers/exynos_mct: Move one-shot check from tick clear to ISR
   95d7c41e448f regulator: s2mpa01: Fix step values for some LDOs
   69913dbd2d55 regulator: max77620: Initialize values for DT properties
   060c4f4e5d0c regulator: s2mps11: Fix steps for buck7, buck8 and LDO35
   9a215e43276c spi: pxa2xx: Setup maximum supported DMA transfer length
   913cb6579c9a spi: ti-qspi: Fix mmap read when more than one CS in use
   bb427df35f34 netfilter: ipt_CLUSTERIP: fix warning unused variable cn
   8fb8fb9b67bb mmc:fix a bug when max_discard is 0
   85d7e5a8000a mmc: sdhci-esdhc-imx: fix HS400 timing issue
   882b6b31ea55 ACPI / device_sysfs: Avoid OF modalias creation for removed device
   b3a0dfcfdd64 tracing/perf: Use strndup_user() instead of buggy open-coded version
   054dec51d4e6 tracing: Do not free iter->trace in fail path of tracing_open_pipe()
   9031822970ed tracing: Use strncpy instead of memcpy for string keys in hist triggers
   9367b21da22c CIFS: Fix read after write for files with read caching
   db6a6106224d CIFS: Do not reset lease state to NONE on lease break
   aef1cf600f41 crypto: arm64/aes-ccm - fix bugs in non-NEON fallback routine
   134135d884be crypto: arm64/aes-ccm - fix logical bug in AAD MAC handling
   6779d6bdf611 crypto: x86/morus - fix handling chunked inputs and MAY_SLEEP
   2dc6214860a1 crypto: x86/aesni-gcm - fix crash on empty plaintext
   a6e83e8b0777 crypto: x86/aegis - fix handling chunked inputs and MAY_SLEEP
   f62b08c81429 crypto: testmgr - skip crc32c context test for ahash algorithms
   817cbacff744 crypto: skcipher - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
   bc647ef1085e crypto: pcbc - remove bogus memcpy()s with src == dest
   9fb0d7b8f9c2 crypto: morus - fix handling chunked inputs
   76bc71692818 crypto: hash - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
   67a69738546d crypto: arm64/crct10dif - revert to C code for short inputs
   e1369ad2e0fc crypto: arm64/aes-neonbs - fix returning final keystream block
   7807003aab85 crypto: arm/crct10dif - revert to C code for short inputs
   f54fbb0e595b crypto: aegis - fix handling chunked inputs
   1e1f858caf7d crypto: aead - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
   c81bf050b880 fix cgroup_do_mount() handling of failure exits
   638f4fb4ec67 libnvdimm: Fix altmap reservation size calculation
   5ebf4aa4cf6b libnvdimm/pmem: Honor force_raw for legacy pmem regions
   8f42d7ac37af libnvdimm, pfn: Fix over-trim in trim_pfn_device()
   68ab49b299fb libnvdimm/label: Clear 'updating' flag after label-set update
   063d65ab9fdd nfit/ars: Attempt short-ARS even in the no_init_ars case
   387b9f01ac16 nfit/ars: Attempt a short-ARS whenever the ARS state is idle at boot
   b4a1581c801d acpi/nfit: Fix bus command validation
   0c27d62e5752 nfit: acpi_nfit_ctl(): Check out_obj->type in the right place
   fd8e9cd85f26 stm class: Prevent division by zero
   dd1250b50c61 tmpfs: fix uninitialized return value in shmem_link
   f4cadb1ec900 selftests: fib_tests: sleep after changing carrier. again.
   7d856eb21fd5 net: set static variable an initial value in atl2_probe()
   193e19cdf7a0 bnxt_en: Wait longer for the firmware message response to complete.
   36ca3daa9b6a bnxt_en: Fix typo in firmware message timeout logic.
   aae48df6d81b nfp: bpf: fix ALU32 high bits clearance bug
   9fbe31fda762 nfp: bpf: fix code-gen bug on BPF_ALU | BPF_XOR | BPF_K
   a58be12de08d net: thunderx: add nicvf_send_msg_to_pf result check for set_rx_mode_task
   76320607b755 net: thunderx: make CFG_DONE message to run through generic send-ack sequence
   6d0ebfc3fd3c bpf, lpm: fix lookup bug in map_delete_elem
   4e9c4ca54607 mac80211_hwsim: propagate genlmsg_reply return code
   ce8e30135705 phonet: fix building with clang
   92f628f3c945 ARCv2: don't assume core 0x54 has dual issue
   1faac2e0838b ARCv2: support manual regfile save on interrupts
   53fc181c111c ARC: uacces: remove lp_start, lp_end from clobber list
   515122c2d88a ARCv2: lib: memcpy: fix doing prefetchw outside of buffer
   b1ba6184493e ixgbe: fix older devices that do not support IXGBE_MRQC_L3L4TXSWEN
   a7bc4915f286 tmpfs: fix link accounting when a tmpfile is linked in
   5beffa8382a9 mm: handle lru_add_drain_all for UP properly
   7bd326b49004 net: marvell: mvneta: fix DMA debug warning
   70e79b53dd95 arm64: Relax GIC version check during early boot
   e3ca5da971e0 ARM: dts: armada-xp: fix Armada XP boards NAND description
   2ac1b780dae0 qed: Fix iWARP syn packet mac address validation.
   9e1395d75177 qed: Fix iWARP buffer size provided for syn packet processing.
   5db253fa68bf ASoC: topology: free created components in tplg load error
   31983c568574 mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush timeout issue
   98b9e4e542eb net: mv643xx_eth: disable clk on error path in mv643xx_eth_shared_probe()
   d19e6c11ca1f qmi_wwan: apply SET_DTR quirk to Sierra WP7607
   59e3fdbb9d45 pinctrl: meson: meson8b: fix the sdxc_a data 1..3 pins
   63c87ecf5134 net: dsa: bcm_sf2: Do not assume DSA master supports WoL
   a2e5d18914c1 net: systemport: Fix reception of BPDUs
   8d33e97da9c5 scsi: libiscsi: Fix race between iscsi_xmit_task and iscsi_complete_task
   1c976b2c9f19 keys: Fix dependency loop between construction record and auth key
   590d6228f163 assoc_array: Fix shortcut creation
   5aa6e4f891a2 af_key: unconditionally clone on broadcast
   8cae27e41068 bpf: fix lockdep false positive in stackmap
   c16b543d92ee bpf: only adjust gso_size on bytestream protocols
   908e6fda5d7d ARM: 8824/1: fix a migrating irq bug when hotplug cpu
   d6fb8e0d9e7d esp: Skip TX bytes accounting when sending from a request socket
   2dd0beec5a84 clk: sunxi: A31: Fix wrong AHB gate number
   48db12b60b5b kallsyms: Handle too long symbols in kallsyms.c
   882dbe3d5c03 clk: sunxi-ng: v3s: Fix TCON reset de-assert bit
   1ab0225d6786 Input: st-keyscan - fix potential zalloc NULL dereference
   8a6ef92721b7 auxdisplay: ht16k33: fix potential user-after-free on module unload
   53f4d6948b35 i2c: bcm2835: Clear current buffer pointers and counts after a transfer
   60bc9292260f i2c: cadence: Fix the hold bit setting
   e6e2c6c26a58 net: hns: Fix object reference leaks in hns_dsaf_roce_reset()
   bf6be978fece mm: page_alloc: fix ref bias in page_frag_alloc() for 1-byte allocs
   7f72a70062d7 x86/CPU: Add Icelake model number
   4342d099969c net: dsa: bcm_sf2: potential array overflow in bcm_sf2_sw_suspend()
   6093401c933b scsi: qla2xxx: Fix panic from use after free in qla2x00_async_tm_cmd
   09f4a1b6edf1 Revert "mm: use early_pfn_to_nid in page_ext_init"
   7b9dd6a4976b mm/gup: fix gup_pmd_range() for dax
   3cd584b00e50 NFS: Don't use page_file_mapping after removing the page
   7d8cf3eb1dc7 xprtrdma: Make sure Send CQ is allocated on an existing compvec
   5c64b19db5ce floppy: check_events callback should not return a negative number
   1cae395dd7c0 ipvs: fix dependency on nf_defrag_ipv6
   d05d4feda816 blk-mq: insert rq with DONTPREP to hctx dispatch list when requeue
   0af0889613a8 netfilter: compat: initialize all fields in xt_init
   f2883b8eb0a9 mac80211: Fix Tx aggregation session tear down with ITXQs
   665cb8ebf0f3 mac80211: call drv_ibss_join() on restart
   0a1d76449997 Input: matrix_keypad - use flush_delayed_work()
   375152e09de2 Input: ps2-gpio - flush TX work when closing port
   b15599627bd0 Input: cap11xx - switch to using set_brightness_blocking()
   a1e0fb446a4b ARM: OMAP2+: fix lack of timer interrupts on CPU1 after hotplug
   7a587d77b211 ASoC: samsung: Prevent clk_get_rate() calls in atomic context
   bf74076b7dd3 KVM: arm64: Forbid kprobing of the VHE world-switch code
   d74df61de605 arm/arm64: KVM: Don't panic on failure to properly reset system registers
   58d6ec80a286 arm/arm64: KVM: Allow a VCPU to fully reset itself
   c05c5a6e1f0e KVM: arm/arm64: Reset the VCPU without preemption and vcpu state loaded
   ba274486de32 ASoC: dapm: fix out-of-bounds accesses to DAPM lookup tables
   a3d8ea1f2555 ARM: OMAP2+: Variable "reg" in function omap4_dsi_mux_pads() could be uninitialized
   237e6c308062 Input: pwm-vibra - stop regulator after disabling pwm, not before
   6a48d09a77a1 Input: pwm-vibra - prevent unbalanced regulator
   fcae9decbc8f s390/dasd: fix using offset into zero size array error
   f98a25dc02b7 KVM: arm/arm64: vgic: Make vgic_dist->lpi_list_lock a raw_spinlock
   74b6b1e49d06 gpu: ipu-v3: Fix CSI offsets for imx53
   1c0723cba9a9 drm/imx: imx-ldb: add missing of_node_puts
   321e0fbdae09 gpu: ipu-v3: Fix i.MX51 CSI control registers offset
   f0e52962b9f2 drm/imx: ignore plane updates on disabled crtcs
   38fc637ca52e crypto: rockchip - update new iv to device in multiple operations
   5d89757429b3 crypto: rockchip - fix scatterlist nents error
   2365ae3a03c9 crypto: ahash - fix another early termination in hash walk
   512b0d76c2c9 crypto: cfb - remove bogus memcpy() with src == dest
   66b1348939de crypto: cfb - add missing 'chunksize' property
   40c76d76e11f crypto: ccree - don't copy zero size ciphertext
   2ff9501c582f crypto: ccree - fix free of unallocated mlli buffer
   ba3c72efd404 crypto: caam - fixed handling of sg list
   5d9cee322faf crypto: ccree - fix missing break in switch statement
   e0ea8deb72db stm class: Fix an endless loop in channel allocation
   95b10e2f6a61 mei: bus: move hw module get/put to probe/release
   1af8d0304685 iio: adc: exynos-adc: Fix NULL pointer exception on unbind
   513052a27dab ASoC: codecs: pcm186x: Fix energysense SLEEP bit
   d5f37b5d7009 ASoC: codecs: pcm186x: fix wrong usage of DECLARE_TLV_DB_SCALE()
   da21c5d9bacf ASoC: fsl_esai: fix register setting issue in RIGHT_J mode
   b3e4f70db4f3 9p/net: fix memory leak in p9_client_create
   4b84eeface08 9p: use inode->i_lock to protect i_size_write() under 32-bit
   4441736404a3 media: videobuf2-v4l2: drop WARN_ON in vb2_warn_zero_bytesused()
   3f7de80a22c6 perf/core: Fix impossible ring-buffer sizes warning

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto-tiny/4.18: point KBRANCH to 4.18
Bruce Ashfield [Tue, 9 Apr 2019 15:37:53 +0000 (11:37 -0400)]
linux-yocto-tiny/4.18: point KBRANCH to 4.18

The other kernel versions had the -tiny KBRANCH typo of 4.15
fixed, but 4.18 was missed. So we update the kbranch to the right
version for 4.18 as well.

[YOCTO #13247]

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto/5.0: update CGL audit configuration fragment
Bruce Ashfield [Tue, 9 Apr 2019 15:37:52 +0000 (11:37 -0400)]
linux-yocto/5.0: update CGL audit configuration fragment

Integrating the follow config tweak:

    cgl: audit: Remove CONFIG_AUDIT_WATCH and CONFIG_AUDIT_WATCH

    In the following commits, these two options have been replaced by
    CONFIG_AUDITSYSCALL which is in audit.cfg.

    c8fc5d49c341 ("audit: remove WATCH and TREE config options")
    cb74ed278f80 ("audit: always enable syscall auditing when supported and audit is enabled")

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto-rt/4.19: fix duplicate TIF_NEED_RESCHED_LAZY
Bruce Ashfield [Tue, 9 Apr 2019 15:37:51 +0000 (11:37 -0400)]
linux-yocto-rt/4.19: fix duplicate TIF_NEED_RESCHED_LAZY

Integrating Kevin's patch that cleans up a build warning:

    x86: Drop the duplicate define of TIF_NEED_RESCHED_LAZY

    The two merge commits 107b161b1cbaf ("Merge branch 'v4.19/standard/base'
    into v4.19/standard/preempt-rt/base") and dc37b7080cd55 ("Merge tag
    'v4.19.8' into linux-4.19.y-rt") almost have the same content, but
    introduce two define of TIF_NEED_RESCHED_LAZY for x86 arch. Drop one of
    them to fix the build warning.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/qemurunner: Fix typo in previous commit
Richard Purdie [Tue, 9 Apr 2019 15:04:04 +0000 (16:04 +0100)]
oeqa/utils/qemurunner: Fix typo in previous commit

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoptest-runner: Add several logging fixes
Richard Purdie [Thu, 4 Apr 2019 13:27:09 +0000 (14:27 +0100)]
ptest-runner: Add several logging fixes

This change adds three patches to improve the handling of stdout/stderr and child
processes to try and improve logging reliability in ptest-runner.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssh/util-linux/python*: Ensure ptest output is unbuffered
Richard Purdie [Thu, 4 Apr 2019 21:33:18 +0000 (22:33 +0100)]
openssh/util-linux/python*: Ensure ptest output is unbuffered

We need to run sed with the -u option to ensure the output is unbuffered else
ptest-runner may timeout thinkig things were idle. Busybox doesn't have the -u
option so we need to RDEPEND on sed (which is a good thing to do if we use it
anyway).

Alex Kanavin should get credit for discovering the problem.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobusybox: Enable domain search list support
Alexey Brodkin [Fri, 5 Apr 2019 22:47:15 +0000 (01:47 +0300)]
busybox: Enable domain search list support

This option is enabled by default in Busybox and becomes
useful in networks with internal resources becasue allows
to use much shorter names.

E.g. instead of "server.internal.company.com" it's possible
to use just "server" if DHCP server is configured with:
---------------------------->8-----------------------
option domain-search "internal.company.com";
---------------------------->8-----------------------

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopatch/insane: Rework patch fuzz handling
Andreas Müller [Fri, 5 Apr 2019 23:45:56 +0000 (01:45 +0200)]
patch/insane: Rework patch fuzz handling

Currently there are three issues which can be enhanced:

1. Fuzz warnings cannot be configured as errors for hardening. It happened
   often to me that these warnings were overseen and detected after commits
   were already out.
2. The output is too verbose - particularly when more than one file is
   affected. Meanwhile all users should know why patch fuzz check is performed.
   So move links with background information to insane.bbclass.
3. Reduce copy & paste effort slightly by printing PN (nit: <recipe> was not
   a correct suggestion e.g for native extended recipe - see example below)

To achieve patch.py drops patch-fuzz info encapsulated by a header- and footer-
string into log.do_patch. With this insane.bbclass can drop warnings/errors
depending on 'patch-fuzz' in ERROR_QA or WARN_QA. Default remains unchanged:
Spit out warnings only.

A message for two fuzzed patches and 'pact-fuzz' in ERROR_QA now looks like:

| ERROR: autoconf-native-2.69-r11 do_patch: Fuzz detected:
|
| Applying patch autoreconf-exclude.patch
| patching file bin/autoreconf.in
| Hunk #1 succeeded at 73 with fuzz 1 (offset -3 lines).
| Hunk #2 succeeded at 143 (offset 6 lines).
| Hunk #3 succeeded at 167 (offset 6 lines).
| Hunk #4 succeeded at 177 (offset 6 lines).
| Hunk #5 succeeded at 281 (offset 15 lines).
| Hunk #6 succeeded at 399 (offset 15 lines).
| Hunk #7 succeeded at 571 (offset 20 lines).
| Hunk #8 succeeded at 612 (offset 20 lines).
| Hunk #9 succeeded at 636 (offset 20 lines).
| Hunk #10 succeeded at 656 (offset 20 lines).
| Hunk #11 succeeded at 683 (offset 20 lines).
|
| Applying patch autoreconf-gnuconfigize.patch
| patching file bin/autoreconf.in
| Hunk #1 succeeded at 55 with fuzz 1 (offset -3 lines).
| Hunk #3 succeeded at 663 (offset 18 lines).
|
| The context lines in the patches can be updated with devtool:
|
|     devtool modify autoconf-native
|     devtool finish --force-patch-refresh autoconf-native <layer_path>
|
| Don't forget to review changes done by devtool!
|
| ERROR: autoconf-native-2.69-r11 do_patch: QA Issue: Patch log indicates that patches do not apply cleanly. [patch-fuzz]

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oe/utils: Make prune_suffix prune a suffix
Andre Rosa [Sat, 6 Apr 2019 01:28:25 +0000 (01:28 +0000)]
lib/oe/utils: Make prune_suffix prune a suffix

... instead of replacing a substring that could happen more than once and not only when it ends with it. Do the same for the prefix.

See related https://github.com/openembedded/bitbake/pull/24 . There it stops replacing sufixes once first one is matched but not here.

Signed-off-by: Andre Rosa <andre.rosa@lge.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoautoconf: update runtime perl module dependencies
Randy MacLeod [Sat, 6 Apr 2019 00:32:10 +0000 (20:32 -0400)]
autoconf: update runtime perl module dependencies

Running:
   # autoreconf -if
on target for prelink-cross was failing due to missing perl modules:
   Can't locate File/Spec.pm in @INC ...

Add the required perl modules and duplicate them for the SDK.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosanity: clarify error message if TMPDIR moves
Ross Burton [Fri, 5 Apr 2019 20:00:05 +0000 (21:00 +0100)]
sanity: clarify error message if TMPDIR moves

If TMPDIR is moved the error message says "move it back or rebuild" but the
obvious rebuild method of running 'bitbake [recipe]] -cclean' fails with the
same error.

Make it clear what we mean by adding "delete and".

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoghostscript: Fix 3 CVEs
Ovidiu Panait [Fri, 5 Apr 2019 14:56:31 +0000 (17:56 +0300)]
ghostscript: Fix 3 CVEs

It was discovered that the ghostscript /invalidaccess checks fail under
certain conditions. An attacker could possibly exploit this to bypass
the -dSAFER protection and, for example, execute arbitrary shell commands
via a specially crafted PostScript document.

It was found that the superexec operator was available in the internal
dictionary in ghostscript before 9.27. A specially crafted PostScript
file could use this flaw in order to, for example, have access to the
file system outside of the constrains imposed by -dSAFER.

It was found that the forceput operator could be extracted from the
DefineResource method in ghostscript before 9.27. A specially crafted
PostScript file could use this flaw in order to, for example, have
access to the file system outside of the constrains imposed by -dSAFER.

References:
https://nvd.nist.gov/vuln/detail/CVE-2019-6116
https://www.openwall.com/lists/oss-security/2019/01/23/5
https://nvd.nist.gov/vuln/detail/CVE-2019-3835
https://nvd.nist.gov/vuln/detail/CVE-2019-3838

Upstream patches:
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=13b0a36
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=2db98f9
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=99f1309
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=59d8f4d
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=2768d1a
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=49c8092
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=2ff600a
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=779664d
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=e8acf6d
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=2055917
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=d683d1e
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=ed9fcd9
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=a82601e

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxf86-video-vesa: Refuse to run on UEFI machines
Ovidiu Panait [Fri, 5 Apr 2019 11:19:42 +0000 (14:19 +0300)]
xf86-video-vesa: Refuse to run on UEFI machines

Fix the following Xorg start failure on UEFI machines when using xf86-video-vesa
driver (e.g. in qemu, when anaconda tries to start X):
Xorg -br -logfile /tmp/X.log :1 vt7 -s 1440 -ac -nolisten tcp -dpi 96 -noreset
...
(EE) Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices
...

Upstream patch:
https://cgit.freedesktop.org/xorg/driver/xf86-video-vesa/commit/?id=2645e0aa9c17c2c966a0533e52ad00510311483e

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibgcc: Create linux-musleabihf and linux-gnueabihf symlinks
Khem Raj [Thu, 4 Apr 2019 05:49:32 +0000 (22:49 -0700)]
libgcc: Create linux-musleabihf and linux-gnueabihf symlinks

When we have hard-float ABI enabled, certain tools e.g. llvm/clang
expects the hf version of tuples for crt files from libgcc, therefore
create a symlink to help the cause.

This makes clang work with hard-float defaults on target

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodevtool: standard: Handle exporting generated config fragments
Nathan Rossi [Wed, 3 Apr 2019 05:37:02 +0000 (05:37 +0000)]
devtool: standard: Handle exporting generated config fragments

The cml1 and ccmake bbclasses generate configuration fragment source
files that must be exported from the WORKDIR as a source file to be
preserved across builds. This change adds detection of the current
recipes inherited classes and for cml1 and ccmake classes checks for the
specific generated configuration fragment files. These files are then
exported by devtool and included as SRC_URI files from within the target
layer.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoccmake.bbclass: Create a cml1 style class for the CMake curses UI
Nathan Rossi [Wed, 3 Apr 2019 05:37:02 +0000 (05:37 +0000)]
ccmake.bbclass: Create a cml1 style class for the CMake curses UI

The ccmake bbclass implements two tasks. The first task 'ccmake'
preserves the configured state of CMakeCache.txt (generated from the
configure task) and invokes the 'ccmake' program within a oe_terminal
execution. The user can then review, select and modify configuration
options and once satisfied with the configuration exit ccmake. Once
ccmake has exited the build can be run and the updated configuration
should be reflected in the output build.

The ccmake bbclass has a second task 'ccmake_diffconfig' to compute the
differences in configuration which was modified by ccmake. Since there
are many ways to persist the configuration changes within recipes and
layer configuration, the differences are emitted as a bitbake recipe
fragment (configuration.inc) using EXTRA_OECMAKE as well as a CMake
script file which can be used as a input to cmake via the '-C' argument.
Both files are generated in the WORKDIR of the build and the paths to
the files are written as output from the build. It is then up to the
user to take this configuration and apply it to the desired location.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocmake-native: Enable ccmake by default and depend on ncurses
Nathan Rossi [Wed, 3 Apr 2019 05:37:02 +0000 (05:37 +0000)]
cmake-native: Enable ccmake by default and depend on ncurses

Enable the building of the curses based ui for cmake. This depends on
ncurses.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>