]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
11 years agobase.bbclass: fix nondeterministic PACKAGECONFIG processing order
Christopher Larson [Wed, 23 Oct 2013 20:47:27 +0000 (13:47 -0700)]
base.bbclass: fix nondeterministic PACKAGECONFIG processing order

The PACKAGECONFIG flags were iterated over using dict.items(), but this
returns the items in an undefined order. As this order determines the
EXTRA_OECONF append order, we can get EXTRA_OECONF which are functionally
equivalent, but whose contents differ, resulting in not using shared state
archives we should be using.

(From OE-Core master rev: 843a5dd8f8f0461e286d9fdb3ba55205b4275f88)

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agomidori: exclude from self-hosted for mips64
Jackie Huang [Tue, 22 Oct 2013 06:04:05 +0000 (14:04 +0800)]
midori: exclude from self-hosted for mips64

midori depends on webkit-gtk which could not build for mips64.

[YOCTO #5141]

(From OE-Core master rev: abadeb934d4f41288c4fde6a4e5df2b124326326)

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agoinitramfs-framework: fix test that filter backup module files
Michaël Burtin [Tue, 22 Oct 2013 09:45:17 +0000 (11:45 +0200)]
initramfs-framework: fix test that filter backup module files

Test that filter backup module files (files starting with ~)
was accidentally reversed in e6039e6e3b98d6ab91252a5012d76279b1fac6e8,
this patch restore initial behavior.

(From OE-Core master rev: b2eb846ee12989add7a7ca8bbf45f293a3a7e56d)

Signed-off-by: Michaël Burtin <michael.burtin@innotis.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: Update and generalize pseudo setup for rootfs generation
Tom Zanussi [Tue, 22 Oct 2013 14:24:05 +0000 (09:24 -0500)]
wic: Update and generalize pseudo setup for rootfs generation

Remove unnecessary pseudo exports i.e. PSEUDO_DISABLED and move the
setup to the top-level prepare_rootfs().

(From OE-Core master rev: 4bf11cd7d7301da664c098c8a0ae9c0294a6f423)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: Make find_binary_path() more user-friendly
Tom Zanussi [Tue, 22 Oct 2013 14:24:04 +0000 (09:24 -0500)]
wic: Make find_binary_path() more user-friendly

find_binary_path() is useful, but if the binary isn't found, it prints
a stacktrace and a less-than-useful message.  Users complain when they
get stacktraces for things they can act on, so remove the stacktrace
and tell the user what the problem is.

(From OE-Core master rev: 0d9eef0eaa267500e8eedab8b72ddf24eb0516db)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: Remove binary dependencies
Tom Zanussi [Tue, 22 Oct 2013 14:24:03 +0000 (09:24 -0500)]
wic: Remove binary dependencies

Current functionality doesn't make use of kpartx, mount, or unmount,
and we use native mkswap, so remove the binary checks for those.

(From OE-Core master rev: 76293d2d6bbdeacd7b34f39f26fb97c3d7f9496f)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: Remove rpmmisc call from livecd
Tom Zanussi [Tue, 22 Oct 2013 14:24:02 +0000 (09:24 -0500)]
wic: Remove rpmmisc call from livecd

We don't currently use LiveCDImageCreator, but it makes calls when
initialized via the plugin interface to rpmmisc module functions,
which we don't want the dependency on.

To make it (and LiveUSBImageCreator) happy, we give it the dummy
"i386" value for now.

(From OE-Core master rev: e10ae516cfc10900ed12e84c743e3a7127372135)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: Remove rpm and grabber dependencies from BaseImageCreator
Tom Zanussi [Tue, 22 Oct 2013 14:24:01 +0000 (09:24 -0500)]
wic: Remove rpm and grabber dependencies from BaseImageCreator

BaseImageCreator is a base class for DirectImageCreator and others,
and imports rpm and grabber (which imports rpm).

The various plugins e.g. DirectPlugin import the creators and
therefore these dependencies, which manifest at run-time as e.g.:

  Warning: Failed to load plugin imager/direct_plugin: No module named
    rpm

(From OE-Core master rev: a1e24c4a5f5771b7ad35e53ce96c6d82212e4d7e)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: remove rpm warning code from BackendPlugin
Tom Zanussi [Tue, 22 Oct 2013 14:24:00 +0000 (09:24 -0500)]
wic: remove rpm warning code from BackendPlugin

We don't currently use rpm functionality, so we don't need to silence
rpm warnings.

(From OE-Core master rev: dd3cc03d4fa3347f8ef2db23d8ff98bdbdb73baa)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: Remove dependency on myurlgrab module
Tom Zanussi [Tue, 22 Oct 2013 14:23:59 +0000 (09:23 -0500)]
wic: Remove dependency on myurlgrab module

mylrlgrab is in grabber, which imports rpm.  For current
functionality, we don't need to grab urls or import rpm, so remove the
dependency.

(From OE-Core master rev: 429ecc2afa499df35a1ae9da6f92b88c6f2d8d11)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: Remove dependency on rpmmisc
Tom Zanussi [Tue, 22 Oct 2013 14:23:58 +0000 (09:23 -0500)]
wic: Remove dependency on rpmmisc

rpmmisc imports rpm and contains misc rpm utilities related to
packaging and determining arches based on the packaging.  We should
never run across this in the initial version of wic, so remove the
dependency.

(From OE-Core master rev: 2d59b6eeb418cf23eef3e32b43354b4ab16a40b9)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: eliminate module checks
Tom Zanussi [Tue, 22 Oct 2013 14:23:57 +0000 (09:23 -0500)]
wic: eliminate module checks

We're removing all external dependencies including rpm and urlgrabber,
so we don't need this check.

(From OE-Core master rev: 429c0d72b9b8bfed34832e283be92996e074b9ac)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: Remove dependency on rt_util module
Tom Zanussi [Tue, 22 Oct 2013 14:23:56 +0000 (09:23 -0500)]
wic: Remove dependency on rt_util module

rt_util contains bootstrap_mic(), which imports rpm and other things
we don't need because we don't do bootstrap i.e. runtime (set in
wic.conf) is always set to 'native', which means use what's on the
local host.

bootstrap mode is for downloading and installing rpms that wic needs,
which we may want to implement later; for now, we just want to use
what's local.

(From OE-Core master rev: 3103f0cb908eced7b751128c2bba898d12017c80)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: add pseudo to the populate-extfs step
Tom Zanussi [Wed, 16 Oct 2013 20:25:41 +0000 (15:25 -0500)]
wic: add pseudo to the populate-extfs step

Without this, files in the generated filesystem pick up the wrong
ownership.

(From OE-Core master rev: 24a6b1324965080fef6c363edcb37768090eebea)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: Initialize return values in find_artifacts()
Tom Zanussi [Fri, 18 Oct 2013 04:45:38 +0000 (23:45 -0500)]
wic: Initialize return values in find_artifacts()

If one of these isn't found, it won't be initialized and will throw an
UnboundLocalError.

(From OE-Core master rev: ce6c3ec0e5f4822e85b8f957e9e31fa9de438c55)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: Check for the existence/correctness of build artifacts
Tom Zanussi [Fri, 18 Oct 2013 04:45:37 +0000 (23:45 -0500)]
wic: Check for the existence/correctness of build artifacts

If a user uses the -e option and specifies a machine that hasn't been
built or uses the wrong .wks script for the build artifacts pointed to
by the current machine, we should point that out for obvious cases.

(From OE-Core master rev: a5b9ccadc0603c70c65f74fa386995c585a951db)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agocrond: remove UID check in init script
Jack Mitchell [Tue, 15 Oct 2013 09:06:14 +0000 (10:06 +0100)]
crond: remove UID check in init script

this init script fails when the default shell is busybox sh. This
is because busybox sh doesn't set the UID. No other init scripts
in oecore feel the need to check the UID so just remove the check.

(From OE-Core master rev: dd6a45536043af34c05a699e468cef4845f7affd)

Signed-off-by: Jack Mitchell <jmitchell@cbnl.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agoperf: flag __SANE_USERSPACE_TYPES__ to include int-ll64.h for powerpc64
Ting Liu [Fri, 11 Oct 2013 08:11:44 +0000 (16:11 +0800)]
perf: flag __SANE_USERSPACE_TYPES__ to include int-ll64.h for powerpc64

PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h
prevents 64-bit userland from seeing this definition, instead defaulting
to u64 == long in userspace.
Perf want LL64, flag __SANE_USERSPACE_TYPES__ to get int-ll64.h.

Fix the below issue:
| tests/attr.c:71:4: error: format '%llu' expects argument of type 'long
long unsigned int', but argument 6 has type '__u64' [-Werror=format=]
| tests/attr.c:80:7: error: format '%llu' expects argument of type 'long
long unsigned int', but argument 4 has type '__u64' [-Werror=format=]
|        attr->type, attr->config, fd) < 0) {
|        ^

(From OE-Core master rev: e0b56f7ed84da4f71f448548e15d5a75e8eada6e)

Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agoinitscripts: insure checkroot.sh runs before anything writing to the file
Jeffrey C Honig [Sat, 12 Oct 2013 05:30:29 +0000 (13:30 +0800)]
initscripts: insure checkroot.sh runs before anything writing to the file

If bootlogd was configured to write to a log file on the root file system,
the checkroot.sh was not able to change the rootfs to read-only because
bootlogd was started earlier and had a file descriptor open.  Lowering
the order of checkroot.sh ensures that the volatile filesystem is set
up before anything writes to it.

(From OE-Core master rev: 13c9bc143f6861517970dafdc7e7a45740d0933d)

Signed-off-by: Jeffrey C Honig <jeffrey.honig@windriver.com>
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>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agocairo: add explicit dependency on zlib
Ross Burton [Mon, 14 Oct 2013 16:28:15 +0000 (17:28 +0100)]
cairo: add explicit dependency on zlib

In normal use this is pulled in through libpng, but it's exposed in the headers
of cairo-pdf and cairo-ps and a build from sstate can end up without zlib being
present.

(From OE-Core master rev: 8413bf1ce95802bff032b4592ca1aa4728d62cbf)

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>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agokmod: Add patch to fix seperate build dir of ptest
Saul Wold [Wed, 9 Oct 2013 22:35:46 +0000 (15:35 -0700)]
kmod: Add patch to fix seperate build dir of ptest

(From OE-Core master rev: 68322eadd1d9456e606b375c2f4181725784c292)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agocross-canadian: Fix SHLIBSDIR when using multilib
Richard Purdie [Tue, 15 Oct 2013 13:40:35 +0000 (14:40 +0100)]
cross-canadian: Fix SHLIBSDIR when using multilib

Both nativesdk and multilib use MLPREFIX for their partciular purposes. When
we have both set, cross-canadian can confuse SHLIBSDIR. This forces the
variable to the correct value for cross-canadian, fixing toolchains in
multilib builds.

[YOCTO #5333]

(From OE-Core master rev: 0633b93086a7de7226f4dc6ca403ee116bc58669)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agonativesdk: Fix pn check
Richard Purdie [Tue, 15 Oct 2013 13:39:55 +0000 (14:39 +0100)]
nativesdk: Fix pn check

There are missing brackets in the check meaning MLPREFIX doesn't
get set for nativesdk-qemu-helper when it should be.

(From OE-Core master rev: 5011f4bc8a418d0616d2936b60ecb7ca156632a3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: Check for external modules
Darren Hart [Tue, 15 Oct 2013 21:46:24 +0000 (14:46 -0700)]
wic: Check for external modules

Since eight unique files import rpm, perform a check at the top level
for the existence of the rpm module print a sensible error message if it
is not. This may be able to be removed if some of the core rpm
dependencies are removed from the mic libs.

Also check for urlgrabber.

This avoids a bracktrace in the event the modules are not installed
which can be very off-putting to would-be users.

(From OE-Core master rev: b11bfadba20c1f39a63e396e605a8316c2ed2a94)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: Force lba off for FAT16 partitions
Darren Hart [Tue, 15 Oct 2013 21:46:23 +0000 (14:46 -0700)]
wic: Force lba off for FAT16 partitions

If fat16 is specified to the mkpart parted command, parted will
default to setting the lba flag which causes certain EFI firmware
to fail to detect the filesystem. lba shouldn't be necessary for
FAT16 filesystems anyway, explicitly disable it.

(From OE-Core master rev: 30442d432e203e655b7d40b93f7307f475de1614)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agobusybox: Add depmod (adds 2240 bytes)
Saul Wold [Wed, 16 Oct 2013 02:51:30 +0000 (19:51 -0700)]
busybox: Add depmod (adds 2240 bytes)

This will allow packages that update kernel modules to run correctly

(From OE-Core master rev: 72c23255cc88b5e2cd6f783231e6f42bf5190df7)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: check passed-in build artifact directories
Tom Zanussi [Wed, 16 Oct 2013 05:14:30 +0000 (00:14 -0500)]
wic: check passed-in build artifact directories

Make sure they exist - complain if they don't.

(From OE-Core master rev: 24a585e3fd0ea0166991a6aa834bba15bcd8295d)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agowic: check for build artifacts
Tom Zanussi [Wed, 16 Oct 2013 05:14:29 +0000 (00:14 -0500)]
wic: check for build artifacts

wic needs to be given one form of build artifacts or another -
complain if the user doesn't do that.

(From OE-Core master rev: 9116a17efd42447f276000927d0c2ea63776865b)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agopango: fix x11 DISTRO_FEATURE check
Ross Burton [Tue, 8 Oct 2013 14:13:22 +0000 (14:13 +0000)]
pango: fix x11 DISTRO_FEATURE check

--without-x was removed in 1.32.0, so the correct option is now --without-xft.

Also remove --disable-glibtest, as configure.ac doesn't invoke that test.

(From OE-Core master rev: e806f4ff404515f38318b6fed7d2b614c2138da6)

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>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agoqt4: add upstream QTBUG-31579 patch for QPainter regression
Jonathan Liu [Wed, 9 Oct 2013 13:21:46 +0000 (13:21 +0000)]
qt4: add upstream QTBUG-31579 patch for QPainter regression

(From OE-Core master rev: a5afc67cbfc32beb3be10392bf9788cfc3610ab1)

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agoxorg-lib-common: fix malloc0returnsnull usage
Ross Burton [Tue, 8 Oct 2013 11:23:32 +0000 (11:23 +0000)]
xorg-lib-common: fix malloc0returnsnull usage

Xorg libraries that use Xmalloc need to know if malloc(0) returns NULL or not,
and as this is a runtime test it can't be checked for.  Previously
xorg-lib-common declared that malloc(0) did return NULL, but this isn't true for
eglibc (only uclibc).

Instead, use libc-specific overrides to pass the relevant option.

(ideally the check would use the autoconf cache so this can be stored in the site files)

(From OE-Core master rev: e628c8aba0189de30de2833882b9999ff3b6547a)

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>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agosysvinit-inittab: Fix getting tty device name from SERIAL_CONSOLES entries
Muhammad Shakeel [Mon, 7 Oct 2013 15:05:04 +0000 (15:05 +0000)]
sysvinit-inittab: Fix getting tty device name from SERIAL_CONSOLES entries

Currently the part after "tty" in the device name go into label along with
everything after that part. For example if SERIAL_CONSOLES="115200;vt100;ttyS0"
than label=S0 but if SERIAL_CONSOLES="115200;ttyS0;vt100" than label=S0;vt100.
If SERIAL_CONSOLES="..;ttyX;..", part after 'X' should also be trimmed.

(From OE-Core master rev: b00b9ae5693e04cacd0843c12a529e7f3dc501ed)

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>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agokmod-native: use bswap to work on older Linux hosts
Ting Liu [Tue, 10 Sep 2013 06:00:20 +0000 (06:00 +0000)]
kmod-native: use bswap to work on older Linux hosts

We can't use htobe* and be*toh functions because they are not
available on older versions of glibc, For example, shipped on Centos 5.5.

Change to directly calling bswap_* as defined in byteswap.h.

(From OE-Core master rev: 63edb6b9a8bdf2f5541edd618f2f598185e37223)

Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agodevice_table-minimal.txt: change group of /dev/hda back to disk
Chen Qi [Wed, 9 Oct 2013 09:57:35 +0000 (09:57 +0000)]
device_table-minimal.txt: change group of /dev/hda back to disk

The group for /dev/hda should be disk instead of root.
The group ID for /dev/hda was 6, but it was modified to be root by
accident in the following commit.

 commit c5ef0294a9b8d178896a47c9f5d6e3dd6797e343
     device_table-minimal.txt: use user/group names instead of uid/gid

This patch changes it back.

(From OE-Core master rev: 5c5db302400894c2bb1f4052d0f120738589c128)

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>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agoRevert "utils.bbclass: Fix override ordering for FILESPATH"
Richard Purdie [Tue, 3 Dec 2013 12:55:47 +0000 (12:55 +0000)]
Revert "utils.bbclass: Fix override ordering for FILESPATH"

This reverts commit 0bd63125c3b44a656e44f2a76cc5f832c9db4bbd.

As discussed on the mailing list, this change changes layer layout
in a stable branch which is unaccetable. The was accidentally
backported and should not have been, this reverts it.

11 years agokernel.bbclass: unset LDFLAGS when run devshell in kernel recipe
Nobuhiro Iwamatsu [Fri, 20 Sep 2013 05:45:46 +0000 (14:45 +0900)]
kernel.bbclass: unset LDFLAGS when run devshell in kernel recipe

When user runs devshell in kernel recipe and compiles kernel,
this will fail by unrecognized option of LD.

----
$ make
...
arm-poky-linux-gnueabi-ld: unrecognized option '-Wl,-O1'
arm-poky-linux-gnueabi-ld: use the --help option for usage information
----

This set to empty LDFLAGS when user runs the devshell, and solve this problem.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotelepathy-mission-control: Add PACKAGECONFIG for upower and connectivity
Martin Jansa [Sat, 5 Oct 2013 12:23:04 +0000 (14:23 +0200)]
telepathy-mission-control: Add PACKAGECONFIG for upower and connectivity

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomatchbox-wm: Add dependency on libxfixes and libxcursor
Martin Jansa [Sat, 5 Oct 2013 12:23:03 +0000 (14:23 +0200)]
matchbox-wm: Add dependency on libxfixes and libxcursor

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouboot-config.bbclass: Raise an error for unknown configs
Otavio Salvador [Fri, 11 Oct 2013 15:59:35 +0000 (12:59 -0300)]
uboot-config.bbclass: Raise an error for unknown configs

When passing the wrong value for UBOOT_CONFIG it ought to raise an
error otherwise it is quite difficult for user to notice it didn't
behave as expected.

Reported-by: Lauren Post <lauren.post@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto/3.10: integrate lxc kernel feature and 32 bit x86 config
Bruce Ashfield [Tue, 8 Oct 2013 21:04:15 +0000 (17:04 -0400)]
linux-yocto/3.10: integrate lxc kernel feature and 32 bit x86 config

Updating the meta branch SRCREV to incorporate the two following
configuration changes:

  452f067 lxc: Add lxc kernel config
  a249eba x86_32: Enable X86_32 and disable 64BIT explicitly

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto/3.10: boot-live.cfg: Add CONFIG_ZISO=y
Bruce Ashfield [Tue, 8 Oct 2013 21:04:14 +0000 (17:04 -0400)]
linux-yocto/3.10: boot-live.cfg: Add CONFIG_ZISO=y

Updating the meta branch SRCREV with the following commit:

[
    The oe-core live class now fully support compressed ISO images this is
    the corresponding kernel change.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto/3.8: re-use common-pc-64 for hasswell-wc
Bruce Ashfield [Tue, 8 Oct 2013 21:04:13 +0000 (17:04 -0400)]
linux-yocto/3.8: re-use common-pc-64 for hasswell-wc

Updating the meta branch SRCREV with the following commit:

[
    meta-haswell-wc: update bsp scc to use linux-yocto-3.8 standard/common-pc-64/base branch

    Remove "branch haswell-wc" from haswell-wc-standard.scc
    so that "haswell-wc" BSP uses standard/common-pc-64/base branch
    on linux-yocto-3.8 repo.

Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoutils.bbclass: Fix override ordering for FILESPATH
Richard Purdie [Mon, 7 Oct 2013 11:20:07 +0000 (11:20 +0000)]
utils.bbclass: Fix override ordering for FILESPATH

Currently the overrides are being applied backwards. This means something which is
platform specific is overriding something which is machine specific which
is clearly not intended.

This patch corrects the ordering to match the normal expected behaviour of
OVERRIDES.

Secondly, all overrides are being searched for each path in turn. What should
really happen is that we should look for the highest priority override (e.g. distro
or machine) in each layer, then move on to platform/tune (e.g. armv7a) and
then to arch (e.g. arm). This patch therefore also reverses the for loops
to achieve this behaviour and give the result the user would expect.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoalsa-state: Rename init script
Richard Purdie [Mon, 7 Oct 2013 11:42:46 +0000 (11:42 +0000)]
alsa-state: Rename init script

Having a SRC_URI called ${PN} is asking for trouble. When extending FILESPATH,
alsa-state can be treated as a directory and copied over the contents of ${WORKDIR}
which is invariably not what the user wants.

Avoid this by renaming the SRC_URI to something else and only call
it alsa-state at install time.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogcc: Fix strange C++ repo issues
Richard Purdie [Wed, 9 Oct 2013 20:37:49 +0000 (20:37 +0000)]
gcc: Fix strange C++ repo issues

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agokernel-yocto: Add a missing '['
Peter Kjellerstedt [Thu, 10 Oct 2013 08:52:06 +0000 (10:52 +0200)]
kernel-yocto: Add a missing '['

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouboot-config.bbclass: Fix use without IMAGE_FSTYPES appending
Otavio Salvador [Mon, 7 Oct 2013 15:15:16 +0000 (12:15 -0300)]
uboot-config.bbclass: Fix use without IMAGE_FSTYPES appending

Before checking if the image is a valid value, we need to check if the
list of items is big enough or we will raise an exception.

Reported-by: Lauren Post <lauren.post@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oe/path: Fix copytree functions for tar 1.27
Richard Purdie [Fri, 11 Oct 2013 22:02:27 +0000 (23:02 +0100)]
lib/oe/path: Fix copytree functions for tar 1.27

tar version 1.27 returns:

tar: --same-order option cannot be used with -c

with the commandlines we have been using. We can remove the -s option (which
is --same-order) to remove the error.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses: tar 1.27 fixes
Richard Purdie [Fri, 11 Oct 2013 22:01:54 +0000 (23:01 +0100)]
classes: tar 1.27 fixes

tar version 1.27 returns:

tar: --same-order option cannot be used with -c

with the commandlines we have been using. We can remove the -s option (which
is --same-order) to remove the error.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobuild-appliance: Update SRCREV for release
Richard Purdie [Fri, 11 Oct 2013 22:12:32 +0000 (23:12 +0100)]
build-appliance: Update SRCREV for release

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotoolchain-scripts: Fix TARGET_SYS reference
Richard Purdie [Fri, 11 Oct 2013 22:03:02 +0000 (23:03 +0100)]
toolchain-scripts: Fix TARGET_SYS reference

There was a fix missing from a previous commit:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=20a86e16bc54b74fbdb2a3a407d54210ea262925

since there was another section of toolchain-scripts needing updating.
This patch fixes the missing reference and unbreaks the ADT toolchain.

[YOCTO #5340]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobuild-appliance: Update SRCREV for release
Richard Purdie [Tue, 8 Oct 2013 15:33:25 +0000 (16:33 +0100)]
build-appliance: Update SRCREV for release

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemu: fix nativesdk build without x11
Eric Bénard [Sat, 5 Oct 2013 10:11:19 +0000 (12:11 +0200)]
qemu: fix nativesdk build without x11

when x11 is not defined in DISTRO_FEATURES, there are no x11 headers
so True is not defined leading to :
| ui/sdl.c:62:8: warning: type defaults to 'int' in declaration of 'doing_grabs' [-Wimplicit-int]
|  static doing_grabs = True;
|         ^
| ui/sdl.c:62:22: error: 'True' undeclared here (not in a function)
|  static doing_grabs = True;
|                       ^

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd: Add PACKAGECONFIG for cryptsetup
Martin Jansa [Sat, 5 Oct 2013 12:23:11 +0000 (14:23 +0200)]
systemd: Add PACKAGECONFIG for cryptsetup

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosubversion: Add dependency on file for libmagic
Martin Jansa [Sat, 5 Oct 2013 12:23:10 +0000 (14:23 +0200)]
subversion: Add dependency on file for libmagic

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolame: Add dependency on ncurses
Martin Jansa [Sat, 5 Oct 2013 12:23:09 +0000 (14:23 +0200)]
lame: Add dependency on ncurses

* it's autodetected and configure doesn't allow to explicitly disable it

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoglib-networking: Add PACKAGECONFIG for p11-kit
Martin Jansa [Sat, 5 Oct 2013 12:23:08 +0000 (14:23 +0200)]
glib-networking: Add PACKAGECONFIG for p11-kit

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agox11vnc: Add PACKAGECONFIG for xinerama
Martin Jansa [Sat, 5 Oct 2013 12:23:07 +0000 (14:23 +0200)]
x11vnc: Add PACKAGECONFIG for xinerama

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotcl: Add dependency on zlib
Martin Jansa [Sat, 5 Oct 2013 12:23:05 +0000 (14:23 +0200)]
tcl: Add dependency on zlib

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowget: Add dependency on libpcre
Martin Jansa [Sat, 5 Oct 2013 12:23:06 +0000 (14:23 +0200)]
wget: Add dependency on libpcre

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogstreamer1.0-libav: Add PACKAGECONFIG for orc
Martin Jansa [Sat, 5 Oct 2013 12:22:58 +0000 (14:22 +0200)]
gstreamer1.0-libav: Add PACKAGECONFIG for orc

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibunique: Add PACKAGECONFIG for dbus
Martin Jansa [Sat, 5 Oct 2013 12:22:59 +0000 (14:22 +0200)]
libunique: Add PACKAGECONFIG for dbus

* dbus-glib was missing in DEPENDS in order to enable dbus backend
  but because dbus was in DEPENDS lets enable this PACKAGECONFIG by
  default

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoaspell: Add PACKAGECONFIG for curses
Martin Jansa [Sat, 5 Oct 2013 12:23:00 +0000 (14:23 +0200)]
aspell: Add PACKAGECONFIG for curses

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxf86-input-synaptics: Add dependency on libxtst
Martin Jansa [Sat, 5 Oct 2013 12:23:01 +0000 (14:23 +0200)]
xf86-input-synaptics: Add dependency on libxtst

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxdpyinfo: Add dependency on libxcomposite
Martin Jansa [Sat, 5 Oct 2013 12:23:02 +0000 (14:23 +0200)]
xdpyinfo: Add dependency on libxcomposite

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython: Ensure build completes before install
Richard Purdie [Sun, 6 Oct 2013 08:37:40 +0000 (08:37 +0000)]
python: Ensure build completes before install

At the start of install, python swizzles the makefiles around, leading
to chunks of do_compile running again. These race against the install
target, leading to errors if pieces are being recompiled whilst others
are being installed.

For now, workaround this by running the compile target with the new
makefile, then running install ensuring a parallel make race doesn't
happen.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorun-postinst: Ensure that the postinsts are ordered
Mark Hatle [Fri, 4 Oct 2013 15:48:19 +0000 (15:48 +0000)]
run-postinst: Ensure that the postinsts are ordered

The postinst files were being generated using purely the name of the package,
this unfortunately meant the run order would be based on the name of the
package and not the order in which it was installed on the filesystem.

If package A requires package Z to be fully installed, this causes a problem.

Note:

rpm - as the rpm based install proceeds the order is defined and captured.
      so the problem is resolved there.

ipk - this unfortunately does not appear to solve the problem for ipk, as
      the status file is not ordered in any appreciable way.  This does not
      cause any regressions however and sets the stage for a proper fix.

deb - this -may- fix the deb install.  Early testing indicates at least some
      ordering to the status file.  But it's unclear if it completely resolves
      the issue.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_rpm.bbclass: Workaround failure in attemptonly installs
Mark Hatle [Thu, 3 Oct 2013 20:48:45 +0000 (20:48 +0000)]
package_rpm.bbclass: Workaround failure in attemptonly installs

[YOCTO #5313]

When performing an attemptonly install, we should skip an errors and
continue to install everything else.  However, there is a case where two
packages can conflict, and cause a hard failure.

This workaround, ignores this and allows the image to be constructed.
Note: Some items in the failed transaction may not get installed.

To fix this properly we need to find the issue in smart, and make it ignore
or at least attempt to resolve these kinds of conflicts.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooe-init-build-env-memres: Unset BBSERVER if already set
Richard Purdie [Fri, 4 Oct 2013 13:17:03 +0000 (14:17 +0100)]
oe-init-build-env-memres: Unset BBSERVER if already set

When starting a new server we don't want bitbake to connect to an existing
server so ensure BBSERVER is unset.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoconnman-conf: add a global public DNS to network provisioning
Cristian Iorga [Fri, 4 Oct 2013 12:33:05 +0000 (15:33 +0300)]
connman-conf: add a global public DNS to network provisioning

In case of QEMU machines, a global public DNS is provisioned,
as the network is not configured via DHCP.
Google's public global DNS server 8.8.8.8 is used.

Partial fix for [YOCTO #4587] (qemu machines case).

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooe-init-build-env: unset BBSERVER
Richard Purdie [Fri, 4 Oct 2013 13:14:10 +0000 (14:14 +0100)]
oe-init-build-env: unset BBSERVER

If BBSERVER is set, we should unset it before proceeding. Its assumed the
user will have unloaded the server from memory should they have wished
to do so.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoudpated-rc.d: Track postinst/prerm/postrm in task checksum
Richard Purdie [Fri, 4 Oct 2013 11:29:08 +0000 (12:29 +0100)]
udpated-rc.d: Track postinst/prerm/postrm in task checksum

When these functions change, the package should rebuild but currently it
does not. We need to add the dependencies manually as the dependency
code can't track dynamically created variables.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd: Track postinst/prerm in task checksum
Richard Purdie [Fri, 4 Oct 2013 11:28:23 +0000 (12:28 +0100)]
systemd: Track postinst/prerm in task checksum

When these functions change, the package should rebuild but currently it
does not. We need to add the dependencies manually as the dependency
code can't track dynamically created variables.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd-compat-units: Use correct run-postinsts script link
Muhammad Shakeel [Wed, 2 Oct 2013 10:55:32 +0000 (10:55 +0000)]
systemd-compat-units: Use correct run-postinsts script link

OE-Core commit 75a14923da1ba91eddde47f0907345c19c82d6f0 has moved
run-postinsts script execution from S98 to S99 in rcS.d. run-postinsts.service
should check for this script and run it on first boot rather than
S98run-postinsts, which is for opkg/dpkg.

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 agokmod: ptest fixes
Tudor Florea [Tue, 1 Oct 2013 22:54:40 +0000 (22:54 +0000)]
kmod: ptest fixes

 Make kmod-ptest able to compile with separated source and
 build dir. Since kmod test files contain kernel modules for
 many different architectures, strip and arch gets confused
 and throws errors.

Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Signed-off-by: Björn Stenberg <bjst@enea.com>
Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodbus: fix QA error building nativesdk-dbus
Paul Eggleton [Thu, 3 Oct 2013 13:24:08 +0000 (14:24 +0100)]
dbus: fix QA error building nativesdk-dbus

Fixes the following QA error:

ERROR: QA Issue: nativesdk-dbus: Files/directories were installed but not shipped
  /run
  /run/dbus

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto: enable CONFIG_INPUT_EVDEV as standard policy
Bruce Ashfield [Wed, 2 Oct 2013 19:15:26 +0000 (19:15 +0000)]
linux-yocto: enable CONFIG_INPUT_EVDEV as standard policy

We have a number (in fact most) BSPs that require INPUT_EVDEV for basic
functionality. The size increase is minimal, so we'll add it to the
standard configuration for all platforms.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolicense.bbclass: use shutil instead of bb.utils.copyfile
Ross Burton [Wed, 2 Oct 2013 16:30:21 +0000 (16:30 +0000)]
license.bbclass: use shutil instead of bb.utils.copyfile

bb.utils.copyfile is for a specific purpose and more complicated than needed
here, so just use shutil.copyfile.

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 agoopkg: ignore result of opkg configure
Muhammad Shakeel [Wed, 2 Oct 2013 15:07:12 +0000 (15:07 +0000)]
opkg: ignore result of opkg configure

Some packages may return error while running opkg-cl configure, during
first boot. This will fail 'ExecStart' and 'ExecStartPost' will not run.
Without 'ExecStartPost' opkg-configure service will continue to run on
successive boot attempts. 'ExecStartPost' should disable this service
after first boot irrespective of 'ExecStart' status.

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 agocross-canadian: Fix TUNE_PKGARCH references
Richard Purdie [Wed, 2 Oct 2013 13:09:50 +0000 (13:09 +0000)]
cross-canadian: Fix TUNE_PKGARCH references

The cross-canadian compilers are now build once per architecture but were being
installed into tune specific locations which is incorrect. This adjusts things
so they are make TARGET_ARCH specific. We gain the tune specific parts from the
target sysroot which remains tune specific, the compiler and tools are independent
ot that.

binutils/gcc require sysroot options but since we reset at runtime, these shouldn't
have dependencies in the sstate checksums. They are therefore also excluded.

With these patches, switching machines does not result in a rebuild of *-cross-canadian
and the compiler is correctly located and referenced in the target images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopixman: Fix nativesdk rebuilds for armv7a
Richard Purdie [Wed, 2 Oct 2013 13:07:54 +0000 (13:07 +0000)]
pixman: Fix nativesdk rebuilds for armv7a

MACHINE=X bitbake nativesdk-pixman; MACHINE=Y bitbake nativesdk-pixman

where X is an armv7a machine and Y is not results in pixman rebuilding
due to the neon option. This is incorrect. The ultimate fix will be
not to apply target system overrides in the nativesdk case. Until
we do that we can at least work around the issue as done by this patch.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogcc-common: Improve fpu code checksum dependencies
Richard Purdie [Wed, 2 Oct 2013 13:06:19 +0000 (13:06 +0000)]
gcc-common: Improve fpu code checksum dependencies

We only care about the end result in this case, not the specific inputs
that went into determining the gcc option. This change updates the code
to reflect that.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocross/crosssdl/native/nativesdk: Fix do_packagedata stamps
Richard Purdie [Wed, 2 Oct 2013 08:11:37 +0000 (08:11 +0000)]
cross/crosssdl/native/nativesdk: Fix do_packagedata stamps

If you build nativesdk for machine A, then change to B you will see sstate
manifest warnings for the packagedata files. The stamps are machine
specific and should not be, ditto for native.

This patch copies the populate-sysroot extra stamp entries to avoid
these warnings.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoboot-directdisk: avoid loop in MBR disk signature generation
Jonathan Liu [Wed, 2 Oct 2013 10:47:11 +0000 (10:47 +0000)]
boot-directdisk: avoid loop in MBR disk signature generation

Instead of looping until the generated signature is non-zero, just
return 'ffffffff' if it's zero. This avoids an infinite loop if the
generated signature is always zero.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-dummy.bb: Resolve missing task issues
Nathan Rossi [Tue, 1 Oct 2013 04:19:42 +0000 (04:19 +0000)]
linux-dummy.bb: Resolve missing task issues

Commit 609d5a9ab9e58bb1c2bcc2145399fbc8b701b85a added additional
initramfs functionality and created an additional task on kernel.bbclass
Adding this task was missed on the linux-dummy recipe, which causes task
dependency issues due to image.bbclass depending on
"virtual/kernel:do_bundle_initramfs". This change adds a dummy task
which resolves the dependency issue.

Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomakedevs: Do not return error if the fifo exisits
Saul Wold [Tue, 1 Oct 2013 16:57:52 +0000 (16:57 +0000)]
makedevs: Do not return error if the fifo exisits

This ensures that makedevs will not cause image creation failures
when it encounters a pipe (fifo) that exists from a previous image.
This handles mode changes and it will correctly fail for dangling
symlinks.

[YOCTO #5288]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodpkg: Add xz to RDEPENDS
Saul Wold [Mon, 30 Sep 2013 22:17:46 +0000 (22:17 +0000)]
dpkg: Add xz to RDEPENDS

dpkg uses xz as a compressor and the binary image is needed on the system for
dpkg to work correctly.

[YOCTO #1881]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowic: Add OpenEmbedded-specific implementation
Tom Zanussi [Thu, 19 Sep 2013 04:32:19 +0000 (04:32 +0000)]
wic: Add OpenEmbedded-specific implementation

Reuses the mic/livecd infrastructure but heavily subclasses and
modifies it to adapt to the special needs of building images from
existing OpenEmbedded build artifacts.

In addition to the OE-specific mic objects and modifications to the
underlying infrastructure, this adds a mechanism to allow OE kickstart
files to be 'canned' and made available to users via the 'wic list
images' command.

Two initial OE kickstart files have been added as canned .wks files:
directdisk, which implements the same thing as the images created by
directdisk.bbclass, and mkefidisk, which can essentially be used as a
replacement for mkefidisk.sh.  Of course, since creation of these
images are now driven by .wks files rather than being hard-coded into
class files or scripts, they can be easily modified to generate
different variations on those images.  They also don't require root
priveleges, since they don't use mount to create the images.  They
don't however write to media like mkefidisk.sh does, but rather create
images that can be written onto media.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowic: Add mic w/pykickstart
Tom Zanussi [Sat, 24 Aug 2013 15:31:34 +0000 (15:31 +0000)]
wic: Add mic w/pykickstart

This is the starting point for the implemention described in [YOCTO
3847] which came to the conclusion that it would make sense to use
kickstart syntax to implement image creation in OpenEmbedded.  I
subsequently realized that there was an existing tool that already
implemented image creation using kickstart syntax, the Tizen/Meego mic
tool.  As such, it made sense to use that as a starting point - this
commit essentially just copies the relevant Python code from the MIC
tool to the scripts/lib dir, where it can be accessed by the
previously created wic tool.

Most of this will be removed or renamed by later commits, since we're
initially focusing on partitioning only.  Care should be taken so that
we can easily add back any additional functionality should we decide
later to expand the tool, though (we may also want to contribute our
local changes to the mic tool to the Tizen project if it makes sense,
and therefore should avoid gratuitous changes to the original code if
possible).

Added the /mic subdir from Tizen mic repo as a starting point:

 git clone git://review.tizen.org/tools/mic.git

 For reference, the top commit:

 commit 20164175ddc234a17b8a12c33d04b012347b1530
 Author: Gui Chen <gui.chen@intel.com>
 Date:   Sun Jun 30 22:32:16 2013 -0400

    bump up to 0.19.2

Also added the /plugins subdir, moved to under the /mic subdir (to
match the default plugin_dir location in mic.conf.in, which was
renamed to yocto-image.conf (moved and renamed by later patches) and
put into /scripts.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowic: Initial code for wic (OpenEmbedded Image Creator)
Tom Zanussi [Tue, 20 Aug 2013 20:55:16 +0000 (20:55 +0000)]
wic: Initial code for wic (OpenEmbedded Image Creator)

Initial implementation of the 'wic' command.

The 'wic' command generates partitioned images from existing
OpenEmbedded build artifacts.  Image generation is driven by
partitioning commands contained in an 'Openembedded kickstart' (.wks)
file specified either directly on the command-line or as one of a
selection of canned .wks files (see 'wic list images').  When applied
to a given set of build artifacts, the result is an image or set of
images that can be directly written onto media and used on a
particular system.

'wic' is based loosely on the 'mic' (Meego Image Creator) framework,
but heavily modified to make direct use of OpenEmbedded build
artifacts instead of package installation and configuration, things
already incorporated int the OE artifacts.

The name 'wic' comes from 'oeic' with the 'oe' diphthong promoted to
the letter 'w', because 'oeic' is impossible to remember or pronounce.

This covers the mechanics of invoking and providing help for the
command and sub-commands; it contains hooks for future commits to
connect with the actual functionality, once implemented.

Help is integrated into the 'wic' command - see that for details on
usage.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopseudo: Fix race problems
Richard Purdie [Thu, 26 Sep 2013 17:01:29 +0000 (17:01 +0000)]
pseudo: Fix race problems

There is a potential issue with the fastop code in pseudo since a process may
exit and allow some other function to run before the server has processed
the commands run by the process. Issues have been see with unpredictable
file permissions.

To avoid this, we ping the server before exitting which guarantees it has
processed the current command queue.

The patch was written by peter.seebach@windriver.com

[YOCTO #5132]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemu: Add fix for floating point issues on x86-64
Richard Purdie [Mon, 30 Sep 2013 18:50:59 +0000 (18:50 +0000)]
qemu: Add fix for floating point issues on x86-64

There was a bug in handling of the mxcsr register since cpu flags
were not getting updated after fxrstor operations. This small tweak
fixes that.

[YOCTO #5248]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoslang: fix sprintf bug concerning 8-bit characters
Marius Avram [Mon, 30 Sep 2013 12:31:38 +0000 (12:31 +0000)]
slang: fix sprintf bug concerning 8-bit characters

Buffer used for copying a "%c" character was getting
out of scope when it was required by the sprintf operation.

[YOCTO #5272]

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Irina Patru <irina.patru@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agonss: Fix return codes in postinstall
David Nyström [Sun, 29 Sep 2013 21:44:23 +0000 (21:44 +0000)]
nss: Fix return codes in postinstall

exit 0 was done if $D != NULL, if one or more
shlibsign executions fails.

Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoboot-directdisk: ensure generated MBR disk signature is non-zero
Jonathan Liu [Fri, 27 Sep 2013 01:30:10 +0000 (01:30 +0000)]
boot-directdisk: ensure generated MBR disk signature is non-zero

A zero MBR disk signature is generally seen as no signature and
another partitioning program might install a new signature.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomkefidisk.sh: Allow using a loopback mounted file
Jason Wessel [Fri, 27 Sep 2013 01:01:20 +0000 (01:01 +0000)]
mkefidisk.sh: Allow using a loopback mounted file

It should be possible to generate a disk to a file using a loopback
device with mkefidisk.sh, which is useful for booting simulators.  To
make this possible the partitions for the loop back need to work
similarly to the mmc devices.  The mkfs.vfat also requires and
additional argument to force it to write to something other then a
real disk.

Example:
  qemu-img create -f raw bigdisk 4G
  dev=`sudo losetup -f`
  sudo losetup $dev bigdisk
  mkefidisk.sh $dev tmp-eglibc/deploy/images/qemux86/core-image-minimal-qemux86.hddimg /dev/sda
  sudo losetup -d $dev

Note:
  Also a bug was fixed in the mkefidisk.sh where if the disk you are
  writing to initially has an invalid label the size of the first
  partition will be computed incorrectly.  For the simulator disk
  creation this is generally always the case, but this can happen with
  real hardware as well.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agokernel.bbclass: Allow INITRAMFS_TASK to trigger copy initramfs code
Jason Wessel [Fri, 27 Sep 2013 21:32:00 +0000 (21:32 +0000)]
kernel.bbclass: Allow INITRAMFS_TASK to trigger copy initramfs code

Activating the INITRAMFS_TASK can cause circular dependencies, but
that is up to the end user to resolve in recipes.  The INITRAMFS_TASK
should also trigger immediate linking of the cpio task in the first
compile pass.  This was a subtle regression introduced by: 609d5a9ab
(kernel.bbclass, image.bbclass: Implement kernel INITRAMFS dependency
and bundling).

This patch restores the previous behavior and only affects the
INITRAMFS_TASK which is not set by any of the default build profiles
in oe-core.

Reviewed-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoopkg: Use systemd service for first boot configuration
Muhammad Shakeel [Fri, 27 Sep 2013 18:14:15 +0000 (18:14 +0000)]
opkg: Use systemd service for first boot configuration

Currently opkg uses a script to configure packages during first time boot.
This script is present in rcS.d and when 'sysvinit' is disabled this
script doesn't execute. For systemd only distros this newly added service
will run the opkg configure during first boot only.

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 agosato-icon-theme: add more compatibility symlinks
Ross Burton [Fri, 27 Sep 2013 16:41:17 +0000 (16:41 +0000)]
sato-icon-theme: add more compatibility symlinks

libfm uses "preferences-desktop", so link it to the close-enough
"preferences-sytem".

x11vnc uses "computer", link it to "terminal".

pcmanfm uses "system-file-manager", link it to "file-manager".

[ YOCTO #4062 ]

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 agopcmanfm: hide the desktop preferences
Ross Burton [Fri, 27 Sep 2013 16:41:16 +0000 (16:41 +0000)]
pcmanfm: hide the desktop preferences

Sato doesn't use the pcmanfm desktop, so hide the desktop preferences launcher.

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>