]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
5 years agocore-image-sato: don't use 512MB in qemumips
Ross Burton [Thu, 5 Sep 2019 15:56:20 +0000 (16:56 +0100)]
core-image-sato: don't use 512MB in qemumips

qemumips doesn't appear to work well with 512MB of RAM and randomly hangs.  As
the bump to 512MB was primarily motivated by the memory needs of virtualised GL
which doesn't work in qemumips currently, drop the memory back to 256MB for
qemumips.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoRemove leftovers from the eglinfo removal
Adrian Bunk [Thu, 5 Sep 2019 17:19:24 +0000 (20:19 +0300)]
Remove leftovers from the eglinfo removal

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: Update to the latest 242 branch
Adrian Bunk [Wed, 4 Sep 2019 12:52:40 +0000 (15:52 +0300)]
systemd: Update to the latest 242 branch

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 agooe-selftest: Implement console 'keepalive' output
Nathan Rossi [Thu, 5 Sep 2019 13:44:15 +0000 (13:44 +0000)]
oe-selftest: Implement console 'keepalive' output

Similar to bitbake, implement a 'keepalive' output to the console to
ensure CI systems do not kill the process. The default timeout for
bitbake is 5000s.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-yocto/5.2: config tweaks and kallsyms fix
Bruce Ashfield [Thu, 5 Sep 2019 03:05:35 +0000 (23:05 -0400)]
linux-yocto/5.2: config tweaks and kallsyms fix

Integrating some 5.2 configuration changes (for new board supprt), and
the following fix:

 kallsyms: Don't let kallsyms_lookup_size_offset() fail on retrieving the first symbol

With this fix, we no longer see:

   [    0.032677] kprobes: failed to populate blacklist: -22

during boot on arm/mips

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoClean up remnants of glibc-initial
Nathan Rossi [Thu, 5 Sep 2019 13:44:15 +0000 (13:44 +0000)]
Clean up remnants of glibc-initial

Remove remnants of the glibc-initial recipe.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/core/tests: Fix test_data module tests
Nathan Rossi [Tue, 3 Sep 2019 16:56:41 +0000 (16:56 +0000)]
oeqa/core/tests: Fix test_data module tests

These two tests relied on the context containing the results information.
This was moved into the OETestResults class.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/core/tests: Skip test_fail_duplicated_module
Nathan Rossi [Tue, 3 Sep 2019 16:56:41 +0000 (16:56 +0000)]
oeqa/core/tests: Skip test_fail_duplicated_module

At some point the modules in tests/cases/loader/invalid/ were removed,
this test relied on having tests/cases/loader/invalid/oetag.py to
trigger a ImportError in the loader module. Skip this test.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc-common.inc: Process staging fixme with correct target/native sysroot
Nathan Rossi [Tue, 3 Sep 2019 16:56:41 +0000 (16:56 +0000)]
gcc-common.inc: Process staging fixme with correct target/native sysroot

Correct the 'staging_processfixme' call so that target sysroot and
native sysroot paths are corrected when extracting the stashed build
directory. This is required for 'make check' to work correctly due paths
used in configuration and scripts which point at the native sysroot.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: explicitly set the path to nologin
Ross Burton [Mon, 2 Sep 2019 18:54:15 +0000 (19:54 +0100)]
systemd: explicitly set the path to nologin

Set the path to nologin as with sulogin etc so we don't try to execute binaries
from the build path on the target (as the build finds a nologin in the sysroot
at build time).

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython-numpy: rdepend on multiprocessing module
Chen Qi [Tue, 3 Sep 2019 04:13:00 +0000 (12:13 +0800)]
python-numpy: rdepend on multiprocessing module

`import numpy.distutils' gives people the following error.

  ModuleNotFoundError: No module named 'multiprocessing'

Fix it by adding multiprocessing dependency.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agologrotate:upgrade 3.15.0 -> 3.15.1
Zang Ruochen [Tue, 3 Sep 2019 02:53:17 +0000 (10:53 +0800)]
logrotate:upgrade 3.15.0 -> 3.15.1

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython-testtools: rdepend on doctest module
Chen Qi [Tue, 3 Sep 2019 02:23:08 +0000 (10:23 +0800)]
python-testtools: rdepend on doctest module

`import testtools' will give people error for lacking of
doctest module. Add it to RDEPENDS to solve the issue.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc-8.3: Security fix for CVE-2019-14250
Armin Kuster [Mon, 2 Sep 2019 20:37:59 +0000 (13:37 -0700)]
gcc-8.3: Security fix for CVE-2019-14250

Affects < 9.2

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibnl: don't patch libnl-3.0.pc
Ross Burton [Tue, 3 Sep 2019 11:19:21 +0000 (12:19 +0100)]
libnl: don't patch libnl-3.0.pc

This patch originally came from oe-classic in 2010 with the comment "fix pc file
so that it actually links to the support libraries".  If an application wants to
link to the support libraries then it should be using the relevant .pc files to
do so.

oe-core builds successfully with this patch removed and other distributions
don't carry it, so drop the patch.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibnl: upgrade to 3.5.0
Ross Burton [Tue, 3 Sep 2019 11:19:15 +0000 (12:19 +0100)]
libnl: upgrade to 3.5.0

