]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
5 years agoRevert "meta-extsdk: Either an sstate task is a proper task or it isn't"
Richard Purdie [Sat, 21 Sep 2019 15:07:26 +0000 (16:07 +0100)]
Revert "meta-extsdk: Either an sstate task is a proper task or it isn't"

This reverts commit db5f08c16eff01f3af0b99119c09f68628e2331d.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agojson-c: clean up recipe
Ross Burton [Fri, 20 Sep 2019 11:16:02 +0000 (12:16 +0100)]
json-c: clean up recipe

Tidy the indentation of EXTRA_OECONF.

Remove the deletion of config.status which hasn't been in the tarballs since
0.12.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodevtool.py: fix buildclean test
Changqing Li [Fri, 20 Sep 2019 02:31:55 +0000 (10:31 +0800)]
devtool.py: fix buildclean test

when build with EXTERNALSRC, checksum of EXTERNALSRC is one of inputs
for generate sigdata of task do_compile. without change any source, the
sigdata will not changed, and buildclean task only do make clean, and
not clean stampfiles like clean task, so the stampfile keep there, then
do_compile after do_buildclean will not rerun, and targetfile
tempdir_mdadm/mdadm will not be generated, report below error:

AssertionError: '/tmp/devtoolqarxv8ct6u/mdadm' does not exist

Fix by add a comments in Makefile to trigger rebuild of compile task

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodevtool.py: change to do clean before remove-layer
Changqing Li [Fri, 20 Sep 2019 02:31:54 +0000 (10:31 +0800)]
devtool.py: change to do clean before remove-layer

if do clean after remove-layer, it will make stamp file not cleaned
since variable STAMP has changed, this will cause error like:

if testcase buildclean failed, when run next testcase modify, since
do_prepare_recipe_sysroot's stamp file exists, sysroot not populated,
then do_compile will fail with error:
/bin/sh: x86_64-poky-linux-gcc: command not found

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: Make it build with hwdb disabled
Peter Kjellerstedt [Fri, 20 Sep 2019 07:25:27 +0000 (09:25 +0200)]
systemd: Make it build with hwdb disabled

If hwdb is disabled, then systemd-hwdb-update.service does not exists.
Do not try to modify it in this case.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodistcc: split into client and server packages
Ross Burton [Fri, 20 Sep 2019 11:28:05 +0000 (12:28 +0100)]
distcc: split into client and server packages

Users of distcc are rarely both clients and servers, so split the package.
distcc is the client, the new distcc-server package is the server.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodistcc: use --enable-tcp-insecure instead of --make-me-a-botnet
Ross Burton [Fri, 20 Sep 2019 11:28:04 +0000 (12:28 +0100)]
distcc: use --enable-tcp-insecure instead of --make-me-a-botnet

--make-me-a-botnet is worrying, --enable-tcp-insecure is clearer and doesn't
  scare people glancing at 'ps'.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodistcc: clean up the UI install logic
Ross Burton [Fri, 20 Sep 2019 11:28:03 +0000 (12:28 +0100)]
distcc: clean up the UI install logic

Remove the local copy of the desktop file, instead apply a patch from upstream
to fix the file. This also fixes the install paths, so update the recipe.

Remove glibc-specific installation as this was due to uclibc failures.

Refresh and submit upstream the out-of-tree build fix.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agojson-c: Don't --enable-rdrand
Adrian Bunk [Fri, 20 Sep 2019 08:26:19 +0000 (11:26 +0300)]
json-c: Don't --enable-rdrand

In recent years AMD CPUs have had various problems with RDRAND
giving either non-random data or no result at all, which is
problematic if either build or target machine has a CPU with
this problem.

The fallback is /dev/urandom, and I'd trust the kernel here.

--enable-rdrand was added in an upgrade to a new upstream
version without mentioning any reason.

