]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agodbus-glib: enable gtk-doc
Alexander Kanavin [Thu, 25 Aug 2016 14:52:33 +0000 (17:52 +0300)]
dbus-glib: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agowebkitgtk: re-enable introspection on powerpc
Alexander Kanavin [Fri, 19 Aug 2016 13:11:07 +0000 (16:11 +0300)]
webkitgtk: re-enable introspection on powerpc

It seems to work under qemu-ppc now.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agogcr, libsecret, webkitgtk: disable gtk-doc on mips64
Alexander Kanavin [Fri, 19 Aug 2016 13:09:28 +0000 (16:09 +0300)]
gcr, libsecret, webkitgtk: disable gtk-doc on mips64

It fails with the same error as gobject-introspection

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agogcr: disable gtk-doc on x86_64
Alexander Kanavin [Thu, 18 Aug 2016 09:20:06 +0000 (12:20 +0300)]
gcr: disable gtk-doc on x86_64

For same reason that introspection is disabled: the transient binary goes into infinite loop.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agogtk+3: disable gtk-doc when x11 is not available
Alexander Kanavin [Fri, 2 Sep 2016 11:55:27 +0000 (14:55 +0300)]
gtk+3: disable gtk-doc when x11 is not available

gtk-doc requires gdk/x11/gdkx.h which is not available if gdk x11 backend is disabled
(due to jku's patch).

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agowebkitgtk: enable gtk-doc support
Alexander Kanavin [Thu, 11 Aug 2016 14:23:10 +0000 (17:23 +0300)]
webkitgtk: enable gtk-doc support

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agogstreamer1.0: enable gtk-doc support
Alexander Kanavin [Thu, 11 Aug 2016 14:21:55 +0000 (17:21 +0300)]
gstreamer1.0: enable gtk-doc support

check support is no longer disabled by default because it is a requirement
of gtk-doc support in gstreamer.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agolibglade: remove the recipe
Alexander Kanavin [Tue, 9 Aug 2016 12:33:00 +0000 (15:33 +0300)]
libglade: remove the recipe

Libglade has been obsolete for several years and is used by nothing in oe-core;
it will be moved to meta-oe so that old recipes still present there continue to build.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agosystemd: drop unused gtkdoc-related variable
Alexander Kanavin [Fri, 15 Jul 2016 14:25:05 +0000 (17:25 +0300)]
systemd: drop unused gtkdoc-related variable

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agokmod: do not let gtkdocize fail
Alexander Kanavin [Fri, 15 Jul 2016 14:22:34 +0000 (17:22 +0300)]
kmod: do not let gtkdocize fail

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agogtk-doc.bbclass: enable building gtk-doc based documentation
Alexander Kanavin [Fri, 15 Jul 2016 13:09:38 +0000 (16:09 +0300)]
gtk-doc.bbclass: enable building gtk-doc based documentation

This is done similarly to gobject-introspection, but with much
less delicate hacking around the upstream way of working.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agogtk-doc: add a recipe, remove gtk-doc-stub
Alexander Kanavin [Wed, 13 Jul 2016 14:43:37 +0000 (17:43 +0300)]
gtk-doc: add a recipe, remove gtk-doc-stub

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosource-highlight: add a recipe
Alexander Kanavin [Wed, 13 Jul 2016 14:44:27 +0000 (17:44 +0300)]
source-highlight: add a recipe

gtk-doc relies on this to highlight source code snippets

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agooeqa: Use snapshot instead of copying the rootfs image
Richard Purdie [Tue, 6 Sep 2016 13:44:41 +0000 (14:44 +0100)]
oeqa: Use snapshot instead of copying the rootfs image

Rather than copying images, use the snapshot option to qemu. This fixes a regression
caused by the recent runqemu changes where the wrong images were being testes since
the image is copied without the qemuboot.conf file. This means the latest image is
found by runqemu rather than the specified one, leading to various confused testing
results.

It could be fixed by copying more files but use snapshot mode instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/runqemu: Add snapshot support
Richard Purdie [Tue, 6 Sep 2016 13:42:40 +0000 (14:42 +0100)]
scripts/runqemu: Add snapshot support

Allow access to the snapshot option of qemu to simplify some of our runtime
testing to avoid copying images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: Enable virtio RNG for all platforms
Richard Purdie [Thu, 1 Sep 2016 21:10:21 +0000 (22:10 +0100)]
runqemu: Enable virtio RNG for all platforms

We have problems where systems simply stop booting and hang. This is due
to a lack of entropy which means ssh keys and networking can't be brought
up. Adding in the virtio-rng passthrough support allows host entropy to
pass into the guess and avoids these hangs.

This is particularly problematic after the gnutls upgrade which starts
using /dev/random instead of /dev/urandom but was an issue we'd occasionally
seem before that.

It particualrly affected x86 and ppc machines for some reason.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: Update to modern prefrerred net syntax
Richard Purdie [Tue, 6 Sep 2016 22:17:07 +0000 (23:17 +0100)]
runqemu: Update to modern prefrerred net syntax

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: Allow unique network interface MAC addresses
Richard Purdie [Tue, 6 Sep 2016 13:46:10 +0000 (14:46 +0100)]
runqemu: Allow unique network interface MAC addresses

Current qemu instances all share the same MAC address. This shouldn't be an
issue as they are all on separate network interfaces, however on the slight
chance this is causing problems, its easy enough to ensure we use unique
MAC addresses based on the IP numbers we assign.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemurunner.py/qemutinyrunner.py: remove runqemu-internal
Robert Yang [Thu, 25 Aug 2016 14:41:07 +0000 (07:41 -0700)]
qemurunner.py/qemutinyrunner.py: remove runqemu-internal

There is no runqemu-internal any more.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonativesdk-qemu-helper: fix for new runqemu
Robert Yang [Thu, 25 Aug 2016 14:41:06 +0000 (07:41 -0700)]
nativesdk-qemu-helper: fix for new runqemu

There is no runqemu-internal anymore, and it is a python script now
which requires several python modules.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: fix run from testimage with non-standard DEPLOY_DIR_IMAGE
Joshua Lock [Thu, 8 Sep 2016 20:49:13 +0000 (21:49 +0100)]
runqemu: fix run from testimage with non-standard DEPLOY_DIR_IMAGE

testimage.bbclass uses runqemu to execute runtime tests on a qemu
target, this means that bitbake is already running and `bitbake -e`
can't be called to obtain bitbake variables.

runqemu tries to work around being unable to read values for
bitbake variables by inferring the MACHINE from the
DEPLOY_DIR_IMAGE setting, however if a user sets that variable in
a manner which doesn't follow the systems expectations (i.e. if
running `bitbake -c testimage` against a directory of pre-generated
images in a user-specified path) the inferring of the MACHINE name
from the DEPLOY_DIR_IMAGE location will fail.