Drop the musl workaround, as upstream has solved this correctly now.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibedit: remove FETCHCMD append
Ross Burton [Tue, 3 Sep 2019 10:57:29 +0000 (11:57 +0100)]
libedit: remove FETCHCMD append

This dates from when upstream was for some reason refusing the wget user agent,
but this isn't the case anymore:

$ wget http://www.thrysoee.dk/editline/libedit-20190324-3.1.tar.gz
...
HTTP request sent, awaiting response... 200 OK
Length: 521999 (510K) [application/x-gzip]
Saving to: ‘libedit-20190324-3.1.tar.gz’
2019-09-03 11:53:20 (1.22 MB/s) - ‘libedit-20190324-3.1.tar.gz’ saved [521999/521999]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoltp: syscalls: rt_sigwaitinfo01: Fix failure for MIPS arches
He Zhe [Tue, 3 Sep 2019 09:28:45 +0000 (17:28 +0800)]
ltp: syscalls: rt_sigwaitinfo01: Fix failure for MIPS arches

Backport a patch to fix the following failure.
rt_sigtimedwait01    1  TFAIL  :  .../sigwaitinfo01.c:58: test_empty_set
(.../sigwaitinfo01.c: 148): Unexpected failure:
TEST_ERRNO=EINVAL(22): Invalid argument

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosdkext: use simpler kernel module for devtool test
Mark Asselstine [Thu, 22 Aug 2019 15:56:16 +0000 (11:56 -0400)]
sdkext: use simpler kernel module for devtool test

The current devtool test for the building of an out-of-tree kernel
module uses something which requires several "high order" kconfigs to
be set. This results in the test failing, not for expected reasons,
but rather because it depends on specific kernel configuration.

You will get error messages such as

  ERROR: "video_ioctl2"
  [.../1.0-r5/testsdkext/workspace/sources/v4l2loopback-driver/v4l2loopback.ko]
  undefined!
  ERROR: "video_unregister_device"
  [.../1.0-r5/testsdkext/workspace/sources/v4l2loopback-driver/v4l2loopback.ko]
  undefined!

Using a simpler hello-world kernel module example will only require
that CONFIG_MODULE is enabled, thus avoiding a false positive.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoeglinfo: remove the recipe
Alexander Kanavin [Thu, 29 Aug 2019 16:30:19 +0000 (18:30 +0200)]
eglinfo: remove the recipe

Last commit upstream was in Sep 2014; pull requests have been ignored since.

I believe eglinfo from mesa-demos is an adequate and maintained alternative.

Also this recipe was using an ugly waf blob placed directly into oe-core, which
was also dependent on python 2.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemuriscv: Generate a wic rootFS with a larger filesystem
Alistair Francis [Fri, 30 Aug 2019 15:41:05 +0000 (08:41 -0700)]
qemuriscv: Generate a wic rootFS with a larger filesystem

This allows us to generate a rootFS with a large filesystem for use with
QEMU.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc-9.2: Security fix for CVE-2019-14250
Armin Kuster [Sat, 31 Aug 2019 21:15:49 +0000 (14:15 -0700)]
gcc-9.2: Security fix for CVE-2019-14250

Affects: <= 9.2

Signed-off-by: Armin Kuster <Akuster@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibgpg-error: Fix build with gawk 5.x
Khem Raj [Sat, 31 Aug 2019 14:22:52 +0000 (07:22 -0700)]
libgpg-error: Fix build with gawk 5.x

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc: Fix ldbl-128 support for musl
Khem Raj [Sat, 31 Aug 2019 05:23:14 +0000 (22:23 -0700)]
gcc: Fix ldbl-128 support for musl

Let the patch trigger based on target triplet instead of passing via
configure, this lets gcc compile for 64bit otherwise it ends up with
libgcc  build errors

error: unable to emulate 'TF'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc: Move STANDARD_STARTFILE_PREFIX_1 and STANDARD_STARTFILE_PREFIX_2 back to gcc.c
Khem Raj [Sat, 31 Aug 2019 05:23:13 +0000 (22:23 -0700)]
gcc: Move STANDARD_STARTFILE_PREFIX_1 and STANDARD_STARTFILE_PREFIX_2 back to gcc.c

when compiling for ppc64, build emits additional
STANDARD_STARTFILE_PREFIX_1 and STANDARD_STARTFILE_PREFIX_2 into
gcc/defaults.h which is not conditional because it really want to
override others with this new value, but it ends up with two definitions
since it gets emitted _after_ the definition this patch moves to
default.h and ends up in duplicate defines.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agotune-riscv: Drop littleendian and introduce bigendian tune
Khem Raj [Sat, 31 Aug 2019 05:23:12 +0000 (22:23 -0700)]
tune-riscv: Drop littleendian and introduce bigendian tune

Default riscv is little-endian moreover most of other arches define
bigendian as tune and treats absense as litteendian, this make risc-v
fall in line

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopowerpc-tunes: Introduce bigendian tune
Khem Raj [Sat, 31 Aug 2019 05:23:11 +0000 (22:23 -0700)]
powerpc-tunes: Introduce bigendian tune

