]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agoinitscripts: urandom: respect ${localstatedir} instead of hardcoding /var
André Draszik [Fri, 24 Jul 2015 12:48:46 +0000 (13:48 +0100)]
initscripts: urandom: respect ${localstatedir} instead of hardcoding /var

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoopkg: read config file from ${sysconfdir} instead of /etc
André Draszik [Fri, 24 Jul 2015 12:48:45 +0000 (13:48 +0100)]
opkg: read config file from ${sysconfdir} instead of /etc

Opkg's configure script doesn't use the value from --sysconfdir to determine
the location of the conf file, it uses the value from --with-opkgetcdir

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorsync: use ${sysconfdir} instead of hardcoding /etc
André Draszik [Fri, 24 Jul 2015 12:48:44 +0000 (13:48 +0100)]
rsync: use ${sysconfdir} instead of hardcoding /etc

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibepoxy: Don't try to use python3 during configuration
Gary Thomas [Fri, 24 Jul 2015 16:17:48 +0000 (10:17 -0600)]
libepoxy: Don't try to use python3 during configuration

The scripts use argparse which is only in Python 3.2 onwards, so to avoid
failures on hosts using 3.0 or 3.1 just look for Python 2.

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotoolchain-scripts: Extend to cover nativesdk compiler tools (e.g. nativesdk-gcc)
Richard Purdie [Tue, 28 Jul 2015 13:23:42 +0000 (14:23 +0100)]
toolchain-scripts: Extend to cover nativesdk compiler tools (e.g. nativesdk-gcc)

This is needed when we add nativesdk-gcc/binutil to an SDK. Being
present doesn't hurt in other cases.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-firmware: upgrade to commit 75cc3ef8ba6712fd72c073b17a790282136cc743
Cristian Iorga [Tue, 28 Jul 2015 13:41:07 +0000 (16:41 +0300)]
linux-firmware: upgrade to commit 75cc3ef8ba6712fd72c073b17a790282136cc743

- Intel copyright years changed;
- Advanced Micro Devices copyright years changed;

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc: Add support for nativesdk-gcc
Richard Purdie [Tue, 28 Jul 2015 13:23:37 +0000 (14:23 +0100)]
gcc: Add support for nativesdk-gcc

Being able to build a nativesdk gcc is useful, particularly in cases
where the host compiler may be of an incompatible version (or a 32
bit compiler is needed).

Sadly, building nativesdk-gcc is not straight forward. We install
nativesdk-gcc into a relocatable location and this means that its
library locations can change. "Normal" sysroot support doesn't help
in this case since the values of paths like "libdir" change, not just
base root directory of the system.

In order to handle this we do two things:

a) Add %r into spec file markup which can be used for injected paths
   such as SYSTEMLIBS_DIR (see gcc_multilib_setup()).
b) Add other paths which need relocation into a .gccrelocprefix section
   which the relocation code will notice and adjust automatically.

This patch adds tweaks to the relocation script to handle the
new section too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobinutils: Add nativesdk support
Richard Purdie [Tue, 28 Jul 2015 13:23:31 +0000 (14:23 +0100)]
binutils: Add nativesdk support

As part of adding nativesdk toolchain support, enable
nativesdk-binutils.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/classextend: Fix nativesdk double name mapping
Richard Purdie [Tue, 28 Jul 2015 13:22:53 +0000 (14:22 +0100)]
lib/oe/classextend: Fix nativesdk double name mapping

Handle the case a name has already been extended in the nativesdk case
(avoids double name extensions which can happen with nativesdk-gcc).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoharfbuzz: upgrade to 1.0.1
Cristian Iorga [Mon, 27 Jul 2015 14:43:50 +0000 (17:43 +0300)]
harfbuzz: upgrade to 1.0.1

- Update to Unicode 8.0;
- Implement Universal Shaping Engine;
- Bug fixes.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopkg-utils: fix bashism in opkg-build
Dominic Sacré [Mon, 27 Jul 2015 15:34:23 +0000 (17:34 +0200)]
opkg-utils: fix bashism in opkg-build

Fix error '[[: not found' if /bin/sh is not bash.

This issue was introduced by the recent addition of tar_ignore_error.patch
to the opkg-utils recipe.

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocross-canadian: Put links in place for uclibc and musl
Richard Purdie [Sat, 25 Jul 2015 13:47:52 +0000 (14:47 +0100)]
cross-canadian: Put links in place for uclibc and musl

gcc-cross-canadian-<arch> is only built once. It needs to target all the
different libcs, not just the currently selected one. This change
ensures that if another libc is used, symlinks are present such that the
compiler can be found. The base version is always assumed to be "glibc"
with symlinks from musl and uclibc compiler names.

This means gcc-cross-canadian is consistent regardless of which libc is
selected when its build in multimachine builds.