It's possible that check_arg_machine() shouldn't cause runqemu to
fail and that runqemu should proceed with the user-supplied value
even if it can't be verified. This patch simply ensures that a
workflow where the user sets DEPLOY_DIR_IMAGE continues to work
without changing too much of the runqemu code.

[YOCTO #10238]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: fixes for when invoked during a bitbake run
Joshua Lock [Wed, 7 Sep 2016 22:04:25 +0000 (23:04 +0100)]
runqemu: fixes for when invoked during a bitbake run

When runqemu is invoked from a running bitbake instance it will be
unable to call `bitbake -e` due to the lock held by the calling
bitbake instance.

Our test code sets an OE_TMPDIR environment variable from which we
can infer/guess paths. Add code to do so when self.bitbake_e can't
be set, much as the sh version of runqemu did.

[YOCTO #10240]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: better handle running on a host with different paths
Joshua Lock [Mon, 5 Sep 2016 20:32:57 +0000 (21:32 +0100)]
runqemu: better handle running on a host with different paths

If the STAGING_*_NATIVE directories from the config file don't exist
and we're in a sourced OE build directory try to extract the paths
from `bitbake -e`

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: assume artefacts are relative to *.qemuboot.conf
Joshua Lock [Mon, 5 Sep 2016 20:32:56 +0000 (21:32 +0100)]
runqemu: assume artefacts are relative to *.qemuboot.conf

When runqemu is started with a *.qemuboot.conf arg assume that image
artefacts are relative to that file, rather than in whatever
directory the DEPLOY_DIR_IMAGE variable in the conf file points to.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: refactor it and remove machine knowledge
Robert Yang [Thu, 25 Aug 2016 14:41:05 +0000 (07:41 -0700)]
runqemu: refactor it and remove machine knowledge

Previously, runqemu had hard coded machine knowledge, which limited its
usage, for example, qemu can boot genericx86, but runqemu can't, we need
edit runqemu/runqemu-internal a lot if we want to boot genericx86.

Now bsp conf files can set vars to make it can be boot by runqemu, and
qemuboot.bbclass will save these info to DEPLOY_DIR_IMAGE/qemuboot.conf.
Please see qemuboot.bbclass' comments on how to set the vars.

* Re-write it in python3, which can reduce lines from 1239 to about 750
  lines
* All the machine knowledges are gone
* All of the TUN_ARCH knowledge are gone
* All the previous options are preserved, and there is a new way to run
  runqemu: (it doesn't need run "bitake -e" in such a case)
  $ runqemu tmp/deploy/images/qemux86
  or:
  $ runqemu tmp/deploy/images/qemuarm/<image>.ext4
  or:
  $ runqemu tmp/deploy/images/qemuarm/qemuboot.conf
* Fixed audio support, not limited on x86 or x86_64
* Fix SLIRP mode, add help message, avoid mixing with tap
* Fix NFS boot, it will extract <image>.tar.bz2 or tar.gz to
  DEPLOY_DIR_IMAGE/<image>-nfsroot when no NFS_DIR, and remove it after
  stop.
* More bsps can be boot, such as genericx86 and genericx86-64.
* The patch for qemuzynq, qemuzynqmp, qemumicroblaze has been sent to
  meta-xilinx' mailing list.
* I can't find any qemush4 bsp or how to build it, so it is not
  considered atm.

[YOCTO #1018]
[YOCTO #4827]
[YOCTO #7459]
[YOCTO #7887]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemu.inc: inherit qemuboot.bbclass
Robert Yang [Thu, 25 Aug 2016 14:41:04 +0000 (07:41 -0700)]
qemu.inc: inherit qemuboot.bbclass

All qemu boards should be able to boot by runqemu.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuppc: Use virtio networking instead of pcnet
Richard Purdie [Mon, 5 Sep 2016 16:38:58 +0000 (17:38 +0100)]
qemuppc: Use virtio networking instead of pcnet

qemuppc can use virtio networking and we may as well do so for better
prformance as we do under the other emulated hardware.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuppc.conf: set vars for runqemu
Robert Yang [Thu, 25 Aug 2016 14:41:03 +0000 (07:41 -0700)]
qemuppc.conf: set vars for runqemu

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemumips/qemumips64.conf: set vars for runqemu
Robert Yang [Thu, 25 Aug 2016 14:41:02 +0000 (07:41 -0700)]
qemumips/qemumips64.conf: set vars for runqemu

Add qemuboot-mips.inc to reduce duplicated code, the various mips bsps
which can be boot by runqemu can require qemuboot-mips.inc

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemux86.conf/qemux86-64.conf: set vars for runqemu
Robert Yang [Thu, 25 Aug 2016 14:41:01 +0000 (07:41 -0700)]
qemux86.conf/qemux86-64.conf: set vars for runqemu

Add qemuboot-x86.inc to reduce duplicated code, the x86/x86_64 bsps
which can be boot by runqemu can require qemuboot-x86.inc.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuarm64.conf: set vars for runqemu
Robert Yang [Thu, 25 Aug 2016 14:41:00 +0000 (07:41 -0700)]
qemuarm64.conf: set vars for runqemu

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuarm.conf: set PREFERRED_VERSION_linux-yocto
Robert Yang [Tue, 6 Sep 2016 06:15:05 +0000 (23:15 -0700)]
qemuarm.conf: set PREFERRED_VERSION_linux-yocto

The base_version_less_or_equal() will raise errors if
PREFERRED_VERSION_linux-yocto is None. For example, when we build
DISTRO = "nodistro", PREFERRED_VERSION_linux-yocto is not be defined
since it is defined in poky.conf, and then bitbake will
choose the higher version which is 4.8 currently, so set
PREFERRED_VERSION_linux-yocto to 4.8, otherwise, runqemu can't boot it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuarm: Add DTB file new kernel
Richard Purdie [Tue, 30 Aug 2016 22:56:38 +0000 (23:56 +0100)]
qemuarm: Add DTB file new kernel

For kernels after 4.7, we need to ensure the DTB file for the kernel is
used by runqemu. Doing this conditionally based upon the kernel verison
being built seems to be the only way forward for this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuarm.conf: set vars for runqemu
Robert Yang [Thu, 25 Aug 2016 14:40:59 +0000 (07:40 -0700)]
qemuarm.conf: set vars for runqemu

These info are from old runqemu.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuboot.bbclass: add it for runqemu
Robert Yang [Thu, 25 Aug 2016 14:40:58 +0000 (07:40 -0700)]
qemuboot.bbclass: add it for runqemu

It saves vars in ${DEPLOY_DIR_IMAGE}/<image>.qemuboot.conf, and runqemu
will read it.

The bsp which can be boot by runqemu will inherit it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemu: fix: cp command cannot find tests/Makeflie
Jianxun Zhang [Thu, 8 Sep 2016 19:20:14 +0000 (12:20 -0700)]
qemu: fix: cp command cannot find tests/Makeflie

bitbake qemu

This error shows up:

ERROR: qemu-2.7.0-r1 do_install_ptest_base: Function failed:
do_install_ptest_base
...
cp: cannot stat '...tmp/work/core2-64-poky-linux/qemu/2.7.0-r1
/qemu-2.7.0/tests/Makefile: No such file or directory
...

Commit 46e7b70699d8bf4db08c8bb5111974318dd5416d in qemu project
renamed tests/Makefile to tests/Makefile.include, we apply the
same change in recipe accordingly to fix this issue.

Fixes [YOCTO #10245]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemu: 2.6.0 -> 2.7.0
Robert Yang [Thu, 8 Sep 2016 10:26:48 +0000 (03:26 -0700)]
qemu: 2.6.0 -> 2.7.0

This upgrade can fix a qemuppc + openssh bug, the ssh connection maybe
refused or closed randomly, and it's not easy to reproduce. RP pointed
that this upgrade can fix the problem, and it does work in my local
testing.

* Update add-ptest-in-makefile.patch
* Drop backported patch 0001-configure-support-vte-2.91.patch

Here is the Changlog:
http://wiki.qemu.org/ChangeLog/2.7

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoparselogs: Whitelist qemux86 error message with qemu 2.7.0
Robert Yang [Thu, 8 Sep 2016 16:11:29 +0000 (09:11 -0700)]
parselogs: Whitelist qemux86 error message with qemu 2.7.0

qemu 2.7.0 introduces kernel errors:

[    2.310768] pci 0000:00:00.0: [11ab:4620] type 00 class 0x060000
[    2.311338] pci 0000:00:00.0: [Firmware Bug]: reg 0x14: invalid BAR (can't size)
[    2.311604] pci 0000:00:00.0: [Firmware Bug]: reg 0x18: invalid BAR (can't size)
[    2.311835] pci 0000:00:00.0: [Firmware Bug]: reg 0x1c: invalid BAR (can't size)
[    2.312063] pci 0000:00:00.0: [Firmware Bug]: reg 0x20: invalid BAR (can't size)
[    2.312323] pci 0000:00:00.0: [Firmware Bug]: reg 0x24: invalid BAR (can't size)
[    2.314320] pci 0000:00:0a.0: [8086:7110] type 00 class 0x060100
[    2.315363] pci 0000:00:0a.1: [8086:7111] type 00 class 0x010180

Whitelist this for now since this is preferable to the random failures
we're seeing from qemuppc with 2.6.0.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoparselogs: Whitelist qemuppc error message with qemu 2.7.0
Richard Purdie [Thu, 8 Sep 2016 10:39:04 +0000 (11:39 +0100)]
parselogs: Whitelist qemuppc error message with qemu 2.7.0

qemu 2.7.0 introduces kernel errors:

[0.474981] pci 0000:00:0f.0: reg 0x10: [io  0x0400-0x041f]
[0.483796] pci 0000:00:0f.0: reg 0x20: can't handle BAR above 4GB (bus address 0xffffffff82800000)
[0.484204] pci 0000:00:0f.0: reg 0x20: [mem size 0x00800000 64bit pref]
[0.488077] pci 0000:00:0f.0: reg 0x30: [mem 0x83000000-0x8303ffff pref]
[0.488903] pci 0000:00:10.0: [1af4:1005] type 00 class 0x00ff00
[0.490485] pci 0000:00:10.0: reg 0x10: [io  0x0480-0x049f]
[0.496512] pci 0000:00:10.0: reg 0x20: can't handle BAR above 4GB (bus address 0xffffffff83800000)
[0.496783] pci 0000:00:10.0: reg 0x20: [mem size 0x00800000 64bit pref]
[0.500345] pci 0000:00:11.0: [1af4:1001] type 00 class 0x010000
[0.501790] pci 0000:00:11.0: reg 0x10: [io  0x0500-0x053f]
[0.507362] pci 0000:00:11.0: reg 0x20: can't handle BAR above 4GB (bus address 0xffffffff84000000)
[0.507677] pci 0000:00:11.0: reg 0x20: [mem size 0x00800000 64bit pref]
[0.513905] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[0.516493] PCI 0000:00 Cannot reserve Legacy IO [io  0x0000-0x0fff]
[0.517512] pci 0000:00:0f.0: BAR 4: assigned [mem 0x80800000-0x80ffffff 64bit pref]
[0.518877] pci 0000:00:10.0: BAR 4: assigned [mem 0x82800000-0x82ffffff 64bit pref]
[0.519890] pci 0000:00:11.0: BAR 4: assigned [mem 0x83800000-0x83ffffff 64bit pref]

Whitelist this for now since this is preferable to the random failures
we're seeing from qemuppc with 2.6.0.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibwebp: sepcify neon availability for arm
Joe Slater [Wed, 7 Sep 2016 21:44:58 +0000 (14:44 -0700)]
libwebp: sepcify neon availability for arm

Defeat automatic neon detection.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoutils.bbclass: Added error checking for oe_soinstall
Henry Bruce [Wed, 7 Sep 2016 21:09:54 +0000 (14:09 -0700)]
utils.bbclass: Added error checking for oe_soinstall

Fixes [YOCTO #10146]

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoutils.bbclass: Remove trailing whitespace
Henry Bruce [Tue, 6 Sep 2016 22:11:44 +0000 (15:11 -0700)]
utils.bbclass: Remove trailing whitespace

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowatchdog-config: Add recipe
Fabio Berton [Fri, 26 Aug 2016 19:55:02 +0000 (16:55 -0300)]
watchdog-config: Add recipe

Provides configuration files for watchdog.
Add watchdog-config as a runtime dependence of watchdog and remove
watchdog.conf file from watchdog installation.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowatchdog: Add wd_keepalive package
Fabio Berton [Fri, 26 Aug 2016 19:55:01 +0000 (16:55 -0300)]
watchdog: Add wd_keepalive package

This is a simplified version of the watchdog daemon. It only opens
/dev/watchdog, and keeps writing to it often enough to keep the kernel
from resetting, at least once per minute. Each write delays the reboot
time another minute. After a minute of inactivity the watchdog hardware
will cause a reset. In the case of the software watchdog the ability to
reboot will depend on the state of the machines and interrupts.

Installs wd_keepalive binary and enable initscript.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto: update LINUX_VERSION to -rc5
Bruce Ashfield [Thu, 8 Sep 2016 18:48:35 +0000 (14:48 -0400)]
linux-yocto: update LINUX_VERSION to -rc5

The SRCREVs were previously updated to -rc5, but the LINUX_VERSION
was missed. As such, we are building and booting -rc5, but all the
packaging says -rc4.

Worth a quick update while we wait for -rc6

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokconfig-frontends: inherit pkgconfig
Maxin B. John [Thu, 8 Sep 2016 15:46:53 +0000 (18:46 +0300)]
kconfig-frontends: inherit pkgconfig

Instead of build depending on pkgconfig-native, inherit pkgconfig
class which does the same thing.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokmod: inherit pkgconfig
Maxin B. John [Thu, 8 Sep 2016 15:46:52 +0000 (18:46 +0300)]
kmod: inherit pkgconfig

Instead of DEPENDS += "pkgconfig-native", inherit pkgconfig class which does
the same.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agox11-common: Remove Xserver script
Jussi Kukkonen [Tue, 30 Aug 2016 08:32:09 +0000 (11:32 +0300)]
x11-common: Remove Xserver script

X startup is now handled in xserver-nodm-init.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxserver-nodm-init: Deprecate /etc/X11/Xserver
Jussi Kukkonen [Thu, 1 Sep 2016 06:53:04 +0000 (09:53 +0300)]
xserver-nodm-init: Deprecate /etc/X11/Xserver

This commit should provide the same functionality as before, but
should make meta-oe xserver-nodm-init-2.0 obsolete as well as
keep systemd and sysvinit startup better in sync.

/etc/X11/Xserver is not called anymore: it is provided by both
x11-common and xserver-common with no useful differences (but some
annoying ones). Instead xserver-nodm-init provides
/etc/xserver-nodm/Xserver as the startup script and
/etc/default/xserver-nodm as the default settings file. These are
used by both init systems.

The Xserver script could be completely removed (with sysv and
systemd calling xinit directly), but to keep compatibility with
meta-oes xserver-nodm-init-2.0 the Xserver script sources
/etc/X11/xserver-common if one exists -- and systemd EnvironmentFile
cannot do that.

x11-common used to have a packageconfig to easily control screen
blanking. Move this to xserver-nodm-init.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-module-split.bbclass: no need for running depmod
André Draszik [Thu, 18 Aug 2016 07:56:26 +0000 (08:56 +0100)]
kernel-module-split.bbclass: no need for running depmod

With the recent changes, executing depmod is not needed
anymore.

This simplifies and removes a lot of unnecessary code.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-module-split.bbclass: generate dependencies across recipes
André Draszik [Thu, 18 Aug 2016 07:56:25 +0000 (08:56 +0100)]
kernel-module-split.bbclass: generate dependencies across recipes

The information retrieved via depmod is incomplete with
regards to kernel modules that are dependencies, in
particular where two kernel modules are built from
different source trees / recipes, which leads to incomplete
dependency information for packages created.

So far, our packages created didn't contain dependencies on
packages created by other recipes, as we solely use depmod
for that, and depmod can only work well after *all* kernel
modules have been copied into one place - it doesn't work
well in a staged approach.

Now that all .ko have correct dependency information at packaging
time, we can use that information to properly track dependencies
across recipies, and can combine the information from the
.modinfo elf section with the information from depmod.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomodule.bbclass: use Module.symvers for dependants
André Draszik [Thu, 18 Aug 2016 07:56:24 +0000 (08:56 +0100)]
module.bbclass: use Module.symvers for dependants

When compiling multiple external kernel modules, where one
depends on the other, there are two problems at the
moment:
1) we get compile time warnings from the kernel build
   system due to missing symbols (from modpost).
2) Any modules generated are missing dependency
   information (in the .modinfo elf section) for any
   dependencies outside the current source tree and
   outside the kernel itself.

This is expected, but the kernel build system has a way to
deal with this - the dependent module is expected to
specify KBUILD_EXTRA_SYMBOLS (as a space-separated list)
to point to any and all Module.symvers of kernel modules
that are dependencies.

While 1) by itself is not really a big issue, 2) prevents
the packaging process from generating cross-source tree
package dependencies.

As a first step to solve the missing dependencies in
packages created, we:
1) install Module.symvers of all external kernel module
   builds (into a location that is automatically packaged
   into the -dev package)
2) make use of KBUILD_EXTRA_SYMBOLS and pass the location
   of all Module.symvers of all kernel-module-* packages
   we depend on

This solves both problems mentioned above.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.4/4.8: uvesafb: provide option to specify timeout for task completion
Bruce Ashfield [Thu, 8 Sep 2016 01:08:49 +0000 (21:08 -0400)]
linux-yocto/4.4/4.8: uvesafb: provide option to specify timeout for task completion

Integrating the following patch:

[
   We try to make this change a generic extension, but it is
   actually for a corner case. When a VM (qemu) gets a very limited
   cpu bandwidth from host, which could be under a heavy load, the
   existing 5000 ms timeout could occur and trigger error messages
   in the task function's callers.

   This change adds a new timeout parameter so that we can tweak
   the value as a workaround or for troubleshooting purposes. In
   the infinite wait case, A warning message is printed at 5000ms
   interval.

   In real world, the current 5 sec is generous enough for a video
   request in my opinion, so this change could not be very useful.

   Upstream Status: Inappropriate

Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto: update to 4.8-rc5
Bruce Ashfield [Thu, 8 Sep 2016 01:08:48 +0000 (21:08 -0400)]
linux-yocto: update to 4.8-rc5

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-yocto: restore missing configuration meta data
Bruce Ashfield [Thu, 8 Sep 2016 01:08:47 +0000 (21:08 -0400)]
kernel-yocto: restore missing configuration meta data

Some of the meta-data from the 4.4 kernel was missing from the 4.8
branch. This resulted in some functionality drops and also a size/time
increase in the kernel build (due to debug being turned on).

With this resync, we now have the missing config restored.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-yocto: allow --allnoconfig and --alldefconfig as KCONFIG_MODES
Bruce Ashfield [Thu, 8 Sep 2016 01:08:46 +0000 (21:08 -0400)]
kernel-yocto: allow --allnoconfig and --alldefconfig as KCONFIG_MODES

Previously merge_config.sh was wrapped by the configme script, configme
took the different KCONFIG_MODES as options, and used --allnoconfig
or --alldefconfig.

With the switch to merge_config.sh no longer being wrapped, the new
processing wasn't matching the existing values and only supported
allnoconfig or alldefconfig.

To avoid breaking existing layers, and also keep any working that
have already switched, we can make the case statement match both.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-yocto: restore kernel-meta data detection for SRC_URI elements
Bruce Ashfield [Thu, 8 Sep 2016 01:08:45 +0000 (21:08 -0400)]
kernel-yocto: restore kernel-meta data detection for SRC_URI elements

Before the kernel tools were simplified and streamlined, there was code
which not only migrated a patch/cfg/scc to the kernel build tree, it
also migrated any subdirectories of those patches.

The effect of this data migration was that any other meta data in
a patch's directory structure would be available for processing.

While we don't want to do this migration anymore, it is possible to
check the path of any SRC_URI patches, and if they include a "kernel-meta"
subdirectory add it to the search path.

This restores the functionality without the old complexity.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorecipetool: create: avoid extra blank lines in output recipe
Paul Eggleton [Mon, 5 Sep 2016 23:24:44 +0000 (11:24 +1200)]
recipetool: create: avoid extra blank lines in output recipe

If we output extra blank lines (because of some automated editing) then
it makes the output recipe look a bit untidy. You could argue that we
should simply have the editing code not do that, but sometimes we don't
have enough context there for that to be practical. It's simple enough
to just filter out the extra blank lines when writing the file, so just
do it that way.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
8 years agorecipetool: create: support node.js code outside of npm
Paul Eggleton [Mon, 5 Sep 2016 03:58:01 +0000 (15:58 +1200)]
recipetool: create: support node.js code outside of npm

If you have your own node.js application you may not publish it (or at
least not immediately) in an npm registry - it might just be in a
repository on github or on your local machine. Add support to recipetool
create for creating recipes to build such applications - extract their
dependencies, fetch them, and add corresponding npm:// URLs to SRC_URI,
and ensure that LICENSE / LIC_FILES_CHKSUM are updated to match. For
example, you can now run:

  recipetool create https://github.com/diversario/node-ssdp

(I had to borrow some code from bitbake/lib/bb/fetch2/npm.py to
implement this functionality; this should be refactored out but now
isn't the time to do that refactoring.)

Part of the fix for [YOCTO #9537].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
8 years agorecipetool: create: allow license variable handling to be rerun
Paul Eggleton [Mon, 5 Sep 2016 22:06:01 +0000 (10:06 +1200)]
recipetool: create: allow license variable handling to be rerun

If you make adjustments to the source tree (as create_npm.py will be)
then you will need to re-run the license variable handling code at the
end so that we get all of the files that should go into
LIC_FILES_CHKSUM if nothing else. Split out the license variable
handling to a separate function in order to allow this.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
8 years agorecipetool: create: add --keep-temp command line option
Paul Eggleton [Sun, 4 Sep 2016 22:26:20 +0000 (10:26 +1200)]
recipetool: create: add --keep-temp command line option

For debugging it's useful to be able to tell recipetool to keep the
temporary directory.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
8 years agorecipetool: create: support git submodules
Paul Eggleton [Thu, 1 Sep 2016 03:25:19 +0000 (15:25 +1200)]
recipetool: create: support git submodules

Ensure we fetch submodules and set SRC_URI correctly when pointing to a
git repository that contains submodules.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
8 years agorecipetool: create: fix mapping python dependencies to python-dbg package
Paul Eggleton [Thu, 1 Sep 2016 02:25:04 +0000 (14:25 +1200)]
recipetool: create: fix mapping python dependencies to python-dbg package

When trying to map python module dependencies to the packages that
provide them, if we're looking for .so files that satisfy
dependencies then we need to exclude files found under the .debug
directory, otherwise the dependency will get mapped to the python-dbg
package which isn't correct.

For example, this fixes creating a recipe for pyserial and not getting
python-fcntl in RDEPENDS_${PN}, leading to errors when trying to use the
serial module on the target.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
8 years agorecipetool: create: AX_PKG_SWIG should add dependency on swig-native
Paul Eggleton [Wed, 31 Aug 2016 03:15:55 +0000 (15:15 +1200)]
recipetool: create: AX_PKG_SWIG should add dependency on swig-native

If AX_PKG_SWIG is found in configure.ac, then what's being looked for is
the swig binary, not swig for the target - so fix the dependency
accordingly.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
8 years agodevtool: update-recipe: support files with subdir=
Paul Eggleton [Wed, 31 Aug 2016 23:38:46 +0000 (11:38 +1200)]
devtool: update-recipe: support files with subdir=

It's rare but there are recipes that have individual files (as opposed
to archives) in SRC_URI using subdir= to put them under the source tree,
the examples in OE-Core being bzip2 and openssl. This broke devtool
update-recipe (and devtool finish) because the file wasn't unpacked into
the oe-local-files directory and thus when it came time to update the
recipe, the file was assumed to have been deleted by the user and thus
the file was erroneously removed. Add logic to handle these properly so
that this doesn't happen.

(We still have another potential problem in that these files become part
of the initial commit from upstream, which could be confusing because
they didn't come from there - but that's a separate issue and not one
that is trivially solved.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
8 years agolib/oe/patch: handle non-UTF8 encoding when reading patches
Paul Eggleton [Wed, 31 Aug 2016 03:28:46 +0000 (15:28 +1200)]
lib/oe/patch: handle non-UTF8 encoding when reading patches

When extracting patches from a git repository with PATCHTOOL = "git" we
cannot assume that all patches will be UTF-8 formatted, so as with other
places in this module, try latin-1 if utf-8 fails.

This fixes UnicodeDecodeError running devtool update-recipe or devtool
finish on the openssl recipe.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
8 years agofile: build with c std as c99
Jack Mitchell [Wed, 7 Sep 2016 11:20:05 +0000 (12:20 +0100)]
file: build with c std as c99

when using a toolchain not shipped by OE core such as linaro we
can't be sure what the std will be set to. Set to compile as c99
which is the lowest version supported.

Signed-off-by: Jack Mitchell <jack@embed.me.uk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoapt: add PACKAGECONFIG for lz4
Robert Yang [Wed, 7 Sep 2016 08:28:35 +0000 (01:28 -0700)]
apt: add PACKAGECONFIG for lz4

Fixed:
apt-1.2.12: apt rdepends on lz4, but it isn't a build dependency, missing lz4 in DEPENDS or PACKAGECONFIG? [build-deps]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: be sure to use the latest buildstats
Markus Lehtonen [Wed, 7 Sep 2016 07:28:46 +0000 (10:28 +0300)]
oeqa.buildperf: be sure to use the latest buildstats

Be sure to take the latest buildstats if multiple buildstats are found.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopciutils: fix PACKAGECONFIG
Robert Yang [Wed, 7 Sep 2016 08:28:36 +0000 (01:28 -0700)]
pciutils: fix PACKAGECONFIG

The PACKAGECONFIG's value doens't go into EXTRA_OECONF, but
PACKAGECONFIG_CONFARGS.

Fixed:
pciutils-3.5.1: libpci rdepends on libudev, but it isn't a build dependency, missing eudev in DEPENDS or PACKAGECONFIG? [build-deps]
pciutils-3.5.1: pciutils rdepends on libudev, but it isn't a build dependency, missing eudev in DEPENDS or PACKAGECONFIG? [build-deps]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: try harder when splitting 'nevr' string
Markus Lehtonen [Wed, 7 Sep 2016 07:28:45 +0000 (10:28 +0300)]
oeqa.buildperf: try harder when splitting 'nevr' string

Try to be more intelligent when splitting out recipe name, epoch,
version and revision from the buildstat directory name. Previous
assumption was that package versions never contain a dash but obviously
that is not necessarily true. The new assumption is that the package
version starts with a number.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowebkitgtk: 2.12.4 -> 2.12.5
Mingli Yu [Wed, 7 Sep 2016 05:47:10 +0000 (13:47 +0800)]
webkitgtk: 2.12.4 -> 2.12.5

Fix a regression introduced in 2.12.4 that caused
a hang in the network process after a load failure.

Fix several crashes and rendering issues.

reference: https://webkitgtk.org/2016/09/05/webkitgtk2.12.5-released.html

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolighttpd: fix EXTRA_OECONF
Martin Jansa [Tue, 6 Sep 2016 21:58:59 +0000 (23:58 +0200)]
lighttpd: fix EXTRA_OECONF

* --without-memcache was renamed to --without-memcached in:
  https://redmine.lighttpd.net/projects/lighttpd/repository/revisions/f3b577ddee36b9555331dfbcddb6a200df2ba438
* causing:
  ERROR: lighttpd-1.4.41-r0 do_configure: QA Issue: lighttpd: configure was passed unrecognised options: --without-memcache [unknown-configure-option]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocmake.bbclass: avoid treating imports as system includes
Andreas Müller [Tue, 6 Sep 2016 21:41:23 +0000 (23:41 +0200)]
cmake.bbclass: avoid treating imports as system includes

CMake sets all imported headers as system headers. This causes trouble for c++
projects [1].

Thanks to Jack Mitchell for pointing to the setting [2]. Build tested upon
meta-qt5-extra-world which had lots of fallout before.

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129
[2] http://lists.openembedded.org/pipermail/openembedded-core/2016-September/126067.html

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython: recompile _sysconfigdata.py after modifying it
Ross Burton [Wed, 7 Sep 2016 14:05:02 +0000 (15:05 +0100)]
python: recompile _sysconfigdata.py after modifying it

We sed this file after the .pyc has been generated, so re-compile the .pyc to
ensure that it is up to date.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosystemd_230.bb: Set journal RuntimeMaxSize to 64M as default
Aníbal Limón [Mon, 5 Sep 2016 21:59:12 +0000 (16:59 -0500)]
systemd_230.bb: Set journal RuntimeMaxSize to 64M as default

At this time systemd journald uses the /run tmpfs to store logs
by default systemd uses 15% of available space [1] of the /run
partition, when the space runs out journald starts to vaccum/store
the logs into /var/log [1].

It causes two problems one of them is timeout dev-ttySN.device's
when enable debug and use journal as systemd.log_target [2] the other
is related to don't find syslog entries into the journal log [3].

This problems are now more evident because i recently enabled the
systemd debug option in testimage [4].

One area of improvement will be add support in systemd journald to
read these parameters from the kernel cmdline like systemd.log_target,
if the support exists we could add that parameter at level of testimage.

[1] https://www.freedesktop.org/software/systemd/man/journald.conf.html#SystemMaxUse=
[2] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8142#c19
[3] https://bugzilla.yoctoproject.org/show_bug.cgi?id=10128#c4
[4] http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a86a1b2703372c12e7fca18918695d093ea6ee53

[YOCTO #10128]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobusybox: avoid circular dependency when using initramfs
Stefan Agner [Sun, 4 Sep 2016 20:25:55 +0000 (13:25 -0700)]
busybox: avoid circular dependency when using initramfs

The kernel does not automatically mount devtmpfs when using initramfs
based booting (even when using CONFIG_DEVTMPFS_MOUNT). If the rootfs
is built with USE_DEVFS=1 (which is the default), the system ends up
with a completely empty /dev to begin with.

Busybox uses the first entry in inittab slightly different than
other init systems:
<id>: WARNING: This field has a non-traditional meaning for BusyBox init!

The id field is used by BusyBox init to specify the controlling tty for
the specified process to run on.  The contents of this field are
appended to "/dev/" and used as-is.

Since /dev/null is not there yet, Busybox throws errors instead of
executing the commands, and hence never mounts devtmpfs:
init started: BusyBox v1.24.1 (2016-09-04 11:53:14 PDT)
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory

Avoid this circular dependency by not specifing <id>. With that
Busybox ends up using the stdio of the init process and executes
the inittab just fine.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibcap: Replace EXTRA_OECONF with PACKAGECONFIG_CONFARGS
Marek Vasut [Sun, 4 Sep 2016 16:20:20 +0000 (18:20 +0200)]
libcap: Replace EXTRA_OECONF with PACKAGECONFIG_CONFARGS

When building libcap and DISTRO_FEATURES does not contain pam,
the build will fail on missing pam headers. This is because the
bits from EXTRA_OECONF moved to PACKAGECONFIG_CONFARGS and thus
the necessary options are not propagated to oe_runmake anymore.
Replace EXTRA_OECONF with PACKAGECONFIG_CONFARGS to fix this.

| arm-poky-linux-gnueabi-gcc  -march=armv7-a -mfpu=vfp  -mfloat-abi=softfp --sysroot=/b/tmp/sysroots/board  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/b/tmp/work/armv7a-vfp-poky-linux-gnueabi/libcap/2.25-r0=/usr/src/debug/libcap/2.25-r0 -fdebug-prefix-map=/b/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/b/tmp/sysroots/board=  -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g  -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g  -fPIC -I/b/tmp/work/armv7a-vfp-poky-linux-gnueabi/libcap/2.25-r0/libcap-2.25/pam_cap/../libcap/include/uapi -I/b/tmp/work/armv7a-vfp-poky-linux-gnueabi/libcap/2.25-r0/libcap-2.25/pam_cap/../libcap/include -c pam_cap.c -o pam_cap.o
| pam_cap.c:19:34: fatal error: security/pam_modules.h: No such file or directory
|  #include <security/pam_modules.h>
|                                   ^
| compilation terminated.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoautoconf: remove upstreamed patch
Ross Burton [Mon, 5 Sep 2016 22:29:59 +0000 (23:29 +0100)]
autoconf: remove upstreamed patch

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibffi: backport patch to fix building MIPS soft float
André Draszik [Tue, 6 Sep 2016 11:32:35 +0000 (12:32 +0100)]
libffi: backport patch to fix building MIPS soft float

Upstream-Status: Backport [https://github.com/libffi/libffi/commit/2ded2a4f494165c93293afc14ab0be1243cf8c49]

(From OE-Core rev: 0231a6f92d2c8b89b419aeb09a4b35f871bfb2bf)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agognutls: update to 3.5.3
Jussi Kukkonen [Wed, 31 Aug 2016 08:50:03 +0000 (11:50 +0300)]
gnutls: update to 3.5.3

Add patch to fix compile without libtasn headers.

(From OE-Core rev: b43e4499fb3bae4740660a729a900d951eab00e8)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: correct globalres time format
Markus Lehtonen [Mon, 5 Sep 2016 18:33:56 +0000 (21:33 +0300)]
oeqa.buildperf: correct globalres time format

Always use two digits for (integer part of) seconds, i.e. show '1:02.34'
instead of '1:2.34'.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-build-perf-test: fix log file path
Markus Lehtonen [Mon, 5 Sep 2016 17:21:16 +0000 (20:21 +0300)]
oe-build-perf-test: fix log file path

The --log-file command line argument was slightly broken as {out_dir}
string replacement was not working as expected.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest/liboe: add a test for copyhardlinktree()
Joshua Lock [Mon, 5 Sep 2016 13:35:10 +0000 (14:35 +0100)]
selftest/liboe: add a test for copyhardlinktree()

Add a simple test to validate that the number of files in the
destination matches the number of files in the source after the
copyhardlinktree() has been performed.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe.path: fix copyhardlinktree()
Joshua Lock [Mon, 5 Sep 2016 13:35:09 +0000 (14:35 +0100)]
oe.path: fix copyhardlinktree()

The change to preserve extended attributes in copytree() and
copyhardlinktree() (e591d69103a40ec4f76d1132a6039d9cb1555103)
resulted in an incorrect cp invocation in copyhardlinktree() when
the source directory contained hidden files.

This was because the passed src was modified in place but some code
paths expected it to remain unmodified from the passed value.
Resolve the issue by constructing a new source string, rather than
modifying the passed in string.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolttng-modules: Do not fail if CONFIG_TRACEPOINTS is not enabled
Otavio Salvador [Mon, 5 Sep 2016 17:20:20 +0000 (14:20 -0300)]
lttng-modules: Do not fail if CONFIG_TRACEPOINTS is not enabled

The lttng-modules are being pulled by the tools-profile image feature,
however, not every kernel has the CONFIG_TRACEPOINTS feature enabled.

This change makes the build do not fail when CONFIG_TRACEPOINTS is not
available, allowing it to be kept being pulled by default.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolttng-modules: Bump to 6e4fc6f3 revision
Otavio Salvador [Mon, 5 Sep 2016 16:28:43 +0000 (13:28 -0300)]
lttng-modules: Bump to 6e4fc6f3 revision

This moves the recipe to the tip of stable-2.8 branch which allows the
use of Linux 4.8 while keep us on a stable release.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorpm: ensure rpm2cpio call rpm relocation code
Zhixiong Chi [Mon, 5 Sep 2016 04:08:13 +0000 (12:08 +0800)]
rpm: ensure rpm2cpio call rpm relocation code

We need to call rpmcliInit to ensure the rpm relocation code is called.
when we allow rpm2cpio to be relocatable, The adjusted path used to find
the macro files was being built into the binary and this path was valid
for the machine it was built on and some of our other build machines,
but invalid on some others, and was not being properly overridden at
runtime.

when we export the wrsdk and source the sdk, then execute rpm2cpio xxx.rpm|cpio -t.
we will get the following error :
"rpm-5.4.14/rpmdb/dbconfig.c:493:
db3New: Assertion `dbOpts != ((void *)0) && *dbOpts != '\0'' failed.

Signed-off-by: Zhixiong Chi <Zhixiong.Chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocoreutils: enable xattr for native
Robert Yang [Mon, 5 Sep 2016 07:30:43 +0000 (00:30 -0700)]
coreutils: enable xattr for native

The lib/oe/path.py requires xattr, fixed:
Subprocess output:
cp: cannot preserve extended attributes, cp is built without xattr support

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosysstat: 11.3.5 -> 11.4.0
Wang Xin [Fri, 2 Sep 2016 05:11:32 +0000 (01:11 -0400)]
sysstat: 11.3.5 -> 11.4.0

Upgrade sysstat from 11.3.5 to 11.4.0.

Signed-off-by: Wang Xin <wangxin2015.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-perf-test-wrapper.sh: fix handling of -C argument
Markus Lehtonen [Fri, 2 Sep 2016 13:37:25 +0000 (16:37 +0300)]
build-perf-test-wrapper.sh: fix handling of -C argument

Not specifying -C caused oe-build-perf-test to try to commit results to
the build directory.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoofono: RRECOMMENDS tun.ko & APN database
André Draszik [Fri, 2 Sep 2016 22:04:41 +0000 (23:04 +0100)]
ofono: RRECOMMENDS tun.ko & APN database

- kernel-module-tun is needed so that ofono can create the
  ppp network interface

- mobile-broadband-provider-info is needed as an explicit
  dependency even though it is in DEPENDS, because it's
  just an xml database, and the DEPENDS simply allows
  ofono to figure out its location in the file system
  (using pkg-config during configure). But there is no
  shared library dependency or so for bitbake to figure
  out this runtime dependency.
  We make it a recommendation only, so that it can still
  be removed from filesystem images in case people build
  images that don't need the provider database (and e.g.
  hard-code APNs for specific use-cases)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoe2fsprogs: packaging cleanups (compile_et & mk_cmds)
André Draszik [Fri, 2 Sep 2016 21:39:37 +0000 (22:39 +0100)]
e2fsprogs: packaging cleanups (compile_et & mk_cmds)

While comparing what were supposed to be similar
filesystems from different build machines, some issues
have been noticed in the e2fsprogs recipe, in
particular with the compile_et and mk_cmds utilities.

1) target:
   move compile_et and mk_cmds into the -dev package

   Both are development tools, from the man pages:

   compile_et - error table compiler
     compile_et converts a table listing error-code names
     and associated messages into a C source file suitable
     for use with the com_err(3) library.

   mk_cmds - error table compiler
     mk_cmds converts a table listing command names and
     associated help messages into a C source file suitable
     for use with the ss(3) library.

2) native/nativesdk
   Also apply cleaning of host path (build directory) here,
   so that only the sysroot directory remains, which is
   properly adjusted by the sstate handling.

3) make cleaning of host path actually work
   The existing sed command wasn't working, in particular
   for compile_et; we fix up the sed command so that
   removal of references to the local build directory
   really works. Do the same changes for mk_cmds, for
   consistency.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoboost: fix MIPS16e compilation
André Draszik [Sat, 3 Sep 2016 00:12:22 +0000 (01:12 +0100)]
boost: fix MIPS16e compilation

Backport upstream patch to use g++ 4.1+ __sync intrinsics
instead of incompatible hand-written assembly when
compiling for MIPS16e

Upstream-Status: Backport https://svn.boost.org/trac/boost/ticket/12418

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoboost: fix mips soft float compilation
André Draszik [Sat, 3 Sep 2016 00:12:21 +0000 (01:12 +0100)]
boost: fix mips soft float compilation

Upstream-Status: Submitted https://svn.boost.org/trac/boost/ticket/11756

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoboost: fix a musl compilation warning
André Draszik [Sat, 3 Sep 2016 00:12:20 +0000 (01:12 +0100)]
boost: fix a musl compilation warning

Upstream-Status: Submitted https://svn.boost.org/trac/boost/ticket/12419

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agovalgrind: Disable for MIPS Soft Float
Zubair Lutfullah Kakakhel [Fri, 2 Sep 2016 16:01:42 +0000 (17:01 +0100)]
valgrind: Disable for MIPS Soft Float

Valgrind doesn't build for MIPS soft float. Disable the build until
the package has support for it.

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackagegroup: Disable packages not available on mipsel
Zubair Lutfullah Kakakhel [Fri, 2 Sep 2016 16:01:40 +0000 (17:01 +0100)]
packagegroup: Disable packages not available on mipsel

These are not available on mipsel yet so disable them

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackagegroup-core-sdk: Disable sanitizers for mipsel
Zubair Lutfullah Kakakhel [Fri, 2 Sep 2016 16:01:39 +0000 (17:01 +0100)]
packagegroup-core-sdk: Disable sanitizers for mipsel

These are not available on mipsel yet, so disable them.

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.1: backport virtio HW_RANDOM_VIRTIO config
Bruce Ashfield [Thu, 1 Sep 2016 14:10:58 +0000 (10:10 -0400)]
linux-yocto/4.1: backport virtio HW_RANDOM_VIRTIO config

We enabled HW_RANDOM_VIRTIO for the 4.4+ kernels, but it is also needed
for 4.1 to ensure that VMs have sufficient entropy. Without this entropy
networking on qemuppc starves and triggers intermittent errors.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>