This helps in defining LE tunes and at the same time specifies
endianness on compiler cmdline clearly, clang e.g. defaults to
little-endian always, so unless specified with -mbig-endian won't
compile the code right

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorm_work: Remove redundant 'after' in addtask statement
Jacob Kroon [Sun, 1 Sep 2019 05:53:56 +0000 (07:53 +0200)]
rm_work: Remove redundant 'after' in addtask statement

Introduced in commit b3de5d5795767a4b8c331fa5040166e7e410eeec.

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibepoxy: enable x11 PACKAGECONFIG for native/nativesdk
Alexander Kanavin [Sun, 1 Sep 2019 15:24:25 +0000 (17:24 +0200)]
libepoxy: enable x11 PACKAGECONFIG for native/nativesdk

This is needed to enable virgl support in qemu with SDL frontend

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodefault-providers.inc: set mesa as the provider for native(sdk) virtual/libgl
Alexander Kanavin [Sun, 1 Sep 2019 15:24:24 +0000 (17:24 +0200)]
default-providers.inc: set mesa as the provider for native(sdk) virtual/libgl

native/nativesdk libepoxy and libsdl2 require this to be set, when they
have the respective opengl features enabled.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoavahi: launch avahi-daemon after connman
Kai Kang [Fri, 30 Aug 2019 05:46:09 +0000 (01:46 -0400)]
avahi: launch avahi-daemon after connman

When connman installed to image, /etc/resolv.conf is link to
/etc/resolv-conf.connman. So launch avahi-daemon after connman too
just same as after systemd-resolved.service.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibxcrypt: Fix the build with -Os
Adrian Bunk [Thu, 29 Aug 2019 10:09:41 +0000 (13:09 +0300)]
libxcrypt: Fix the build with -Os

| In file included from ../git/lib/alg-des.c:66:
| ../git/lib/alg-des.c: In function '_crypt_des_set_key':
| ../git/lib/byteorder.h:24:1: error: inlining failed in call to 'be32_to_cpu': call is unlikely and code size would grow [-Werror=inline]
|  be32_to_cpu (const unsigned char *buf)
|  ^~~~~~~~~~~
| ../git/lib/alg-des.c:81:13: note: called from here
|    rawkey1 = be32_to_cpu (&key[4]);
|              ^~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobtrfs-tools: Add PACKAGECONFIG knob for controlling python support
Jacob Kroon [Thu, 29 Aug 2019 14:22:02 +0000 (16:22 +0200)]
btrfs-tools: Add PACKAGECONFIG knob for controlling python support

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoserial-getty@.service: Allow device to fast fail if it does not exist
Jason Wessel [Thu, 29 Aug 2019 14:00:31 +0000 (07:00 -0700)]
serial-getty@.service: Allow device to fast fail if it does not exist

Some BSPs use a USB serial port which may or may not actually be
plugged all the time.  It is quite useful to have a USB serial port
have a getty running but it does not make sense to wait for it for 90
seconds before completing the system startup if it might never get
plugged in.  The typical example is that a USB serial device might
only need to be plugged in when debugging, upgrading, or initially
configuring a device.

This change is somewhat subtle.  Systemd uses the "BindsTo" directive
to ensure existence of the device in order to start the service as
well as to terminate the service if the device goes away.  The "After"
directive makes that same relationship stronger.  When used together
this has the undesired side effect that systemd will wait until its
internal time out value of 90 seconds for the device to come on line
before executing a fail operation or letting other tasks and groups
continue.  This is certainly the kind of behavior we want for a disk,
but not for serial ports in general.

The "BindsTo" directive is replaced by the combination of the "PartOf"
and the "ConditionPathExists" directives.  The "After" directive is
unchanged because that will wait for the udev rules to process.  The
"PartOf" directive will issue a stop to the getty service if the
device goes away, similar to the "BindsTo" directive.  The
"ConditionPathExists" is what allows the service to fail fast vs
waiting for the timeout.  When a USB device is not plugged in at boot
you would find a message in the system journal like:

    systemd[1]: Condition check resulted in Serial Getty on \
                 ttyUSB0 being skipped.

If you want to observe the problem with qemu, it is easy to replicate.
Simply add the following line to your local.conf for a x86-64 qemu
build.

    SERIAL_CONSOLES="115200;ttyS0 115200;ttyUSB0"

Login right after the system boots and observe:

   root@qemux86-64:~# systemctl list-jobs |cat
   JOB UNIT                                 TYPE  STATE
     1 multi-user.target                    start waiting
    69 serial-getty@ttyUSB0.service         start waiting
    64 getty.target                         start waiting
    71 dev-ttyUSB0.device                   start running
    62 systemd-update-utmp-runlevel.service start waiting

   5 jobs listed.

You can see above that the dev-ttyUSB0.device will block for 1min 30
seconds.  While that might not be a problem for this reference build.
It is certainly a problem for images that have software watchdogs that
verify the system booted up all the way to systemd completion in less
than 90 seconds.