[YOCTO #8025]

(From OE-Core rev: 83ead626c0da75edec2833ffb1a29011ec7b83d2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoolchain-scripts: For non-glibc, pass compiler options to ensure the correct libc...
Richard Purdie [Sat, 25 Jul 2015 13:48:21 +0000 (14:48 +0100)]
toolchain-scripts: For non-glibc, pass compiler options to ensure the correct libc selection

gcc-cross-canadian-<arch> is only built once. It needs to target all the
different libcs, not just the currently selected one. This change ensures
that if another libc is used, the compiler correctly selects the right one.

[YOCTO #8025]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/qemurunner: Fix AttributeError: QemuRunner instance has no attribute 'server_socket'
Richard Purdie [Mon, 27 Jul 2015 21:15:57 +0000 (22:15 +0100)]
oeqa/qemurunner: Fix AttributeError: QemuRunner instance has no attribute 'server_socket'

If start() returns False due to create_socker() failing, stop() may still get
called and currently this gives a track back since server_socket doesn't exist.

Avoid this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonativesdk-qt4-tools: depend on nativesdk-qt4-tools only if DISTRO_FEATURES includes x11
Pascal Bach [Mon, 27 Jul 2015 13:22:58 +0000 (15:22 +0200)]
nativesdk-qt4-tools: depend on nativesdk-qt4-tools only if DISTRO_FEATURES includes x11

Currently nativesdk-qt4-tools can't be built if the DISTRO_FEATURES doesn't contain x11.
To make it build we add a dependency to x11 only if the feature is activated.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosecurity-flags: Disable PIE for coreutils, elfutils, gcc, iptables
Richard Purdie [Mon, 27 Jul 2015 11:26:30 +0000 (12:26 +0100)]
security-flags: Disable PIE for coreutils, elfutils, gcc, iptables

With gcc 5, we need to disable the PIE flags for more recipes in order
to have successful builds.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemurunner: Show last 25 line of log, not 5
Richard Purdie [Mon, 27 Jul 2015 13:28:24 +0000 (13:28 +0000)]
qemurunner: Show last 25 line of log, not 5

For debugging purposes, 5 lines often isn't useful as it doesn't even
cover a full backtrace. Show 25 instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotargetcontrol: Improve logs by outputting qemu boot log in case of failure
Richard Purdie [Mon, 27 Jul 2015 13:24:22 +0000 (13:24 +0000)]
targetcontrol: Improve logs by outputting qemu boot log in case of failure

We've had a few cases on the autobuilder where we've lost logs of
the boot and been unable to debug it further. Show this information
onto the console to be more useful.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/devtool: use new runqemu function
Paul Eggleton [Mon, 27 Jul 2015 13:04:06 +0000 (14:04 +0100)]
oeqa/selftest/devtool: use new runqemu function

Use the common code we now have to run QEMU instead of running it
ourselves, avoiding reliance on the machine showing up at 192.168.7.2.
This also makes a copy of the image rather than using -snapshot so if we
need to inspect the image after a failure, we can.

Fixes [YOCTO #7928].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/imagefeatures: remove gummiboot tests
Paul Eggleton [Mon, 27 Jul 2015 13:04:05 +0000 (14:04 +0100)]
oeqa/selftest/imagefeatures: remove gummiboot tests

These tests were _deleting_ meta-intel if it happened to appear under
COREBASE, which could have been catastrophic if there was any work in
progress in that directory. It turns out we don't even need meta-intel,
but we do need a machine that's set up appropriately (e.g.
genericx86-64). Tests that involve layers outside of OE-Core don't
really belong in OE-Core, and genericx86-64 is in meta-yocto-bsp;
however we will soon have the capability to have selftest tests in other
layers, so remove this here so we can add a fixed version in
meta-yocto-bsp after that happens.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/imagefeatures: fix RPM4 test
Paul Eggleton [Mon, 27 Jul 2015 13:04:04 +0000 (14:04 +0100)]
oeqa/selftest/imagefeatures: fix RPM4 test

* Use our new runqemu function
* Don't hard-code the RPM4 version
* Double-check the native version is RPM4
* Check that an rpm 4.x package is in the image manifest (this isn't
  strictly necessary, but "belt-and-braces" and it serves as an example
  of how to do that)
* Check that the database is working on the target
* Ensure the image actually has openssh in it so we can connect to it

Initial runqemu adaptation by Richard Purdie <richard.purdie@linuxfoundation.org>

Part of the fix for [YOCTO #7994].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/imagefeatures: fix SSH without password tests
Richard Purdie [Mon, 27 Jul 2015 13:04:03 +0000 (14:04 +0100)]
oeqa/selftest/imagefeatures: fix SSH without password tests

* We need to set EXTRA_IMAGE_FEATURES outright or existing values will
  affect the test
* For test case 1107 we need "empty-root-password" to match the behaviour
  described in the test case
* For test case 1115 we shouldn't be able to connect as root with the
  features we are setting

Test cases 1107 and 1115 have been updated in Testopia to match.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/imagefeatures: Use QemuTarget code
Richard Purdie [Mon, 27 Jul 2015 13:04:02 +0000 (14:04 +0100)]
oeqa/selftest/imagefeatures: Use QemuTarget code

Create a runqemu function which uses the QemuTarget() code from
oeqa.targetcontrol to setup the QEMU instance, with all of the added
robustness that that gives us. To do this, a datastore is needed for the
recipe in question (core-image-minimal) so we do the work needed to set
this up. We then use this runqemu function within the imagefeatures
tests instead of a hand-rolled implementation.

We can then use SSHControl to run the SSH tests rather than rolling our
own code to do that as an added bonus.

Fixed and extended by Paul Eggleton <paul.eggleton@linux.intel.com>.

Part of the fix for [YOCTO #7994].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/targetcontrol: write QemuRunner log output to a file
Paul Eggleton [Mon, 27 Jul 2015 13:04:01 +0000 (14:04 +0100)]
oeqa/targetcontrol: write QemuRunner log output to a file

If we use this outside of testimage we don't have a task log; so let's
just explicitly write the log output to a file all the time so it's
always there to look at (particularly useful when runqemu exits
immediately with an error.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/utils/qemurunner: fix error handling if runqemu exits with an error
Paul Eggleton [Mon, 27 Jul 2015 13:04:00 +0000 (14:04 +0100)]
oeqa/utils/qemurunner: fix error handling if runqemu exits with an error

* Don't wait for QEMU to start if it's never going to (because runqemu
  exited with an error)
* Don't error out if killing the process fails with "no such process"
  (we don't care if it's already dead)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/utils/qemurunner: avoid blocking on stty when running under oe-selftest
Paul Eggleton [Mon, 27 Jul 2015 13:03:59 +0000 (14:03 +0100)]
oeqa/utils/qemurunner: avoid blocking on stty when running under oe-selftest

runqemu-internal runs stty to return the terminal to its previous state
in case QEMU hasn't done that properly (which it at least used to do
when it crashed). For some reason I have yet to determine, stty blocks
(on tcsetattr() according to gdb) when run within QemuRunner() under
oe-selftest, with the result that we always wait until the timeout and
then we kill the script, which adds an extra delay after QEMU is
stopped. Naturally you would assume that this is something to do with
the nature of the terminal under which it is being run; however no
amount of playing around with stdin/stdout/stderr seemed to fix the
issue, apart from passing in subprocess.PIPE as stdin which makes stty
error out with "stty: standard input: Inappropriate ioctl for device". I
was also unable to come up with a reliable test for the terminal which
we could use inside runqemu-internal to avoid calling stty. For now, go
with the stdin=subprocess.PIPE workaround to at least avoid the delay
with minimal ill effect.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/utils/qemurunner: fix logging
Paul Eggleton [Mon, 27 Jul 2015 13:03:58 +0000 (14:03 +0100)]
oeqa/utils/qemurunner: fix logging

OE-Core commit 519e381278d40bdac79add340e4c0460a9f97e17 unfortunately
broke logging in two different ways:

1) it prevented logging to the task log from working within bitbake
   -c testimage. This is due to the logger object being set up too early
   which interferes with BitBake's own logging. If we prefix the name
   with "BitBake." everything works (and we don't need to set the
   logging level).

2) Additionally because it called the log functions on the logging
   module and not the logger object it set up, this caused the
   oe-selftest logging to start printing everything from that point
   forward.

Fix these two issues and return us to the desired behaviour for
do_testimage.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/targetcontrol: create test directory before copying rootfs image
Paul Eggleton [Mon, 27 Jul 2015 13:03:57 +0000 (14:03 +0100)]
oeqa/targetcontrol: create test directory before copying rootfs image

The test directory might not exist at this point so just go ahead and
create it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: add scripts/lib and bitbake/lib to path
Paul Eggleton [Mon, 27 Jul 2015 13:03:56 +0000 (14:03 +0100)]
oe-selftest: add scripts/lib and bitbake/lib to path

In particular, this allows us to use code from bitbake's bb module
(such as tinfoil).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/recipetool: allow templayerdir override
Christopher Larson [Thu, 16 Jul 2015 23:22:22 +0000 (16:22 -0700)]
oeqa/recipetool: allow templayerdir override

This is provided for use by subclasses.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/recipetool: add tests for appendsrcfile(s)
Christopher Larson [Thu, 16 Jul 2015 19:36:28 +0000 (12:36 -0700)]
oeqa/recipetool: add tests for appendsrcfile(s)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/recipetool: refactor / split out RecipetoolBase
Christopher Larson [Thu, 16 Jul 2015 19:35:58 +0000 (12:35 -0700)]
oeqa/recipetool: refactor / split out RecipetoolBase

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-selftest: add libdirs from BBPATH to sys.path
Christopher Larson [Mon, 13 Jul 2015 19:04:21 +0000 (12:04 -0700)]
oe-selftest: add libdirs from BBPATH to sys.path

This ensures that oeqa.selftest.* from layers are found.

[YOCTO #7625]

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-selftest: obey oeqa.selftest.__path__
Christopher Larson [Mon, 13 Jul 2015 18:53:16 +0000 (11:53 -0700)]
oe-selftest: obey oeqa.selftest.__path__

This ensures that all paths that hold selftest tests will be checked
(oeqa.selftest is a namespace package).

[YOCTO #7625]

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodevtool: also load plugins from BBPATH
Christopher Larson [Mon, 13 Jul 2015 18:43:40 +0000 (11:43 -0700)]
devtool: also load plugins from BBPATH

This makes it easier to extend, as a layer can add its own sub-commands.

Argument parsing is also separated into two steps, the same way it's done in
recipetool, as we need access to the global command-line arguments early,
before plugins are loaded, both for debugging arguments and for the bitbake
path (we need to load the bitbake module to get tinfoil, which is now needed
to load the plugins).

Rather than constructing tinfoil once and passing it through into sub-commands
for their use, we have to construct it for configuration metadata, use it, and
then shut it down, as some sub-commands call out to recipetool, which needs
its own tinfoil instance, and therefore needs to acquire the bitbake lock. If
we're still holding the lock at that point, that's clearly a problem.

[YOCTO #7625]

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorecipetool: parse global args early
Christopher Larson [Wed, 22 Jul 2015 22:10:43 +0000 (15:10 -0700)]
recipetool: parse global args early

This separates the argument parsing into two steps, which lets us apply global
settings like enabling debugging before the plugins load, so we can see the
paths where plugins are being loaded.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorecipetool: also load plugins from BBPATH
Christopher Larson [Thu, 25 Jun 2015 18:35:41 +0000 (11:35 -0700)]
recipetool: also load plugins from BBPATH

This makes it easier to extend, as a layer can add its own sub-commands.

The bitbake path setup is moved earlier, as it has to be done before
tinfoil_init.

[YOCTO #7625]

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorecipetool.append: add extralines arg to appendsrc
Christopher Larson [Fri, 26 Jun 2015 13:24:29 +0000 (06:24 -0700)]
recipetool.append: add extralines arg to appendsrc

This makes the function more reusable for other sub-commands.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorecipetool: catch BBHandledException from parsing
Christopher Larson [Mon, 29 Jun 2015 15:20:19 +0000 (08:20 -0700)]
recipetool: catch BBHandledException from parsing

This ensures that we don't see a traceback on parsing failures.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotoaster.bbclass: Fix ValueError
Ed Bartosh [Mon, 27 Jul 2015 10:55:52 +0000 (13:55 +0300)]
toaster.bbclass: Fix ValueError

Running "bitbake xxx:do_unpack" resulted in exception at the
BuildCompleted event from toaster.

The reason for this exception was usage of ':' as a field
delimiter in toasterstatlist file. As target can optionally
contain ':<task>' suffix it caused split(':') to throw exception:

File "toaster_collect_task_stats(e)", line 71, in
toaster_collect_task_stats(e=<bb.event.BuildCompleted object at
0x7f8434deed50>)
ValueError: too many values to unpack

Fixed by changing delimiter ':' -> '::'

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-target 5.1: fix for libcc1
Robert Yang [Mon, 6 Jul 2015 10:35:35 +0000 (03:35 -0700)]
gcc-target 5.1: fix for libcc1

Fixed:
* gcc 5 introduces a plugin libcc1.so, which is used by gdb, the target
gcc didn't build it in the past because gcc_cv_objdump is null, and
the error was:
gcc-5.2.0/libcc1/configure: line 14531: -T: command not found

This only happens for tar gcc as the code shows:
  if test x$build = x$host; then
    export_sym_check="objdump${exeext} -T"
  elif test x$host = x$target; then
    export_sym_check="$gcc_cv_objdump -T"
  else
    export_sym_check=
  fi

* Install libcc1.so and libcc1plugin.so to
  $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version) as lto-plugin did.

* Use sed command to fix bad RPATH iussue.

[YOCTO #7956]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc5: Upgrade from 5.1 to 5.2
Khem Raj [Fri, 24 Jul 2015 20:11:28 +0000 (13:11 -0700)]
gcc5: Upgrade from 5.1 to 5.2

This is second bugfix release in gcc5 series
All backported patches are dropped
no other patches needed any rework

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosudo: upgrade to 1.8.14p3
Ross Burton [Fri, 24 Jul 2015 14:58:11 +0000 (15:58 +0100)]
sudo: upgrade to 1.8.14p3

The licence checksum is modified according to the change of doc/LICENCE.
In specific, file://lib/util/reallocarray.c is added to LIC_FILES_CHECKSUM.

Fix out of tree builds, and explicitly enable/disable tmpfiles.d support based
on the systemd DISTRO_FEATURE to avoid non-deterministic packaging.

Based on a patch by Chen Qi <Qi.Chen@windriver.com>

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosed: Make locale depenencies glibc specific
Richard Purdie [Sat, 25 Jul 2015 13:45:26 +0000 (14:45 +0100)]
sed: Make locale depenencies glibc specific

Only glibc provides this base locale so make the dependency glibc
specific to avoid build failures with other libcs.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoupdated-rc.d: Only add dependencies in target case
Richard Purdie [Sun, 26 Jul 2015 08:05:43 +0000 (08:05 +0000)]
updated-rc.d: Only add dependencies in target case

Avoid errors like:
  ERROR: Nothing PROVIDES 'nativesdk-update-rc.d' (but virtual:nativesdk:dbus_1.8.18.bb
  DEPENDS on or otherwise requires it).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa: Add exception handling around qemu process cleanup
Richard Purdie [Sat, 25 Jul 2015 22:13:55 +0000 (22:13 +0000)]
oeqa: Add exception handling around qemu process cleanup

The qemu processes may no longer exist at the end of the test so
don't error if that is the case by ignoring any exceptions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoupdate-rc.d: Include updated-rc.d in DEPENDS
Richard Purdie [Sat, 25 Jul 2015 22:05:22 +0000 (23:05 +0100)]
update-rc.d: Include updated-rc.d in DEPENDS

If you build a user of updated-rc.d like udev, as things stand currently
nothing pulls in updated-rc.d but there is a dependency added on the
package at do_package time. This can lead to errors during rootfs
construction either with licensing. The fact its a RRECOMMEND means
the image are not deterministic.

A particularly good test case for reproducing this is:

MACHINE=A bitbake core-image-minimal
MACHINE=B bitbake core-image-minimal-initramfs

and since the second machine can find the package but not the license
manifest, a failure will result.

Extending the DEPENDS is the easy way to fix the issues.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto: introduce 4.1 versioned recipes
Bruce Ashfield [Tue, 21 Jul 2015 15:21:07 +0000 (11:21 -0400)]
linux-yocto: introduce 4.1 versioned recipes

Updating the linux-yocto kernel recipes to include a named/versioned 4.1
recipe. This will be the LTSI kernel, and the 3.14 and 3.19 kernels will
be removed in subsequent commites (once reference boards have transitioned).

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokern-tools: standalone tree configuration
Bruce Ashfield [Tue, 21 Jul 2015 15:21:05 +0000 (11:21 -0400)]
kern-tools: standalone tree configuration

Updating the kern-tools SRCREV to import the following changes:

  cbd4b7102668 patchme/updateme: unify meta directory handling
  b65075997152 configme: standalone operation

The change of note is [configme: standalone operation], which makes the
kernel configuration script free from dependencies on other parts of the
kern-tools.

With this change, we set the stage to extend kernel configuration
fragments and auditing to arbitrary trees.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto: split meta data from kernel repository
Bruce Ashfield [Tue, 21 Jul 2015 15:21:04 +0000 (11:21 -0400)]
linux-yocto: split meta data from kernel repository

The linux-yocto tree has always been a combined set of kernel changes
and configuration (meta) data carried in a single tree. While this
format is effective at keeping kernel configuration and source
modifications synchronized, it isn't always obvious to developers on
how to manipulate the meta data versus the source.

With this change, we remove the meta data processing from the
kernel-yocto class and use the external meta-data repository that
has always been used to seed the linux-yocto meta branch.

After this change, linux-yocto can no longer process combined trees,
and is simplified as a result.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoperf: Fix config file conflict with 4.1 kernels
Richard Purdie [Sat, 25 Jul 2015 13:37:58 +0000 (14:37 +0100)]
perf: Fix config file conflict with 4.1 kernels

If you setup mutlitlibs and then:

bitbake perf libb32-perf
bitbake perf libb32-perf -c cleansstate
bitbake perf libb32-perf

you will see races where the two builds get confused about which directory
they should be using and they corrupt each other.

The issue is that .config-detected is created in ${S}, not $(OUTPUT).
We can fix this by moving the file to $(OUTPUT).

[YCOTO #8043]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobyacc: upgrade to 20150711
Chen Qi [Fri, 24 Jul 2015 09:08:02 +0000 (17:08 +0800)]
byacc: upgrade to 20150711

The LIC_FILES_CHECKSUM is modified. The change is only about the
copyright time. So the licence remains the same.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: Support for qcow2
Christian Ziethén [Thu, 23 Jul 2015 14:32:28 +0000 (16:32 +0200)]
image: Support for qcow2

Add support for qcow2 image format. Implemented in the same way as
the previously existing vmdk and vdi solutions.

Signed-off-by: Christian Ziethén <christian.ziethen@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqemu: upgrade to 2.4.0-rc2
Cristian Iorga [Thu, 23 Jul 2015 08:46:03 +0000 (11:46 +0300)]
qemu: upgrade to 2.4.0-rc2

Various bugfixes.
Ongoing upgrade en route to final 2.4.0.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoboot-directdisk: Make kernel image inclusion conditional.
Christian Ziethén [Thu, 23 Jul 2015 14:32:29 +0000 (16:32 +0200)]
boot-directdisk: Make kernel image inclusion conditional.

When building for qcow2 and a dummy kernel, avoid installing
a non existing bzImage.

Signed-off-by: Christian Ziethén <christian.ziethen@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodiffstat: upgrade to 1.60
Chen Qi [Wed, 22 Jul 2015 05:50:43 +0000 (13:50 +0800)]
diffstat: upgrade to 1.60

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotcf-agent: Update to version 1.3
Randy Witt [Thu, 23 Jul 2015 22:51:37 +0000 (15:51 -0700)]
tcf-agent: Update to version 1.3

According to the Eclipse tcf team, 1.3 tcf is required for the newest
Eclipse release "mars".

[YOCTO #7886]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomklibs-native: Remove dependency on dpkg
Roy Li [Fri, 24 Jul 2015 06:15:05 +0000 (14:15 +0800)]
mklibs-native: Remove dependency on dpkg

b18618a8[mklibs-native: two fixes] should remove the dependency
on dpkg, but it is missed, so fix it.

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/qemurunner: don't assume hostname starts with qemu
Ross Burton [Thu, 23 Jul 2015 21:59:50 +0000 (22:59 +0100)]
oeqa/qemurunner: don't assume hostname starts with qemu

It's possible to customise the hostname trivially so don't assume that the
hostname hasn't been configured.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/runtime/parselogs: don't use uname to get MACHINE
Ross Burton [Thu, 23 Jul 2015 21:59:49 +0000 (22:59 +0100)]
oeqa/runtime/parselogs: don't use uname to get MACHINE

Instead of running "uname -n" on the target (which actually returns the
hostname) to get something approximating the hostname (or not, if that has been
overriden), simply fetch MACHINE from the datastore.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/imagefeatures: handle killpg victim not existing
Ross Burton [Thu, 23 Jul 2015 21:59:48 +0000 (22:59 +0100)]
oeqa/selftest/imagefeatures: handle killpg victim not existing

If Pexpect throws an exception it may be because the child has already died, in
which case killpg will fail.  Catch the latter exception silently, and output
the exception from Pexpect.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/runtime/parselogs: add more x86 log exceptions
Ross Burton [Thu, 23 Jul 2015 21:59:47 +0000 (22:59 +0100)]
oeqa/runtime/parselogs: add more x86 log exceptions

Move "fail to add MMCONFIG..." to qemux86_common as we started to also see it on
x86-64 with Linux 4.1.

Add "can't claim BAR..." to qemux86_common.

Generalise "Failed to access perfctr MSR" as the MSR number can change.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/sshcontrol: Ensure we don't trigger ssh-askpass
Richard Purdie [Thu, 23 Jul 2015 15:51:27 +0000 (16:51 +0100)]
oeqa/sshcontrol: Ensure we don't trigger ssh-askpass

If DISPLAY is set, ssh-askpass can be triggered which is not what
we want in the middle of sanity tests. We can disable this by
unsetting DISPLAY.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosed: rrec on locale-base-ru-ru, not rdep
Abdur Rehman [Thu, 23 Jul 2015 15:20:48 +0000 (20:20 +0500)]
sed: rrec on locale-base-ru-ru, not rdep

This locale package isn't guaranteed to exist, depending on the value of
GLIBC_GENERATE_LOCALES.

The value of GLIBC_GENERATE_LOCALES can be specified to not contain
locale-base-ru-ru, thus resulting in unsatisfied dependency. Its better
to remove hardcoded dependency upon locale-base-ru-ru in favor of a
recommendation, as this locale isn't always available depending upon the
value of GLIBC_GENERATE_LOCALES.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Abdur Rehman <abdur_rehman@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-libc-headers: update to 4.1
Bruce Ashfield [Tue, 21 Jul 2015 15:21:06 +0000 (11:21 -0400)]
linux-libc-headers: update to 4.1

Updating the libc-headers to match the 4.1 LTSI kernel version.

We also tweak the logic in linux-libc-headers.inc to look in the
4.x subdirectory if a 4.x kernel is specified as the header source.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: appendsrcfile: handle S == STAGING_KERNEL_DIR
Christopher Larson [Thu, 16 Jul 2015 23:23:03 +0000 (16:23 -0700)]
recipetool: appendsrcfile: handle S == STAGING_KERNEL_DIR

When determining the path from WORKDIR to the extracted sources, we're using
S, but if S is in work-shared, that's problematic and won't give us good
results, so assume 'git' for that case, warning when appropriate.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: appendsrcfile: use -D, not -d for destdir
Christopher Larson [Thu, 16 Jul 2015 15:12:00 +0000 (08:12 -0700)]
recipetool: appendsrcfile: use -D, not -d for destdir

-d is already taken for --debug.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: appendsrcfile: fix duplicate SRC_URI check
Christopher Larson [Wed, 15 Jul 2015 23:48:00 +0000 (16:48 -0700)]
recipetool: appendsrcfile: fix duplicate SRC_URI check

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/buildoptions.py: automate test case 926, archive work dir and export source
Costin Constantin [Wed, 22 Jul 2015 07:04:08 +0000 (10:04 +0300)]
oeqa/buildoptions.py: automate test case 926, archive work dir and export source

Signed-off-by: Costin Constantin <costin.c.constantin@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/buildoptions.py: automate test case 563; build directfb image
Costin Constantin [Wed, 22 Jul 2015 06:54:56 +0000 (09:54 +0300)]
oeqa/buildoptions.py: automate test case 563; build directfb image

Signed-off-by: Costin Constantin <costin.c.constantin@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocommon-glibc: define bash_cv_getcwd_malloc
Joe Slater [Tue, 21 Jul 2015 17:39:10 +0000 (10:39 -0700)]
common-glibc: define bash_cv_getcwd_malloc

We do not want bash to use internal code for getcwd() because
it can fail in certain filesystem types.  Trust that the function
in glibc is not "broken".

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/QemuRunner: don't use bb for logging
Ross Burton [Wed, 22 Jul 2015 14:20:48 +0000 (15:20 +0100)]
oeqa/QemuRunner: don't use bb for logging

Instead of using bb.note() etc for logging use logging.Logger directly, allowing
the use of QemuRunner outside of bitbake.

Also clean up the logging/errors by moving create_socket() out of
__init__()/restart() and into start().

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocronie: Upgrade v1.4.12 to v1.5.0
Amarnath Valluri [Wed, 22 Jul 2015 07:55:43 +0000 (10:55 +0300)]
cronie: Upgrade v1.4.12 to v1.5.0

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobootimg: remove previous FATIMG before creating a new one
Ricardo Neri [Wed, 15 Jul 2015 23:56:59 +0000 (16:56 -0700)]
bootimg: remove previous FATIMG before creating a new one

Since version 3.0.0 of dosfstools, mkdosfs opens the to-be-filesystem
file with O_EXCL. Since the filesystem is also opened with O_CREAT,
the -C option of mkdosfs can only succeed if FATIMG does not exists.
Thus, delete any previous FATIMG file. The file can be safely deleted
as we are inside build_fat_img because we want to create an new
FATIMG.

Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomesa-demos: Fix building demos which require GLU.
Drew Moseley [Tue, 21 Jul 2015 12:19:08 +0000 (08:19 -0400)]
mesa-demos: Fix building demos which require GLU.

Set glu_enabled when pkg-config detects GLU.  This is needed so
that HAVE_GLU is properly set to enable the GLU based demos.

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogtk+: require either x11 or directfb DISTRO_FEATURES to be set
Ross Burton [Tue, 21 Jul 2015 11:52:48 +0000 (12:52 +0100)]
gtk+: require either x11 or directfb DISTRO_FEATURES to be set

GTK+ needs either X11 or DirectFB, and fails with obscure errors if neither are present.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotune-cortexa17: add tunes for ARM Cortex-A17
Trevor Woerner [Tue, 21 Jul 2015 01:47:17 +0000 (21:47 -0400)]
tune-cortexa17: add tunes for ARM Cortex-A17

http://www.arm.com/products/processors/cortex-a/cortex-a17-processor.php

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoncurses-terminfo-base: include screen-256color
Richard Tollerton [Fri, 17 Jul 2015 19:59:28 +0000 (14:59 -0500)]
ncurses-terminfo-base: include screen-256color

Nominally tmux sets TERM=screen which we are including in
ncurses-terminfo-base. However, if tmux detects that it's running in a
terminal capable of 256-color output (e.g. xterm-256color), it will
instead use TERM=screen-256color. We aren't including that, and we ought
to be.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years ago*image.bbclass: Consolidate ROOTFS_POSTPROCESS_COMMANDs
Gary Thomas [Fri, 17 Jul 2015 12:58:00 +0000 (06:58 -0600)]
*image.bbclass: Consolidate ROOTFS_POSTPROCESS_COMMANDs

Move ROOTFS_POSTPROCESS_COMMANDs from core-image.bbclass to
image.bbclass so that images built using just image.bbclass
will benefit from them.  Without this change, an image built
using image.bbclass did not honor read-only-rootfs image feature.

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogtk+3: fix Wayland-only builds
Ross Burton [Tue, 21 Jul 2015 08:57:21 +0000 (09:57 +0100)]
gtk+3: fix Wayland-only builds

When configured with just the Wayland backend (no X11), not enough
Pango headers were included.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolttng-ust: 2.6.1 -> 2.6.2
Robert Yang [Tue, 14 Jul 2015 02:51:57 +0000 (19:51 -0700)]
lttng-ust: 2.6.1 -> 2.6.2

* Remove add-aarch64.patch since it is already in the source.
* Rename lttng-ust_2.6.1.bb -> lttng-ust_git.bb

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agou-boot: Upgrade to 2015.07 release
Otavio Salvador [Mon, 20 Jul 2015 14:10:30 +0000 (11:10 -0300)]
u-boot: Upgrade to 2015.07 release

This upgrades the U-Boot and its related recipes for the 2015.07
release.

The following recipes has been upgraded:

 - u-boot
 - u-boot-mkimage
 - u-boot-fw-utils

The patches which were applied on top of the 2015.01 release are
dropped as those are not needed in this release.

The license checksum update was due minimal changes in the text, those
have no impact in the license terms.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agovolatile-binds: correct path of command umount
Kai Kang [Mon, 20 Jul 2015 07:59:04 +0000 (15:59 +0800)]
volatile-binds: correct path of command umount

It calls /sbin/umount to stop service var-volatile-lib. But umount is
installed into directory /bin. Correct it.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite3: Upgrade 3.8.10.0 -> 3.8.10.2
Aníbal Limón [Mon, 20 Jul 2015 19:40:00 +0000 (14:40 -0500)]
sqlite3: Upgrade 3.8.10.0 -> 3.8.10.2

Minor upgrade contains fixes see [1].

[1] https://www.sqlite.org/releaselog/3_8_10_2.html

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/syslog: Removed a pointless testcase and added skip for another.
Lucian Musat [Mon, 20 Jul 2015 14:51:10 +0000 (17:51 +0300)]
oeqa/syslog: Removed a pointless testcase and added skip for another.

The testcase syslog --help was rather useless and also causing problems
on images where syslog was non-busybox, like LSB images so I removed it.
Added a skip condition for TC 202 for the same reason. If syslog is
non-busybox then the test skips.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/runtime: Added decorators for the remaining auto tests.
Lucian Musat [Fri, 17 Jul 2015 09:54:36 +0000 (12:54 +0300)]
oeqa/runtime: Added decorators for the remaining auto tests.

This helps for the automatic completion of the results in testopia.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/runtime: Added a new automated rpm test.
Daniel Istrate [Wed, 15 Jul 2015 14:39:52 +0000 (17:39 +0300)]
oeqa/runtime: Added a new automated rpm test.

testcase 195: Check rpm install/removal log file size

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/prservice: add useful failure messages to test cases
Costin Constantin [Thu, 16 Jul 2015 13:22:28 +0000 (16:22 +0300)]
oeqa/prservice: add useful failure messages to test cases

Signed-off-by: Costin Constantin <costin.c.constantin@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/recipetool: add useful failure messages to test cases
Costin Constantin [Thu, 16 Jul 2015 13:20:24 +0000 (16:20 +0300)]
oeqa/recipetool: add useful failure messages to test cases

Signed-off-by: Costin Constantin <costin.c.constantin@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/pkgdata: add useful failure messages to test cases
Costin Constantin [Thu, 16 Jul 2015 10:06:03 +0000 (13:06 +0300)]
oeqa/pkgdata: add useful failure messages to test cases

Signed-off-by: Costin Constantin <costin.c.constantin@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/runtime: Added one runtime testcase in connman.
Daniel Istrate [Wed, 15 Jul 2015 14:35:34 +0000 (17:35 +0300)]
oeqa/runtime: Added one runtime testcase in connman.

(testcase 223) Check that only one connmand runs in background.

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorpm4: Drop native RDEPENDS
Richard Purdie [Wed, 22 Jul 2015 07:08:55 +0000 (08:08 +0100)]
rpm4: Drop native RDEPENDS

Native recipes should *never* depend on target recipes since this would
cause them to rebuild every time the target changes. Before the recent
datastore changes, this happened to work. Now, this makes rpm-native
unbuildable since base-files-native doesn't exist and the code remaps
the variable.

Dropping these dependencies here is the correct way to resolve this issue
and fix an autobuilder selftest failure.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipeutils.py: get_recipe_pv_without_srcpv remove prefixes from pv
Aníbal Limón [Wed, 15 Jul 2015 00:43:57 +0000 (19:43 -0500)]
recipeutils.py: get_recipe_pv_without_srcpv remove prefixes from pv

Some recipes uses v or r prefixes in versions that makes wrong
comparisions over recipes like lz4 r123 > 128.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe/recipeutils.py: get_recipe_upstream_info update to get revision
Aníbal Limón [Wed, 15 Jul 2015 00:43:56 +0000 (19:43 -0500)]
oe/recipeutils.py: get_recipe_upstream_info update to get revision

Bitbake fetcher latest_versionstring now returns a tuple with (version,
 revision) that helps SCM's like git to build current upstream version.

[YOCTO #7605]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe/recipeutils.py: get_recipe_upstream_info only use sfx and pfx when exits
Aníbal Limón [Wed, 15 Jul 2015 00:43:55 +0000 (19:43 -0500)]
oe/recipeutils.py: get_recipe_upstream_info only use sfx and pfx when exits

Don't use pfx and sfx when not exist because cause formatting errors
like 2.9HASH instead of 2.9+gitAUTOINC+HASH.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibx11: update Upstream-Status on a merged patch
Ross Burton [Mon, 20 Jul 2015 11:00:49 +0000 (12:00 +0100)]
libx11: update Upstream-Status on a merged patch

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest: Fix imagefeature testcases not to interfere with testimage on AB
Daniel Istrate [Tue, 21 Jul 2015 12:54:40 +0000 (15:54 +0300)]
oeqa/selftest: Fix imagefeature testcases not to interfere with testimage on AB

[YOCTO #8017] - selftest does not use pkill qemu
[YOCTO #7976] - tests do not touch .ssh/known_hosts
              - don't hardcode qemu IP
[YOCTO #8027] - use qemu nographic
Extra: removed unnecessary assert for bitbake and runCmd status

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoRevert "create-pull-request: Fix error on 2.0 versions of git"
Ross Burton [Fri, 17 Jul 2015 11:29:13 +0000 (12:29 +0100)]
Revert "create-pull-request: Fix error on 2.0 versions of git"

This breaks create-pull-request for git <2, which is many people.

This reverts commit 7ee64ea60ede5477b2f9a355d93bdc556e6b7895.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosanity.bbclass: Remove check if /tmp is writable
Mariano Lopez [Wed, 15 Jul 2015 11:21:51 +0000 (11:21 +0000)]
sanity.bbclass: Remove check if /tmp is writable

The check would be managed using BB_DISKMON_DIRS so this
removes the check from the sanity class.

[YOCTO #8000]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonative: Move virtclass override to earlier so DEPENDS is handled correctly
Richard Purdie [Tue, 21 Jul 2015 11:16:03 +0000 (12:16 +0100)]
native: Move virtclass override to earlier so DEPENDS is handled correctly

Currently the virtclass override is added too late to be taken into
account when DEPENDS and other variables are processed by the virtclass
extension code. This sets the overrides in a more optimal place, meaning
they are accounted for in variables like DEPENDS.

Recipes in meta-oe like libwmf-native showed the issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>