]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agorpm: remove spurious build dependencies
Ross Burton [Mon, 19 Oct 2015 21:42:47 +0000 (22:42 +0100)]
rpm: remove spurious build dependencies

make, patch and binutils are assumed to exist on the host, so there's no need to
have them in DEPENDS and can result in the building of make-native for no good
reason.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc-5.2: Fix various _FOR_BUILD and related variables
Mark Hatle [Mon, 19 Oct 2015 15:29:49 +0000 (10:29 -0500)]
gcc-5.2: Fix various _FOR_BUILD and related variables

When doing a FOR_BUILD thing, you have to override CFLAGS with
CFLAGS_FOR_BUILD. And if you use C++, you also have to override
CXXFLAGS with CXXFLAGS_FOR_BUILD.
Without this, when building for mingw, you end up trying to use
the mingw headers for a host build.

The same goes for other variables as well, such as CPPFLAGS,
CPP, and GMPINC.

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosudo: fix file permission for /etc/pam.d/sudo
Chen Qi [Mon, 19 Oct 2015 03:16:41 +0000 (11:16 +0800)]
sudo: fix file permission for /etc/pam.d/sudo

The file permission should be 0644 instead of 0664.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoopenssh: fix file permission for /etc/pam.d/sshd
Chen Qi [Mon, 19 Oct 2015 03:16:40 +0000 (11:16 +0800)]
openssh: fix file permission for /etc/pam.d/sshd

The file permission should be 0644 instead of 0755.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosanity.bbclass: expand warning when chmod fails
Alex Franco [Fri, 16 Oct 2015 22:51:12 +0000 (17:51 -0500)]
sanity.bbclass: expand warning when chmod fails

As suggested, add exception message to warning in
sanity.bbclass when chmod fails on TMPDIR.

