]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
8 years agolibnl: fix RREPLACES and RCONFLICTS for libnl-genl rbt/libnl
Robert Yang [Fri, 2 Sep 2016 05:09:14 +0000 (22:09 -0700)] 
libnl: fix RREPLACES and RCONFLICTS for libnl-genl

The libnl-genl.rpm provides libnl-genl-3-200 after the following 2 fixes:
libnl: update to v3.2.28
libnl: fix packaging mistakes

$ rpm -qp --provides tmp/deploy/rpm/core2_64/libnl-genl-3-200-3.2.28-r0.4.core2_64.rpm
elf(buildid) = 4e753b2361ba0b02f162244a87cc0680796e46cc
libnl-genl = 3.2.28
libnl-genl-3.so.200()(64bit)
libnl-genl-3.so.200(libnl_3)(64bit)
libnl-genl2
libnl-genl-3-200 = 1:3.2.28-r0.4

Note, the libnl-genl2 is introduced by REPLACES_${PN}-genl = "libnl-genl2".

So that we don't need set libnl-genl-3-200 in the RREPLACES and
RCONFLICTS, otherwise it would cause do_rootfs errors when install both
libnl-genl.rpm and lib32-libnl-genl.rpm:

Computing transaction...error: Can't install libnl-genl-3-200-1:3.2.28-r0.0@core2_64: conflicted package libnl-genl-3-200-1:3.2.28-r0.0@lib32_x86 is locked

We didn't meet this error before was because there was no libnl-genl.rpm,
but libnl-3-genl.rpm, and it doesn't provide libnl-genl-3-200 by default.

Remove libnl-genl-3-200 from RREPLACES and RCONFLICTS will fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
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

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoarch-mips.inc: Disable QEMU usermode usage when building with n32 ABI
Alexander Kanavin [Thu, 1 Sep 2016 17:50:54 +0000 (20:50 +0300)] 
arch-mips.inc: Disable QEMU usermode usage when building with n32 ABI

QEMU usermode doesn't support n32 binaries, erroring with "Invalid
ELF image for this architecture".

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/parselogs: Add qemuarm64 warning from 4.8 kernel to whitelist
Richard Purdie [Thu, 1 Sep 2016 16:50:41 +0000 (17:50 +0100)] 
oeqa/parselogs: Add qemuarm64 warning from 4.8 kernel to whitelist

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoRevert "bitbake.conf: Disable api-docs temporarily"
Richard Purdie [Wed, 31 Aug 2016 21:00:09 +0000 (22:00 +0100)] 
Revert "bitbake.conf: Disable api-docs temporarily"

This reverts commit 96ac471c358dee1844b22105269c2b4a791ccea0.

8 years agobitbake.conf: Disable api-docs temporarily
Richard Purdie [Wed, 31 Aug 2016 08:59:55 +0000 (09:59 +0100)] 
bitbake.conf: Disable api-docs temporarily

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>
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 agobusybox: fix "sed n (flushes pattern space, terminates early)" testcase failure
Dengke Du [Thu, 1 Sep 2016 09:42:10 +0000 (05:42 -0400)] 
busybox: fix "sed n (flushes pattern space, terminates early)" testcase failure

It is a busybox upstream known bug. When the busybox sed sub-command 'n'
hit the files EOF, it print an extra character that have been printed, but
the GNU sed would not print it.

In busybox source code ../editors/sed.c
------------------------------------------------------------------------
    case 'n':
        if (!G.be_quiet)
                sed_puts(pattern_space, last_gets_char);
            if (next_line) {
                    free(pattern_space);
                    pattern_space = next_line;
                    last_gets_char = next_gets_char;
                    next_line = get_next_line(&next_gets_char, &last_puts_char, last_gets_char);
                    substituted = 0;
                    linenum++;
                    break;
            }
            /* fall through */

    /* Quit.  End of script, end of input. */
    case 'q':
        /* Exit the outer while loop */
            free(next_line);
            next_line = NULL;
            goto discard_commands;
------------------------------------------------------------------------
when read at the end of the file, the 'next_line' is null, it would go
"case 'q'" and goto discard_commands, the discard_commands would print
the old pattern space which have been printed.

So in order to comply with GNU sed, in case 'n', when the next_line is null
I add "else" at the end of the second "if": "goto again;" and send it to
the busybox upstream, the busybox maintainer adopt it and make a little
changes to the patch, we can see it at:

His reply:

http://lists.busybox.net/pipermail/busybox/2016-September/084613.html

The new patch on busybox master branch:

https://git.busybox.net/busybox/commit/?id=76d72376e0244a5cafd4880cdc623e37d86a75e4

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel.bbclass: include signing keys when copying files required for module builds
Mattias Waldo [Thu, 1 Sep 2016 14:36:25 +0000 (16:36 +0200)] 
kernel.bbclass: include signing keys when copying files required for module builds

The absence of signing_key.* in $kerneldir made signing of
out-of-tree kernel modules fail (silently). Add copying of these
files during the shared_workdir task.

Signed-off-by: Mattias Waldo <mattias.waldo@saabgroup.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.selftest.liboe: add test for xattr in copytree
Joshua Lock [Thu, 1 Sep 2016 16:26:42 +0000 (17:26 +0100)] 
oeqa.selftest.liboe: add test for xattr in copytree

Add a test to ensure that oe.path.copytree() preserves extended
attributes on files.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe.path: preserve xattr in copytree() and copyhardlinktree()
Joshua Lock [Thu, 1 Sep 2016 16:26:41 +0000 (17:26 +0100)] 
oe.path: preserve xattr in copytree() and copyhardlinktree()

Pass appropriate options to tar invocations in copytree() and
copyhardlinktree() to ensure that any extended attributes on the files
are preserved during the copy.

We have to drop the use cpio in "Copy-pass" mode in copyhardlinktree()
because cpio doesn't support extended attributes on files. Instead we
revert back to using cp with different patterns depending on whether
or not the directory contains dot files.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.selftest: add a test for oe.path.copytree()
Joshua Lock [Thu, 1 Sep 2016 16:26:40 +0000 (17:26 +0100)] 
oeqa.selftest: add a test for oe.path.copytree()

One motivation for the use of cpio in oe.path.copytree() was to
ensure that files with spaces in their names were copied. Add a new
unittest module to test the OE module with a test case for copytree
with a spaces in a filename.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoltp: remove useless script STPfailure_report.pl
Mingli Yu [Wed, 31 Aug 2016 02:10:25 +0000 (10:10 +0800)] 
ltp: remove useless script STPfailure_report.pl

* Remove useless script STPfailure_report.pl to
  avoid confusing about this script fails to run
  as it lacks dependency on some perl module such
  as LWP::Simple

  - The script STPfailure_report.pl previously is
    added as a tool to analyze failures from LTP
    runs on the OSDL's Scaleable Test Platform (STP) as below:

    commit f0573facbbbf14798cc5b7d4653a5e46b4b95fa5
    Author: robbiew <robbiew>
    Date: Wed Apr 28 19:21:39 2004 +0000

    Added tool for analyzing failures from LTP runs on
    the OSDL's Scaleable Test Platform (STP)

  - And the script STPfailure_report.pl mainly accesses
    http://khack.osdl.org to retrieve ltp test results
    run on OSDL's Scaleable Test Platform (STP) and prints
    the reports, and now the website http://khack.osdl.org
    not accessible, so the script is useless and drop it
    and not ship it on target system

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogtk-doc: patch the scripts to not hardcode the full paths to interpreters
Alexander Kanavin [Wed, 31 Aug 2016 19:22:07 +0000 (22:22 +0300)] 
gtk-doc: patch the scripts to not hardcode the full paths to interpreters

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/selftest Adds eSDK test cases to devtool verification.
Francisco Pedraza [Wed, 24 Aug 2016 20:55:23 +0000 (15:55 -0500)] 
oeqa/selftest Adds eSDK test cases to devtool verification.

The covered functions are, install libraries headers and image generation
binary feeds.

Signed-off-by: Francisco Pedraza <francisco.j.pedraza.gonzalez@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years ago/oeqa/sdkext Adds verification for devtool on eSDK.
Francisco Pedraza [Wed, 24 Aug 2016 20:50:07 +0000 (15:50 -0500)] 
/oeqa/sdkext Adds verification for devtool on eSDK.

The covered funcions are, build make, build esdk package, build cmake
extend autotools recipe creation, kernel module,
node.js installation and recipe creation.