This other nice effect of this change is that the fast fail device
extend to additional serial ports that may not exist on ARM BSPs or
that might be configured in or out by the dtb files on different
boards.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogo-dep: update to 0.5.4
Oleksandr Kravchuk [Fri, 30 Aug 2019 01:04:01 +0000 (03:04 +0200)]
go-dep: update to 0.5.4

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoell: update to 0.22
Oleksandr Kravchuk [Thu, 29 Aug 2019 22:59:49 +0000 (00:59 +0200)]
ell: update to 0.22

Changelog:
- Fix issue with DHCP and T1 timeout handling.
- Fix issue with escape characters in peer identity string.
- Add support for setting peer certificate's subject CN mask.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibevdev: update to 1.8.0
Oleksandr Kravchuk [Thu, 29 Aug 2019 22:50:32 +0000 (00:50 +0200)]
libevdev: update to 1.8.0

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibsolv: update to 0.7.6
Oleksandr Kravchuk [Thu, 29 Aug 2019 22:47:16 +0000 (00:47 +0200)]
libsolv: update to 0.7.6

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodevtool: Avoid failure for recipes with S == WORKDIR and no local files
Peter Kjellerstedt [Thu, 29 Aug 2019 20:43:02 +0000 (22:43 +0200)]
devtool: Avoid failure for recipes with S == WORKDIR and no local files

When extracting the sources for a recipe that has S == WORKDIR and no
local files in the SRC_URI (which, e.g., can happen for a recipe with
a URI that has the unpack=false attribute), the extraction fails with
the following backtrace:

  Traceback (most recent call last):
    File ".../scripts/devtool", line 344, in <module>
      ret = main()
    File ".../scripts/devtool", line 331, in main
      ret = args.func(args, config, basepath, workspace)
    File ".../poky/scripts/lib/devtool/standard.py", line 762, in
    modify
      initial_rev, _ = _extract_source(srctree, args.keep_temp,
      args.branch, False, config, basepath, workspace,
      args.fixed_setup, rd, tinfoil, no_overrides=args.no_overrides)
    File ".../poky/scripts/lib/devtool/standard.py", line 647, in
    _extract_source
      bb.process.run('git %s commit -a -m "Committing local file
      symlinks\n\n%s"' % (' '.join(useroptions),
      oe.patch.GitApplyTree.ignore_commit_prefix), cwd=srctree)
    File ".../poky/bitbake/lib/bb/process.py", line 178, in run
      raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
  bb.process.ExecutionError: Execution of 'git commit -a -m
  "Committing local file symlinks

  %% ignore"' failed with exit code 1:
  On branch devtool
  nothing to commit, working tree clean

This is because no files were found in the oe-local-files directory
and consequently no symbolic links were added using `git add`, but the
`git commit` command was still executed.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibbsd: upgrade 0.9.1 -> 0.10.0
Yi Zhao [Fri, 30 Aug 2019 05:26:14 +0000 (13:26 +0800)]
libbsd: upgrade 0.9.1 -> 0.10.0

License-Update: copyright years updated.

Drop the backport patch.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd-bootchart: support usrmerge
Changqing Li [Fri, 30 Aug 2019 07:37:50 +0000 (15:37 +0800)]
systemd-bootchart: support usrmerge

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobootchart2: support usrmerge
Changqing Li [Fri, 30 Aug 2019 07:37:47 +0000 (15:37 +0800)]
bootchart2: support usrmerge

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoavahi-ui: support usrmerge
Changqing Li [Fri, 30 Aug 2019 07:37:46 +0000 (15:37 +0800)]
avahi-ui: support usrmerge

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoimage.bbclass: Fix debug output for rootfs size
Daniel Klauer [Fri, 30 Aug 2019 07:24:21 +0000 (09:24 +0200)]
image.bbclass: Fix debug output for rootfs size

The debug output showed the wrong variable.

Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoman-db: upgrade 2.8.6.1 -> 2.8.7
Yuan Chao [Fri, 30 Aug 2019 09:03:26 +0000 (18:03 +0900)]
man-db: upgrade 2.8.6.1 -> 2.8.7

Signed-off-by: Yuan Chao <yuanc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomesa: Add support for the panfrost PACKAGECONFIG
Neil Armstrong [Fri, 30 Aug 2019 08:53:41 +0000 (10:53 +0200)]
mesa: Add support for the panfrost PACKAGECONFIG

Add support to enable the Panfrost Gallium driver in PACKAGECONFIG

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowebkitgtk: update 2.24.3 -> 2.24.4
Alexander Kanavin [Fri, 30 Aug 2019 12:49:58 +0000 (14:49 +0200)]
webkitgtk: update 2.24.3 -> 2.24.4

In particular this brings an important fix for builds with py3:
"Fix build issue which would cause media controls to disappear when Python 3.x was used during the build process."

https://webkitgtk.org/2019/08/28/webkitgtk2.24.4-released.html

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowebkitgtk: use Python 3 for builds
Alexander Kanavin [Fri, 30 Aug 2019 12:49:57 +0000 (14:49 +0200)]
webkitgtk: use Python 3 for builds

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agovirglrenderer: update 0.7.0 -> 0.8.0
Alexander Kanavin [Fri, 30 Aug 2019 12:49:55 +0000 (14:49 +0200)]
virglrenderer: update 0.7.0 -> 0.8.0

