]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
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>
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 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 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 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 agotoaster: fire TaskArtifacts event
Ed Bartosh [Thu, 1 Sep 2016 08:56:03 +0000 (11:56 +0300)]
toaster: fire TaskArtifacts event

Fire TaskArtifact MetaData event for deployment tasks when task
either completed or skipped. Event contains full task id
(recipe+task) and list of deployment artifacts from sstate
manifest.

This should allow Toaster to always get notified about deployment
artifacts produced by the build.

[YOCTO #9869]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuildtools-tarball/uninative-tarball: Fix for working with populate_sdk under sstate...
Richard Purdie [Fri, 2 Sep 2016 22:47:54 +0000 (23:47 +0100)]
buildtools-tarball/uninative-tarball: Fix for working with populate_sdk under sstate control

Firstly, these recipes are not target (MACHINE) specific so they should
by SDK_ARCH based, not PACKAGE_ARCH.

Also fix use of SDK_DEPLOY -> SDKDEPOLYDIR after other recent changes.

Together these fixes avoid various build failures and ensure the tarballs
only get built once rather than multiple times.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_ext: Put populate_sdk_ext under sstate control
Richard Purdie [Fri, 2 Sep 2016 10:22:41 +0000 (11:22 +0100)]
populate_sdk_ext: Put populate_sdk_ext under sstate control

Adding populate_sdk task to SSTATE_TASKS should make sstate machinery
to generate manifest for deployed ext sdk artifacts and do final deployment
to SDK_DEPLOY.

This is done in a similar way to do_populate_sdk in a previous patch.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_base: Put populate_sdk under sstate control
Ed Bartosh [Thu, 1 Sep 2016 08:56:02 +0000 (11:56 +0300)]
populate_sdk_base: Put populate_sdk under sstate control

Adding populate_sdk task to SSTATE_TASKS should make sstate machinery
to generate manifest for deployed sdk artifacts and do final deployment
to SDK_DEPLOY.

Set stamp-extra-info flag for do_populate_sdk task. This flag is used
in the name of sstate manifest. Setting it to predetermined value for
populate_sdk task should help to get correct manifest filenames when
processing runQueueTask events.

The do_populate_sdk function is also executed by do_populate_sdk_ext
so in order to avoid conflicts with the sstate postfuncs, split
the main code into a separate function.

We also need to set SDKDEPLOYDIR as do_populate_sdk_ext expects
it in order not to break ESDK generation.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosstate: Avoid duplicate README file errors for sdk under sstate control
Richard Purdie [Fri, 2 Sep 2016 10:22:19 +0000 (11:22 +0100)]
sstate: Avoid duplicate README file errors for sdk under sstate control

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage.bbclass: Put image_complete under sstate control
Ed Bartosh [Thu, 1 Sep 2016 08:56:01 +0000 (11:56 +0300)]
image.bbclass: Put image_complete under sstate control

Adding image_complete task should make sstate machinery
to generate manifest for deployed images and do final
deployment to DEPLOY_DIR_IMAGE.

Made sure IMGDEPLOYDIR doesn't contain images from past deployments
to prevent them to be included into sstate manifests.

Set stamp-extra-info flag for do_image_complete task. This flag
is used in the name of sstate manifest. Setting it to predetermined
value for image_complete should help to get correct manifest
filenames when processing runQueueTask events.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_base: Deploy images to SDKDEPLOYDIR
Richard Purdie [Thu, 1 Sep 2016 08:56:00 +0000 (11:56 +0300)]
populate_sdk_base: Deploy images to SDKDEPLOYDIR

Changed deployment directory from DEPLOY_DIR_IMAGE to
SDKDEPLOYDIR to make sstate machinery to do final deployment and
generate manifest.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage: Deploy images to IMGDEPLOYDIR
Ed Bartosh [Thu, 1 Sep 2016 08:56:00 +0000 (11:56 +0300)]
image: Deploy images to IMGDEPLOYDIR

Changed deployment directory from DEPLOY_DIR_IMAGE to
IMGDEPLOYDIR to make sstate machinery to do final deployment and
generate manifest.

Renamed variable deploy_dir to deploy_dir_image in selftest code
to avoid confusion with DEPLOYDIR variable.

Updated the code of rootfs.py:Rootfs class to use IMGDEPLOYDIR variable
as it's now used as a new deployment destination.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage/populate_sdk_base: Add *DEPLOYDIR variables
Ed Bartosh [Wed, 31 Aug 2016 11:02:50 +0000 (14:02 +0300)]
image/populate_sdk_base: Add *DEPLOYDIR variables

This is a preparation for changing deployment directory for image
and populate_sdk targets.

Introduced new variables, IMGDEPLOYDIR and SDKDEPLOYDIR. Set it to current
image/sdk deployment locations.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
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 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 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 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 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 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 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>
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 agogstreamer1.0-plugins-bad: add packageconfig for egl
Nicolas Dechesne [Mon, 29 Aug 2016 09:40:35 +0000 (10:40 +0100)]
gstreamer1.0-plugins-bad: add packageconfig for egl

In commit 9c3a94aea1d (gstreamer1.0-plugins-bad: Move EGL requirement for
Wayland), --enable-egl was explicitely added to the wayland packageconfig. While
this is correct that enabling wayland requires egl, it should be possible to
enable egl without wayland, even when using X11. For example, glimagesink can be
used for GPU based color conversion using EGL/GLES.

As such, let's make egl and wayland two separate PACKAGECONFIG flags.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oe/patch: commit with a dummy user/email when PATCHTOOL=git
Paul Eggleton [Mon, 29 Aug 2016 08:40:38 +0000 (20:40 +1200)]
lib/oe/patch: commit with a dummy user/email when PATCHTOOL=git

When using PATCHTOOL = "git", the user of the system is not really the
committer - it's the build system itself. Thus, specify "dummy" values
for username and email instead of using the user's configured values.
Various parts of the devtool code that need to make commits have also
been updated to use the same logic.

This allows PATCHTOOL = "git" and devtool to be used on systems where
git user.name / user.email has not been set (on versions of git where
it doesn't default a value under this circumstance).

If you want to return to the old behaviour where the externally
configured user name / email are used, set the following in your
local.conf:

PATCH_GIT_USER_NAME = ""
PATCH_GIT_USER_EMAIL = ""

Fixes [YOCTO #8703].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-selftest: devtool: fix test after recent change
Paul Eggleton [Mon, 29 Aug 2016 07:27:59 +0000 (19:27 +1200)]
oe-selftest: devtool: fix test after recent change

OE-Core commit d3057cba0b01484712fcee3c52373c143608a436 fixed handling
of wildcard bbappends, which means that this test's expectations about
the bbappend file name are no longer met. devtool finish is meant to use
wildcard bbappends so fix the test accordingly.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglibc-scripts: add RDEPENDS on libsotruss package required by sotruss script
Jagadeesh Krishnanjanappa [Sun, 28 Aug 2016 18:31:03 +0000 (00:01 +0530)]
glibc-scripts: add RDEPENDS on libsotruss package required by sotruss script

It solves below error observed on qemux86 target:
root@qemux86:~# sotruss ./hello
ERROR: ld.so: object '/usr/$LIB/audit/sotruss-lib.so' cannot be loaded as audit
interface: cannot open shared object file; ignored.
Hello World
root@qemux86:~#

With this change, we get:
root@qemux86:~# sotruss ./hello
          hello -> libc.so.6      :*__libc_start_main(0x8048300, 0x1,
0xbfc86274)
          hello -> libc.so.6      :*puts(0x804851c, 0xb74af000, 0x0)
Hello World
root@qemux86:~#

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowebkitgtk: fix racy double build of WebKit2-4.0.gir
Alexander Kanavin [Mon, 29 Aug 2016 14:30:22 +0000 (17:30 +0300)]
webkitgtk: fix racy double build of WebKit2-4.0.gir

This occasionally triggered autobuilder errors where the .gir file
appeared truncated to introspection tools.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowebkitgtk: upgrade to 2.12.4
Alexander Kanavin [Mon, 29 Aug 2016 14:30:21 +0000 (17:30 +0300)]
webkitgtk: upgrade to 2.12.4

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoasciidoc: fix upstream version check
Alexander Kanavin [Mon, 29 Aug 2016 14:30:20 +0000 (17:30 +0300)]
asciidoc: fix upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.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 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>