Signed-off-by: Francisco Pedraza <francisco.j.pedraza.gonzalez@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts: ensure tinfoil is shut down correctly
Paul Eggleton [Wed, 5 Aug 2015 14:48:00 +0000 (15:48 +0100)] 
scripts: ensure tinfoil is shut down correctly

We should always shut down tinfoil when we're finished with it, either
by explicitly calling the shutdown() method or by using it as a
context manager ("with ...").

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobdwgc: Add missing include to avoid musl build failures
Richard Purdie [Wed, 31 Aug 2016 16:51:23 +0000 (17:51 +0100)] 
bdwgc: Add missing include to avoid musl build failures

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc-runtime.inc: add CPP support for mips64-n32 tune
Juro Bystricky [Mon, 29 Aug 2016 22:45:36 +0000 (15:45 -0700)] 
gcc-runtime.inc: add CPP support for mips64-n32 tune

This patch fixes the problem where the CPP compiler cannot find include files.
The compiler is configured to look for the files in places that do not exist.
When querying the CPP for search paths, we observe messages such as these:

multilib configuration:

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

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

single lib configuration:
MACHINE="qemumips64"
DEFAULTTUNE = "mips64-n32"
ignoring nonexistent directory "<path>/sysroots/mips64-n32-poky-linux-gnun32/usr/include/c++/6.2.0/mips64-poky-linux/

To fix this, create a symlink of the name CPP expects and point it to the corresponding "gnun32" directory.