This also allows building virglrenderer without python 2.x

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agollvm: use python 3 during builds
Alexander Kanavin [Fri, 30 Aug 2019 12:49:54 +0000 (14:49 +0200)]
llvm: use python 3 during builds

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopseudo: use python 3 during builds
Alexander Kanavin [Fri, 30 Aug 2019 12:49:53 +0000 (14:49 +0200)]
pseudo: use python 3 during builds

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibpsl: use python 3 during builds
Alexander Kanavin [Fri, 30 Aug 2019 12:49:52 +0000 (14:49 +0200)]
libpsl: use python 3 during builds

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoca-certificates: use python 3 for builds
Alexander Kanavin [Fri, 30 Aug 2019 12:49:51 +0000 (14:49 +0200)]
ca-certificates: use python 3 for builds

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemu: switch to '-vga std' emulated hardware from vmware/cirrus for x86/mips
Alexander Kanavin [Fri, 30 Aug 2019 12:49:48 +0000 (14:49 +0200)]
qemu: switch to '-vga std' emulated hardware from vmware/cirrus for x86/mips

This is the qemu default since qemu 2.2, is generally supported better,
and is recommended by upstream. It also has already been in use for arm/risc
and ovmf.

Additional information:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=13466
https://www.kraxel.org/blog/2014/10/qemu-using-cirrus-considered-harmful/

'-vga virtio' emulated hardware remains in use when virgl is enabled via a runqemu override.

Also, adjust the error whitelist, as there is a number of new messages
coming from the drivers that are not actual errors.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-yocto-dev: Mark qemuriscv64 as compatible
Alistair Francis [Fri, 30 Aug 2019 20:38:45 +0000 (13:38 -0700)]
linux-yocto-dev: Mark qemuriscv64 as compatible

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibffi: fix upstream version check
Alexander Kanavin [Fri, 30 Aug 2019 20:21:11 +0000 (22:21 +0200)]
libffi: fix upstream version check

As there is no version newer than 3.3-rc0 yet, an exception
from the check is needed.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolsb-release: fix upstream version check
Alexander Kanavin [Fri, 30 Aug 2019 20:21:10 +0000 (22:21 +0200)]
lsb-release: fix upstream version check

With the new recipe matching the tarbal version, there is
no need for an exception from the check.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-yocto/5.2: update qemuriscv64 SRCREV
Bruce Ashfield [Fri, 30 Aug 2019 20:17:18 +0000 (16:17 -0400)]
linux-yocto/5.2: update qemuriscv64 SRCREV

The scripts that update my SRCREVs were missing the qemuriscv64. This
SRCREV bump moves it to match the rest of the 5.2 qemu BSPs.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemu: bump linux-yocto preferred version to 5.2
Bruce Ashfield [Fri, 30 Aug 2019 16:06:32 +0000 (12:06 -0400)]
qemu: bump linux-yocto preferred version to 5.2

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-yocto: introduce 5.2 recipes
Bruce Ashfield [Fri, 30 Aug 2019 16:06:31 +0000 (12:06 -0400)]
linux-yocto: introduce 5.2 recipes

Introducing the 5.2 linux-yocto reference kernels. 5.0 is EOL and will
be removed, leaving 4.19 (LTS) and 5.2 as the reference kernels.

This has been build/boot tested on all qemu architectures for
core-image-kernel-dev, and graphics tesed via core-image-sato. No
blocking issues have been found.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-libc-headers: update to v5.2 headers
Bruce Ashfield [Fri, 30 Aug 2019 16:06:30 +0000 (12:06 -0400)]
linux-libc-headers: update to v5.2 headers

We drop the patch 0001-arm64-sve-uapi-asm-ptrace.h-should-not-depend-on-uap.patch
since it was a backport and is already part of the 5.2 headers

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc-cross: Clean up fixed-includes
Richard Purdie [Fri, 30 Aug 2019 15:50:35 +0000 (16:50 +0100)]
gcc-cross: Clean up fixed-includes

We had interesting failures where building gcc-cross-powerpc with 5.0 kernel
headers, then building eudev after moving to 5.2 headers failed.

gcc-cross doesn't rebuild when linux-libc-headers changes due to its
listing in SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS. This shouldn't matter but
fixincludes as adding asm-generic/socket.h to its filtered list which
was then replacing the real header with an older version. This mismatch
lead to build failures.

We trust the Linux kernel headers to be ANSI safe so lets just clear out
any headers and trust the originals to be correct.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoltp: move from python 2.x to python 3.x
Alexander Kanavin [Wed, 28 Aug 2019 20:50:16 +0000 (22:50 +0200)]
ltp: move from python 2.x to python 3.x

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoyocto-check-layer: Allow any case for README file detection
Mark Hatle [Wed, 28 Aug 2019 18:22:46 +0000 (14:22 -0400)]
yocto-check-layer: Allow any case for README file detection

It's become more commone for files to be named "readme" or "Readme" on github servers
in recent time.  So adjust the scanning to allow any mix of case.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobind: fix build with python3 PACKAGECONFIG enabled
Chen Qi [Fri, 23 Aug 2019 08:56:29 +0000 (16:56 +0800)]
bind: fix build with python3 PACKAGECONFIG enabled