[YOCTO #7669]

Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopopulate SDK: prepare calling of bb.utils for exceptions
Benjamin Esquivel [Fri, 16 Oct 2015 21:50:08 +0000 (16:50 -0500)]
populate SDK: prepare calling of bb.utils for exceptions

bb.utils.remove, bb.utils.movefile and bb.utils.mkdirhier can throw
exceptions that need handling and proper error messages
more work is required for these methods to handle properly the
exceptions that can be raised within the various OS calls they make
but this is a start to at least not hide the errors in the requested
operations

[YOCTO#8213]

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodevtool: handle virtual providers
Paul Eggleton [Wed, 14 Oct 2015 18:19:23 +0000 (19:19 +0100)]
devtool: handle virtual providers

For modify / extract / upgrade, if the specified "recipe" is not
actually a recipe but a virtual target such as virtual/kernel, map it
correctly to the actual recipe and make sure we use that name within the
workspace. Thanks to Chris Larson for reminding me this was still broken
and for a hint on how to fix it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibc-package: Fix localedef multilib dependency issues
Richard Purdie [Mon, 19 Oct 2015 16:41:16 +0000 (17:41 +0100)]
libc-package: Fix localedef multilib dependency issues

Building nativesdk-glibc-locale results in many messages like:

QA Issue: nativesdk-locale-base-en-sg rdepends on localedef, but it isn't a build dependency? [build-deps]

It should depend on ${MLPREFIX}localedef, not just localedef
to fix these warnings.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoolchain-shar-extract.sh: print full-length title underline
Paul Eggleton [Mon, 19 Oct 2015 16:33:12 +0000 (17:33 +0100)]
toolchain-shar-extract.sh: print full-length title underline

Print a line that's the full length of the title that it's underneath.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: detect and warn if running in OE environment
Paul Eggleton [Mon, 19 Oct 2015 16:33:11 +0000 (17:33 +0100)]
classes/populate_sdk_ext: detect and warn if running in OE environment

If you run the extensible SDK environment setup script in a shell
session where oe-init-build-env has been run already, and attempt to use
the two together, strange things happen - you may not even be running
devtool from the extensible SDK, but the OE tree. This isn't a supported
use case anyway, so show a warning recommending starting a new shell
session.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: add note to env setup script
Paul Eggleton [Mon, 19 Oct 2015 16:33:10 +0000 (17:33 +0100)]
classes/populate_sdk_ext: add note to env setup script

Print a note at the end of the environment setup script pointing to
devtool.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: prevent image construction from executing on install
Paul Eggleton [Mon, 19 Oct 2015 16:33:09 +0000 (17:33 +0100)]
classes/populate_sdk_ext: prevent image construction from executing on install

In order to prepare the build system within the extensible SDK, we
actually go ahead and build the targets specified by SDK_TARGETS (by
default the image the SDK was built for). Assuming that's an image, we
don't actually need to build the image itself - we just need to have
everything done up to the point before building the image, so that we
have everything needed in the sysroot.

In order to do this, create temporary bbappends for each of the targets
in the workspace layer that stub out do_rootfs and related tasks if they
exist. This is a little bit of a hack but is the least intrusive fix at
this point. To make things a bit tidier, I have split out the
preparation commands into a separate script so we can run that in the
appropriate environment rather than all the commands separately.

Fixes [YOCTO #7590].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: consistent indentation
Paul Eggleton [Mon, 19 Oct 2015 16:33:08 +0000 (17:33 +0100)]
classes/populate_sdk_ext: consistent indentation

Make indentation consistent here in preparation for the changes that
follow.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/runtime: Fix setUp and tearDown methods
Mariano Lopez [Thu, 15 Oct 2015 06:29:38 +0000 (06:29 +0000)]
oeqa/runtime: Fix setUp and tearDown methods

Currently some of the runtime test overwrites
the setUp and tearDown methods provided by
oeRuntimeTest, this will avoid some checks
required when running the test suit.

This patch changes the setUp and tearDown methods
for their local counterparts, so when these
tests are called, it will run the parent setUp
and tearDown and also the local ones.

[YOCTO #8465]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooetest: Add tearDownLocal class
Mariano Lopez [Thu, 15 Oct 2015 06:29:37 +0000 (06:29 +0000)]
oetest: Add tearDownLocal class

In the current state there are some runtime test that
don't run the tearDown method fromm oeRuntimeTest class
because the tearDown class is overwritten in the child
class.

This change adds tearDownLocal method in oeRuntimeTest
class that will run after tearDown. This method can be
overwritten in the child classes to implement specific
test functionality.

[YOCTO #8465]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotest-empty-image: rename from core-image-empty
Alex Franco [Wed, 7 Oct 2015 15:51:12 +0000 (10:51 -0500)]
test-empty-image: rename from core-image-empty

As the empty image isn't a "core" image, and it's meant for testing

Additionally, don't set LICENSE as it is inherited from image

[YOCTO #7664]

Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoscripts/gen-lockedsig-cache: fix race with temp file creation
Paul Eggleton [Fri, 16 Oct 2015 10:34:39 +0000 (11:34 +0100)]
scripts/gen-lockedsig-cache: fix race with temp file creation

As part of populating the sstate-cache with an artifact (.tgz file) we
create a temp file and then atomically move it to the final name. Due to
the glob used in this script such temp files were being matched, and
between the time they were matched and the time the script started
copying files, the temp file may have vanished.

This fixes random "No such file or directory" failures building the
extensible SDK on build setups where the sstate-cache directory is shared
amongst multiple build machines.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoimage-live: make SYSLINUX_ROOT changable in image recipes
Chris Hallinan [Wed, 14 Oct 2015 16:14:35 +0000 (12:14 -0400)]
image-live: make SYSLINUX_ROOT changable in image recipes

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotoolchain-shar-extract.sh: provide proper path for env_setup_script
Maxin B. John [Thu, 15 Oct 2015 07:00:40 +0000 (10:00 +0300)]
toolchain-shar-extract.sh: provide proper path for env_setup_script

The toolchain install script suggest the user to source env_setup_script
from wrong path now. eg:

" Each time you wish to use the SDK in a new shell session, you need to
source the environment setup script e.g.
$ . /opt/poky/2.0//opt/poky/2.0/environment-setup-armv5e-poky-linux-gnueabi
"

fix it.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoclasses/base: provide hints on PACKAGECONFIG error
Joe MacDonald [Wed, 14 Oct 2015 19:27:53 +0000 (15:27 -0400)]
classes/base: provide hints on PACKAGECONFIG error

Commit 771f89498c introduces an error message that is very rarely hit and
when it is, it is usually easy to trace the root cause very quickly.  The
information provided in the error message isn't enough to lead you back to
the actual failure, however, so expand upon it a bit, pinpointing the
specific package and flag that fails.

Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodevtool: extract: fix error handling
Paul Eggleton [Wed, 14 Oct 2015 15:43:24 +0000 (16:43 +0100)]
devtool: extract: fix error handling

If recipe parsing fails we need to exit out instead of attempting to use
the data object that's set to None, which resulted in a traceback.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agometadata_scm: rewrite git hash logic
Ross Burton [Tue, 13 Oct 2015 14:52:20 +0000 (15:52 +0100)]
metadata_scm: rewrite git hash logic

The code to get the git and branch hash for the current commit in a specific
repository was quite complex and prone to breakage, replace it with subprocess
and git rev-parse.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-yocto-custom: fix typo in Upstream-Status tag
Ross Burton [Tue, 13 Oct 2015 12:56:22 +0000 (13:56 +0100)]
linux-yocto-custom: fix typo in Upstream-Status tag

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogrub-efi, gummiboot: Emit correct path in startup.nsh
Khem Raj [Sat, 10 Oct 2015 01:53:25 +0000 (01:53 +0000)]
grub-efi, gummiboot: Emit correct path in startup.nsh

when we generate hddimage and use it to prepare SD card
using scripts/contrib/mkefidisk.sh as described here

http://elinux.org/Minnowboard:MinnowMaxYoctoProject

The content of startup.nsh contains

bootx64.efi

but this file is actually not in same dir as startup.nsh
its in /EFI/BOOT so for this to work entry in startup.nsh
should be

fs0:\EFI\BOOT\bootx64.efi

Otherwise the image is D-O-A

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocoreutils: fix for native and nativesdk
Robert Yang [Sat, 10 Oct 2015 07:04:29 +0000 (00:04 -0700)]
coreutils: fix for native and nativesdk

The do_install_append is used for moving/renaming for ALTERNATIVE, but
it breaks native and nativesdk, for example there is no ln, but
ln.coreutils, that makes coreutils-native or nativesdk-coreutils doesn't
work. This patch fixes the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc-4.x: fix wrong warning when using the universal zero initializer {0}
Kai Kang [Sat, 10 Oct 2015 07:27:07 +0000 (15:27 +0800)]
gcc-4.x: fix wrong warning when using the universal zero initializer {0}

When I upgrade efivar to 0.21, it fails to compile with error messages:

| linux.c:850:9: error: missing braces around initializer
[-Werror=missing-braces]
|   struct ifreq ifr = { 0, };
|          ^

It is a known issue of gcc. Backport patch from

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119

to fix wrong warning when using the universal zero initializer {0}.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotzdata: reinstate changes reverted in 2014c upgrade
Paul Eggleton [Mon, 12 Oct 2015 13:49:11 +0000 (14:49 +0100)]
tzdata: reinstate changes reverted in 2014c upgrade

OE-Core commit 57af3fb9662106f0a65a1b4edf83e2398be0a8f1 upgraded tzdata
but also reverted a couple of changes to SUMMARY and LIC_FILES_CHKSUM.
Reinstate these (with an update to the README md5 value since that has
changed slightly, without any change to the licensing statements
within).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobuild-compare: drop PATCHTOOL setting
Paul Eggleton [Mon, 12 Oct 2015 13:49:10 +0000 (14:49 +0100)]
build-compare: drop PATCHTOOL setting

We don't need PATCHTOOL to be set to git in this recipe, and setting it
that way requires that the running user has git user & email configured,
which on a build server it might well not be.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocommon-licenses: use correct GFDL-1.1 license text
Paul Eggleton [Mon, 12 Oct 2015 13:49:09 +0000 (14:49 +0100)]
common-licenses: use correct GFDL-1.1 license text

It seems that the GFDL 1.1 license file that was originally committed
was actually the 1.2 version. Replace it with the 1.1 version fetched
from http://www.gnu.org/licenses/old-licenses/fdl-1.1.txt.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolib/oe/image.py: Fix dependency handling for compressed types
Otavio Salvador [Tue, 13 Oct 2015 15:29:37 +0000 (12:29 -0300)]
lib/oe/image.py: Fix dependency handling for compressed types

The dependency code needs to also include the dependency of base
types. For example:

 - sdcard.gz image with ext4

The dependency chain needs to include:

 - sdcard
 - ext4
 - gz

Until this change, the ext4 dependency were not being taken into
account when using the compressed one.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobash: Disable custom memory allocator
Aníbal Limón [Fri, 9 Oct 2015 22:21:44 +0000 (17:21 -0500)]
bash: Disable custom memory allocator

Bash is failing trying to allocate memory [1] using the custom
memory allocator if we disable it the issue is fixed.

The major distributions also disabled by default [2], so we
don't have a good reason to use it.

The underlying issue is due to bash’s malloc using brk() calls
to allocate memory, which fail when address randomization is
enabled in kernel. sbrk() based custom allocators are obsolete.
There may be some performance impact of this however correctness
is more important.

[YOCTO #8452]

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8452#c0
[2] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8452#c5

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoicu: fix install race
Ross Burton [Fri, 9 Oct 2015 16:50:41 +0000 (17:50 +0100)]
icu: fix install race

ICU was invoking install-local twice in parallel which can lead to install
failures as one install deletes files the other is attempting to chown.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowebkitgtk, gcr, libsecret: force ARM mode
Martin Jansa [Fri, 9 Oct 2015 15:11:29 +0000 (17:11 +0200)]
webkitgtk, gcr, libsecret: force ARM mode

* gcr, libsecret are new since switch to gcc 5.2
* webkitgtk is old but it was removed while migrating from
  webkit-gtk to webkitgtl (like REQUIRED_DISTRO_FEATURES were) :/

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogtk+3: gtk3-demo needs libgl
Jussi Kukkonen [Fri, 9 Oct 2015 12:20:55 +0000 (15:20 +0300)]
gtk+3: gtk3-demo needs libgl

The demo app uses OpenGL (within a GtkGLArea): it needs a runtime
dependency on a GL library. Current GTK+ can only handle
full GL (libGL.so.1) so RDEPEND on libgl.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolib/oe/distro_check: Remove '_proxy' on dict values used by urllib.open
Leonardo Sandoval [Thu, 8 Oct 2015 09:11:55 +0000 (09:11 +0000)]
lib/oe/distro_check: Remove '_proxy' on dict values used by urllib.open

There are two ways to pass the proxies values into urllib.open: exporting
the environment variables *_proxy and passing as dictionary into the
urllib.open call. The latter is currenty used and values should not have
the '_proxy' string, so removing it. Also, ignore uppercase proxies, these
are not taken into account by the library.

Tested on a network with proxy, adding 'inherit +="distrodata"' on local.conf
with the following commands

    for distrotask in distrodataall distro_checkall checklicenseall; do
        bitbake universe -c $distrotask
    done

[YOCTO #7567]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocups: fix non-deterministic xinetd behaviour
Ross Burton [Wed, 7 Oct 2015 22:58:24 +0000 (23:58 +0100)]
cups: fix non-deterministic xinetd behaviour

cups configure looks at the *host* file system to decide if and how to install
xinetd files, resulting in non-deterministic builds.

Solve this by adding a PACKAGECONFIG for xinetd and pass it the correct path to
use if enabled.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocronie: clean up bugtracker info
Maxin B. John [Wed, 7 Oct 2015 03:33:00 +0000 (06:33 +0300)]
cronie: clean up bugtracker info

Update bugtracker web address

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoirda-utils: clean up bugtracker info
Maxin B. John [Wed, 7 Oct 2015 03:33:21 +0000 (06:33 +0300)]
irda-utils: clean up bugtracker info

Update bugtracker web address

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoscreen: fix CVE-2015-6806
Maxin B. John [Wed, 7 Oct 2015 02:53:38 +0000 (05:53 +0300)]
screen: fix CVE-2015-6806

Backport a patch to fix CVE-2015-6806

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agokbd: provide a workaround for build failures
Maxin B. John [Wed, 7 Oct 2015 03:20:06 +0000 (06:20 +0300)]
kbd: provide a workaround for build failures

An easy workaround for kbd build failure is to disable
parallel make install for now.

[YOCTO #7436]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomachine/qemu: Fix OpenGL/GLX support with xserver-xorg.
Carlos Alberto Lopez Perez [Tue, 6 Oct 2015 15:00:20 +0000 (17:00 +0200)]
machine/qemu: Fix OpenGL/GLX support with xserver-xorg.

  * The Xorg server needs to load the GLX extension in order to
    enable proper OpenGL support.

  * Before this patch, glxinfo aborted with:

      root@qemux86:~# glxinfo
      name of display: :0.0
      Error: couldn't find RGB GLX visual or fbconfig

  * After this patch, it works as expected:

      root@qemux86:~# glxinfo | grep " render"
      direct rendering: Yes
      OpenGL renderer string: Software Rasterizer

Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobusybox.inc: remove redundant @DATADIR@ replacement
Andre McCurdy [Mon, 5 Oct 2015 19:26:11 +0000 (12:26 -0700)]
busybox.inc: remove redundant @DATADIR@ replacement

The busybox defconfig doesn't contain a @DATADIR@ marker, so
the attempt to replace it in do_prepare_config is redundant.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinsane.bbclass: remove misleading path in warning
Maxin B. John [Mon, 5 Oct 2015 06:09:34 +0000 (09:09 +0300)]
insane.bbclass: remove misleading path in warning

cross-compilation warning from insane.bbclass is slightly misleading.
So, remove the misleading path from warning.

[YOCTO #7540]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoiptables: only check libnetfilter-conntrack when libnfnetlink is enabled
Kai Kang [Wed, 30 Sep 2015 07:47:17 +0000 (15:47 +0800)]
iptables: only check libnetfilter-conntrack when libnfnetlink is enabled

Package libnetfilter-conntrack depends on package libnfnetlink. iptables
checks package libnetfilter-conntrack whatever its package config
libnfnetlink is enabled or not. When libnfnetlink is disabled but
package libnetfilter-conntrack exists, it fails randomly with:

| In file included from .../iptables/1.4.21-r0/iptables-1.4.21/extensions/libxt_connlabel.c:8:0:
| .../tmp/sysroots/qemumips/usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h:14:42: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory
| compilation terminated.
| GNUmakefile:96: recipe for target 'libxt_connlabel.oo' failed

Only check libnetfilter-conntrack when libnfnetlink is enabled to fix it.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoos-release: fix do_compile() when RPM signing is enabled
Markus Lehtonen [Mon, 5 Oct 2015 07:43:11 +0000 (10:43 +0300)]
os-release: fix do_compile() when RPM signing is enabled

do_compile() task failed when RPM signing was in use.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoreadline: actually apply readline63-003 (aka CVE-2014-2524)
Ross Burton [Tue, 6 Oct 2015 13:04:20 +0000 (14:04 +0100)]
readline: actually apply readline63-003 (aka CVE-2014-2524)

This file wasn't named as a patch, nor told to apply explicity, so it was just
unpacked to the work directory and not applied.  Rename the file so the patch is
applied correctly.

(thanks to Petter Mabäcker <petter@technux.se> for spotting this)

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorpm: fix return without value in patch
Ross Burton [Tue, 6 Oct 2015 13:03:13 +0000 (14:03 +0100)]
rpm: fix return without value in patch

The error patch in rpm-check-rootpath-reasonableness.patch did a bare return
from a function that should be returning an int.  As this is the error path,
return -1 instead.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoRevert "qemu-native: Enable temporary debug info as default."
Aníbal Limón [Thu, 1 Oct 2015 21:44:07 +0000 (16:44 -0500)]
Revert "qemu-native: Enable temporary debug info as default."

We enabled qemu-native debug builds for debug [YOCTO #8143] now
is fixed and we don't need it for release.

This reverts commit 1fa9a0cc6e4c80a5a2bf40331390ae9da71686c2.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-yocto/4.1: drm/i915 backports
Bruce Ashfield [Fri, 2 Oct 2015 20:16:50 +0000 (16:16 -0400)]
linux-yocto/4.1: drm/i915 backports

Updating the SRCREVs to integrate the following backports:

  52a4a9f4a2b4 drm/i915/gen8: Initialize page tables
  a95cb62f8e85 drm/i915: Remove unnecessary gen8_ppgtt_unmap_pages
  a24d98fc488d drm/i915: Remove _entry from PPGTT page structures

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/utils/qemurunner: Add support for Unicode from qemu
Mariano Lopez [Thu, 1 Oct 2015 10:40:47 +0000 (10:40 +0000)]
oeqa/utils/qemurunner: Add support for Unicode from qemu

The current state of qemurunner will drop the Unicode
characters received from qemu, this is because error
report web had problems with Unicode characters; now
that the server support Unicode, it is possible to
log all the output from qemu. So far the only Unicode
character seen is the copyright symbol.

This patch allows to get Unicode characters from the qemu
target and save the log in an UTF-8 file for latter use.

[YOCTO #8225]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoreport-error.bbclass: Support Unicode reports
Mariano Lopez [Thu, 1 Oct 2015 10:40:46 +0000 (10:40 +0000)]
report-error.bbclass: Support Unicode reports

Currently error-report doesn't manage Unicode because
the files are opened with the default codec.

This patch changes the codec of the files to UTF-8,
this way the reports will include Unicode characters.
This is useful for the qemu output when doing the
testimage task.

[YOCTO #8225]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoudev: add PROVIDES = "libgudev"
Andreas Müller [Fri, 2 Oct 2015 20:27:21 +0000 (22:27 +0200)]
udev: add PROVIDES = "libgudev"

With the last update of systemd libgudev was splitted out of systemd. To make
packages depending on libgudev happy, a recipe building libgudev was created in
meta-oe and the dependencies were modified from udev to libgudev.

This works fine for distros using systemd as init system, but distros not using
build udev which provides libgudev.

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/image.py: Add image generation for companion debug filesystem
Mark Hatle [Fri, 2 Oct 2015 15:25:21 +0000 (10:25 -0500)]
lib/oe/image.py: Add image generation for companion debug filesystem

The companion debug filesystem, enabled with IMAGE_GEN_DEBUGFS, was
creating the companion filesystem but was missing the code to actually
package it into a usable filesystem.

The code (and associated documentation) will allow the debugfs to generate a
companion tarball or other image.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackage_manager.py: sort output of OpkgPkgsList().list
Andre McCurdy [Fri, 2 Oct 2015 00:22:01 +0000 (17:22 -0700)]
package_manager.py: sort output of OpkgPkgsList().list

Without explicit sorting, the output generated by OpkgPkgsList().list
follows the order of packages in /var/lib/opkg/status, which appears
to be "random". Add sorting to make OpkgPkgsList().list behaviour
consistent with that of RpmPkgsList().list.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoThunderX: Add initial tune file
Armin Kuster [Fri, 2 Oct 2015 14:28:33 +0000 (07:28 -0700)]
ThunderX: Add initial tune file

changed upper case "X" to lower case "x"

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotzdata: update to 2015g
Armin Kuster [Fri, 2 Oct 2015 14:26:49 +0000 (07:26 -0700)]
tzdata: update to 2015g

Resend: typo in version in subject.

Changes affecting future time stamps

Turkey's 2015 fall-back transition is scheduled for Nov. 8, not Oct. 25.
(Thanks to Fatih.)

Norfolk moves from +1130 to +1100 on 2015-10-04 at 02:00 local time.
(Thanks to Alexander Krivenyshev.)

Fiji's 2016 fall-back transition is scheduled for January 17, not 24.
(Thanks to Ken Rylander.)

Fort Nelson, British Columbia will not fall back on 2015-11-01. It has
effectively been on MST (-0700) since it advanced its clocks on 2015-03-08.
New zone America/Fort_Nelson.  (Thanks to Matt Johnson.)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotzcode: update to 2015g
Armin Kuster [Fri, 2 Oct 2015 14:24:52 +0000 (07:24 -0700)]
tzcode: update to 2015g

Changes affecting code

localtime no longer mishandles America/Anchorage after 2037.
(Thanks to Bradley White for reporting the bug.)

On hosts with signed 32-bit time_t, localtime no longer mishandles
Pacific/Fiji after 2038-01-16 14:00 UTC.

The localtime module allows the variables 'timezone', 'daylight',
and 'altzone' to be in common storage shared with other modules,
and declares them in case the system <time.h> does not.
(Problems reported by Kees Dekker.)

On platforms with tm_zone, strftime.c now assumes it is not NULL.
This simplifies the code and is consistent with zdump.c.
(Problem reported by Christos Zoulas.)

Changes affecting documentation
The tzfile man page now documents that transition times denote the
starts (not the ends) of the corresponding time periods.
(Ambiguity reported by Bill Seymour.)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: fix change in path structure if --extract-to path exists
Paul Eggleton [Fri, 2 Oct 2015 13:05:08 +0000 (14:05 +0100)]
recipetool: create: fix change in path structure if --extract-to path exists

If the directory specified by --extract-to exists, because we were using
shutil.move() to move the temporary extracted directory to the specified
path, a subdirectory was being created under that directory instead of
moving the contents, which was a different result than if the directory
didn't previously exist. We could try to always move the contents but
that's complicated when any symlinks are involved; the simplest thing is
just to remove the directory (which should be empty anyway) before
moving the temporary directory across in its place.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: update-recipe: avoid updating patches that have not changed
Paul Eggleton [Fri, 2 Oct 2015 13:05:07 +0000 (14:05 +0100)]
devtool: update-recipe: avoid updating patches that have not changed

Use "git cherry" against the original tag that we made when we extracted
the source in order to find the revisions that are definitely new. This
allows you to modify a commit in the middle of the series and then run
devtool update-recipe and not have the subsequent patches unnecessarily
modified.

Fixes [YOCTO #8388].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: wic: fix LocalSetup
Ed Bartosh [Fri, 2 Oct 2015 13:03:17 +0000 (16:03 +0300)]
oe-selftest: wic: fix LocalSetup

Appended required features to build config every time
LocalSetup is run to ensure that core-image-minimal is not
rebuilt due to configuration changes.

This should fix test22_mkgummidisk and test23_mkefidisk testcases as
they depend on specific features set in LocalSetup.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Update to jethro head revision
Richard Purdie [Thu, 1 Oct 2015 16:55:07 +0000 (17:55 +0100)]
build-appliance-image: Update to jethro head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/runexported: Replaced optionparser with argparse.
Lucian Musat [Tue, 29 Sep 2015 14:47:42 +0000 (17:47 +0300)]
oeqa/runexported: Replaced optionparser with argparse.

Also added the default json file name as default for
the first positional argument.

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 agosystemd: remove glib-2.0 build dependency
Ross Burton [Thu, 1 Oct 2015 16:30:27 +0000 (17:30 +0100)]
systemd: remove glib-2.0 build dependency

This dependency isn't required now that systemd doesn't include gudev, so remove
it.

[ YOCTO #8398 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowebkitgtk: Add some PACKAGECONFIG options.
Carlos Alberto Lopez Perez [Thu, 1 Oct 2015 13:49:50 +0000 (15:49 +0200)]
webkitgtk: Add some PACKAGECONFIG options.

 * Also default to enable X11/Wayland support or WebGL according
   to enabled DISTRO_FEATURES.

Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agofontcache: allow to pass extra parameters and environment to fc-cache
Martin Jansa [Thu, 10 Sep 2015 14:31:26 +0000 (16:31 +0200)]
fontcache: allow to pass extra parameters and environment to fc-cache

* this can be useful for passing extra parameters, pass
  -v by default to see what's going on in do_rootfs
* we need to use this for extra parameter we implemented
  in fontconfig:
  --ignore-mtime always use cache file regardless of font directory mtime
  because the checksum of fontcache generated in do_rootfs
  doesn't match with /usr/share/fonts directory as seen on
  target device causing fontconfig to re-create the cache
  when fontconfig is used for first time or worse create
  new cache in every user's home directory when /usr/
  filesystem is read only and cache cannot be updated.

  Running FC_DEBUG=16 fc-cache -v on such device shows:
  FcCacheTimeValid dir "/usr/share/fonts" cache checksum 1441207803 dir checksum 1441206149
* my guess is that the checksum is different, because pseudo
  (which is unloaded when running qemuwrapper) or because some
  influence of running the rootfs under qemu.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowebkitgtk: Use ON/OFF for cmake switches.
Carlos Alberto Lopez Perez [Thu, 1 Oct 2015 13:49:49 +0000 (15:49 +0200)]
webkitgtk: Use ON/OFF for cmake switches.

  * This is a cosmetic patch.

  * Using ON/OFF instead of True/False is exactly the same for cmake
    (is case insensitive).

  * But WebKitGTK+ preffers (and uses) the first option. So when you
    check which values were enabled for the build (at log.do_configure)
    you will see that every option that was not modified will print either
    OFF or ON, meanwhile the options modified by this recipe will print
    True or False. For example:

         [...]
         --  ENABLE_THREADED_COMPOSITOR                OFF
         --  ENABLE_PLUGIN_PROCESS_GTK2 .............. ON
         --  ENABLE_MINIBROWSER                        True
         [...]

Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotestimage: Added IO commands to dumps
Mariano Lopez [Tue, 29 Sep 2015 09:05:56 +0000 (09:05 +0000)]
testimage: Added IO commands to dumps

This change just add two more commands to
the host dumps to get more information
related to the IO.

[YOCTO #8412]

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 agodistro-alias.inc: Updated for jethro 2.0 release
Beth Flanagan [Thu, 1 Oct 2015 15:27:36 +0000 (16:27 +0100)]
distro-alias.inc: Updated for jethro 2.0 release

Updates for distro_alias.inc. This should be pulled for jethro and
master branches.

Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Update to jethro head revision
Richard Purdie [Thu, 1 Oct 2015 14:28:01 +0000 (15:28 +0100)]
build-appliance-image: Update to jethro head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Update to jethro head revision
Richard Purdie [Thu, 1 Oct 2015 14:17:57 +0000 (15:17 +0100)]
build-appliance-image: Update to jethro head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Update to jethro head revision
Richard Purdie [Thu, 1 Oct 2015 14:11:36 +0000 (15:11 +0100)]
build-appliance-image: Update to jethro head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoRevert "oeqa/runtime: Added one runtime testcase in connman."
Cristian Iorga [Thu, 1 Oct 2015 13:42:09 +0000 (16:42 +0300)]
Revert "oeqa/runtime: Added one runtime testcase in connman."

connman daemon forks during normal usage,
so this test is no longer valid and generates
sometimes false positives.

This reverts commit 7d01c595c96eb3d67b90caf71050c4e9345257de.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemu: Drop BROKEN usage
Richard Purdie [Thu, 1 Oct 2015 13:21:49 +0000 (14:21 +0100)]
qemu: Drop BROKEN usage

BROKEN support was removed from bitbake back in 2013. These lines just
increase parsing time, remove them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosmart:cache.py: getPackages() matches name + arch
Robert Yang [Wed, 30 Sep 2015 08:19:55 +0000 (01:19 -0700)]
smart:cache.py: getPackages() matches name + arch

It only matched name ony in the past, for example:
smart install busybox (matched)
but:
smart install busybox@core2_64 (didn't match)

The installation is very slow when no match since it would seach all the
packages in the repo, and what we use mostly in oe-core is the second
case, so the installation is very slow when install COMPLEMENTARY
packages such as the task do_populate_sdk.

This patch makes it match both.

* Speed up
  MACHINE = "qemux86-64"
  - When multilib enabled:
    $ bitbake core-image-sato -cpopulate_sdk
    time: 6m5s -> 2m34s (Reduce 57% )

    $ bitbake core-image-minimal -cpopulate_sdk
    time: 2m1s -> 1m26s (Reduce 28% )

    $ bitbake core-image-sato-sdk
    time: 10m15s -> 7m12s (Reduce 29% )

  - When multilib NOT enabled:
    $ bitbake core-image-sato -cpopulate_sdk
    time: 4m25s -> 2m28s (Reduce 44% )

[YOCTO #8389]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: modify: use correct local files directory name
Markus Lehtonen [Thu, 1 Oct 2015 10:03:36 +0000 (13:03 +0300)]
devtool: modify: use correct local files directory name

The name of the directory for local source files under srctree is
'oe-local-files', not 'local-files'. Fixes a bug that slipped through
in b7ab82485e4514e07ab8a76e554da27ddc92e6c0.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxuser-account: Take over xuser specific D-Bus policy
Jussi Kukkonen [Thu, 1 Oct 2015 08:04:36 +0000 (11:04 +0300)]
xuser-account: Take over xuser specific D-Bus policy

Move connmans xuser-related D-Bus policy to a separate file that
xuser-account installs: This way connman does not need to depend on
xuser-account. Add policies for bluez and ofono in the same file.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobluez5: Use upstream D-Bus policy
Jussi Kukkonen [Thu, 1 Oct 2015 08:04:35 +0000 (11:04 +0300)]
bluez5: Use upstream D-Bus policy

The Bluez D-Bus policy is much too open and affects not just bluez but
all system services: Use upstream policy configuration instead.

This change has a chance of affecting other D-Bus services: the bug
that is fixed here may have hidden problems in other policies.

[YOCTO #8414]

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoptest: run-ptest not required to run do_install_ptest
Ian Ray [Wed, 30 Sep 2015 10:03:38 +0000 (13:03 +0300)]
ptest: run-ptest not required to run do_install_ptest

Modify do_install_ptest_base to run do_install_ptest and install the
Makefile irrespective of the presence of ${WORKDIR}/run-ptest.  This
change allows "ptest-aware" packages to install run-ptest as part of
the make machinery.

Signed-off-by: Ian Ray <ian.ray@ge.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodistrodata: Take account proxies on distrodata tasks
Leonardo Sandoval [Wed, 2 Sep 2015 08:59:43 +0000 (08:59 +0000)]
distrodata: Take account proxies on distrodata tasks

Proxies defined in the enviroment where not taken into account
on the distrodata tasks. This commit implied passing the datastore
into the distro_check library and context manager for the
urllib.urlopen function.

One way to run distrodata tasks is using 'universe' as target and the
'all' distrodata task:

      $ bitbake universe -c distrodataall
      $ bitbake universe -c distro_checkall
      $ bitbake universe -c checklicenseall

Logs are located under TMPDIR/log

[YOCTO #7567]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: update-recipe: enable var history tracking
Markus Lehtonen [Wed, 30 Sep 2015 13:51:53 +0000 (16:51 +0300)]
devtool: update-recipe: enable var history tracking

Enable variable history tracking so that the variables are updated in
the correct file - i.e. in the file they are already defined.

[YOCTO #7715]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/wic: Use SetupLocal instead of Setup
Richard Purdie [Wed, 30 Sep 2015 22:31:44 +0000 (23:31 +0100)]
oeqa/selftest/wic: Use SetupLocal instead of Setup

If we replace the code Setup method, we don't get the cleanup it performs
and this just resulted in failures on the autobuilder due to a stale
config fragment. Setup will call SetupLocal so this should be a safe
and easy fix to resolve the auobuilder failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokernel.bbclass: fix the bug of checking the existing sections in do_strip()
Kevin Hao [Wed, 30 Sep 2015 02:29:33 +0000 (10:29 +0800)]
kernel.bbclass: fix the bug of checking the existing sections in do_strip()

Ross reported the following waring when building edgerouter BSP:
    WARNING: Section not found: .comment

The reason is that the testing of the existing sections in do_strip()
returned the wrong value. Please see the following code in do_strip():
                for str in ${KERNEL_IMAGE_STRIP_EXTRA_SECTIONS}; do {
                        if [ "$headers" != *"$str"* ]; then
                                bbwarn "Section not found: $str";
                        fi

                        "$CROSS_COMPILE"strip -s -R $str ${KERNEL_OUTPUT}
                }; done

The "*" doesn't have special meaning in the if string test, so it will
return true even the $str is a substring of $headers. Fix this issue
by replacing it with "! (echo "$headers" | grep -q "^$str$")".

Reported-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto_{3.14,3.19,4.1}: qemuarm enable virtio drivers
Aníbal Limón [Tue, 29 Sep 2015 22:51:22 +0000 (17:51 -0500)]
linux-yocto_{3.14,3.19,4.1}: qemuarm enable virtio drivers

We are experimenting segfault in qemu arm SCSI driver because
it's broken [1][2] so enable virtio drivers to use as default.

[YOCTO #8060]

[1] https://lists.gnu.org/archive/html/qemu-devel/2007-03/msg00093.html
[2] https://lists.nongnu.org/archive/html/qemu-devel/2010-07/msg01473.html

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu-internal: qemuarm enable usage of virtio devices
Aníbal Limón [Tue, 29 Sep 2015 22:51:23 +0000 (17:51 -0500)]
runqemu-internal: qemuarm enable usage of virtio devices

We are experiencing occasional segfaults in scsi sym53c8xx driver
on qemuarm boot. There are some old discussions into the mailing
lists [1] about the scsi problem and seems to be isn't fixed.

We use virtio blk/net devices into qemuarm64 also are supported
into qemuarm so change to use it because virtio devices are the best
choice.

[YOCTO #8060]

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8060#c10

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agognome-doc-utils: xslt - don't install Makefiles
Wenzong Fan [Wed, 30 Sep 2015 07:59:46 +0000 (03:59 -0400)]
gnome-doc-utils: xslt - don't install Makefiles

All the xml files under xslt will be installed by default, the
buildtime stuffs that Makefile, Makefile.in, Makefile.am are not
needed for target.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoapr-utils: cleanup buildpaths for target stuffs
Wenzong Fan [Wed, 30 Sep 2015 07:59:33 +0000 (03:59 -0400)]
apr-utils: cleanup buildpaths for target stuffs

* cleanup buildpaths from apu-1-config:
  - remove ${STAGING_DIR_HOST} from CC, CPP ...
  - set APU_SOURCE_DIR, APU_BUILD_DIR as empty

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoapr: cleanup buildpaths from target stuffs
Wenzong Fan [Wed, 30 Sep 2015 07:59:23 +0000 (03:59 -0400)]
apr: cleanup buildpaths from target stuffs

* cleanup buildpaths from apr_rules.mk and apr-1-config:
  - remove ${STAGING_DIR_HOST} from CC, CPP ...
  - set APR_SOURCE_DIR, APR_BUILD_DIR as empty

* install ${HOST_SYS}-libtool to sysroot only, it's required for
  building apache2 but not suitable for target.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocurl: cleanup buildpaths from curl-config
Wenzong Fan [Wed, 30 Sep 2015 08:08:59 +0000 (04:08 -0400)]
curl: cleanup buildpaths from curl-config

curl-config will be installed to target, cleanup buildpaths in it:

* remove ${STAGING_DIR_HOST} from CC, CFLAGS ...

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodropbear: fix key generation when systemd is in use and rootfs is readonly
Alexander Kanavin [Wed, 30 Sep 2015 12:53:18 +0000 (15:53 +0300)]
dropbear: fix key generation when systemd is in use and rootfs is readonly

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage.bbclass: tweak the key location for dropbear when rootfs is readonly
Alexander Kanavin [Wed, 30 Sep 2015 12:53:17 +0000 (15:53 +0300)]
image.bbclass: tweak the key location for dropbear when rootfs is readonly

In the same way it's done for openssh.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopenssh: fix sshd key generation when systemd is in use and rootfs is readonly
Alexander Kanavin [Wed, 30 Sep 2015 12:53:16 +0000 (15:53 +0300)]
openssh: fix sshd key generation when systemd is in use and rootfs is readonly

[YOCTO #8365]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage.bbclass: when building a readonly rootfs, tweak ssh settings regardless of...
Alexander Kanavin [Wed, 30 Sep 2015 12:53:15 +0000 (15:53 +0300)]
image.bbclass: when building a readonly rootfs, tweak ssh settings regardless of init system in use

Previously it was done only if sysvinit was in DISTRO_FEATURES.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolttng-tools: Drop KERNELDIR reference
Richard Purdie [Wed, 30 Sep 2015 13:53:20 +0000 (14:53 +0100)]
lttng-tools: Drop KERNELDIR reference

The source makes no reference to KERNELDIR any more and this make the recipe
machine specific. Simply drop the unused reference.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agometa-ide-support: No need to mark as nostamp anymore
Richard Purdie [Wed, 30 Sep 2015 13:57:20 +0000 (14:57 +0100)]
meta-ide-support: No need to mark as nostamp anymore

With the modern checksum infrastructure, this is no longer needed
(much in the same way images no longer need this).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoadt-installer: No need to mark as nostamp
Richard Purdie [Wed, 30 Sep 2015 13:56:49 +0000 (14:56 +0100)]
adt-installer: No need to mark as nostamp

With the modern checksum infrastructure, this is no longer needed
(much in the same way images no longer need this).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodistutils3: Avoid MACHINE specific checksums
Richard Purdie [Wed, 30 Sep 2015 13:54:35 +0000 (14:54 +0100)]
distutils3: Avoid MACHINE specific checksums

The MACHINE variable is used to handle sysroot paths within one of the
patches to python3-native. In this context, it is relocation safe and
the resulting packages should not have MACHINE specific checksums,
therefore excluding MACHINE in this context is safe.

This whole setup is ugly and ideally we should come up with a better
way of handling this but at least allow a stop gap solution for now.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer-omx: Improve variable expansion of ${S}
Richard Purdie [Wed, 30 Sep 2015 13:53:51 +0000 (14:53 +0100)]
gstreamer-omx: Improve variable expansion of ${S}

The way ${S} is expanded into CFLAGS means the recipe is marked as depending
on the path within which its built. We can avoid this by avoiding the expansion
which then allows reuse of the recipe from sstate.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: Exclude sstate-outputdirs flag from checksums
Richard Purdie [Wed, 30 Sep 2015 13:52:49 +0000 (14:52 +0100)]
bitbake.conf: Exclude sstate-outputdirs flag from checksums

This was making deploy tasks MACHINE specific since they place output
into DEPLOY_DIR_IMAGE which contains MACHINE. On the plus side, this
was accidentally ensuring the output was placed for each machine,
on the downside it was triggering a rebuild every time for the different
checksum.

There is a better way to handle this which avoids the rebuild, see
the following tweak to do_deploy to mark it as MACHINE specific
in a different way.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodeploy: Mark deploy tasks as MACHINE specific
Richard Purdie [Wed, 30 Sep 2015 13:52:20 +0000 (14:52 +0100)]
deploy: Mark deploy tasks as MACHINE specific

This adds the markup to inform bitbake to rerun the deploy task per MACHINE.
This makes sense since DEPLOY_DIR_IMAGE contains MACHINE. Doing it this
way means the same artefact will be reused from sstate rather than rebuilt.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolayer.conf: Add SIGGEN exclusion for oprofile kernel dependency
Richard Purdie [Wed, 30 Sep 2015 13:51:53 +0000 (14:51 +0100)]
layer.conf: Add SIGGEN exclusion for oprofile kernel dependency

The oprofile kernel dependency is a simple RRECOMMENDS, it therefore
doesn't have any interface constraints and doesn't need to rebuild
every time the kernel changes.

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