[YOCTO#10142]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel.bbclass: add user output to savedefconfig
Stefan Müller-Klieser [Wed, 31 Aug 2016 14:47:23 +0000 (16:47 +0200)] 
kernel.bbclass: add user output to savedefconfig

In a similar manner to diffconfig, tell the bitbake user where the
defconfig will be saved to.

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/parselogs/qemuarm: Whitelist amba and jitter for 4.8+ kernels
Bruce Ashfield [Wed, 31 Aug 2016 14:54:11 +0000 (10:54 -0400)] 
oeqa/parselogs/qemuarm: Whitelist amba and jitter for 4.8+ kernels

With the update to the 4.8 kernel the versatile platform (and hence
qemuarm) has switched to a device tree boot.

We are using an ummodified mainline kernel versatilepb device tree,
which includes definitions of multiple amba devices. These devices
are not present in the qemu system emulation, hence throw warnings
during boot.

These warnings are not unique to oe-core, and rather than carry kernel
patches to the device tree (for now), we whitelist the known warnings
so qa testing will pass. We also can't turn amba off completely, since
it is providing valid devices (like the serial port) and AMBA is
force selected by other kconfig values.

We also have a jitterentropy warning that shows up on some hosts.
This warning is harmless, and like amba we can't turn it off in a
fragment since it is force selected by crypto (and we'd rather not
turn all crypto off). So we add it to the whitelist while investigations
continue into what is needed in the host to support this fully.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoFix out of tree builds of u-boot with gold linker
Andrew Goodbody [Wed, 31 Aug 2016 14:05:56 +0000 (15:05 +0100)] 
Fix out of tree builds of u-boot with gold linker

Need to reference config.mk file in source tree which is no longer
the current directory when using out of tree builds.

Signed-off-by: Andrew Goodbody <andrew.goodbody@cambrionix.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosstate.bbclass: skip packaging if SSTATE_SKIP_CREATION is set
Ed Bartosh [Wed, 31 Aug 2016 11:02:51 +0000 (14:02 +0300)] 
sstate.bbclass: skip packaging if SSTATE_SKIP_CREATION is set

SSTATE_SKIP_CREATION variable will be used to skip creation of
sstate .tgz files. It makes sense for image creation tasks as
tarring images and keeping them in sstate would consume a lot of
disk space.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoinitscripts: Start devpts at 06 instead of 38
Mike Looijmans [Wed, 31 Aug 2016 13:22:51 +0000 (15:22 +0200)] 
initscripts: Start devpts at 06 instead of 38

For example bootlogd needs devpts to be running, but bootlogd starts
at 07. Starting bootlogd early makes perfect sense, so the best option
here is to move devpts up to 06 to prevent this error message at boot:
cannot allocate pseudo tty: No such file or directory

Systems that have CONFIG_LEGACY_PTYS in the kernel will not see this
message. Since it is called "LEGACY" for a reason, fixing this in
userspace appears to be the better option here.

The devpts script does not need anything except a mounted "/dev" which
has been arranged in "S02sysfs.sh" already.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocryptodev: Add backported patches for 4.6+ kernels
Richard Purdie [Wed, 31 Aug 2016 13:00:22 +0000 (14:00 +0100)] 
cryptodev: Add backported patches for 4.6+ kernels

This allows 4.6 onward kernels to build, backported from upstream
master.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolighttpd: control ipv6 support based on DISTRO_FEATURES
Jackie Huang [Mon, 22 Aug 2016 09:06:01 +0000 (17:06 +0800)] 
lighttpd: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxhost: control ipv6 support based on DISTRO_FEATURES
Jackie Huang [Mon, 22 Aug 2016 09:06:10 +0000 (17:06 +0800)] 
xhost: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxauth: control ipv6 support based on DISTRO_FEATURES
Jackie Huang [Mon, 22 Aug 2016 09:06:09 +0000 (17:06 +0800)] 
xauth: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowget: control ipv6 support based on DISTRO_FEATURES
Jackie Huang [Mon, 22 Aug 2016 09:06:08 +0000 (17:06 +0800)] 
wget: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES instead of unconditionally enabled.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorsync: control ipv6 support based on DISTRO_FEATURES
Jackie Huang [Mon, 22 Aug 2016 09:06:07 +0000 (17:06 +0800)] 
rsync: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorsync: use rsync.inc to avoid duplicated codes
Jackie Huang [Mon, 22 Aug 2016 09:06:06 +0000 (17:06 +0800)] 
rsync: use rsync.inc to avoid duplicated codes

There are two versions of rsync but the rsync.inc is
only used by 3.x, there are duplicated codes in 2.x,
so this commit include changes:

* remove duplicated codes in 2.x and require the inc
* move the LICENSE from inc to each bb

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopulseaudio: control ipv6 support based on DISTRO_FEATURES
Jackie Huang [Mon, 22 Aug 2016 09:06:05 +0000 (17:06 +0800)] 
pulseaudio: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopsmisc: control ipv6 support based on DISTRO_FEATURES
Jackie Huang [Mon, 22 Aug 2016 09:06:04 +0000 (17:06 +0800)] 
psmisc: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonspr: control ipv6 support based on DISTRO_FEATURES
Jackie Huang [Mon, 22 Aug 2016 09:06:03 +0000 (17:06 +0800)] 
nspr: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonfs-utils: control ipv6 support based on DISTRO_FEATURES
Jackie Huang [Mon, 22 Aug 2016 09:06:02 +0000 (17:06 +0800)] 
nfs-utils: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibxmu: control ipv6 support based on DISTRO_FEATURES
Jackie Huang [Mon, 22 Aug 2016 09:06:00 +0000 (17:06 +0800)] 
libxmu: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibxml2: control ipv6 support based on DISTRO_FEATURES
Jackie Huang [Mon, 22 Aug 2016 09:05:59 +0000 (17:05 +0800)] 
libxml2: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibxfont: control ipv6 support based on DISTRO_FEATURES
Jackie Huang [Mon, 22 Aug 2016 09:05:58 +0000 (17:05 +0800)] 
libxfont: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibsm: control ipv6 support based on DISTRO_FEATURES
Jackie Huang [Mon, 22 Aug 2016 09:05:57 +0000 (17:05 +0800)] 
libsm: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibpcap: control ipv6 support based on DISTRO_FEATURES
Jackie Huang [Mon, 22 Aug 2016 09:05:56 +0000 (17:05 +0800)] 
libpcap: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibice: control ipv6 support based on DISTRO_FEATURES
Jackie Huang [Mon, 22 Aug 2016 09:05:55 +0000 (17:05 +0800)] 
libice: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoapr: control ipv6 support based on DISTRO_FEATURES
Jackie Huang [Mon, 22 Aug 2016 09:05:54 +0000 (17:05 +0800)] 
apr: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/contrib: update scripts for changes to internal API
Paul Eggleton [Wed, 31 Aug 2016 01:48:06 +0000 (13:48 +1200)] 
scripts/contrib: update scripts for changes to internal API

The multiconfig changes altered some of the functions being called here,
so update the calls. Make use of the new Tinfoil.parse_recipe_file()
function to make parsing easier.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolttng-modules: Update 2.7.3 -> 2.8.0+master
Richard Purdie [Wed, 31 Aug 2016 10:32:38 +0000 (11:32 +0100)] 
lttng-modules: Update 2.7.3 -> 2.8.0+master

We need master for the changes to work with 4.8 kernels.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolttng-tools: Update 2.7.1 -> 2.8.1
Richard Purdie [Wed, 31 Aug 2016 10:32:11 +0000 (11:32 +0100)] 
lttng-tools: Update 2.7.1 -> 2.8.1

Drop backported patch.
Update ust configure option.
Update location of xml m4 file.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolttng-ust: Update 2.7.1 -> 2.8.1
Richard Purdie [Wed, 31 Aug 2016 10:31:29 +0000 (11:31 +0100)] 
lttng-ust: Update 2.7.1 -> 2.8.1

Drop aarch64_be patch which is now upstream.
Update doc patch to apply to latest version.
Disable man generation in configure options to match docs patch (for now).

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.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.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 agolinux-yocto/4.x: configuration updates
Bruce Ashfield [Tue, 30 Aug 2016 16:49:07 +0000 (12:49 -0400)] 
linux-yocto/4.x: configuration updates

Integrating a series to expliclity set the quark build to 32 bits
and avoid 64 bit x86 defaults.

We also have a series of commits that fix configuration warnings on
x86 platforms:

 intel-quark.cfg: Explicitly disable CONFIG_64BIT
 common-pc-drivers.cfg: Remove I2O configs
 features: Fix dependencies and =m vs =y discrepancies for corei7
 intel-core2-32.cfg: Explicitly disable CONFIG_64BIT
 features: Add 6lowpan feature and add it where necessary

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-yocto: do_kernel_configme: Fix silent sysroot poisoning error
Ioan-Adrian Ratiu [Tue, 30 Aug 2016 16:49:06 +0000 (12:49 -0400)] 
kernel-yocto: do_kernel_configme: Fix silent sysroot poisoning error

do_kernel_configme calls merge_config.sh (installed in the sysroot by
the kern-tools-native recipe) which may invoke the compiler to complete
the configuration process.

Depending on the build (and dependencies), this may error due to sysroot poisoning [1].

The errors are similar to:

  make[1]: Entering directory '4.1+gitAUTOINC+a7e53ecc27-r0/linux-x64-standard-build' HOSTCC  scripts/basic/fixdep
  work-shared/x64/kernel-source/scripts/basic/fixdep.c:106:23: fatal error: sys/types.h: No such file or directory
  compilation terminated.
  make[2]: *** [work-shared/x64/kernel-source/scripts/basic/Makefile:22: scripts/basic/x86_64-nilrt-linux-fixdep] Error 1

Adding $TOOLCHAIN_OPTIONS to $CFLAGS before calling merge_configs.sh
fixes the error because $TOOLCHAIN_OPTIONS defines the sysroot and make
uses it to correctly compile & fill all missing kernel config options.

[1] http://lists.openembedded.org/pipermail/openembedded-core/2014-October/098253.html

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-yocto: test for empty artifacts
Bruce Ashfield [Tue, 30 Aug 2016 16:49:05 +0000 (12:49 -0400)] 
kernel-yocto: test for empty artifacts

With the updated kernel tools, we generate a list of sccs, patches,
configs and BSP definitions as part of the meta data generation.

It is valid if there aren't any of these artifacts found (i.e. you
are just building a branch and a default config), but invoking the
tools with no inputs isn't a good idea.