If the PACKAGECONFIG item, python3, is enabled, we get the following
QA issue when multilib is enabled.

  ERROR: bind-9.11.5-P4-r0 do_package: QA Issue: bind: Files/directories were installed but not shipped in any package:
  /usr/lib
  /usr/lib/python3.7
  /usr/lib/python3.7/site-packages
  /usr/lib/python3.7/site-packages/isc-2.0-py3.7.egg-info
  /usr/lib/python3.7/site-packages/isc
  /usr/lib/python3.7/site-packages/isc/policy.py
  [snip]

The thing is, when --with-python is specified with a path instead of 'yes',
the --with-python-install-dir is in fact ignored.

Fix this issue by specifying the correct arguments.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodevsrc: update arm64 scripts/prepare for kernels 5.3+
Bruce Ashfield [Wed, 28 Aug 2019 19:28:41 +0000 (15:28 -0400)]
devsrc: update arm64 scripts/prepare for kernels 5.3+

We need to include a few more small files for on target module
builds for 5.3+ kernels.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoperf: v5.3+ build fixes
Bruce Ashfield [Wed, 28 Aug 2019 19:28:40 +0000 (15:28 -0400)]
perf: v5.3+ build fixes

In the 5.3+ perf builds, there are multiple unistd.h files that need
to be kept in sync. So not only do we update one, we update both to
ensure that libc-headers and the perf build are in sync.

