]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
11 years agoconnman: Try to figure out NFS root interface if using DHCP
Jukka Rissanen [Tue, 17 Sep 2013 07:48:00 +0000 (10:48 +0300)]
connman: Try to figure out NFS root interface if using DHCP

The commit c73487302270a7c2d3bbbb191ce1dd63ee2016dc missed the case
where the NFS is using DHCP.

[YOCTO #5176]

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibxml2: remove patch for CVE-2012-2871
Ross Burton [Tue, 17 Sep 2013 09:22:17 +0000 (10:22 +0100)]
libxml2: remove patch for CVE-2012-2871

This CVE patch is actually against Chromium as they ship an internal fork of
libxml2 and breaks ABI.  The real issue has been resolved in libxslt 1.1.27, and
we're shipping 1.1.28.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoutils: Update bb.which reference and other syntax cleanup
Richard Purdie [Tue, 17 Sep 2013 11:45:30 +0000 (11:45 +0000)]
utils: Update bb.which reference and other syntax cleanup

* bb.which -> bb.utiis.which()
* Use modern form of datastore access
* Use True, not 1
* Drop pointless imports

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoautotools: Remove .la files if rebuilding non out of tree software
Richard Purdie [Tue, 17 Sep 2013 11:33:49 +0000 (11:33 +0000)]
autotools: Remove .la files if rebuilding non out of tree software

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto/3.10: genericx86 meta data factoring
Bruce Ashfield [Fri, 13 Sep 2013 16:54:58 +0000 (12:54 -0400)]
linux-yocto/3.10: genericx86 meta data factoring

Updating the 3.10 meta branch to import the following commits from Darren
Hart:

   285f93b meta/common-pc-64: Add USB 3.0 support
   75072e4 meta/common-pc*: Refactor common-pc-64 to reuse common-pc drivers
   da06bde meta/common-pc: Split out CPU and Drivers config fragments
   5f55e40 meta/common-pc: Cleanup common-pc.cfg and common-pc-gfx.cfg
   0a3f784 meta/common-pc: Add common Wifi drivers
   f4b9f5e meta/common-pc: Add common Realtek and Atheros Ethernet drivers
   4d9d3eb meta/common-pc: Build Ethernet and Wifi drivers as modules
   13141ee meta/common-pc: Refactor Ethernet and Wifi options

These are in support of a new genericx86 multi-target BSP.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolttng: Enable ptest support.
Stefan Seefeld [Thu, 12 Sep 2013 01:09:50 +0000 (01:09 +0000)]
lttng: Enable ptest support.

Signed-off-by: Stefan Seefeld <stefan_seefeld@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd: add ptest
Roy.Li [Tue, 3 Sep 2013 02:50:20 +0000 (02:50 +0000)]
systemd: add ptest

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosysvinit: remove unused files
Chen Qi [Mon, 9 Sep 2013 02:34:41 +0000 (02:34 +0000)]
sysvinit: remove unused files

The 'need' and 'provide' files are there for simpleinit compatability,
according to the comments in these two files.

However, we don't use simpleinit and there's even no simpleinit recipe
in OE. Besides, these two files are not installed.

This patch removes these two unused files.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosysvinit: fix indentation
Chen Qi [Mon, 9 Sep 2013 02:34:40 +0000 (02:34 +0000)]
sysvinit: fix indentation

Fix indentation in SRC_URI to conform to the indentation convention in OE.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoboot-directdisk: Allow for EFI-only boot direct disk images
João Henrique Ferreira de Freitas [Thu, 12 Sep 2013 19:02:08 +0000 (19:02 +0000)]
boot-directdisk: Allow for EFI-only boot direct disk images

    Condition building PCBIOS legacy images on MACHINE_FEATURES containing "pcbios"
    or not containing "efi". This ensures existing BSPs will continue to get the
    old PCBIOS legacy-only images. New BSPs can add "efi", "pcbios", or both. The
    images created likewise support one or the other or both.

Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoelfutils-native: Fix build on distros with gcc 4.8
Khem Raj [Fri, 13 Sep 2013 05:25:50 +0000 (05:25 +0000)]
elfutils-native: Fix build on distros with gcc 4.8

The patch redhat-portability.diff causes this issue
so lets revert the portion which was using %a instead of %m
thats recommended anyway, redhat patch seems to be targetting
old compilers.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoeglibc_2.18.bb: Fix IFUNC support for ARM REL relocations
Khem Raj [Fri, 13 Sep 2013 01:48:33 +0000 (01:48 +0000)]
eglibc_2.18.bb: Fix IFUNC support for ARM REL relocations

This should fix the case where neon code is emitted for machines
which dont have neon unit in the chip

[YOCTO# 5161]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxf86-video-vmware: disable VMWGFX
Ross Burton [Thu, 12 Sep 2013 15:27:35 +0000 (15:27 +0000)]
xf86-video-vmware: disable VMWGFX

Our Mesa doesn't yet ship the XA Gallium state tracker that the VMWGFX
sub-driver needs, so just disable vmwgfx.

Also remove a spurious xvmc dependency.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd: link runlevel from systemctl
Roy.Li [Wed, 4 Sep 2013 06:56:41 +0000 (06:56 +0000)]
systemd: link runlevel from systemctl

using update-alternatives to link runlevel from systemctl, as on Fedora 18

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/contrib/build-perf-test.sh: record size in kb and remove extra spaces
Stefan Stanacar [Thu, 12 Sep 2013 11:09:00 +0000 (11:09 +0000)]
scripts/contrib/build-perf-test.sh: record size in kb and remove extra spaces

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoapmd: Add systemd support
Muhammad Shakeel [Thu, 12 Sep 2013 06:31:19 +0000 (06:31 +0000)]
apmd: Add systemd support

-Remove dependency on meta-systemd

Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooprofileui-server: Add systemd support
Muhammad Shakeel [Thu, 12 Sep 2013 06:31:18 +0000 (06:31 +0000)]
oprofileui-server: Add systemd support

-Remove dependency on meta-systemd

Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoLSB Command Check: fix install_initd and remove_initd not found
Hongxu Jia [Fri, 13 Sep 2013 08:14:41 +0000 (16:14 +0800)]
LSB Command Check: fix install_initd and remove_initd not found

The install_initd and remove_initd are linked to /sbin/chkconfig for lsb
core test, but chkconfig has been moved from /sbin to /usr/sbin in order
to fix QA warning about unsafe references in binaries.
(In commit e486242db83297701803866bea971a2f1a1135fe)

Let install_initd and remove_initd link to /usr/sbin/chkconfig could fix
this issue.

[YOCTO #5152]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoanjuta-remote-run: remove
Ross Burton [Fri, 13 Sep 2013 08:35:18 +0000 (09:35 +0100)]
anjuta-remote-run: remove

This is from the Anjuta integration which was removed many years ago.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoadt-installer: fix opkg repo name
Laurentiu Palcu [Fri, 13 Sep 2013 11:09:47 +0000 (14:09 +0300)]
adt-installer: fix opkg repo name

I mistakenly named the allarch opkg repo the same as nativesdk one...

This patch fixes it.

[YOCTO #5181]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-libc-headers: Add big warning about antisocial behaviour
Richard Purdie [Fri, 13 Sep 2013 11:18:14 +0000 (12:18 +0100)]
linux-libc-headers: Add big warning about antisocial behaviour

I'm getting concerned with the number of people forking this recipe
and not understanding what they're doing. I'm therefore proposing
adding in a suitable warning to people thinking of copying it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa/runtime: timeout increases
Stefan Stanacar [Fri, 13 Sep 2013 12:48:18 +0000 (15:48 +0300)]
lib/oeqa/runtime: timeout increases

Increase the timeout for smart commands as under load for qemumips
it's still to small. Also give ping more time fixing a potential
timeout for sato systemd.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake.conf/package: Collapse PKGDATA_DIR into a single machine specific directory
Richard Purdie [Fri, 13 Sep 2013 12:35:31 +0000 (13:35 +0100)]
bitbake.conf/package: Collapse PKGDATA_DIR into a single machine specific directory

Currently we have a hierarchy of pkgdata directories and the code has to put together
a search path and look through each in turn until it finds the data it needs.

This has lead to a number of hardcoded paths and file globing which
is unpredictable and undesirable. Worse, certain tricks that should be
easy like a GL specific package architecture become problematic with the
curretn search paths.

With the modern sstate code, we can do better and construct a single pkgdata
directory for each machine in just the same way as we do for the sysroot. This
is already tried and well tested. With such a single directory, all the code that
iterated through multiple pkgdata directories and simply be removed and give
a significant simplification of the code. Even existing build directories adapt
to the change well since the package contents doesn't change, just the location
they're installed to and the stamp for them.

The only complication is the we need a different shlibs directory for each
multilib. These are only used by package.bbclass and the simple fix is to
add MLPREFIX to the shlib directory name. This means the multilib packages will
repackage and the sstate checksum will change but an existing build directory
will adapt to the changes safely.

It is close to release however I believe the benefits this patch give us
are worth consideration for inclusion and give us more options for dealing
with problems like the GL one. It also sets the ground work well for
shlibs improvements in 1.6.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolayer.conf: Version bump for DEPLOY_DIR layout change
Richard Purdie [Thu, 12 Sep 2013 15:51:41 +0000 (16:51 +0100)]
layer.conf: Version bump for DEPLOY_DIR layout change

Increase the version to signify the layout change of the images
in the deploy directory.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake.conf: include machine name in DEPLOY_DIR_IMAGE
Paul Eggleton [Thu, 12 Sep 2013 11:04:52 +0000 (12:04 +0100)]
bitbake.conf: include machine name in DEPLOY_DIR_IMAGE

This allows a clean seperation between image outputs from different
machines, and makes it possible to have convenience symlinks to make
the output ready to deploy.

This did require some surgery in runqemu; if explicit paths to the image
and kernel are not supplied then DEPLOY_DIR_IMAGE needs to be determined
from bitbake or set in the environment. However the script does try to
avoid requiring it unless it really is needed. Corresponding changes
were made in the automated testing code as well.

Based on an RFC patch by Koen Kooi <koen@dominion.thruhere.net>

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoicu-native: do_install: Segmentation fault
Robert Yang [Thu, 12 Sep 2013 09:33:36 +0000 (05:33 -0400)]
icu-native: do_install: Segmentation fault

There was a "Segmentation fault" error when build icu-native when the
TMPDIR is in a deep directory (for example, when len(readlink -f $TMPDIR
== 410)), use LARGE_BUFFER_MAX_SIZE for cmd rather than
SMALL_BUFFER_MAX_SIZE would fix the problem, this should be a misplay
because other cmd uses LARGE_BUFFER_MAX_SIZE.

[YOCTO #5171]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoperf: source should be ready after do_unpack
Robert Yang [Thu, 12 Sep 2013 09:28:17 +0000 (05:28 -0400)]
perf: source should be ready after do_unpack

In perf.bb:

S = "${STAGING_KERNEL_DIR}"

So the source should be ready after the do_unpack, and we need this:

do_unpack[depends] += "virtual/kernel:do_populate_sysroot"

Otherwise, maybe no source after do_unpack.

[YOCTO #5168]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobb-matrix-plot: Use interpolation for sparse data
Peter Kjellerstedt [Tue, 10 Sep 2013 12:20:10 +0000 (14:20 +0200)]
bb-matrix-plot: Use interpolation for sparse data

If not every combination of BB_NUMBER_THREADS and PARALLEL_MAKE have
been tested by bb-matrix.sh, e.g., by using BB_RANGE="04 08 10 12 16"
and PM_RANGE="04 08 10 12 16", then the graph that gnuplot generates by
default looks very jagged due to the missing data points. By using
splines to interpolate the missing data the graph looks a lot better.

This should not change graphs where all data points are available in any
way, only improve sparse graphs.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake.conf: Stop providing ${P} and ${PF} by default
Richard Purdie [Mon, 9 Sep 2013 14:14:39 +0000 (15:14 +0100)]
bitbake.conf: Stop providing ${P} and ${PF} by default

For a long time we've provided PN-PV and PN-PV-PR by tweaking PROVIDES. This looks
nice at first glance however it turns out to be a bit problematic. Taking make as an
example where there are two versions, 3.81 and 3.82, what should "bitbake make-3.81" do?

Currently it builds make-3.81 and make-3.82 and breaks in interesting ways. Is that
a bitbake bug? Well, it certainly shouldn't try and run the build. Why is it building
3.82 though? Its due to finding a dependency on "make-dev" and then trying to figure
out what provides it? The answer is "make" and the default version of "make" is 3.82.

So arguably, finding "make-3.81" should infer PREFERRED_VERSION_make = "3.81". Doing
so resolved the above problem since now "make" resolves to "make-3.81".

So what about if we have Recipe A:
DEPENDS = "make-3.81"
and Recipe B:
DEPENDS = "make-3.82"

That is clearly an error, easy. So finally what about if we have Recipe A:
DEPENDS = "make-3.81"
and Recipe B:
DEPENDS = "make"

The first recipe infers the PREFERRED_VERSION_make = "3.81" and then forces that
version on everything else. Is that desired? Probably not in most cases, at least not
silently.

As mitigation, we could print a WARNING about this happening. The final part of the problem
is that we can ony figure this out within bitbake itself. That means we'd have to teach bitbake
about the PN-PV format of PROVIDES which is breaking the separation between bitbake and the
metadata. We can't win :(.

Nobody that I know of is using or relying on this functionality so perhaps we should
just remove it instead which is what this patch does. Opinions?

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobb-matrix: Clean before, rather than after, building
Peter Kjellerstedt [Fri, 6 Sep 2013 16:12:17 +0000 (18:12 +0200)]
bb-matrix: Clean before, rather than after, building

This makes sure the the first build starts from a clean state. Otherwise
one could have the first build affected by any leftover state from
a previous build.

This also leaves a working state behind after the final build.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate.bbclass: fix parallel building issue
Roy.Li [Tue, 13 Aug 2013 08:20:18 +0000 (16:20 +0800)]
sstate.bbclass: fix parallel building issue

sstate_package creates hardlink from sysroot to SSTATE_BUILDDIR, then
sstate_create_package will store SSTATE_BUILDDIR into a archive file by
tar, but once other packages install the same file into sysroot, the
creating the archive file will fail with below error:

    DEBUG: Executing shell function sstate_create_package
    tar: x86_64-linux/usr/share/aclocal/xorg-macros.m4: file changed as we read it

This kind of error is harmless, use --ignore-failed-read to ignore it.
The error in tar occurs when the timestamp of the file changes and this
can happen when the number of symlinks change. The file will be included
in the archive.

[YOCTO #5122]

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibnewt-python: Don't write a whiptail package
Richard Purdie [Thu, 12 Sep 2013 06:47:37 +0000 (06:47 +0000)]
libnewt-python: Don't write a whiptail package

The whiptail package is written by the libnewt recipe so for the python version
we need to ensure its not in PACKAGES.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopopulate_sdk_rpm: Only remove trailing whitespace, not all whitespace
Richard Purdie [Thu, 12 Sep 2013 06:47:09 +0000 (06:47 +0000)]
populate_sdk_rpm: Only remove trailing whitespace, not all whitespace

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoweston: as weston-launch depends on PAM, control it with a PACKAGECONFIG
Ross Burton [Wed, 11 Sep 2013 13:28:57 +0000 (14:28 +0100)]
weston: as weston-launch depends on PAM, control it with a PACKAGECONFIG

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclutter: fix compilation when building without X11 backend
Ross Burton [Wed, 11 Sep 2013 13:47:11 +0000 (14:47 +0100)]
clutter: fix compilation when building without X11 backend

If Clutter is building the Wayland backend but not the X11 backend, the Cogl
support doesn't get enabled so the Wayland backend (which uses it) fails to
compile.

Backport a fix from upstream to fix this situation.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agox11vnc: add dependencies for xrandr/xfixes/xdamage/xtst
Ross Burton [Wed, 11 Sep 2013 13:48:19 +0000 (14:48 +0100)]
x11vnc: add dependencies for xrandr/xfixes/xdamage/xtst

Inspired by a patch by Martin Jansa but with these libraries required, as a VNC
server without them is suboptimal.  Don't add an option for Xinerama as our X
server always disables it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopopulate_sdk_rpm: Ensure empty strings aren't passed to attemponly rpm code
Richard Purdie [Wed, 11 Sep 2013 22:27:06 +0000 (22:27 +0000)]
populate_sdk_rpm: Ensure empty strings aren't passed to attemponly rpm code

If empty strings are passed to the rpm attemptonly code, it breaks. This
ensures we don't do that.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxf86-video-vmware: respect opengl DISTRO_FEATURE
Ross Burton [Wed, 11 Sep 2013 22:24:57 +0000 (23:24 +0100)]
xf86-video-vmware: respect opengl DISTRO_FEATURE

Conditionalise the GL dependencies on the opengl DISTRO_FEATURE so this driver
can build without the opengl feature active, as the configure script will
enable/disable the GL sub-driver depending on the presence of these libraries.

This is an interim patch to fix the autobuilder, a more complete patch heading
upstream to make the GL sub-driver deterministic will follow.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobluez4/5: Add EXCLUDE_FROM_WORLD = 1
Saul Wold [Wed, 11 Sep 2013 21:38:01 +0000 (14:38 -0700)]
bluez4/5: Add EXCLUDE_FROM_WORLD = 1

We can't build both recipes in the world build as there is a collision of package name
and PR values. Specificly the libasound-module-bluez which is the same in both goes
backwards from r5 (bluez4) -> r0 (bluez5) and the subpackage_metadata check fails:

ERROR: Recipe lib32-bluez5 is trying to change PR from 'r0' to 'r5'. This will cause do_package_write_* failures since the incorrect data will be used and they will be unable to find the right workdir.

[YOCTO #5165]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxf86-video-intel: disable DRI2 tests if no DRI2 is available
Ross Burton [Wed, 11 Sep 2013 20:30:27 +0000 (21:30 +0100)]
xf86-video-intel: disable DRI2 tests if no DRI2 is available

Somehow this slipped past the initial testing and can cause build errors in
non-GL distros.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxf86-video-vesa: change depends to refect reality
Ross Burton [Wed, 11 Sep 2013 20:30:26 +0000 (21:30 +0100)]
xf86-video-vesa: change depends to refect reality

This recipe appears to have been a copy-and-paste from -intel, because it has
dependencies and configure options that xf86-video-vesa just doesn't have, such
as virtual/libgl and XVMC.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoia32-base: only depend on GL if opengl DISTRO_FEATURE enabled
Ross Burton [Wed, 11 Sep 2013 20:30:25 +0000 (21:30 +0100)]
ia32-base: only depend on GL if opengl DISTRO_FEATURE enabled

As Mesa refuses to compile if the "opengl" DISTRO_FEATURE isn't enabled,
mesa-driver-i9xx and the GLX X module have to be conditional in the ia32 machine
defintion too.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa/runtime: smart: limit channel add to useful ones
Stefan Stanacar [Wed, 11 Sep 2013 18:40:21 +0000 (21:40 +0300)]
lib/oeqa/runtime: smart: limit channel add to useful ones

Don't add inappropiate channels on the target.
This happens when building two different machines in the
same dir and then running the tests for each machine.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/package_rpm: remove unsed outdir variable
Stefan Stanacar [Wed, 11 Sep 2013 18:36:19 +0000 (21:36 +0300)]
classes/package_rpm: remove unsed outdir variable

Not only outdir had the wrong value, it wasn't used actually used in that function.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoptest-runner: trivial fixes and refine
Roy Li [Wed, 11 Sep 2013 09:17:32 +0000 (17:17 +0800)]
ptest-runner: trivial fixes and refine

1. ptest files may be installed under /usr/lib64/ for 64bit filesystem
or under /usr/lib/ for 64bit multilib filesystem, so we should check both
directories

2. If a soft link is linking to a directory under the same directory, we
only run once.

[YOCTO #5125]
[YOCTO #5126]

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibcroco: disable Bsymbolic if it is not supported on some hosts
Ting Liu [Wed, 11 Sep 2013 03:11:15 +0000 (11:11 +0800)]
libcroco: disable Bsymbolic if it is not supported on some hosts

When trying to build on my Centos 5.5 machine, got below error:
| checking for gtkdoc-mkpdf... no
| checking whether to build gtk-doc documentation... no
| checking for CROCO... yes
| checking if gcc supports "-Wl,-Bsymbolic-functions" flag...
| configure: error: -Bsymbolic requested but not supported by ld. Use --disable-Bsymbolic to disable
| Configure failed. The contents of all config.log files follows to aid debugging
|
| configure: exit 1
| ERROR: oe_runconf failed

Set --enable-Bsymbolic=auto to disable it when it is not suppported.

Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython-smartpm: Add an attempt install mode
Mark Hatle [Wed, 11 Sep 2013 01:59:35 +0000 (20:59 -0500)]
python-smartpm: Add an attempt install mode

[ YOCTO #3723 ]

Add a mode to smart that will allow an installation to continue, instead of
failure in the case that one or more items is uninstallable.

Uninstallable packages are simply ignored, and no error is generated.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouclibc: Add missing DEPENDS on kern-tools-native
Richard Purdie [Wed, 11 Sep 2013 09:43:23 +0000 (10:43 +0100)]
uclibc: Add missing DEPENDS on kern-tools-native

This is needed for the kconfig handling and the merge-config.sh script.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoimage/populate_sdk: Ensure symlinks in target sysroot are relative
Richard Purdie [Wed, 11 Sep 2013 09:42:44 +0000 (10:42 +0100)]
image/populate_sdk: Ensure symlinks in target sysroot are relative

In the target sysroot of an SDK we can have target system absolute links
which don't make sense. This adds a script which fixes them up to become relative
paths instead.

[YOCTO #5020]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemu: only depend on mesa-driver-swrast if opengl is enabled
Ross Burton [Wed, 11 Sep 2013 09:27:22 +0000 (10:27 +0100)]
qemu: only depend on mesa-driver-swrast if opengl is enabled

As Mesa refuses to compile if the "opengl" DISTRO_FEATURE isn't enabled,
mesa-driver-swrast has to be conditional in the QEMU machine defintions too.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoinit-live.sh: distinguish between a read-only image and a read-write image
Chen Qi [Wed, 11 Sep 2013 05:01:55 +0000 (13:01 +0800)]
init-live.sh: distinguish between a read-only image and a read-write image

The iso and hddimg share a common concept of 'live image', and they
use the same initramfs and thus the same init. However, that init
script in initramfs made a wrong assumption that the rootfs image
was read-only by itself. This is apparently not true for hddimg.

To make things work as expected, this init script should at least
distinguish between a read-only rootfs image and a read-write one.

This patch adds this ability to the init script. After this change,
the init script would be able to check whether the rootfs image is
read-only or not. If the rootfs image is read-write, the image will
be mounted and then booted directly. No union mounts will be attempted
in this case.

[YOCTO #5164]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomidori: excluded from mips64 temporarily
Kai Kang [Wed, 11 Sep 2013 05:38:28 +0000 (13:38 +0800)]
midori: excluded from mips64 temporarily

Exclude midori from mips64 temporarily. Becuase midori depends on
webkit-gtk which could not build for mips64 with 64bits userspace now.

[YOCTO #5141]

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd.bbclass: get the correct /lib directory
Saul Wold [Tue, 10 Sep 2013 17:28:14 +0000 (10:28 -0700)]
systemd.bbclass: get the correct /lib directory

By using os.path.dirname(systemd_unitdir) we get the correct /lib directory instead of
dealing with possibly multilib directories.  This address a QA Error for shipped/not
installed /lib with multilib and x32.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd: Remove base_libdir if installed only for systemd_unitdir
Muhammad Shakeel [Wed, 4 Sep 2013 11:05:03 +0000 (11:05 +0000)]
systemd: Remove base_libdir if installed only for systemd_unitdir

If a recipe installs systemd_unitdir and it is a non-systemd build than
systemd.bbclass deletes systemd_unitdir (/lib/systemd/) but not
base_libdir (/lib). In this case if base_libdir is empty than following
QA Issue is reported.

ERROR: QA Issue: openssh: Files/directories were installed but not shipped
  /lib

If base_libdir was installed due to systemd_unitdir installation than for
non-systemd build it should also be removed.

Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agonfs-utils: Add systemd support
Muhammad Shakeel [Wed, 4 Sep 2013 11:05:02 +0000 (11:05 +0000)]
nfs-utils: Add systemd support

- Remove dependency on meta-systemd

Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorpcbind: Add systemd support
Muhammad Shakeel [Wed, 4 Sep 2013 11:05:01 +0000 (11:05 +0000)]
rpcbind: Add systemd support

- Remove dependency on meta-systemd

Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolighttpd: Add systemd support
Muhammad Shakeel [Wed, 4 Sep 2013 11:05:00 +0000 (11:05 +0000)]
lighttpd: Add systemd support

- Remove dependency on meta-systemd

Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoopenssh: Add systemd support
Muhammad Shakeel [Wed, 4 Sep 2013 11:04:59 +0000 (11:04 +0000)]
openssh: Add systemd support

-Remove dependency on meta-systemd

Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoavahi: use correct names in SYSTEMD_SERVICE_* variables
Ross Burton [Mon, 9 Sep 2013 16:16:10 +0000 (17:16 +0100)]
avahi: use correct names in SYSTEMD_SERVICE_* variables

Don't hard-code full package names in SYSTEMD_SERVICE_*, because in multilib
they'll be changed.

[ YOCTO #4803 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodbus-ptest: fix populate_sdk error
Maxin B. John [Mon, 9 Sep 2013 17:47:30 +0000 (19:47 +0200)]
dbus-ptest: fix populate_sdk error

 When we enable "ptest", populate_sdk fails with the following error:
 # bitbake core-image-minimal -c populate_sdk
 ..
 Collected errors:
  * satisfy_dependencies_for: Cannot satisfy the following dependencies
    for dbus-ptest-dev:
  *    dbus-ptest (= 1.6.10-r0) *
  * opkg_install_cmd: Cannot install package dbus-ptest-dev.

Disable that dependency.

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoinitscripts: filter out empty lines from volatiles in check_requirements()
Ming Liu [Tue, 10 Sep 2013 07:53:24 +0000 (15:53 +0800)]
initscripts: filter out empty lines from volatiles in check_requirements()

So far the rules of check_requirements() is too strict to lead mismatch
when empty lines exist in volatiles.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobtrfs-tools: fix a parallel build issue
Roy Li [Tue, 10 Sep 2013 09:24:14 +0000 (17:24 +0800)]
btrfs-tools: fix a parallel build issue

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomount.sh: automount cdrom device even if no ID_FS_TYPE available
Chen Qi [Tue, 10 Sep 2013 13:27:55 +0000 (21:27 +0800)]
mount.sh: automount cdrom device even if no ID_FS_TYPE available

This script was modified to check whether $ID_FS_TYPE is empty before
automount, however, for cdrom devices on qemu, the ID_FS_TYPE is not
set, yet the device should be mounted. Otherwise, when booting an iso
image with runqemu, the boot process hangs at 'waiting for removable
media'.

This patch fixes this problem by first checking whether the block device
is a cdrom.

[YOCTO #4487]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogstreamer-plugins: Change anonymous python structure
Saul Wold [Tue, 10 Sep 2013 17:28:13 +0000 (10:28 -0700)]
gstreamer-plugins: Change anonymous python structure

This change ensures that the SRC_URI is set before base.bbclass code is called. This will
also ensure that the xz-native depends is set correct.

[YOCTO #5127]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocmake.bbclass: ensure CMAKE_SYSTEM_NAME is correct
Saul Wold [Tue, 10 Sep 2013 17:28:15 +0000 (10:28 -0700)]
cmake.bbclass: ensure CMAKE_SYSTEM_NAME is correct

Using TARGET_OS can add the ABIEXTENSION so ensure that is is removed for the Linux
TARGET_OS, we might have other TARGET_OSes so don't hard code CMAKE_SYSTEM_NAME

[YOCTO #5145]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoadt-installer: allow installation of other machines
Laurentiu Palcu [Tue, 10 Sep 2013 15:10:50 +0000 (18:10 +0300)]
adt-installer: allow installation of other machines

Currently, adt-installer allows only the installation of qemu target
sysroots.

The changes in this patch do the following:
 * add a new setting in adt-installer.conf (YOCTOADT_TARGET_MACHINE) for
   each target architecture. For example, for arm we can choose to use a
   qemuarm sysroot or a beagleboard sysroot. By default, only the qemu
   target sysroots are selected (current behavior);
 * change adt_installer scripts to allow installing the correct
   meta-environment package for the selected machine;
 * remove some left-over commented lines;
 * use packagegroup-cross-canadian-${MACHINE} when installing the cross
   canadian packages instead of doing it separately for each package;
 * change the opkg config files in order to be able to find the
   packagegroup package, which is allarch;

[YOCTO #4783]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agometa-toolchain-qt: include the proper cross-canadian package
Laurentiu Palcu [Tue, 10 Sep 2013 15:10:49 +0000 (18:10 +0300)]
meta-toolchain-qt: include the proper cross-canadian package

packagegroup-cross-canadian package name was changed to contain MACHINE.
Make the necessary changes here too.

[YOCTO #4783]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopopulate_sdk_base.bbclass: select the proper cross-canadian package
Laurentiu Palcu [Tue, 10 Sep 2013 15:10:48 +0000 (18:10 +0300)]
populate_sdk_base.bbclass: select the proper cross-canadian package

Since packagegroup-cross-canadian package name has MACHINE in it, make
the necessary changes here.

[YOCTO #4783]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackagegroup-cross-canadian: change package name to include MACHINE
Laurentiu Palcu [Tue, 10 Sep 2013 15:10:47 +0000 (18:10 +0300)]
packagegroup-cross-canadian: change package name to include MACHINE

Since meta-environment package name was changed to contain MACHINE,
change packagegroup-cross-canadian package name too, in order to be able
to select the proper environment files for a certain machine.

Also, remove the RPROVIDES since adt-installer doesn't really need it.

[YOCTO #4783]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agometa-environment: change package name to include MACHINE
Laurentiu Palcu [Tue, 10 Sep 2013 15:10:46 +0000 (18:10 +0300)]
meta-environment: change package name to include MACHINE

Currently, the package name contains just the TRANSLATED_TARGET_ARCH.
When compiling the toolchain for two machines, belonging to the same
architecture (for example: qemuarm and beagleboard), this package gets
overwritten and adt-installer repo will contain just one
meta-environment package... This leads to situations like installing the
toolchain for qemuarm and end up with meta-environment package with
beagleboard cpu options.

[YOCTO #4783]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto/3.10: bump kver to 3.10.11
Bruce Ashfield [Tue, 10 Sep 2013 15:50:58 +0000 (11:50 -0400)]
linux-yocto/3.10: bump kver to 3.10.11

Bumping to the 3.10.11 -stable release. Of note in this update is
the timer_list fix, which broke ssh access in the previous 3.10
series of updates:

    timer_list: correct the iterator for timer_list

    commit 84a78a6504f5c5394a8e558702e5b54131f01d14 upstream.

With this, we can revert the two temporary fixes for timer lists.
ssh access has been directly tested after this update.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agou-boot, u-boot-fw-utils-cross, u-boot-mkimage: Upgrade to 2013.07
Otavio Salvador [Wed, 4 Sep 2013 21:39:11 +0000 (21:39 +0000)]
u-boot, u-boot-fw-utils-cross, u-boot-mkimage: Upgrade to 2013.07

This upgrades the U-Boot based recipes for 2013.07 release.

This removes the 2011.03, 2011.06 and 2013.01.01 versions so we keep a
single one in core. The following recipes has been upgraded:

 - u-boot (remove old versions)
 - u-boot-mkimage (remove old versions)
 - u-boot-fw-utils -> u-boot-fw-utils-cross (renamed and reworked)

The u-boot-fw-utils-cross recipe has been reworked as it uses the
UBOOT_MACHINE to find default environment for use so it is indeed a
cross binary and not a native one.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd: Fix build with multilib
Khem Raj [Fri, 6 Sep 2013 04:36:09 +0000 (04:36 +0000)]
systemd: Fix build with multilib

rpm macros should be independent of libdir
Fixes errors seen when multilib is turned on
it shows up since then libdir != usr/lib

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd: update patch header and comments
Ross Burton [Mon, 9 Sep 2013 15:52:54 +0000 (15:52 +0000)]
systemd: update patch header and comments

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxf86-video-intel: allow builds without opengl, add more options
Ross Burton [Mon, 9 Sep 2013 10:19:12 +0000 (10:19 +0000)]
xf86-video-intel: allow builds without opengl, add more options

Allow builds without the opengl DISTRO_FEATURE by disabling DRI.

Also add new options for UXA (not default upstream, requires DRI) and udev
(enabled by default)

Finally remove a few obsolete dependencies.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomesa: use distro_features_check to abort build without opengl feature
Ross Burton [Mon, 9 Sep 2013 10:19:11 +0000 (10:19 +0000)]
mesa: use distro_features_check to abort build without opengl feature

Stop mesa from building on distributions without the "opengl" DISTRO_FEATURE.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agokmod: avoid parallel-tests
Tudor Florea [Fri, 6 Sep 2013 21:11:57 +0000 (21:11 +0000)]
kmod: avoid parallel-tests

Avoid parallel-tests for kmod as it remove
buildtest-TESTS and runtest-TESTS targets required by ptest.

Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolttng-modules: Update to version 2.3.0
Paul Woegerer [Thu, 5 Sep 2013 09:01:00 +0000 (09:01 +0000)]
lttng-modules: Update to version 2.3.0

Signed-off-by: Paul Woegerer <paul_woegerer@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolttng-tools: Update to version 2.3.0
Paul Woegerer [Thu, 5 Sep 2013 09:00:59 +0000 (09:00 +0000)]
lttng-tools: Update to version 2.3.0

Signed-off-by: Paul Woegerer <paul_woegerer@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolttng-ust: Update to version 2.3.0
Paul Woegerer [Thu, 5 Sep 2013 09:00:58 +0000 (09:00 +0000)]
lttng-ust: Update to version 2.3.0

Signed-off-by: Paul Woegerer <paul_woegerer@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoptest.bbclass: add cleandirs flag to do_install_ptest_base
Chen Qi [Thu, 5 Sep 2013 13:58:26 +0000 (13:58 +0000)]
ptest.bbclass: add cleandirs flag to do_install_ptest_base

The do_install_ptest_base task should have cleandirs flag, just like
the do_install task. The ${D}${PTEST_PATH} directory should be cleaned,
Otherwise, there would be similar errors like below if the
do_install_ptest_base task is rerun.

    ln: failed to create symbolic link `xxx': File exists

[YOCTO #5129]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoptest.bbclass: fix error on ubuntu host
Chen Qi [Thu, 5 Sep 2013 13:58:25 +0000 (13:58 +0000)]
ptest.bbclass: fix error on ubuntu host

The do_install_ptest_base function uses 'type -t' command to check
whether do_install_ptest is a function and acts correspondingly.

However, the 'type' command is a shell builtin and its behavior is
not all the same across Linux distros. On ubuntu, if we use #!/bin/sh
as the interpreter for the scripts, as in the case of our intermediate
scripts, the '-t' option for the 'type' command is not supported. So
the check always fails and the do_install_ptest function, even if defined,
is not run.

The same problem also applies to the do_configure_ptest_base and the
do_compile_ptest_base functions.

This patch fixes this problem by avoiding using the 'type' builtin command.

[YOCTO #5128]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemu.inc: remove apm as a MACHINE_FEATURE
Saul Wold [Mon, 9 Sep 2013 14:58:37 +0000 (07:58 -0700)]
qemu.inc: remove apm as a MACHINE_FEATURE

APM is not only obsolete, but requires a kernel config enabled and is meaningless for QEMU VM

[YOCTO #5121]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocmake: set system name correctly
Richard Purdie [Sat, 7 Sep 2013 22:25:14 +0000 (23:25 +0100)]
cmake: set system name correctly

For unknown reasons, the cmake class is using SDK_OS as the
target system OS. This makes no sense but only shows up as a problem
when you try a different SDK OS. Fix it to use TARGET_OS which is
the correct thing to do. For the vast majority of users this will
make no difference.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage.bbclass: skip already-stripped QA test if asked for
Khem Raj [Fri, 6 Sep 2013 21:15:18 +0000 (14:15 -0700)]
package.bbclass: skip already-stripped QA test if asked for

Some packages like grub have already stripped binaries e.g.

ERROR: QA Issue: File '/boot/grub/kernel.img' from grub was already
stripped, this will prevent future debugging!
ERROR: QA run found fatal errors. Please consider fixing them.

We would like to have a possibility to skip it using something like

INSANE_SKIP_${PN} = "already-stripped"

This adds the logic to do so

it acts at PN level and not at package level. so something like

INSANE_SKIP_${PN}-misc = "already-stripped" wont work.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoghostscript: Add missing dependency to resolve parallel make issue
Richard Purdie [Fri, 6 Sep 2013 22:54:55 +0000 (22:54 +0000)]
ghostscript: Add missing dependency to resolve parallel make issue

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouboot-config.bbclass: Allow choose of U-Boot config for machine
Otavio Salvador [Fri, 23 Aug 2013 14:48:58 +0000 (11:48 -0300)]
uboot-config.bbclass: Allow choose of U-Boot config for machine

Some machines provide several possible configurations and until now
there was no easy way for user to override the default setting.

This class provides a system similar to PACKAGECONFIG but for
U-Boot. The format is:

UBOOT_CONFIG ??= <default>
UBOOT_CONFIG[foo] = "config,images"

There are two possible parameters:

 - config: it is used to set UBOOT_MACHINE
 - images: it is used to append onto IMAGE_FSTYPES

Below there's an usage example:

,----[ i.MX6Q SABRE AUTO based example ]
| UBOOT_CONFIG ??= "sd"
| UBOOT_CONFIG[sd] = "mx6qsabreauto_config,sdcard"
| UBOOT_CONFIG[eimnor] = "mx6qsabreauto_eimnor_config"
| UBOOT_CONFIG[nand] = "mx6qsabreauto_nand_config,ubifs"
| UBOOT_CONFIG[spinor] = "mx6qsabreauto_spinor_config"
`----

User can, from local.conf or environment, use UBOOT_CONFIG=nand and
override the default setting, as:

,----[ Override example from command line ]
| MACHINE=imx6qsabreauto UBOOT_CONFIG=nand bitbake core-image-base
`----

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-firmware: Update SRCREV, pull in iwlwifi-7260 support
Darren Hart [Wed, 4 Sep 2013 21:44:52 +0000 (21:44 +0000)]
linux-firmware: Update SRCREV, pull in iwlwifi-7260 support

Fixes [YOCTO #5110]

Add support for the iwlwifi 7260 adapters. This creates a new package
and includes support in the default linux-firmware (everything) package.

Update the iwlwifi and radeon license checksums. Extensions to the
copyright date ranges were the only change to the LICENSE files.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: yunguo.wei@windriver.com
Cc: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agokern-tools: support no author patches
Bruce Ashfield [Fri, 6 Sep 2013 19:47:29 +0000 (15:47 -0400)]
kern-tools: support no author patches

Updating the kern-toosl SRCREV to pick up the following fix:

    previous versions of the kern-tools supported the ability to import a bare
    patch, with no From: Subject: or other identifying fields that are typically
    in a full commit.

    The same type of commit with kgit-s2q will prompt for a author ID, just
    as git-quilt-import does. In build system environment that leads to an
    infinite loop and the commit is never pushed.

    To fix this issue, we add an interactive flag (-i), that when passed the
    prompt based behaviour is used. When it isn't passed (the default), the following
    name and email will be used for the git author:

       GIT_AUTHOR_NAME="invalid_git config"
       GIT_AUTHOR_EMAIL="<unknown@unknown>"

    And a bare/incomplete header patch will be applied.

[YOCTO #5100]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agokernel-yocto: improve error checking on non-git repos
Bruce Ashfield [Fri, 6 Sep 2013 19:47:28 +0000 (15:47 -0400)]
kernel-yocto: improve error checking on non-git repos

While non-git kernel repos are not the preferred format for a kernel upstream,
they are supported. Depending on the creator of the archive the expanded
source directory name varies. If the recipe for the kernel doesn't properly
set S to the right value, a cryptic git error message is produced. We can
detect the situation and offer some advice on how to fix the issue.

A second check is also added in this commit for archive based kernel repos
which won't have a SRCREV to validate. If we have no SRCREV or SRCREV is
INVALID, we can exit the branch validation step immediately. This saves yet
another cryptic git error message and simplifies a custom tgz based recipe.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto/3.10: update meta SRCREV for beagleboard config changes
Bruce Ashfield [Fri, 6 Sep 2013 20:58:37 +0000 (16:58 -0400)]
linux-yocto/3.10: update meta SRCREV for beagleboard config changes

Updating the beagleboard configuration to match the 3.10 kernel changes.
With this, the beagle* boards boot out of the box, with no additional
changes required.

Simarpreet Singh <simar@linux.com>
Signed-off-by: Liming Wang <liming.wang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobluez5: Rename tests package to testtools
Mihai Prica [Fri, 6 Sep 2013 14:49:01 +0000 (17:49 +0300)]
bluez5: Rename tests package to testtools

Bluez5 ships some tools that can be used to test its
functionality.

The installation can be tested using "make check" and
this should be included in a ptest package.

[YB #5028]

Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobluez5: Install the bluetooth library
Mihai Prica [Fri, 6 Sep 2013 14:49:00 +0000 (17:49 +0300)]
bluez5: Install the bluetooth library

Bluez5 doesn't install libbluetooth by default. This is required
by connman, ofono or other packages.

Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd: split out systemd-binfmt as a separate package
Ross Burton [Fri, 6 Sep 2013 14:44:14 +0000 (15:44 +0100)]
systemd: split out systemd-binfmt as a separate package

If binfmt_misc was compiled as a module but isn't installed then systemd-binfmt
will put an automounter on /proc/sys/fs/binfmt_misc and when it attempts to
automount (e.g. when df is called) it can't find support for the filesystem, and
throws an error.

As binfmt_misc isn't commonly used, split this helper into it's own package, add
a dependency on kernel-module-binfmt-misc, and ensure the service gets started
when it's installed.

[ YOCTO #4863 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa/qemurunner: Use a timeout in select() call
Richard Purdie [Fri, 6 Sep 2013 14:14:34 +0000 (14:14 +0000)]
lib/oeqa/qemurunner: Use a timeout in select() call

A 0 value to select.select() immediately returns with no timeout. This was
pegging the cpu at 100% for the python process which was bad and may be
contributing to some of the timeout problems.

Profile from -P of a core-image-minimal before:

    97526792 function calls (97525652 primitive calls) in 45.189 seconds

and after:

       50204 function calls (49064 primitive calls) in 17.318 seconds

Saving 97.5 million function calls has to be good :)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocore-image-weston: Ensure wayland distro feature is enabled
Otavio Salvador [Wed, 4 Sep 2013 21:39:09 +0000 (18:39 -0300)]
core-image-weston: Ensure wayland distro feature is enabled

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocore-image-directfb: Use 'distro_features_check' class
Otavio Salvador [Tue, 3 Sep 2013 19:43:26 +0000 (16:43 -0300)]
core-image-directfb: Use 'distro_features_check' class

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoresolvconf: specify configuration for systemd-tmpfiles --update
Jonathan Liu [Thu, 5 Sep 2013 05:24:39 +0000 (15:24 +1000)]
resolvconf: specify configuration for systemd-tmpfiles --update

Running systemd-tmpfiles --update without specifying a configuration
file results in all tmpfiles.d configuration files being processed.

/usr/lib/tmpfiles.d/systemd.conf creates /run/nologin on boot to
prevent non-root users from logging in while the system is booting.
If systemd-tmpfiles --update is run after the system has started,
it will still create /run/nologin which would prevent non-root users
from logging in with the message "System is booting up.".

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa/runtime: add basic scanelf test
Stefan Stanacar [Thu, 5 Sep 2013 10:54:43 +0000 (13:54 +0300)]
lib/oeqa/runtime: add basic scanelf test

This uses scanelf from the pax-utils package and scans the binaries in PATH
for TEXTREL and RPATH information. For a sato image with pax-utils installed
it shows no output (which is good).

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-firmware: package Marvell SD8787 firmware
Peter A. Bigot [Thu, 29 Aug 2013 18:35:47 +0000 (13:35 -0500)]
linux-firmware: package Marvell SD8787 firmware

Also split out Marvell license as separate package.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>