To avoid this issue, we generate a string based on the artifacts
and skip calling the tools if there's nothing to do.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.8: add qemuarm device tree specification
Bruce Ashfield [Tue, 30 Aug 2016 16:49:04 +0000 (12:49 -0400)] 
linux-yocto/4.8: add qemuarm device tree specification

4.7+ requires a device tree for the arm versatile family of platforms.
We add the definition to our 4.8 linux-yocto recipes so we can continue
to boot!

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-libc-headers: Refresh musl patches against newer kernel headers version
Richard Purdie [Wed, 31 Aug 2016 07:30:35 +0000 (08:30 +0100)] 
linux-libc-headers: Refresh musl patches against newer kernel headers version

The musl patches need to be updated against the latest kernel verison
in order to apply. No functionality changes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibc-headers: update to v4.8
Bruce Ashfield [Tue, 30 Aug 2016 16:49:03 +0000 (12:49 -0400)] 
libc-headers: update to v4.8

Updating the libc-headers to use the 4.8 kernel as the default.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto-dev: bump to v4.8+
Bruce Ashfield [Tue, 30 Aug 2016 16:49:02 +0000 (12:49 -0400)] 
linux-yocto-dev: bump to v4.8+

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoperf: adapt to Makefile.config
Bruce Ashfield [Tue, 30 Aug 2016 16:49:00 +0000 (12:49 -0400)] 
perf: adapt to Makefile.config