[YOCTO #13534]

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/selftest/reproducible: test ipkgs too
Ross Burton [Mon, 16 Sep 2019 11:25:51 +0000 (12:25 +0100)]
oeqa/selftest/reproducible: test ipkgs too

Now that opkg-build can build reproducible ipkgs, we can also add those to the
test case.

[ YOCTO #13513 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoinitramfs-framework: fix var name
Diego Rondini [Thu, 19 Sep 2019 21:34:02 +0000 (23:34 +0200)]
initramfs-framework: fix var name

Use appropriate variable name for root of partuuid.

Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopackage: Multiple shlib_providers for the same file should error
Jonathan Marler [Thu, 19 Sep 2019 21:34:34 +0000 (15:34 -0600)]
package: Multiple shlib_providers for the same file should error

In the case where multiple packages provide the same file, we show an error.
Otherwise, python will generate a different build depending on which provider
appears first in the dictionary.  On my system this order changes every time
I run bitbake causing intermittent build differences.

Add a sorted() to fix the determinism issue too.

Signed-off-by: Jonathan Marler <johnnymarler@hp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Thu, 19 Sep 2019 19:32:47 +0000 (20:32 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolayer.conf: Remove weston-conf from SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS
Khem Raj [Thu, 19 Sep 2019 18:53:42 +0000 (11:53 -0700)]
layer.conf: Remove weston-conf from SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS

This recipe is gone

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agotzdata: Correct the packaging of /etc/localtime and /etc/timezone
Peter Kjellerstedt [Thu, 19 Sep 2019 16:35:20 +0000 (18:35 +0200)]
tzdata: Correct the packaging of /etc/localtime and /etc/timezone

During restructuring of the packaging in 2af4d6eb (tzdata: Install
everything by default), these two files remained in the tzdata
package, which is supposed to be empty. Move them to tzdata-core where
they belong.

Also simplify the definition of CONFFILES_tzdata-core. As its value
only takes effect for files that actually exist, there is no need to
complicate its definition by checking if a file is created before
adding it to the list of configuration files.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopackage_rpm.bbclass: Remove a misleading bb.note()
Peter Kjellerstedt [Thu, 19 Sep 2019 16:35:19 +0000 (18:35 +0200)]
package_rpm.bbclass: Remove a misleading bb.note()

It should have been removed in 3db9d865 (classes/package_rpm.bbclass:
Enhance diagnostic messages) when it was split in two new notes.

Also change the casing of two other notes to align them with the other
notes.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomeson.bbclass: Handle microblaze* mapping to cpu family
Nathan Rossi [Thu, 19 Sep 2019 12:30:01 +0000 (12:30 +0000)]
meson.bbclass: Handle microblaze* mapping to cpu family

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/concurrenttest: Use ionice to delete build directories
Richard Purdie [Thu, 19 Sep 2019 12:21:26 +0000 (13:21 +0100)]
oeqa/concurrenttest: Use ionice to delete build directories

Autobuilder type infrastructure can benefit from deletion of certain files as
background IO due to the way Linux filesystem priority works.

We have problems where build directories as part of oe-selftest being
delete starves the running tasks of IO to the point builds take much
longer to compelte.

Having this option of running the deletion at "idle" helps a lot with
that. Use the new option added to bb.utils.prunedir().

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoexternalsrc: stop rebuilds of 2+ externalsrc recipes sharing the same git repo
Quentin Schulz [Thu, 19 Sep 2019 14:55:14 +0000 (16:55 +0200)]
externalsrc: stop rebuilds of 2+ externalsrc recipes sharing the same git repo

externalsrc do_configure task watches oe-devtool-tree-sha1 file and its
checksum. That file basically contains the result of `git add -A
${EXTERNALSRC} && git write-tree` which is the hash of temporary
"commit" of the non committed changes. This file is stored in the .git
directory of the git repo of the externalsrc recipe. do_configure then
depends on the checksum of oe-devtool-tree-sha1 file.

If 2+ recipes with different externalsrc paths but same git repo (e.g.
one recipe at /some/path and the other at /some/path/subdir) are parsed,
this oe-devtool-tree-sha1 will be overwritten by those recipes at
parsing time since .git is shared between those recipes.

If there is one non committed git change in /some/path but not in
/some/path/subdir, the oe-devtool-tree-sha1 of both recipes will be
different.

What will happen is that recipe1 will watch over the
oe-devtool-tree-sha1 with a specific checksum, fill in file-checksums
for do_configure correctly, then recipe2 will watch over the identically
named file with different content also fill in the file-checksums
varflag. When do_configure of recipe1 will be evaluated for
re-execution, oe-devtool-tree-sha1 will be of the value of what is
watched over by recipe2, thus triggering a rebuild of recipe1.

This behavior is not always reproducible which I'm guessing is due to a
small window between recipe1 putting info into oe-devtool-tree-sha1 and
calculating the checksum of that file and recipe2 putting its content
into oe-devtool-tree-sha1.

By appending the name of the recipe to oe-devtool-tree-sha1, we make
sure that a recipe won't have its oe-devtool-tree-sha1 overwritten by
another recipe sharing the same externalsrc git repo.

Signed-off-by: Quentin Schulz <quentin.schulz@streamunlimited.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agometa-extsdk: Either an sstate task is a proper task or it isn't
Richard Purdie [Wed, 18 Sep 2019 10:49:43 +0000 (11:49 +0100)]
meta-extsdk: Either an sstate task is a proper task or it isn't

Ensure the task is properly regsistered as an sstate task as this
"half way" state confuses new code in bitbake and it isn't supported.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: Handle slow to boot mips hwdb update timeouts
Richard Purdie [Tue, 17 Sep 2019 20:11:10 +0000 (21:11 +0100)]
systemd: Handle slow to boot mips hwdb update timeouts

This is a temporary workaround to avoid autobuilder failures until
https://github.com/systemd/systemd/issues/13581 is resolved.

Its being done globally even though its a mips problem for simplicity,
it doesn't hurt anything else to have a longer timeout.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopopulate_sdk_ext: Introduce mechanism to keep nativesdk* sstate in esdk
Jaewon Lee [Wed, 18 Sep 2019 00:37:33 +0000 (17:37 -0700)]
populate_sdk_ext: Introduce mechanism to keep nativesdk* sstate in esdk

When doing a devtool build-sdk from within an esdk all nativesdk
components would be rebuilt. This patch introduces SDK_INCLUDE_NATIVESDK
flag to toggle the inclusion of nativesdk packages when creating the
esdk sstate

Currently locked-sigs.inc is generated during do_sdk_depends which
doesn't pull in nativesdk packages. Generating another locked-sigs.inc
in do_populate_sdk_ext and pruning it to only nativesdk* packages by
using a modified version of the already existing function
prune_locked_sigs and merging it with the current locked-sigs.inc
Also adding SDK_INCLUDE_NATIVESDK tasklistfn to the logic surrounding
setting tasklist file to not prune esdk sstate during creation

[YOCTO #13261]

Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoweston-init: Add possibility to run weston as non-root user
Khem Raj [Mon, 16 Sep 2019 22:35:02 +0000 (15:35 -0700)]
weston-init: Add possibility to run weston as non-root user

These changes are from meta-96boards primarily
Launch the session via a udev rule based on what kind of display device
is available

delete weston-conf and move the fuctionality into weston-init other
layers are doing same

weston-init installs machine specific weston.ini therefore mark is
machine specific now

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoinitramfs-framework: support PARTLABEL option
Richard Purdie [Thu, 19 Sep 2019 12:08:05 +0000 (13:08 +0100)]
initramfs-framework: support PARTLABEL option

Since commit (kernel >= 4.20):
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f027c34d844013d9d6c902af8fa01a82d6e5073d
specifying rootfs by PARTLABEL is supported. This commit adds support to
specify root by GPT partition label.

RP: [Fixup to match v2 of the patch]

Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoclasses/archiver: Fix WORKDIR for shared source
Joshua Watt [Wed, 18 Sep 2019 21:21:32 +0000 (16:21 -0500)]
classes/archiver: Fix WORKDIR for shared source

When archiving patched source, WORKDIR should only be changed to
${ARCHIVER_WORKDIR} if the recipe doesn't use a shared work directory.
This matches the behavior of do_unpack_and_patch for these recipes.

This fixes kernel recipes that set S = "${WORKDIR}/git"

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibmpc: Remove dead UPSTREAM_CHECK_URI
Adrian Bunk [Wed, 18 Sep 2019 18:28:03 +0000 (21:28 +0300)]
libmpc: Remove dead UPSTREAM_CHECK_URI

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosquashfs-tools: Remove UPSTREAM_CHECK_COMMITS
Adrian Bunk [Wed, 18 Sep 2019 18:28:02 +0000 (21:28 +0300)]
squashfs-tools: Remove UPSTREAM_CHECK_COMMITS

Upstream is making releases again.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolttng-ust: Upgrade 2.10.4 -> 2.10.5
Adrian Bunk [Wed, 18 Sep 2019 18:28:01 +0000 (21:28 +0300)]
lttng-ust: Upgrade 2.10.4 -> 2.10.5

Remove patch for issue fixed upstream.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolttng-modules: Upgrade 2.10.10 -> 2.10.11
Adrian Bunk [Wed, 18 Sep 2019 18:28:00 +0000 (21:28 +0300)]
lttng-modules: Upgrade 2.10.10 -> 2.10.11

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglib-2.0: Upgrade 2.60.6 -> 2.60.7
Adrian Bunk [Wed, 18 Sep 2019 18:27:59 +0000 (21:27 +0300)]
glib-2.0: Upgrade 2.60.6 -> 2.60.7

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoinitramfs-framework: support PARTLABEL option
Diego Rondini [Mon, 16 Sep 2019 13:23:15 +0000 (15:23 +0200)]
initramfs-framework: support PARTLABEL option

Since commit (kernel >= 4.20):
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f027c34d844013d9d6c902af8fa01a82d6e5073d
specifying rootfs by PARTLABEL is supported. This commit adds support to
specify root by GPT partition label.

Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglibc: Make it build without ldconfig in DISTRO_FEATURES
Peter Kjellerstedt [Tue, 17 Sep 2019 02:42:18 +0000 (04:42 +0200)]
glibc: Make it build without ldconfig in DISTRO_FEATURES

The removal of the supposedly empty /etc when ldconfig is not in
DISTRO_FEATURES seems to be a remnant from a long time ago when nothing
else was installed in /etc. However, that is no longer the case as,
e.g., nscd.conf is always installed to /etc now.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocmake: 3.15.2 -> 3.15.3
Nathan Rossi [Tue, 17 Sep 2019 05:35:56 +0000 (05:35 +0000)]
cmake: 3.15.2 -> 3.15.3

Update to fix issues with Boost 1.71.0, see pull request:
  https://gitlab.kitware.com/cmake/cmake/merge_requests/3763

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoopkg-utils: respect SOURCE_DATE_EPOCH when building ipkgs
Ross Burton [Tue, 17 Sep 2019 09:18:39 +0000 (10:18 +0100)]
opkg-utils: respect SOURCE_DATE_EPOCH when building ipkgs

Backport a patch from upstream to respect SOURCE_DATE_EPOCH when building ipkgs,
to ensure reproducible archives.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoudev-extraconf: skip mounting partitions already mounted by systemd
Hector Palacios [Wed, 18 Sep 2019 08:26:55 +0000 (10:26 +0200)]
udev-extraconf: skip mounting partitions already mounted by systemd

For some devices, udev may sometimes trigger twice the 'add' rule during
boot. Calling the mount.sh script twice will eventually fail for
already mounted partitions, but in that case, the script tries to remove
the created mountpoint, when it shouldn't.
This has been observed on USB sticks connected to a USB hub and may
result in devices not being mounted if plugged-in before booting.

This patch checks for already mounted partitions earlier (before creating
the mount point) and returns with no actions.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd-systemctl-native: don't care about line endings
Ross Burton [Tue, 17 Sep 2019 20:30:30 +0000 (21:30 +0100)]
systemd-systemctl-native: don't care about line endings

It's possible for a service file to accidentally contain mixed line endings, but
the string cleanup code was assuming Unix endings.

[ YOCTO #13535 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorootfs-postcommands: check /etc/gconf exists before working on it
Ross Burton [Wed, 18 Sep 2019 12:16:40 +0000 (13:16 +0100)]
rootfs-postcommands: check /etc/gconf exists before working on it

Check that /etc/gconf exists before trying to find files under it, to avoid
writing find error messages to the rootfs log.

Also use ${sysconfdir}/gconf instead of hardcoding /etc/gconf.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibinput: upgrade 1.14.0 -> 1.14.1
Ross Burton [Wed, 18 Sep 2019 11:01:34 +0000 (12:01 +0100)]
libinput: upgrade 1.14.0 -> 1.14.1

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoreport-error.bbclass: add local.conf/auto.conf into error report
Changqing Li [Wed, 18 Sep 2019 01:31:25 +0000 (09:31 +0800)]
report-error.bbclass: add local.conf/auto.conf into error report

sometimes, it is not enough to reproduce a failed build with current
info on error reports web, add local.conf/auto.conf into error
report to make it more easier to reproduce failed build

Note: this need work together with change in repo error-report-web,
which will display local.conf and auto.conf as Error Details

[YOCTO #13252]

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc: Security fix for CVE-2019-15847
Armin Kuster [Wed, 18 Sep 2019 15:06:17 +0000 (08:06 -0700)]
gcc: Security fix for CVE-2019-15847

Affects <= 9.2.0

Dropped Changelog changes.

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopiglit: upgrade to latest revision
Ross Burton [Wed, 18 Sep 2019 13:27:44 +0000 (14:27 +0100)]
piglit: upgrade to latest revision

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogdk-pixbuf: upgrade 2.38.1 -> 2.38.2
Ross Burton [Wed, 18 Sep 2019 13:27:43 +0000 (14:27 +0100)]
gdk-pixbuf: upgrade 2.38.1 -> 2.38.2

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoacpica: upgrade 20190509 -> 20190816
Ross Burton [Wed, 18 Sep 2019 13:27:42 +0000 (14:27 +0100)]
acpica: upgrade 20190509 -> 20190816

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolive-vm-common.bbclass: provide efi population functions for live images
Dmitry Eremin-Solenikov [Wed, 18 Sep 2019 13:12:47 +0000 (16:12 +0300)]
live-vm-common.bbclass: provide efi population functions for live images

Define common functions for populating EFI directories in live image by
reusing common code from grub-efi and systemd-boot bbclasses.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd-boot.bbclass: switch to image-uefi.conf
Dmitry Eremin-Solenikov [Wed, 18 Sep 2019 13:12:46 +0000 (16:12 +0300)]
systemd-boot.bbclass: switch to image-uefi.conf

Use variables from image-uefi.conf instead of hardcoding them in the class.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd-boot: switch to image-uefi.conf
Dmitry Eremin-Solenikov [Wed, 18 Sep 2019 13:12:45 +0000 (16:12 +0300)]
systemd-boot: switch to image-uefi.conf

Use variables from image-uefi.conf instead of hardcoding them in the recipe.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogrub-efi.bbclass: switch to image-uefi.conf
Dmitry Eremin-Solenikov [Wed, 18 Sep 2019 13:12:44 +0000 (16:12 +0300)]
grub-efi.bbclass: switch to image-uefi.conf

Use variables from image-uefi.conf instead of hardcoding them in the
class.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogrub-efi: switch to image-uefi.conf
Dmitry Eremin-Solenikov [Wed, 18 Sep 2019 13:12:43 +0000 (16:12 +0300)]
grub-efi: switch to image-uefi.conf

Use variables from image-uefi.conf instead of hardcoding them in the
recipe.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogrub-bootconf: switch to image-uefi.conf
Dmitry Eremin-Solenikov [Wed, 18 Sep 2019 13:12:42 +0000 (16:12 +0300)]
grub-bootconf: switch to image-uefi.conf

Use variables from image-uefi.conf instead of hardcoding them in the
recipe.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoimage-uefi.conf: add config file holding configuration for UEFI images
Dmitry Eremin-Solenikov [Wed, 18 Sep 2019 13:12:41 +0000 (16:12 +0300)]
image-uefi.conf: add config file holding configuration for UEFI images

Create new config file defining common variables for all UEFI-related
packages (bootloaders, test applications, etc).

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoRemove SSTATE_HASHEQUIV_SERVER
Joshua Watt [Mon, 16 Sep 2019 17:49:45 +0000 (12:49 -0500)]
Remove SSTATE_HASHEQUIV_SERVER

Removes all references to the SSTATE_HASHEQUIV_SERVER variable. This
variable is redundant now that BB_HASHSERVE is present.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosstatesig: Update server URI
Joshua Watt [Mon, 16 Sep 2019 17:49:44 +0000 (12:49 -0500)]
sstatesig: Update server URI

The server no longer uses a "http://" URI, since it has been updated to
use a different protocol.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agostrace: add a timeout for running ptests
Alexander Kanavin [Tue, 17 Sep 2019 14:45:06 +0000 (16:45 +0200)]
strace: add a timeout for running ptests

5.2 kernel has introduced a significant performance regression
where some of the tests take many minutes to complete (where
previously it was seconds). While we're getting to the bottom
of the issue and working with upstream to resove it, this
change allows tests to proceed instead of getting stuck and
eventually timing out.

https://bugzilla.yoctoproject.org/show_bug.cgi?id=13506

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoopenssl: Enable os option for with-rand-seed as well
Khem Raj [Tue, 17 Sep 2019 18:49:47 +0000 (11:49 -0700)]
openssl: Enable os option for with-rand-seed as well

with openSSL 1.1.1d we start seeing errors like

Error Generating Key
139979727451584:error:2406C06E:random number generator:RAND_DRBG_instantiate:error retrieving entropy:../openssl-1.1.1d/crypto/rand/drbg_lib.c:342:

when using openssl from openssl-native on build hosts, this is due to
limiting the random seed to devrandom, to support older hosts, since the
option allows to have a comma separated list of methods to try, we can
try the default first and if that fails then fallback to devrandom, this
will ensure that it keeps working with build systems which dont support
getrandom()

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Adrian Bunk <bunk@stusta.de>
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoweston: Set depends to the virtual needed not explicitly on Mesa
Andrew F. Davis [Tue, 17 Sep 2019 13:10:53 +0000 (09:10 -0400)]
weston: Set depends to the virtual needed not explicitly on Mesa

The dependency is for EGL and GLES2 libraries. On some systems these
are not provided by Mesa, list what is actually needed so the system
can choose the correct provider.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Acked-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogtk+3: Set depends to the virtual needed not explicitly on Mesa
Andrew F. Davis [Tue, 17 Sep 2019 13:10:52 +0000 (09:10 -0400)]
gtk+3: Set depends to the virtual needed not explicitly on Mesa

The dependency is for EGL and GLES2 libraries. On some systems these
are not provided by Mesa, list what is actually needed so the system
can choose the correct provider.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocogl: Set depends to the virtual needed not explicitly on Mesa
Andrew F. Davis [Tue, 17 Sep 2019 13:10:51 +0000 (09:10 -0400)]
cogl: Set depends to the virtual needed not explicitly on Mesa

The dependency is for EGL and GLES2 libraries. On some systems these
are not provided by Mesa, list what is actually needed so the system
can choose the correct provider.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibical: upgrade to 3.0.6
Ross Burton [Tue, 17 Sep 2019 12:36:52 +0000 (13:36 +0100)]
libical: upgrade to 3.0.6

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorunqemu: Mention snapshot in the help output
Richard Purdie [Tue, 17 Sep 2019 11:38:59 +0000 (12:38 +0100)]
runqemu: Mention snapshot in the help output

This is a useful option but not documented in the help text.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3-dbus: update to 1.2.12
Oleksandr Kravchuk [Fri, 13 Sep 2019 19:37:24 +0000 (21:37 +0200)]
python3-dbus: update to 1.2.12

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibepoxy: Disable x11 when not building for x11
Andrew F. Davis [Fri, 13 Sep 2019 19:36:11 +0000 (15:36 -0400)]
libepoxy: Disable x11 when not building for x11

Although glx support is turned off, the build still tries to pull in some
x11 components, disable x11 explicitly.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibunwind: apply configure over-ride to both big and little endian ARM
Andre McCurdy [Mon, 16 Sep 2019 19:24:29 +0000 (12:24 -0700)]
libunwind: apply configure over-ride to both big and little endian ARM

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoinitscripts: enable alignment.sh init script for big endian ARM
Andre McCurdy [Mon, 16 Sep 2019 19:24:28 +0000 (12:24 -0700)]
initscripts: enable alignment.sh init script for big endian ARM

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibwebp: apply ARM specific config options to big endian ARM
Andre McCurdy [Mon, 16 Sep 2019 19:24:27 +0000 (12:24 -0700)]
libwebp: apply ARM specific config options to big endian ARM

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoffmpeg: add PACKAGECONFIG controls for alsa and zlib (enable by default)
Andre McCurdy [Mon, 16 Sep 2019 19:24:24 +0000 (12:24 -0700)]
ffmpeg: add PACKAGECONFIG controls for alsa and zlib (enable by default)

Also move the libogg dependency to the theora PACKAGECONFIG, since
according to the configure script, theora is the specific component
which requires it.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobusybox: rcS and rcK should not be writeable by everyone
Andre McCurdy [Mon, 16 Sep 2019 19:24:23 +0000 (12:24 -0700)]
busybox: rcS and rcK should not be writeable by everyone

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobase-files: drop legacy empty file /etc/default/usbd
Andre McCurdy [Mon, 16 Sep 2019 19:24:22 +0000 (12:24 -0700)]
base-files: drop legacy empty file /etc/default/usbd

Doesn't seem to be referenced by anything in oe-core any more.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogrub: remove diffutils and freetype runtime dependencies
Yi Zhao [Mon, 16 Sep 2019 09:29:17 +0000 (17:29 +0800)]
grub: remove diffutils and freetype runtime dependencies

The diffutils runtime dependency was introduced from legacy grub since
the script grub-install invokes cmp command which is from diffutils
package. But in Grub2 the grub-install has been rewritten with C
language. So this package isn't needed anymore.

The freetype runtime dependency is for grub-mkfont but we have
explicitly disabled grub-mkfont build. It is safe to remove it.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobusybox.inc: handle empty DEBUG_PREFIX_MAP
Mikko Rapeli [Mon, 16 Sep 2019 07:16:16 +0000 (10:16 +0300)]
busybox.inc: handle empty DEBUG_PREFIX_MAP

DEBUG_PREFIX_MAP can be empty if e.g. old clang
toolchain doesn't support the default poky values for gcc.

Fixes build failure:

ERROR: Logfile of failure stored in: /home/builder/src/base/build/tmp/work/aarch64-poky-linux/busybox/1.31.0-r
0/temp/log.do_configure.14451
Log data follows:
| DEBUG: Executing shell function do_configure
| sed: -e expression #1, char 0: no previous regular expression
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/builder/src/base/build/tmp/work/aarch64-poky-linux/busybox/1.31.0-r0/temp/run.do_configure.14451' failed with exit code 1:
| sed: -e expression #1, char 0: no previous regular expression
| WARNING: exit code 1 from a shell command.
|

This log entry is really useless for debugging problems so
add "set -x" to the configure script so that details can be seen
if something isn't working.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoopenssl: Upgrade 1.1.1c -> 1.1.1d
Adrian Bunk [Mon, 16 Sep 2019 07:05:15 +0000 (10:05 +0300)]
openssl: Upgrade 1.1.1c -> 1.1.1d

Backported patches removed.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoclassextend.py: don't extend file for file dependency
Changqing Li [Mon, 16 Sep 2019 05:50:23 +0000 (13:50 +0800)]
classextend.py: don't extend file for file dependency

Fix error like:
lib32-e2fsprogs-1.45.3-r0 do_package_qa: QA Issue: /usr/sbin/e2scrub_all
contained in package lib32-e2fsprogs-e2scrub requires /bin/bash,
but no providers found in RDEPENDS_lib32-e2fsprogs-e2scrub

For some lib32 packages(eg: lib32-bash, lib32-sed) which probvides files,
extend is not needed

Eg: RPROVIDES of lib32-bash expects to have /bin/bash, with original
extend, it will become lib32-/bin/bash, then will cause above error

Fix by don't extend file dependency, and skip multilib check for file dependency
in do_package_qa to avoid error like:
WARNING: lib32-bash-5.0-r0 do_package: QA Issue: lib32-bash package lib32-bash
 - suspicious values '/bin/bash /bin/sh' in RPROVIDES [multilib]

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocurl: update to 7.66.0
Oleksandr Kravchuk [Fri, 13 Sep 2019 19:15:58 +0000 (21:15 +0200)]
curl: update to 7.66.0

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: upgrade to 243
Scott Murray [Fri, 13 Sep 2019 23:26:27 +0000 (19:26 -0400)]
systemd: upgrade to 243

PATCH REBASED:
==============
0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch
0001-do-not-disable-buffer-in-writing-files.patch
0002-use-lnr-wrapper-instead-of-looking-for-relative-opti.patch
0004-add-fallback-parse_printf_format-implementation.patch
0004-rules-whitelist-hd-devices.patch
0005-rules-watch-metadata-changes-in-ide-devices.patch
0005-src-basic-missing.h-check-for-missing-strndupa.patch
0006-Include-netinet-if_ether.h.patch
0007-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not.patch
0017-Do-not-disable-buffering-when-writing-to-oom_score_a.patch

PATCH DROPPED:
==============
0001-Replace-the-legacy-ULONG_LONG_MAX-with-the-C99-ULLON.patch
0001-src-udev-udev-event.c-must-include-sys-wait.h.patch
0023-socket-util.h-include-string.h.patch
0025-fs-utilh-add-missing-sys-stat-include.patch

PATCH ADDED:
============
0002-src-login-brightness.c-include-sys-wait.h.patch
0003-src-basic-copy.c-include-signal.h.patch
0004-src-shared-cpu-set-util.h-add-__cpu_mask-definition.patch

Also applied libc-glibc over-ride to pkg_postinst and pkg_prerm function
definitions, as musl does not provide nsswitch.conf.

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agonativesdk.bbclass: Clear out LIBCEXTENSION and ABIEXTENSION
Khem Raj [Sat, 14 Sep 2019 08:04:48 +0000 (01:04 -0700)]
nativesdk.bbclass: Clear out LIBCEXTENSION and ABIEXTENSION

These variables dont make sense for nativesdk targets which essentially
are target only properties, this helps in avoiding recompile of
nativesdk-libgcc-initial when switch libcs. nativesdk targets are glibc
only for OE

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoicecc: blacklist pixman
Tim Blechmann [Sat, 14 Sep 2019 02:47:09 +0000 (10:47 +0800)]
icecc: blacklist pixman

pixman declares prng_state as `omp threadprivate`, causing linker errors:
prng_state: TLS reference mismatches non-TLS reference

Signed-off-by: Tim Blechmann <tim@klingt.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopopulate_sdk_base.bbclass: nativesdk-glibc-locale is required on musl too
Khem Raj [Sun, 15 Sep 2019 02:59:22 +0000 (19:59 -0700)]
populate_sdk_base.bbclass: nativesdk-glibc-locale is required on musl too

musl based extensible sdk fails to install

ERROR:  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:

    Your system needs to support the en_US.UTF-8 locale.

The real reason is that its missing locale-archive in buildtools-tarball
hence python3 from buildtools-tarball fails to run bitbake when
installing esdk

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglibc: Move DISTRO_FEATURE specific do_install code for target recipe only
Khem Raj [Sun, 15 Sep 2019 02:59:21 +0000 (19:59 -0700)]
glibc: Move DISTRO_FEATURE specific do_install code for target recipe only

nativesdk-glibc should be spared of recompile when the distro features
are changed e.g. ldconfig is not in
DISTRO_FEATURES, this happens when sdk with musl and another one with
glibc is built

Fixes
Variable do_install value changed:
...
-DISTRO_FEATURES{ldconfig} = Set
+DISTRO_FEATURES{ldconfig} = Unset

Signed-off-by: Khem Raj <raj.khem@gmail.com>
s

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoexpat: update to 2.2.8
Oleksandr Kravchuk [Sat, 14 Sep 2019 20:25:43 +0000 (22:25 +0200)]
expat: update to 2.2.8

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/selftest/imagefeatures: dump the JSON if it can't be parsed
Ross Burton [Fri, 13 Sep 2019 15:59:39 +0000 (16:59 +0100)]
oeqa/selftest/imagefeatures: dump the JSON if it can't be parsed

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agooeqa/selftest/wic: improve assert messages in test_fixed_size
Ross Burton [Fri, 13 Sep 2019 15:57:59 +0000 (16:57 +0100)]
oeqa/selftest/wic: improve assert messages in test_fixed_size

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agomusl: Update to latest master
Khem Raj [Fri, 13 Sep 2019 13:40:48 +0000 (06:40 -0700)]
musl: Update to latest master

* Added copy_file_range posix_spawn_file_actions_add[f]chdir API
* optreset is added to getopt
* pthread fixes
* Conditionally add legacy long definition of wchar_t

Details [1]

[1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=6ad514e4e278f0c3b18eb2db1d45638c9af1c07f..1f0e9f9cc2e3fa354f94e18b3b362de5f1ec7272

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoadwaita-icon-theme: fix rare install race
Ross Burton [Fri, 13 Sep 2019 12:04:31 +0000 (13:04 +0100)]
adwaita-icon-theme: fix rare install race

There have been rare errors during the build of adwaita-icon-theme, such as:

Exception: bb.process.ExecutionError: Execution of '.../temp/run.sysroot_stage_all.45186' failed with exit code 2:
cpio: ./icons/Adwaita/32x32/legacy/_inst.34160_: Cannot stat: No such file or directory
cpio: ./icons/Adwaita/32x32/legacy/_inst.33428_: Cannot stat: No such file or directory
cpio: ./icons/Adwaita/32x32/legacy/_inst.35421_: Cannot stat: No such file or directory
cpio: ./icons/Adwaita/32x32/legacy/_inst.34533_: Cannot stat: No such file or directory
cpio: ./icons/Adwaita/32x32/legacy/_inst.35366_: Cannot stat: No such file or directory

The problem was that a previous optimisation (oe-core cd9af17028) to massively
increase the install speed (by parallelling the hundreds of installs) was subtly
wrong.  It was essentially doing this:

  for i in list; do
    install i &
  done
  wait

In pure shell this does parallelise the install commands and then wait for them
all to finish before exiting, but in Makefiles *each line in a separate shell*.  The actual Makefile is closer to this:

  for i in list; do \
    install i & \
  done
  wait

The backslashes are required to write a multi-line for loop in a Makefile, but
note that when the loop ends the shell exits and all of the install processes
that are still running are disowned.  The wait command then executes in a new
shell, and there are no childen to wait for.

The fix is trivial: add more backslashes so that the wait is part of the same
shell.

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoperf: fix build on kernels which don't have ${S}/tools/include/linux/bits.h
Martin Jansa [Fri, 13 Sep 2019 08:28:02 +0000 (08:28 +0000)]
perf: fix build on kernels which don't have ${S}/tools/include/linux/bits.h

* tools/include/linux/bits.h was added in v4.20-rc1 with this commit:
  commit ba4aa02b417f08a0bee5e7b8ed70cac788a7c854
  Author: Arnaldo Carvalho de Melo <acme@redhat.com>
  Date:   Tue Sep 25 10:55:59 2018 -0300

    tools include: Adopt linux/bits.h

* also if you're building for such older kernel you will probably see
  do_compile failing with:
  | config/Makefile:448: Missing perl devel files. Disabling perl scripting support, please install perl-ExtUtils-Embed/libperl-dev
  | config/Makefile:495: Python 3 is not yet supported; please set
  | config/Makefile:496: PYTHON and/or PYTHON_CONFIG appropriately.

  easiest work around is to disable scripting PACKAGECONFIG, because
  since oe-core commit:

  commit 584af667e0000129bcb5c9e8108485f2f6590eaf
  Author: Bruce Ashfield <bruce.ashfield@gmail.com>
  Date:   Wed Aug 28 22:14:41 2019 -0400

    perf: change dependencies on python to python3

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

  it now uses python3, but the support for that was added in kernel
  v4.17-rc1 with:

  commit 66dfdff03d196e51322c6a85c0d8db8bb2bdd655
  Author: Jaroslav Skarvada <jskarvad@redhat.com>
  Date:   Fri Jan 19 21:56:41 2018 +0100

    perf tools: Add Python 3 support

    Added Python 3 support while keeping Python 2.7 compatibility.

  if you really need scripting support than either backport the kernel
  patch to your kernel or undo the perf recipe changes.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agometa: add missing descriptions and homepage in bsp
Maxime Roussin-Bélanger [Fri, 13 Sep 2019 05:12:39 +0000 (01:12 -0400)]
meta: add missing descriptions and homepage in bsp

Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agobusybox-inittab: minor formatting tweaks
Andre McCurdy [Thu, 12 Sep 2019 22:56:24 +0000 (15:56 -0700)]
busybox-inittab: minor formatting tweaks

Add an empty line to inittab before the line(s) which start getty.

Also cleanup indent in recipe do_install().

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agobusybox: drop inittab from SRC_URI ( now moved to busybox-inittab )
Andre McCurdy [Thu, 12 Sep 2019 22:56:23 +0000 (15:56 -0700)]
busybox: drop inittab from SRC_URI ( now moved to busybox-inittab )

The reference to inittab should have been removed from busybox
SRC_URI when the file was moved into the busybox-inittab recipe:

  http://git.openembedded.org/openembedded-core/commit/?id=afb09abd2f0f7555ba156260a87fd3867f591310

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agobusybox: drop unused mount.busybox and umount.busybox wrappers
Andre McCurdy [Thu, 12 Sep 2019 22:56:22 +0000 (15:56 -0700)]
busybox: drop unused mount.busybox and umount.busybox wrappers

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agofont-util: update to 1.3.2
Oleksandr Kravchuk [Thu, 12 Sep 2019 18:50:39 +0000 (20:50 +0200)]
font-util: update to 1.3.2

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agolttng-modules: Add missing SRCREV_FORMAT
Daniel Gomez [Thu, 12 Sep 2019 19:54:23 +0000 (21:54 +0200)]
lttng-modules: Add missing SRCREV_FORMAT

When using devupstream class the SRCREV_FORMAT variable must be set.

Signed-off-by: Daniel Gomez <daniel@qtec.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoglibc-testsuite: SkipRecipe if libc is not glibc
Nathan Rossi [Fri, 13 Sep 2019 07:49:10 +0000 (07:49 +0000)]
glibc-testsuite: SkipRecipe if libc is not glibc

To prevent issues with parsing or dependencies, limit this recipe to use
only when the libc is glibc (and libc-locale is glibc-locale).

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoiptables: add systemd helper unit to load/restore rules
Jack Mitchell [Thu, 5 Sep 2019 09:35:37 +0000 (09:35 +0000)]
iptables: add systemd helper unit to load/restore rules

There is currently no way to automatically load iptables rules in OE.
Add a systemd unit file to automatically load rules on network
connection. This is cribbed from the way ArchLinux handles iptables with
some minor modifications for OE.
New rules can be generated directly on the target using:
# iptables-save -f /etc/iptables/iptables.rules
Good documentation for writing rules offline is lacking, but the basics
are explained here:
https://unix.stackexchange.com/q/400163/49405

Signed-off-by: Jack Mitchell <jack@embed.me.uk>
Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agotune-cortexa57-cortexa53: add tunes for ARM Cortex-A53-Cortex-A57
Limeng [Wed, 11 Sep 2019 09:59:47 +0000 (17:59 +0800)]
tune-cortexa57-cortexa53: add tunes for ARM Cortex-A53-Cortex-A57

commit 3613b2780a6b5d5d70ea6802be5060a8214cbdb5 from
git://github.com/renesas-rcar/meta-renesas

The renesas rcar SoC H3/M3 is big.LITTLE architecture(cortex-a57.cortex-a53).
In order to optimize the performance of the code running on SoC H3/M3,
add a tune file for ARM Cortex-A53-Cortex-A57.
Create this tune file by refering GCC doc, 3.18.5 ARM Options.

Signed-off-by: Meng Li <Meng.Li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoconf/multilib.conf: Add ovmf to NON_MULTILIB_RECIPES
Robert Yang [Wed, 11 Sep 2019 10:31:43 +0000 (18:31 +0800)]
conf/multilib.conf: Add ovmf to NON_MULTILIB_RECIPES

Fixed:
MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"

$ bitbake ovmf lib32-ovmf
[snip]
ERROR: ovmf-edk2-stable201905-r0 do_deploy_setscene: The recipe ovmf is trying to install files into a shared area when those files already exist.
 Those files and their manifest location are:
  /buildarea1/lyang1/rebase-work/test_cc/tmp-glibc/deploy/images/qemux86-64/OvmfPkKek1.key
    (matched in manifest-qemux86_64-lib32-ovmf.deploy)
[snip]

Add it NON_MULTILIB_RECIPES to fix the problem since it is a firmware, build
multilib for it doens't make much sense.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agorunqemu: decouple gtk and gl options
Alexander Kanavin [Thu, 12 Sep 2019 15:36:42 +0000 (17:36 +0200)]
runqemu: decouple gtk and gl options

This will allow not having to multiply these options for the sdl
frontend, instead combining them as needed.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agocogl: Do not depend PN-dev on empty PN
Khem Raj [Wed, 11 Sep 2019 01:42:20 +0000 (18:42 -0700)]
cogl: Do not depend PN-dev on empty PN

Fixes image build error e.g.

 - nothing provides cogl-1.0 = 1.22.4-r0.2 needed by cogl-1.0-dev-1.22.4-r0.2.core2-64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agopython3-pygobject: update to 3.34.0
Oleksandr Kravchuk [Tue, 10 Sep 2019 23:09:08 +0000 (01:09 +0200)]
python3-pygobject: update to 3.34.0

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agovalgrind: disable 256 ptests for aarch64
Randy MacLeod [Tue, 10 Sep 2019 21:41:36 +0000 (17:41 -0400)]
valgrind: disable 256 ptests for aarch64

On qemuarm64 systems, about half of the valgrind tests fail and
often result in defunct processes, eg:
   root       819   818 25 00:12 pts/0    00:01:52 /usr/bin/valgrind --command-line-only=yes --memcheck:leak-check=no --tool=memcheck -q --track-origins=
   root       861   420  0 00:13 pts/0    00:00:00 [sh] <defunct>
Eventually these processes use so much memory that the
out of memory killer runs.

Hide the tests that fail as a horrid work-around until the
root cause has been resolved since this at least allows the
ptest run to complete. This work-around is done in the run-ptest
script using a sorted list of tests so that they can be easily
restored one by one without a rebuild during testing.

With core-image-minimal on qemuarm64:
Recipe         | Passed      | Failed   | Skipped   | Time(s)
valgrind       | 333         | 49       | 17        | 7637

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agovalgrind: ptest improvements to run-ptest and more
Randy MacLeod [Tue, 10 Sep 2019 21:41:35 +0000 (17:41 -0400)]
valgrind: ptest improvements to run-ptest and more

Make some changes to the run-ptest script:
  - after main tests run integrity check like the pkg Makefile.
  - aesthetic and ordering changes

Add the .in_place directory and its contents which allows valgrind
to be run in-place thereby enabling the gdbserver_tests to
complete rather than hang. Unfortunately directory paths embedded
in binaries still cause many of these test to fail.

Add the exp-sgcheck tests.

With core-image-minimal on qemux86-64/kvm:
Recipe         | Passed      | Failed   | Skipped   | Time(s)
before         | 648         | 12       | 60        | 1541
after          | 662         | 20       | 38        | 1429
ppc-no-gdbserv | 415         | 196      | 34        | 10689

Since fewer tests timeout, the overall time has decreased.
With core-image-sato on qemux86-64/kvm the results are now
the same as core-image-minimal.

qemuppc/arm64 runs result in the oom-killer eventually running since
some processes do not terminate properly and accumulate as defunct
processes in memory. Without the gdbserver_tests, the tests
complete without defunct process or the oom-killer running for
ppc but not for arm64.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agovalgrind: make a few more ptests pass
Randy MacLeod [Tue, 10 Sep 2019 21:41:34 +0000 (17:41 -0400)]
valgrind: make a few more ptests pass

Adjust two memcheck vgtest files to deal with relative paths
that are in test executables when cross-compiling.
Add libgomp to enable OpenMP tests.
Add the bz2 executable for memcheck/tests/vcpu_bz2.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agovalgrind: enable ~500 more ptests
Randy MacLeod [Tue, 10 Sep 2019 21:41:33 +0000 (17:41 -0400)]
valgrind: enable ~500 more ptests

Add valgrind's top level config.h to the ptest package since
it is used by several scripts to determine which tests to run.

Drop the removal of:
   none/tests/shell,
the content was already moved to:
   none/tests/scripts/shell
so the filter useless and the files no longer cause a problem.

Add a few more test directories that had been omitted.
Add perf/bigcode for test: none/tests/bigcode

Leave .c, .h, .S files in the ptest image since several of them are
needed to run the tests. The overhead is ~13 MB which is high but
keeping all test code is easier than figuring out which source files
are needed and the entire valgrind-ptest package is ~115 MB so in
this context it's an acceptable trade-off.

Add bash dependency for ptest for none/tests/scripts/shell

With core-image-minimal on qemux86-64/kvm:
Recipe         | Passed      | Failed   | Skipped   | Time(s)
before         | 149         | 1        | 9         | 663
after          | 648         | 12       | 60        | 1541

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>