perf checks some key files itself to be sure they are in sync, and
bits.h can be out of sync. There's no build error that results with
bits.h at the moment, but we still make sure they are in sync to
avoid the configure/compile warning.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoperf: change dependencies on python to python3
Bruce Ashfield [Thu, 29 Aug 2019 02:14:41 +0000 (22:14 -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.

Outside of dependency changes, we also pass the following two variables
to the perf build: PYTHON=python3 PYTHON_CONFIG=python3-config. To
ensure that our python3 components are used.

For configurations that disable perf scripting, there is no change in
behaviour.

[YOCTO #13358]

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokernel-devsrc: remove python2 dependency
Bruce Ashfield [Wed, 28 Aug 2019 19:28:38 +0000 (15:28 -0400)]
kernel-devsrc: remove python2 dependency

Witht the approaching EOL of python2, the kernel packages need to
be updated to depend on python3.

The core kernel scripts are now python3 safe, making the RDEPENDS
change relatively simple.

but

There are some scripts that are captured in the devsrc files that
are not used, but reference /usr/bin/python. The python3 package
does not provide /usr/bin/python so any package managers with
automatic dependency detection will fail to assemble a rootfs due
to the missing intepreter.

We could drop the scripts from the source capture, but that
risks dropping something that we need in certain operations and
we'd miss when they are updated in tree to explicitly call python3
(since they won't be revisited often). Light testing shows that the
scripts do run with python3, so rather than removing them, we change
the interpreter once they are copied, and automatic dependency
detection won't cause us rootfs assembly issues.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobluez5: fix build against libc-headers 5.2+
Bruce Ashfield [Wed, 28 Aug 2019 19:28:37 +0000 (15:28 -0400)]
bluez5: fix build against libc-headers 5.2+

Backporting the following upstream commit to fix the build against
kernel 5.2+ headers:

[
   Subject: [PATCH] tools: Fix build after y2038 changes in glibc

   The 32-bit SIOCGSTAMP has been deprecated. Use the deprecated name
   to fix the build.
]

Upstream-Status: backport commit f36f71f60b1e68c0f12e615b9b128d089ec3dd19

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa: reproducible: Do two clean builds
Joshua Watt [Thu, 29 Aug 2019 15:31:06 +0000 (10:31 -0500)]
oeqa: reproducible: Do two clean builds

Perform two clean builds without sstate instead of one partial rebuild
with sstate and one clean build without. There are some classes of
reproducibility issues that this solves, and while we would like to
resolve them in the long term the direction to do so is not currently
clear.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa: Enable reproducible build test
Joshua Watt [Tue, 27 Aug 2019 19:33:49 +0000 (14:33 -0500)]
oeqa: Enable reproducible build test

[YOCTO #13323]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa: reproducible: Record packages in test results
Joshua Watt [Tue, 27 Aug 2019 19:33:48 +0000 (14:33 -0500)]
oeqa: reproducible: Record packages in test results

Records the results of the reproducibility analysis in the JSON test
results file. This makes it easier to do post-test analysis on the
packages.

[YOCTO #13324]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa: Set LD_LIBRARY_PATH when executing native commands
Joshua Watt [Tue, 27 Aug 2019 19:33:47 +0000 (14:33 -0500)]
oeqa: Set LD_LIBRARY_PATH when executing native commands

Some commands like to look for libraries at runtime manually (e.g.
Python's ctype.utils.find_library() function). For this to work
properly, the libraries in the native sysroot must be findable. To
accomplish this, set LD_LIBRARY_PATH to search library paths in the
native sysroot.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa: reproducible: Use subTest for packages
Joshua Watt [Tue, 27 Aug 2019 19:33:46 +0000 (14:33 -0500)]
oeqa: reproducible: Use subTest for packages

Runs each package class reproducibility test in a separate sub-test.
This allows the other sub tests to still run in the event that one
fails.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa: reproducible: Cleanup reproducible build
Joshua Watt [Tue, 27 Aug 2019 19:33:45 +0000 (14:33 -0500)]
oeqa: reproducible: Cleanup reproducible build

Cleans up the output from the reproducible build before building to
ensure consistent results. Note that the output put is purposely left
after around after the build so that non-reproducible packages can be
diffed.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoltp: cve/meltdown.c: Fix kernel symbol finding
He Zhe [Wed, 28 Aug 2019 06:25:10 +0000 (14:25 +0800)]
ltp: cve/meltdown.c: Fix kernel symbol finding

Backport a patch to fix the following error.
safe_file_ops.c:219: BROK: Expected 3 conversions got 2 at meltdown.c:272

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocommon-licenses: update BSD-2-CLAUSE license text
Christophe PRIOUZEAU [Wed, 28 Aug 2019 09:21:39 +0000 (09:21 +0000)]
common-licenses: update BSD-2-CLAUSE license text

Using the generic BSD-2-CLAUSE license as specified on
https://opensource.org/licenses/BSD-2-Clause

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agonfs-utils: 2.3.3 -> 2.4.1
Robert Yang [Wed, 28 Aug 2019 11:04:57 +0000 (19:04 +0800)]
nfs-utils: 2.3.3 -> 2.4.1

- Remove 0001-Do-not-pass-null-pointer-to-freeaddrinfo.patch, the new api
  can check the pointer before free it.

- Rmove 0001-makefile.am-update-the-path-of-libnfs.a.patch, it is already in
  the source.

- Rmove nfs-utils-musl-limits.patch, it is already fixed.

-  Rebased the following patches:
   0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch
   0001-configure.ac-Do-not-fatalize-Wmissing-prototypes.patch
   bugfix-adjust-statd-service-name.patch
   nfs-utils-musl-res_querydomain.patch

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoccache: 3.7.1 -> 3.7.3
Robert Yang [Wed, 28 Aug 2019 11:04:56 +0000 (19:04 +0800)]
ccache: 3.7.1 -> 3.7.3

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomesa: disable gallium swrast driver on x86 x32
Alexander Kanavin [Wed, 28 Aug 2019 15:24:40 +0000 (17:24 +0200)]
mesa: disable gallium swrast driver on x86 x32

It was found to crash the X server on startup under qemu.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemu: set default RAM to 256M for all machines
Alexander Kanavin [Wed, 28 Aug 2019 15:24:38 +0000 (17:24 +0200)]
qemu: set default RAM to 256M for all machines

There was a discussion about what amount of RAM is appropriate for a
default; the outcome was that for now it is still 256M. Some qemu machine
definitions have however set this to 512M so for the sake of
treating all architectures fairly, they are reset back to 256M.

Also runqemu is adjusted to use 256M if QB_MEM is not set at all.

http://lists.openembedded.org/pipermail/openembedded-core/2019-August/285900.html

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorpm: resolve a host contamination issue for mono packaging
Alexander Kanavin [Wed, 28 Aug 2019 15:24:37 +0000 (17:24 +0200)]
rpm: resolve a host contamination issue for mono packaging

This is perhaps not the most elegant patch but it be dropped
once rpm is updated to the soon-to-be-released version 4.15
where upstream has removed mono dependency resolution altogether.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoca-certificates: Fix reproducibilty and multilib issue
Richard Purdie [Thu, 29 Aug 2019 11:10:16 +0000 (12:10 +0100)]
ca-certificates: Fix reproducibilty and multilib issue

This command was dependent on the order of files on the disk and for multilib builds
could result in:

Error: Transaction check error:
  file /etc/ca-certificates.conf conflicts between attempted installs of ca-certificates-20190110-r0.core2_32 and lib64-ca-certificates-20190110-r0.x86_64

Sorting the file makes things deterministic.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoRemove LSB support
Adrian Bunk [Sun, 25 Aug 2019 17:21:15 +0000 (20:21 +0300)]
Remove LSB support

LSB as a standard isn't current and isn't well suited to embedded
anyway. Its putting artifical constraints on the system and with modern
layer technology, would now be better off as its own layer. As such
its time to split it out.

The only part with some (marginal) usage is lsb_release,
which is split from the lsb package into an own lsb-release
package.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoscripts/lib/resulttool/report.py: Add more result types
Nathan Rossi [Wed, 28 Aug 2019 05:06:29 +0000 (05:06 +0000)]
scripts/lib/resulttool/report.py: Add more result types

Add additional result types into the dictionary to handle dejagnu style
test results. These include PASS, FAIL, XPASS, XFAIL, UNSUPPORTED,
UNTESTED, UNRESOLVED and ERROR.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/utils/nfs: Add unfs_server function to setup a userspace NFS server
Nathan Rossi [Wed, 28 Aug 2019 05:06:29 +0000 (05:06 +0000)]
oeqa/utils/nfs: Add unfs_server function to setup a userspace NFS server

Add a nfs module into oeqa utils. This module provides unfs_server which
allows a test case to build unfs3-native and setup the unfs server on a
target directory of the host. This directory is then shared and can be
mounted by the host or a target device attached to the host (e.g. qemu
via tap or slirp). The nfs server is setup over UDP and automatically
assigns user privileged ports. The function provides the UDP ports for
the server as part of a returned python contextmanager which handles
cleanup of the server process on completion or exception.

Also add a 'udp' arg to get_free_port to get a free UDP port.

Note: unfs3 still requires the host to have rpcbind or portmap running.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobinutils: Fix mips patch which changes default emulation
Nathan Rossi [Wed, 28 Aug 2019 05:06:29 +0000 (05:06 +0000)]
binutils: Fix mips patch which changes default emulation

The patch incorrectly removes 'mips_elf32_ntrad_le_vec' from the
'targ_selvecs' replacing it with duplicate entries for
'mips_elf32_ntrad_be_vec'. Correct this so that the default binutils can
still handle 'mips_elf32_ntrad_le_vec' binaries.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocommands.py: fix typo
Chen Qi [Fri, 23 Aug 2019 04:52:14 +0000 (12:52 +0800)]
commands.py: fix typo

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibedit: fix failed to get history
Changqing Li [Fri, 23 Aug 2019 01:55:45 +0000 (09:55 +0800)]
libedit: fix failed to get history

Reproduce steps:
run fileman under examples, history command not work,
nothing is output.

Fix by increase history_offset when add history, if not,
it will make current history event not align with offset,
and cannot get history correctly.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobbtests.py: remove recipe-depends.dot
Chen Qi [Fri, 23 Aug 2019 09:13:23 +0000 (17:13 +0800)]
bbtests.py: remove recipe-depends.dot

This file is giving misleading information. There's a patch
for bitbake to remove the generation of this file. Remove
it from OEQA as well.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibffi: Make it build for MIPS o32
Peter Kjellerstedt [Fri, 23 Aug 2019 15:20:16 +0000 (17:20 +0200)]
libffi: Make it build for MIPS o32

This solves the following errors:

  src/mips/o32.S: Assembler messages:
  src/mips/o32.S:286: Error: opcode not supported on this processor:
    mips32r2 (mips32r2) `s.d $f12,((16*4)-10*4)($fp)'
  src/mips/o32.S:287: Error: opcode not supported on this processor:
    mips32r2 (mips32r2) `s.d $f14,((16*4)-8*4)($fp)'

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: Update to the latest 242 branch
Adrian Bunk [Fri, 23 Aug 2019 14:37:48 +0000 (17:37 +0300)]
systemd: Update to the latest 242 branch

Remove backported patches applied upstream.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-dtb.inc: Remove
Adrian Bunk [Fri, 23 Aug 2019 14:37:50 +0000 (17:37 +0300)]
linux-dtb.inc: Remove

It only printed a warning since Yocto 2.4,
documented to be removed in a future release.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: Print a buildtime warning about the status with musl
Adrian Bunk [Fri, 23 Aug 2019 14:37:49 +0000 (17:37 +0300)]
systemd: Print a buildtime warning about the status with musl

It is possible if a user really has to use it, but not recommended.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosqlite3: explicitly set target endian-ness
Andre McCurdy [Fri, 23 Aug 2019 20:51:44 +0000 (13:51 -0700)]
sqlite3: explicitly set target endian-ness

Unless SQLITE_BYTEORDER is predefined, the code falls back to build
time huristics - which are not always correct (e.g. in sqlite 3.28.0
big-endian ARM is mis-detected).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosqlite3: make CFLAGS consistent across native, nativesdk and target cases
Andre McCurdy [Fri, 23 Aug 2019 20:51:43 +0000 (13:51 -0700)]
sqlite3: make CFLAGS consistent across native, nativesdk and target cases

The previous simplification:

  https://git.openembedded.org/openembedded-core/commit/?id=604777acfc54d285f315b622bd147ed02d55d6fd

looked OK but didn't actually work as expected. The native and
nativesdk classes re-set CFLAGS after the += has been applied and
so any modifications made via += are lost. Use _append instead.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobase-files: nsswitch.conf is glibc specific
Andre McCurdy [Fri, 23 Aug 2019 20:51:39 +0000 (13:51 -0700)]
base-files: nsswitch.conf is glibc specific

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorootfs-postcommands.bbclass: add inittab tweak to read_only_rootfs_hook()
Andre McCurdy [Fri, 23 Aug 2019 20:51:38 +0000 (13:51 -0700)]
rootfs-postcommands.bbclass: add inittab tweak to read_only_rootfs_hook()

It's not clear that we actually need to call mount -o remount,XX from
the busybox-inittab inittab at all, but as we currently do, let's
respect read-only-rootfs in IMAGE_FEATURES and not remount / as rw.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopackagegroup-core-boot: drop duplicate MACHINE_ESSENTIAL_EXTRA_RDEPENDS, etc
Andre McCurdy [Fri, 23 Aug 2019 20:51:37 +0000 (13:51 -0700)]
packagegroup-core-boot: drop duplicate MACHINE_ESSENTIAL_EXTRA_RDEPENDS, etc

Default values for MACHINE_ESSENTIAL_EXTRA_RDEPENDS and
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS are set from bitbake.conf and so
don't need to be duplicated in the packagegroup-core-boot recipe.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>