commit 4842576cd857 [perf tools: Move config/Makefile into Makefile.config]
relocated the configuration Makefile of perf. As such, we need to adapt
our fixup routines to work with the Makefile no matter where it is.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto: introduce v4.8 recipes
Bruce Ashfield [Tue, 30 Aug 2016 16:48:59 +0000 (12:48 -0400)] 
linux-yocto: introduce v4.8 recipes

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
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: 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.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 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 agox264: remove EXTRA_OEMAKE workaround
Stefan Müller-Klieser [Fri, 26 Aug 2016 10:16:13 +0000 (12:16 +0200)] 
x264: remove EXTRA_OEMAKE workaround

The default of EXTRA_OEMAKE is already empty since commit:

OE-Core rev: aeb653861a0ec39ea7a014c0622980edcbf653fa
bitbake.conf: Remove unhelpful default value for EXTRA_OEMAKE

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemtap: remove EXTRA_OEMAKE workaround
Stefan Müller-Klieser [Fri, 26 Aug 2016 10:16:12 +0000 (12:16 +0200)] 
systemtap: remove EXTRA_OEMAKE workaround

The default of EXTRA_OEMAKE is already empty since commit:

OE-Core rev: aeb653861a0ec39ea7a014c0622980edcbf653fa
bitbake.conf: Remove unhelpful default value for EXTRA_OEMAKE

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-libc-headers: remove EXTRA_OEMAKE workaround
Stefan Müller-Klieser [Fri, 26 Aug 2016 10:16:11 +0000 (12:16 +0200)] 
linux-libc-headers: remove EXTRA_OEMAKE workaround

The default of EXTRA_OEMAKE is already empty since commit:

OE-Core rev: aeb653861a0ec39ea7a014c0622980edcbf653fa
bitbake.conf: Remove unhelpful default value for EXTRA_OEMAKE

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolsof: remove EXTRA_OEMAKE workaround
Stefan Müller-Klieser [Fri, 26 Aug 2016 10:16:10 +0000 (12:16 +0200)] 
lsof: remove EXTRA_OEMAKE workaround

The default of EXTRA_OEMAKE is already empty since commit:

OE-Core rev: aeb653861a0ec39ea7a014c0622980edcbf653fa
bitbake.conf: Remove unhelpful default value for EXTRA_OEMAKE

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomusl: remove EXTRA_OEMAKE workaround
Stefan Müller-Klieser [Fri, 26 Aug 2016 10:16:09 +0000 (12:16 +0200)] 
musl: remove EXTRA_OEMAKE workaround

The default of EXTRA_OEMAKE is already empty since commit:

OE-Core rev: aeb653861a0ec39ea7a014c0622980edcbf653fa
bitbake.conf: Remove unhelpful default value for EXTRA_OEMAKE

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoifupdown: remove EXTRA_OEMAKE workaround
Stefan Müller-Klieser [Fri, 26 Aug 2016 10:16:08 +0000 (12:16 +0200)] 
ifupdown: remove EXTRA_OEMAKE workaround

The default of EXTRA_OEMAKE is already empty since commit:

OE-Core rev: aeb653861a0ec39ea7a014c0622980edcbf653fa
bitbake.conf: Remove unhelpful default value for EXTRA_OEMAKE

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel.bbclass: remove EXTRA_OEMAKE workaround
Stefan Müller-Klieser [Fri, 26 Aug 2016 10:16:07 +0000 (12:16 +0200)] 
kernel.bbclass: remove EXTRA_OEMAKE workaround

The default of EXTRA_OEMAKE is already empty since commit:

OE-Core rev: aeb653861a0ec39ea7a014c0622980edcbf653fa
bitbake.conf: Remove unhelpful default value for EXTRA_OEMAKE

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodistutils-common-base.bbclass: remove EXTRA_OEMAKE workaround
Stefan Müller-Klieser [Fri, 26 Aug 2016 10:16:06 +0000 (12:16 +0200)] 
distutils-common-base.bbclass: remove EXTRA_OEMAKE workaround

The default of EXTRA_OEMAKE is already empty since commit:

OE-Core rev: aeb653861a0ec39ea7a014c0622980edcbf653fa
bitbake.conf: Remove unhelpful default value for EXTRA_OEMAKE

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoautotools.bbclass: remove EXTRA_OEMAKE workaround
Stefan Müller-Klieser [Fri, 26 Aug 2016 10:16:05 +0000 (12:16 +0200)] 
autotools.bbclass: remove EXTRA_OEMAKE workaround

The default of EXTRA_OEMAKE is already empty since commit:

OE-Core rev: aeb653861a0ec39ea7a014c0622980edcbf653fa
bitbake.conf: Remove unhelpful default value for EXTRA_OEMAKE

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibnl: backport musl fix (strerror_r / strerror_l)
André Draszik [Fri, 26 Aug 2016 10:31:52 +0000 (11:31 +0100)] 
libnl: backport musl fix (strerror_r / strerror_l)

musl doesn't implement the non-posix compliant,
deprecated, glibc-only special version of strerror_r
that libnl had been using so far.

Backport the patch(set) that switches libnl over to
using strerror_l().

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibnl: update to v3.2.28
André Draszik [Fri, 26 Aug 2016 10:31:51 +0000 (11:31 +0100)] 
libnl: update to v3.2.28

See
  http://lists.infradead.org/pipermail/libnl/2016-August/002187.html
  http://lists.infradead.org/pipermail/libnl/2016-August/002200.html

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibnl: fix packaging mistakes
André Draszik [Fri, 26 Aug 2016 10:31:50 +0000 (11:31 +0100)] 
libnl: fix packaging mistakes

- *.la files belong into -dev packages
- the genl-ctrl-list command line utility should go to into the CLI
  package, so as to prevent the libnl-genl library package from
  pulling in all of the command line utilities (as genl-ctrl-list
  is linked against libnl-cli-3.so.200)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: include commands log file name in results.json
Markus Lehtonen [Mon, 29 Aug 2016 19:48:31 +0000 (22:48 +0300)] 
oeqa.buildperf: include commands log file name in results.json

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: include buildstats file name in results.json
Markus Lehtonen [Mon, 29 Aug 2016 19:48:30 +0000 (22:48 +0300)] 
oeqa.buildperf: include buildstats file name in results.json

No need to do lsdir magic for finding buildstats when reading results.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: show skipped tests in results, too
Markus Lehtonen [Mon, 29 Aug 2016 19:48:29 +0000 (22:48 +0300)] 
oeqa.buildperf: show skipped tests in results, too

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: convert buildstats into json format
Markus Lehtonen [Mon, 29 Aug 2016 19:48:28 +0000 (22:48 +0300)] 
oeqa.buildperf: convert buildstats into json format

Instead of archiving buildstats in raw text file format convert all
buildstats into one json-formatted file. Some redundant information,
i.e. 'Event:', 'utime:', 'stime:', 'cutime:' and 'cstime:' fields, are
dropped.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: measure io stat
Markus Lehtonen [Mon, 29 Aug 2016 19:48:27 +0000 (22:48 +0300)] 
oeqa.buildperf: measure io stat

Add data from /proc/<pid>/io to system resource measurements.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: don't use Gnu time
Markus Lehtonen [Mon, 29 Aug 2016 19:48:26 +0000 (22:48 +0300)] 
oeqa.buildperf: don't use Gnu time

Use Python standard library functionality instead of the time utility
for measuring elapsed (wall clock) time of commands. The time.* log
files are also ditched. However, the same detailed resource usage data,
previously found in time.* logs is now provided in results.json file.
This data is collected through the resource module of Python.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: rename buildstats directories
Markus Lehtonen [Mon, 29 Aug 2016 19:48:25 +0000 (22:48 +0300)] 
oeqa.buildperf: rename buildstats directories

Change directory name from 'buildstats-<test_name>' to just
'buildstats'. However, this patch adds the possibility to label
buildstats directory name with a postfix which makes it possible to save
multiple buildstats per test, for example.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: separate output dir for each test
Markus Lehtonen [Mon, 29 Aug 2016 19:48:24 +0000 (22:48 +0300)] 
oeqa.buildperf: separate output dir for each test

Store the output data of each test in an individual subdirectory instead
of storing everything in the root output directory.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: strip date from buildstats directory path
Markus Lehtonen [Mon, 29 Aug 2016 19:48:23 +0000 (22:48 +0300)] 
oeqa.buildperf: strip date from buildstats directory path

Archive buildstats in a directory like 'buildstats' instead of something
like 'buildstats/20160513120000'.

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: rename log file and implement --log-file
Markus Lehtonen [Mon, 29 Aug 2016 19:48:22 +0000 (22:48 +0300)] 
oe-build-perf-test: rename log file and implement --log-file

Rename the (main) log file of the oe-build-perf-test script from
'output.log' to 'oe-build-perf-test.log'. Also, add a new command line
option --log-file which makes it possible to use an alternative log file
name/path, if needed.  Note that the file name/path is relative to the
output directory.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: enable json-formatted results
Markus Lehtonen [Mon, 29 Aug 2016 19:48:21 +0000 (22:48 +0300)] 
oeqa.buildperf: enable json-formatted results

Automatically create a json.formatted file (results.json) in the results
directory that contains results from all tests.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: add 'product' to test result data
Markus Lehtonen [Mon, 29 Aug 2016 19:48:20 +0000 (22:48 +0300)] 
oeqa.buildperf: add 'product' to test result data

This defaults to 'oe-core' but can be defined using the
OE_BUILDPERF_PRODUCT environment variable.

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: update globalres and git even if tests failed
Markus Lehtonen [Fri, 26 Aug 2016 07:33:11 +0000 (10:33 +0300)] 
oe-build-perf-test: update globalres and git even if tests failed

Write globalres log file and commit results to Git even if some tests
failed. Now that tests do not depend on each other there should be no
risk of bogus results caused by test failures.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: treat failed measurements as errors
Markus Lehtonen [Fri, 26 Aug 2016 07:33:10 +0000 (10:33 +0300)] 
oeqa.buildperf: treat failed measurements as errors

Now failed measurements correctly cause a test failure (recorded as an
error). There should be no need to continue the test if one step fails,
especially now that the tests don't depend on each other.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: make tests independent
Markus Lehtonen [Fri, 26 Aug 2016 07:33:09 +0000 (10:33 +0300)] 
oeqa.buildperf: make tests independent

Add test set-up functionality so that the individual tests do not depend
on each other. This should make sure that a failure in one test does not
affect the results of another test. The patch also makes it reasonable
to run only a subset of the tests by using the --run-tests option.

The increase in total execution time of the full suite - caused by the
additional set-up steps - is insignificant because normally no
additional tasks need to be run. The previous test has already done all
set-up work.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: fix checking of invalid results
Markus Lehtonen [Fri, 26 Aug 2016 07:33:08 +0000 (10:33 +0300)] 
oeqa.buildperf: fix checking of invalid results

The test status check done when writing globalres log was incorrect.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoflex: fix gcc-6 failure
Andreas Müller [Tue, 30 Aug 2016 15:51:04 +0000 (17:51 +0200)] 
flex: fix gcc-6 failure

Gcc-6 does not allow c++ comments withing c-code. Files generated by flex
can fail with:

| error: C++ style comments are not allowed in ISO C90
| num_to_alloc = 1; // After all that talk, this was set to 1 anyways...

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.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 agobase-files: Add shell test quoting
Jussi Kukkonen [Tue, 30 Aug 2016 08:32:07 +0000 (11:32 +0300)] 
base-files: Add shell test quoting

tty can return "not a tt" which results in warnings when /etc/profile
is executed.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agometa-ide-support: inherit nopackages
Jackie Huang [Tue, 30 Aug 2016 09:03:22 +0000 (17:03 +0800)] 
meta-ide-support: inherit nopackages

The recipe is to generate an environment script in
do_populate_ide_support for using an IDE and it
doesn't generate packages at all, so inherit nopackages

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>