scm/bb/tizen-distro.git
12 years agomkelfimage: Add stable git build (initial recipe)
Raymond Danks [Fri, 29 Jun 2012 20:30:07 +0000 (14:30 -0600)]
mkelfimage: Add stable git build (initial recipe)

(From OE-Core rev: c04136393325967cbd491636b582d3e0f394de16)

Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
Acked-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoimage_types: Add elf image type
Raymond Danks [Mon, 2 Jul 2012 20:51:25 +0000 (14:51 -0600)]
image_types: Add elf image type

On x86, an ELF image file may be stored as a coreboot payload.
The image file is constructed, using the mkelfimage utility,
from a kernel and an initrd.

(From OE-Core rev: 93e9de4e27919f59b6783d53f314df6e49ccb436)

Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
Acked-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopackage.bbclass: enable the use of package_qa_handle_error
Saul Wold [Tue, 3 Jul 2012 00:40:37 +0000 (17:40 -0700)]
package.bbclass: enable the use of package_qa_handle_error

This will allow the reporting of these errors as either WARNINGs (default)
or ERRORs if installed_vs_shipped is added to the ERROR_QA of the policy
file (such as a <distro_name>.conf file.

V2: found the code I had intended to send instead of that other junk,
    was just not watching what I pushed on that one, sorry. (this is edit in
    no in the actual commit message)

(From OE-Core rev: 20d4205a4e408b6a99db392d4df458156113106a)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agooprofile: Change /root to /home/root
Mark Hatle [Mon, 2 Jul 2012 19:20:21 +0000 (14:20 -0500)]
oprofile: Change /root to /home/root

OE uses /home/root instead of /root for the root user's directory.  Update
oprofile to match.

Upstream-status: Inappropriate [OE Specific]

(From OE-Core rev: d50c44585e72057532b8e0d9221ebf058e514672)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agospeex: use lib_package bbclass
Saul Wold [Thu, 28 Jun 2012 20:37:21 +0000 (13:37 -0700)]
speex: use lib_package bbclass

This is a clean-up following the recent addition of PN-bin
to bitbake.conf and lib_package

(From OE-Core rev: 4c41954227144606d2d22fbdf07231f4c7207ac5)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agognutls: use lib_package bbclass
Saul Wold [Thu, 28 Jun 2012 20:37:56 +0000 (13:37 -0700)]
gnutls: use lib_package bbclass

This is a clean-up following the recent addition of PN-bin
to bitbake.conf and lib_package

(From OE-Core rev: b9553b5fe8e06032770fd34e26ab97e6834292ab)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodb: use lib_package bbclass
Saul Wold [Thu, 28 Jun 2012 20:37:37 +0000 (13:37 -0700)]
db: use lib_package bbclass

This is a clean-up following the recent addition of PN-bin
to bitbake.conf and lib_package

(From OE-Core rev: b3bfeec4db7d8fa6b8cc4bb2153c7f94cbe1dcc3)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopulseaudio: use lib_package bbclass
Saul Wold [Thu, 28 Jun 2012 20:36:42 +0000 (13:36 -0700)]
pulseaudio: use lib_package bbclass

This is a clean-up following the recent addition of PN-bin
to bitbake.conf and lib_package

(From OE-Core rev: 42dfedc01beb90adfa222a0c671ca8876849f938)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolibacpi: use lib_package bbclass
Saul Wold [Thu, 28 Jun 2012 20:36:22 +0000 (13:36 -0700)]
libacpi: use lib_package bbclass

This is a clean-up following the recent addition of PN-bin
to bitbake.conf and lib_package

(From OE-Core rev: 6597f7c77e1ccb21d73f8e3cec25bb27a901b500)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolib_package: use PACKAGE_BEFORE_PN
Saul Wold [Thu, 28 Jun 2012 20:34:26 +0000 (13:34 -0700)]
lib_package: use PACKAGE_BEFORE_PN

Since this check effective is not a change becase the package
order that was in this file has not really changed no PR Bumps
are needed.

(From OE-Core rev: d807d5dd5bd0e161057ee115256dc050dbe8609b)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake.conf: Add PACKAGE_BEFORE_PN to PACKAGES
Saul Wold [Thu, 28 Jun 2012 20:33:42 +0000 (13:33 -0700)]
bitbake.conf: Add PACKAGE_BEFORE_PN to PACKAGES

By doing this we can easily add addtional packages that can be
greedy before PN, but after some of the other standard packages.

This will also allow us to simplify the lib_package class to set
this variable.

(From OE-Core rev: b41b2bc584756956a48c9c5f91e7337e821105b2)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agokernel: Add kernel headers to kernel-dev package
Darren Hart [Sat, 23 Jun 2012 00:44:10 +0000 (17:44 -0700)]
kernel: Add kernel headers to kernel-dev package

[YOCTO #1614]

Add the kernel headers to the kernel-dev package. This packages what was
already built and kept in sysroots for building modules with bitbake.
Making this available on the target requires removing some additional
host binaries.

Move the location to /usr/src/kernel

Before use on the target, the user will need to:

    # cd /usr/src/kernel
    # make scripts

This renders the kernel-misc recipe empty, so remove it.

As we use /usr/src/kernel in several places (and I missed one in the
previous version), add a KERNEL_SRC_DIR variable and use that throughout
the class to avoid update errors in the future.

Now that we package the kernel headers, drop the
kernel_package_preprocess function which removed them from PKGD.

All *-sdk image recipes include dev-pkgs, so the kernel-dev package will
be installed by default on all such images.

(From OE-Core rev: 6125ea40d4483965f793bd847b3ce14b668a5b1e)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Bruce Ashfield <bruce.ashfield@windriver.com>
CC: Tom Zanussi <tom.zanussi@intel.com>
CC: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolinux-yocto-tiny: add KMETA specification
Bruce Ashfield [Tue, 3 Jul 2012 14:40:54 +0000 (10:40 -0400)]
linux-yocto-tiny: add KMETA specification

With recent kern tools changes, having a meta branch is opt-in. The
other linux-yocto recipes were updated, but linux-yocto-tiny was
missed.

Without specifying a meta branch, the kernel configuration audit
won't return any useful results, and throws a warning message.

 WARNING: Can't find any BSP hardware or required configuration fragments.
 WARNING: Looked at //cfg///hdw_frags.txt and //cfg///required_frags.txt in directory: //cfg//
 NOTE: package linux-yocto-tiny-3.2.18+git1+ee78519365bdb25287703bbc31c06b193263c654_1+27b68a93eb791e830da8d3a2c0fc99780897ad89-r3.0: task do_kernel

(From OE-Core rev: 29dbe7d7ba66c66e9e5c8dc438f89d9b46c509a0)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolinux-yocto/3.4: update preempt-rt to 3.4.4-rt13
Bruce Ashfield [Mon, 2 Jul 2012 04:34:31 +0000 (00:34 -0400)]
linux-yocto/3.4: update preempt-rt to 3.4.4-rt13

Updating preempt-rt in the 3.4 kernel to the latest upstream version
3.4.4-rt13.

(From OE-Core rev: f5ed8bc876fd24e4f08d29da06454037eec818e6)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolinux-yocto/3.4: v3.4.4 + configuration updates
Bruce Ashfield [Fri, 29 Jun 2012 19:42:38 +0000 (15:42 -0400)]
linux-yocto/3.4: v3.4.4 + configuration updates

Bumping the kernel version to v3.4.4 and importing the following
meta branch commits:

 9b7c74b meta: bump kver to v3.4.4
 8231dec ck: relocate config post patches
 26b965e net_sched: remove dupicate configuration option
 df8bf19 meta: remove non applying routerstationpro patch
 292d8ea arm: import upstream versatile io.h fix
 f4824b1 net_sched: select ACT as a dependency of INGRESS
 30ae722 cgroups: delete obsolete namespace option
 51f94f0 meta: add qemumipsel mapping

Built and boot tested on qemu*

(From OE-Core rev: 3d33b8c8b3be5dcdac30c115b9fec427269db2b4)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolinux-yocto/3.4: add qemumipsel machine mapping
Bruce Ashfield [Wed, 27 Jun 2012 14:53:54 +0000 (10:53 -0400)]
linux-yocto/3.4: add qemumipsel machine mapping

Updating the meta branch with a board description and configuration
that can be found from the linux-yocto recipes without doing a
MACHINE -> KMACHINE mapping.

From the meta branch commit:

    The mti malta board description for a little endian config can't
    be found by default unless it has a matching KMACHINE, or the
    KMACHINE is set in a kernel recipe. In this case, it is easier to
    just add qemumipsel in the KMACHINE list, so the recipe doesn't
    need to do the mapping.

The little endian mips support reuses everything but the endianess
settings from the big endian mti malta board emulation.

This change adds the required mappings and SRCREVs, but does not
update the machine compatibilty, since official support is still
pending. The compatibility can be set in addon layers until that
time.

(From OE-Core rev: de2535b2bb47b80bdaeb3053b0ac0d1bbb9c5d53)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agotelepathy-glib: update to ver. 0.19.1
Cristian Iorga [Tue, 3 Jul 2012 12:48:10 +0000 (15:48 +0300)]
telepathy-glib: update to ver. 0.19.1

(From OE-Core rev: 5109954afefc48d8f44776ec1f2d8a94a21c04f6)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopcmcia-cs: Remove references to long-deprecated pcmcia-cs.
Robert P. J. Day [Tue, 3 Jul 2012 09:09:12 +0000 (05:09 -0400)]
pcmcia-cs: Remove references to long-deprecated pcmcia-cs.

pcmciautils is the appropriate PCMCIA package these days.

(From OE-Core rev: 5066f7e9750253bc4678f2884e15f0333e60932b)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolighttpd: upgrade to 1.4.31
Laurentiu Palcu [Tue, 3 Jul 2012 06:50:27 +0000 (09:50 +0300)]
lighttpd: upgrade to 1.4.31

(From OE-Core rev: 913f4831aeb83e2c7f08daa47a31089dbf06f2be)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoxcb-util-keysyms: upgrade to 0.3.9
Laurentiu Palcu [Tue, 3 Jul 2012 06:50:26 +0000 (09:50 +0300)]
xcb-util-keysyms: upgrade to 0.3.9

(From OE-Core rev: f89834e7277a77d46b21a363a82371085f028969)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoxcb-util-image: upgrade to 0.3.9
Laurentiu Palcu [Tue, 3 Jul 2012 06:50:25 +0000 (09:50 +0300)]
xcb-util-image: upgrade to 0.3.9

(From OE-Core rev: 3a88f34e9aa04f5aa988f9f77cf68189da169084)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoxcb-util-wm: upgrade to 0.3.9
Laurentiu Palcu [Tue, 3 Jul 2012 06:50:24 +0000 (09:50 +0300)]
xcb-util-wm: upgrade to 0.3.9

(From OE-Core rev: fba0788bb5ef1743aeceb9d874eb099f7240d118)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolibxft: upgrade to 2.3.1
Laurentiu Palcu [Tue, 3 Jul 2012 06:50:23 +0000 (09:50 +0300)]
libxft: upgrade to 2.3.1

(From OE-Core rev: d1e7823c33eafbdd8ca086b8ba48f61faf391f20)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoethtool: upgrade to 3.4.1
Laurentiu Palcu [Tue, 3 Jul 2012 06:50:22 +0000 (09:50 +0300)]
ethtool: upgrade to 3.4.1

(From OE-Core rev: 5550c437b50ea9124ce06fa7d17166f2be6d4ee5)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolibdrm: upgrade to 2.4.35
Laurentiu Palcu [Tue, 3 Jul 2012 06:50:21 +0000 (09:50 +0300)]
libdrm: upgrade to 2.4.35

(From OE-Core rev: 4b640c4737806cbc035fa49bb22b3ee39e372e6a)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoxcb-util: upgrade to 0.3.9
Laurentiu Palcu [Tue, 3 Jul 2012 06:50:20 +0000 (09:50 +0300)]
xcb-util: upgrade to 0.3.9

(From OE-Core rev: 8c6acf7edabb95051384025d3793f6346e234b71)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoxf86-input-synaptics: upgrade to 1.6.2
Laurentiu Palcu [Tue, 3 Jul 2012 06:50:19 +0000 (09:50 +0300)]
xf86-input-synaptics: upgrade to 1.6.2

(From OE-Core rev: 1e42302426780d8603517418163f46a7eef9931b)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoxf86-input-vmmouse: upgrade to 12.9.0
Laurentiu Palcu [Tue, 3 Jul 2012 06:50:18 +0000 (09:50 +0300)]
xf86-input-vmmouse: upgrade to 12.9.0

(From OE-Core rev: 886c923c1f0259204399582eeb8523fd146c2c62)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: fetch2/svn: Enhance to cope with subversion 1.7 upgrade
Richard Purdie [Mon, 2 Jul 2012 20:23:04 +0000 (21:23 +0100)]
bitbake: fetch2/svn: Enhance to cope with subversion 1.7 upgrade

svn changed working checkout formats between 1.6 and 1.7. Its convoluted to
detect what format a given working copy is in so the simplest solution is simply
to run "svn upgrade" within the working copy.

The base svn command variable is relocated slightly to enable this new code to
work effectively.

(Bitbake rev: ebd3ecdb5f3c6d3fe1fad27cbed4d80f4277e92e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: usermanual: Improve task dependency documentation to match reality
Richard Purdie [Mon, 2 Jul 2012 15:36:08 +0000 (16:36 +0100)]
bitbake: usermanual: Improve task dependency documentation to match reality

(Bitbake rev: f67c0606fc681359fb0c68be55cfc9f11d410f17)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: runqueue.py: Allow recrdeptasks that have self references
Richard Purdie [Mon, 2 Jul 2012 12:29:53 +0000 (13:29 +0100)]
bitbake: runqueue.py: Allow recrdeptasks that have self references

In some cases we want to pull in DEPENDS and RDEPENDS of recrdeptask
dependencies but we need a way to trigger or avoid this behaviour
depending on context. The logical syntax to trigger such behaviour
would be a self referencing recrdeptask:

do_a[recrdeptask] = "do_a do_b"

The dependency chains already recurse this kind of expression correctly, the
missing piece is to avoid any circular reference errors. Since the dependencies
have already been recursively resolved, simply removing any recrdeptask
references is enough to break the circular references.

This patch therefore removes any circular references using the set
difference_update() operator. There will be metadata tweaks required to
add any references needed to the extra taskname.

(Bitbake rev: a5324da9b8a0c9307a6c511ea9009f34be70c92b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: Hob: fixed some variables not clean bug in detail page
Liming An [Tue, 3 Jul 2012 11:15:55 +0000 (19:15 +0800)]
bitbake: Hob: fixed some variables not clean bug in detail page

[YOCTO #2679]

(Bitbake rev: 73801f571e040dcdfeb15a15b9a484cbefaae70c)

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: git: do not execute 'git remote prune'
Enrico Scholz [Sat, 30 Jun 2012 19:34:56 +0000 (21:34 +0200)]
bitbake: git: do not execute 'git remote prune'

'git remote prune' at this location does not make much sense because
the following 'git remote rm' will prune stale and non-stale branches.

The 'prune' can cause trouble because it will access the network
bypassing the no-network code in bitbake. When this operation fails and
throws an exception, the next command (--> 'git remote rm') will be
skipped.  This in turn, will make all the following operations fail,
because they assume that the remote does not exist yet.

(Bitbake rev: 2ba23df5fad4b94d38a6aed97f7822226d72eb89)

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agometa/classes: Update recrdeptask fields for recursive dependency handling changes...
Richard Purdie [Mon, 2 Jul 2012 12:27:46 +0000 (12:27 +0000)]
meta/classes: Update recrdeptask fields for recursive dependency handling changes in bitbake

This also deletes the buildall task since I seen usecases for it.

(From OE-Core rev: 8229fb5d7205f5e5b198ab2860fbcc02054476eb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosubversion-native: Enable subversion-native 1.7 and remove it from ASSUME_PROVIDED
Richard Purdie [Mon, 2 Jul 2012 20:17:54 +0000 (20:17 +0000)]
subversion-native: Enable subversion-native 1.7 and remove it from ASSUME_PROVIDED

This enables a switch to subversion 1.7 now bitbake is able to cope with
upgrading existing working copies. The impact of this change should be
minimal since we don't have many subversion recipes now.

(From OE-Core rev: ac0aa35ba6d7a21636bdd23d45ae0bf8112bdaa8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agotask-core-tools-debug: Added openssh-sftp-server.
Lianhao Lu [Tue, 3 Jul 2012 04:43:31 +0000 (12:43 +0800)]
task-core-tools-debug: Added openssh-sftp-server.

[YOCTO #2605].
Added openssh-sftp-server to the tools-debug IMAGE_FEATURE.

(From OE-Core rev: a6b6df1350149c116050cb93c3c7b4802c709d31)

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoimage/core-image: Handle conflicting IMAGE_FEATURES.
Lianhao Lu [Tue, 3 Jul 2012 04:43:32 +0000 (12:43 +0800)]
image/core-image: Handle conflicting IMAGE_FEATURES.

IMAGE_FEATURES such as 'ssh-server-dropbear' and 'ssh-server-openssh'
can't be both enabled. User can use the following variables to define
the relationship of image features:

IMAGE_FEATURES_REPLACES_foo = "bar" means including image feature "foo"
would replace the image feature "bar".

IMAGE_FEATURES_CONFLICTS_foo = "bar" means including both image features
"foo" and "bar" would cause an parsing error.

(From OE-Core rev: e36d12a9c1cf69540079e48a1dfadbc343758e48)

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoopenjade-native: fix undefined Getopts error, use std namespace
Dennis Lan [Tue, 3 Jul 2012 07:03:46 +0000 (07:03 +0000)]
openjade-native: fix undefined Getopts error, use std namespace

Using Gentoo Linux as the build host, it fails without this patch
Use Getopt::Std in place of getopts.pl.

https://bugs.gentoo.org/show_bug.cgi?id=420083

which following error:
/usr/bin/perl -w ./../msggen.pl -l jstyleModule InterpreterMessages.msg
/usr/bin/perl -w ./../msggen.pl -l jstyleModule DssslAppMessages.msg
Undefined subroutine &main::Getopts called at ./../msggen.pl line 22.
make[2]: *** [InterpreterMessages.h] Error 2
make[2]: *** Waiting for unfinished jobs....
Undefined subroutine &main::Getopts called at ./../msggen.pl line 22.
make[2]: *** [DssslAppMessages.h] Error 2

(From OE-Core rev: 169a89b10817b742c063fcd76721e4dbbcca6199)

Signed-off-by: Dennis Lan <dennis.yxun@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobase.bbclass: Add cross-canadian-${TRANSLATED_TARGET_ARCH} to the license exclusion...
Mark Hatle [Mon, 2 Jul 2012 20:43:11 +0000 (15:43 -0500)]
base.bbclass: Add cross-canadian-${TRANSLATED_TARGET_ARCH} to the license exclusion list

This appears to be an oversight in the original implementation.  All of the
host package types were being ignored except for the SDK cross-canadian type.

(From OE-Core rev: 750f99d4e2c805985cd87a2358b0625a808ecf4d)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoimage.bbclass: Add support to build the SDK in parallel with the image
Mark Hatle [Sat, 23 Jun 2012 00:38:30 +0000 (19:38 -0500)]
image.bbclass: Add support to build the SDK in parallel with the image

When building an image recipe, you can now build a companion SDK by
calling the populate_sdk task:
  bitbake -c populate_sdk core-image-minimal

Note: there are still issues w/ the SDK not working completely with
multilibs.

A lock is required between rootfs and populate_sdk activities to prevent
configuration file clashes and similar package management problems in ipk
and deb based systems.  (RPM already had a lock for a different reason.)

(From OE-Core rev: a0de2a56f19ae4d8cd88e46e96917a7a019fe1ab)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopackage.bbclass: Allow a package to skip per file dependency generation
Mark Hatle [Thu, 28 Jun 2012 21:09:27 +0000 (16:09 -0500)]
package.bbclass: Allow a package to skip per file dependency generation

Most of the time skipping per file dependency generation is a bad idea, but
when building a nativesdk or similar you may be required to pickup host
dependencies.  These host dependencies can not always be reconciled within
the scope of other nativesdk components, so if we skip them we can facilitate
this unique situation.

(From OE-Core rev: a1ca125de55a8e7cab402e2ba5737a56d4e890c2)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolibc-common: Allow -dbg package to append, and not just set package variables
Mark Hatle [Thu, 28 Jun 2012 21:08:51 +0000 (16:08 -0500)]
libc-common: Allow -dbg package to append, and not just set package variables

The libc-common attempts to rewrite the package information in a way similar
to debian.bbclass.  When it does this, it should be appending to the
dependency variables (RPROVIDES, RREPLACES, and RCONFLICTS), instead
of simply setting a hard coded value.  Otherwise the lib package can not
tailor the dependency variables to suite it's needs.

(From OE-Core rev: fa1c7b797593cbd5e82dc264bde2667620eb0515)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoautotools.bbclass: When configure fails, dump the config.log files the logs
Richard Purdie [Mon, 2 Jul 2012 15:35:22 +0000 (16:35 +0100)]
autotools.bbclass: When configure fails, dump the config.log files the logs

When configure fails, it usually says "see config.log" yet nobody ever shares
the config.log file meaning the person trying to help invariably has to ask
for more information.

This patch dumps all the config.log files into the main bitbake log files when
configure fails, meaning all the information is present to help someone debug
such failures. It does make the log rather larger but this is preferable to
not having enough information in most cases.

[YOCTO #2463]

(From OE-Core rev: 7ad08f5b73aa949a877adc5641b4bb1d007de750)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agou-boot: do not clobber PARALLEL_MAKE setting
Paul Gortmaker [Mon, 2 Jul 2012 05:44:45 +0000 (01:44 -0400)]
u-boot: do not clobber PARALLEL_MAKE setting

The u-boot tree is fully capable of parallel builds, so this
setting should not exist as a blanket setting for all of the
recipes.  Going forward, if there is a parallelism issue
in u-boot, it needs to be reported and fixed there, and not
with the "make -j1" band-aid approach.

(From OE-Core rev: 7fdd1f82803df9752e908f01f7643d66b82a690e)

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agou-boot: Don't make the -Os removal part of global settings.
Paul Gortmaker [Mon, 2 Jul 2012 05:44:43 +0000 (01:44 -0400)]
u-boot: Don't make the -Os removal part of global settings.

We don't want to force everyone to be stripping the -Os
flags from their u-boot builds.  Remove it, since it pertains
to an old toolchain issue that is no longer relevant, and it
breaks the powerpc mpc8315.

(From OE-Core rev: 5e3f777f9fcc986ae66203651830b5765bca49fd)

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopopulate_sdk: enable basic multilib support
Mark Hatle [Fri, 22 Jun 2012 23:44:06 +0000 (18:44 -0500)]
populate_sdk: enable basic multilib support

In order to enable basic multilib support for the export of an SDK
image, a number of minor changes had to be made:

The value of MULTIMACH_TARGET_SYS needs to be variable.  This way we
can define the value to the appropriate multilib.  (Also in some cases
the default PACKAGE_ARCH is set to MACHINE_ARCH which is incorrect for
the SDK.)  Add a companion REAL_MULTIMACH_TARGET_SYS, based on code
from meta-environment, to allow for this.

We have to convert the do_populate_sdk into a python call, and then
break up the previous items into three parts.
  * Image construction
  * Setup of environment files
  * Generation of the tarball

Then we can iterate over the multilibs to populate the environment files.

Finally, matching changes were needed in the toolchain-scripts file.  And
what I presume is an optimization of immediate evaluation for
TOOLCHAIN_CONFIGSITE_NOCACHE and ..._SYSROOTCACHE needed to be done at
runtime, otherwise the wrong values may be used.

(From OE-Core rev: 42545ffbb37f2646a2a8c20999c21d3300e24f59)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopopulate_sdk_base.bbclass: Change to using task specific depends
Mark Hatle [Mon, 25 Jun 2012 17:45:50 +0000 (12:45 -0500)]
populate_sdk_base.bbclass: Change to using task specific depends

If we combine the do_populate_sdk with the image generation, we want
to avoid the dependency processing unless do_populate_sdk is run.

This requires the bitbake change to implement task based rdepends.

(From OE-Core rev: 5fa9f980248e7813ce74f48a29c4b7d94e308cf9)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopopulate_sdk: Allow for attempt only packages in the SDK
Mark Hatle [Thu, 21 Jun 2012 20:11:53 +0000 (15:11 -0500)]
populate_sdk: Allow for attempt only packages in the SDK

We want to be able to supply attempt only packages in the SDK in order to
support more advanced SDK images that more closely match specific image
recipes.

(From OE-Core rev: 9b9efa96537f4977b158c29151e53d02600d2294)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopopulate_sdk.bbclass: Split into two parts
Mark Hatle [Mon, 25 Jun 2012 17:38:36 +0000 (12:38 -0500)]
populate_sdk.bbclass: Split into two parts

populate_sdk was renamed to populate_sdk_base in order to allow for changes
that may break existing SDK recipes.  Any such changes need an analog
in populate_sdk (new version) to restore previous desired behavior.

In addition to the rename, one minor change was made.  The _base version
only had the do_populate_sdk as an added task, but no before or after defined.

For compatibility, populate_sdk has do_populate_sdk defined as "after"
do_install and before do_build, this is identical to the original behavior.

(From OE-Core rev: bde224ba44c16edc1892cea1b33ab973ae971115)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoFix manual log file paths
Mark Hatle [Mon, 18 Jun 2012 21:42:45 +0000 (16:42 -0500)]
Fix manual log file paths

When a recent change, the path to log files may be contained within an
arbitrary directory.  To generate the manual log files in the correct path
we should be using the ${BB_LOGFILE}'s path instead of always assuming the
logs go into ${WORKDIR}/temp.

(From OE-Core rev: 779db325d407f0bade84572ef99fdad4d0c88011)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocore-image*sdk: Add kernel-dev to sdk images
Darren Hart [Sat, 30 Jun 2012 02:53:13 +0000 (19:53 -0700)]
core-image*sdk: Add kernel-dev to sdk images

While sdk images already have dev-pkgs included, the kernel-dev package
is special and does not get installed. Add kernel-dev explicitly to the
*sdk image recipes.

Note: We have to be careful with "IMAGE_INSTALL +=" as it must appear
after "inherit core-image" which makes an "IMAGE_INSTALL ?=" assignment.

(From OE-Core rev: 337428316de3612a8e1efa70b3a4ba7cb6e058d2)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Jessica Zhang <jessica.zhang@intel.com>
CC: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolinux-yocto-custom: Remove linux-tools
Darren Hart [Fri, 29 Jun 2012 02:51:31 +0000 (19:51 -0700)]
linux-yocto-custom: Remove linux-tools

Remove the linux-tools include as perf is now packaged independently.
Without this, including meta-skeleton in bblayers.conf results in a
build failure as linux-tools.inc cannot be found.

(From OE-Core rev: 9d27daeafcc6ea892dee0ee5d0816069b04f6771)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
CC: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoicu 3.6: do_install failed: Segmentation fault
Robert Yang [Fri, 29 Jun 2012 01:45:26 +0000 (09:45 +0800)]
icu 3.6: do_install failed: Segmentation fault

There is a "Segmentation fault" error when the tmpdir is longer than 470
(or less), this is because it used "char cmd[1024]" which is not enough
for the command line. Allocate a larger memory size should fix this problem.

[YOCTO #2664]

(From OE-Core rev: 3fd5d0334439b6231a6afd2a544a16b87ae81c99)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agokconfig-frontends: New recipe
Khem Raj [Wed, 20 Jun 2012 21:31:10 +0000 (14:31 -0700)]
kconfig-frontends: New recipe

kconfig-frontends provides the kconfig infrastructure
thats used for linux kernel as a standalone package. Its
not intended to be used for kernel itself but can be
used by packages who are based on kconfig e.g. busybox
uclibc or new packages who wants to use kconfig infra
for the package build

kconfig-frontends names it's shared library as -3.4.0.so instead of .so.3.4.0,
this causes the -dev package to grab it since it matches on *.so. This error
would also have shown up with the old PACKAGE order.

(From OE-Core rev: 705baf06d151eb4f9dcae7b23c7f3e57c0c09a74)

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>
12 years agopackage.bbclass: Add missing PKGR, PKGV, PKGE and ALTERNATIVE variables from PACKAGEVARS
Richard Purdie [Fri, 29 Jun 2012 15:52:40 +0000 (16:52 +0100)]
package.bbclass: Add missing PKGR, PKGV, PKGE and ALTERNATIVE variables from PACKAGEVARS

These variables all take package name extensions and should be considered in sstate
dependency processing.

This may also fix some multilib alternatives issues (unconfirmed).

[YOCTO #2056]

(From OE-Core rev: 64422f7c5da160050a5454817c8fa9d070104b34)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopackage_deb: When searching for E:, anchor expression
Richard Purdie [Fri, 29 Jun 2012 15:51:22 +0000 (16:51 +0100)]
package_deb: When searching for E:, anchor expression

If we don't do this it will match on expressions like "NOTE:" which
are not fatal errors.

(From OE-Core rev: 8f4e160ce0b0c755545d62b06db14decd45b9f1e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoEXTRA_IMAGEDEPENDS is used to ensure things like qemu-native are built and these...
Richard Purdie [Wed, 13 Jun 2012 10:38:16 +0000 (10:38 +0000)]
EXTRA_IMAGEDEPENDS is used to ensure things like qemu-native are built and these are not strictly dependencies of the do_rootfs task. This patch moves them to the do_build task allowing bitbake a little more flexibility about when things need to get built by.

I noticed this when qemu-native failed to build and a rootfs was not generated
which is not the intended behaviour.

Also update the syntax to use appendVarFlag instead of get/setVarFlag

(From OE-Core rev: fa13e83ec3f91dce866ac212e91b62db24b6486d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agokernel-arch: Remove test for long-dead arm26 architecture.
Robert P. J. Day [Fri, 29 Jun 2012 18:02:30 +0000 (14:02 -0400)]
kernel-arch: Remove test for long-dead arm26 architecture.

(From OE-Core rev: ff3f912eed0270afa14d706fc1e57f8a1de2614b)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoirda-utils: Add missing "inherit update-rc.d" for INITSCRIPT_*
Robert P. J. Day [Sat, 30 Jun 2012 16:08:02 +0000 (12:08 -0400)]
irda-utils: Add missing "inherit update-rc.d" for INITSCRIPT_*

(From OE-Core rev: 8846728da016a964f581e3aa76ec9d457a3d795d)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosite/common-linux: fix incorrect size of pid_t for apr
Paul Eggleton [Sat, 30 Jun 2012 21:11:25 +0000 (22:11 +0100)]
site/common-linux: fix incorrect size of pid_t for apr

If cross-compiling, apr's configure script assumes that pid_t is
64-bit which is wrong - it appears that 32-bit is a safe assumption
for Linux no matter what the architecture, so use that instead by
default.

This fixes Apache writing garbage to its pid file when built using apr
produced from this recipe.

(From OE-Core rev: 81eb71736a4d14abe85d810f9862d8a9421e9ef5)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoapr: add util-linux to DEPENDS for libuuid
Paul Eggleton [Sat, 30 Jun 2012 21:11:24 +0000 (22:11 +0100)]
apr: add util-linux to DEPENDS for libuuid

apr will use libuuid if it is present, and thus we should require that
it is there so that we have a deterministic build.

(From OE-Core rev: b880cebf503ca13cd4fcb741895e57e6353065be)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake.conf: Tidy up a few comment typoes; no functional changes.
Robert P. J. Day [Sun, 1 Jul 2012 09:32:40 +0000 (05:32 -0400)]
bitbake.conf: Tidy up a few comment typoes; no functional changes.

(From OE-Core rev: 935a7f3847bd86ed78418db5cb6dd98ac0b6e65d)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodocumentation.conf: Improve PRIORITY documentation
Richard Purdie [Mon, 2 Jul 2012 13:12:54 +0000 (14:12 +0100)]
documentation.conf: Improve PRIORITY documentation

(From OE-Core rev: 3c8d0a3ebd557332f7ab82de4b8fee4e607a6062)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorunqemu: fix fedora pkg names when run fails
Cristian Ciupitu [Fri, 29 Jun 2012 13:17:26 +0000 (16:17 +0300)]
runqemu: fix fedora pkg names when run fails

runqemu can fail to with the following message:

    You need libGL.so and libGLU.so to exist in your library path to run the QEMU emulator.
        Fedora package names are: mesa-libGL mesa-libGLU.

The libGL.so and libGLU.so files are provided by the mesa-libGL-devel
and mesa-libGLU-devel Fedora packages (yum provides '*/libGL*.so').

(From OE-Core rev: f2b6f9c3a8b4f87b5570b78766a118e4290d773a)

Signed-off-by: Cristian Ciupitu <cristian.ciupitu@yahoo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: Hob: change 'run image' and 'deploy' Gui and work flow for building detail...
Liming An [Thu, 28 Jun 2012 11:55:31 +0000 (19:55 +0800)]
bitbake: Hob: change 'run image' and 'deploy' Gui and work flow for building detail page

In build detail page, the response action of clicked the 'run image'
or 'deploy' button will accroding to below as ui design:
1)if there has one file in building result, it will responsed the
'run image'(now, we only support the qemu) or 'deploy' directly
2)if there has more than one file, it will popup a dialog with listed
created files type, they are has same action attributes 'deploy'
or 'runnable'.
Note: because the qemu image (runnable file) can't be deployed and
we can't generated a image that has the two attributes now, can be run
or can be deployed,  so the code will not deal with this case.

[YOCTO #2155]

(Bitbake rev: 0d24b1e85a11b68c8464cf15b49d3fc78f216818)

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agomklibs-native: Upgrade to 0.1.34
Jonathan Santos [Wed, 27 Jun 2012 17:25:22 +0000 (13:25 -0400)]
mklibs-native: Upgrade to 0.1.34

include-unistd.h-for-gcc47.patch is no longer needed, since it was fixed upstream.

(From OE-Core rev: 54429dfcca0e35a3aeaa78e509240b87d6a8f4ac)

Signed-off-by: Jonathan Santos <jrsantos@jonathanrsantos.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoqt4e-demo-image: new description
Valentin Popa [Thu, 28 Jun 2012 12:43:55 +0000 (15:43 +0300)]
qt4e-demo-image: new description

(-) replaced qt4e-demo-image description

[YOCTO #2636]

(From OE-Core rev: 5a06c7d357cd08d9c6392a72e9581e3c6b6f75fc)

Signed-off-by: Valentin Popa <valentin.popa@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuild-appliance-image: rename from self-hosted-image
Valentin Popa [Thu, 28 Jun 2012 12:42:20 +0000 (15:42 +0300)]
build-appliance-image: rename from self-hosted-image

(-) renamed self-hosted-image to build-appliance-image
(-) replaced build-appliance-image description

[YOCTO #2636]

(From OE-Core rev: 04096f31778886479dac479132bded57e717653e)

Signed-off-by: Valentin Popa <valentin.popa@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolinux-yocto: Use INC_PR and move kernel require to linux-yocto.inc
Darren Hart [Thu, 28 Jun 2012 00:38:57 +0000 (17:38 -0700)]
linux-yocto: Use INC_PR and move kernel require to linux-yocto.inc

When making changes to kernel.bbclass, it would be nice not to have to
manually change the PR of every linux-yocto*.bb file that requires it.

Move the "require kernel" line to linux-yocto.inc and update the
linux-yocto recipes to use INC_PR.

(From OE-Core rev: 7a41d96c946029aeec03cd26f326bc6ca26e74fd)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Bruce Ashfield <bruce.ashfield@windriver.com>
CC: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoapr: Install apr-local libtool in build dir
Joe MacDonald [Thu, 28 Jun 2012 18:29:47 +0000 (19:29 +0100)]
apr: Install apr-local libtool in build dir

Building apache with this version of apr would blow up on the results
from:

   apr_config --apr-libtool

Errors of the form:

   /bin/sh: /media/large/tmp/sysroots/x86_64-linux/usr/share/build-1/libtool: No such file or directory

Fix that by ensuring libtool from apr's build lands in
.../usr/share/build-1/.

(From OE-Core rev: eefbc2f219571dd0c66e1099ea4ad72b1a973fd4)

Signed-off-by: Joe MacDonald <joe.macdonald@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobison: link in librt on uclibc
Khem Raj [Wed, 27 Jun 2012 05:28:50 +0000 (22:28 -0700)]
bison: link in librt on uclibc

uclibc has some functions in librt that are needed
by bison build.

(From OE-Core rev: 987bc3ff3e1a619132434c5d939c7035d3d19fcb)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agouclibc-0.9.33: add posix_fallocate implementation
Khem Raj [Wed, 27 Jun 2012 05:36:24 +0000 (22:36 -0700)]
uclibc-0.9.33: add posix_fallocate implementation

This gets systemd building with uclibc

(From OE-Core rev: d577fa59d8643954249fed7a79232e609add36f8)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agouclibc-git: Update for building systemd
Khem Raj [Wed, 27 Jun 2012 05:32:15 +0000 (22:32 -0700)]
uclibc-git: Update for building systemd

This adds uclibc patches to build systemd there are
new functions that are used by systemd which are needed

Additionally when using gold linker to build userspace
based on uclibc there are spurious hidden symbol that
show up in librt.so and libc.so which should not exist

So we patch uclibc for that

(From OE-Core rev: ecffa7571ed27a75e3248cb860affae233249440)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoglib-2.0: Add missing dependency on virtual/libiconv
Khem Raj [Thu, 28 Jun 2012 21:36:57 +0000 (14:36 -0700)]
glib-2.0: Add missing dependency on virtual/libiconv

(From OE-Core rev: 5cb4de2f77b905279d85b04f236b7a135016db28)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agouclibc: Separate the bits between uclibc and uclibc-initial
Khem Raj [Thu, 28 Jun 2012 21:36:53 +0000 (14:36 -0700)]
uclibc: Separate the bits between uclibc and uclibc-initial

uclibc and uclibc-initial were providing conflicting PROVIDES
separate the common bits into logical pieces. Create a common
inc file to hold package information and version specific includes
so correct logical units can be included in uclibc and uclibc-initial
recipes.

(From OE-Core rev: bdfd2f6f286889b8920ebf6a670542b26534c1cb)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoeglibc: support mipsel little endian, filter out -march=mips32
Dennis Lan [Thu, 28 Jun 2012 21:36:50 +0000 (14:36 -0700)]
eglibc: support mipsel little endian, filter out -march=mips32

Quote for eglibc source:
 for mips eglibc now builds syscall tables for all abi's
 so we make sure that we choose right march option which is
 compatible with o32,n32 and n64 abi's
 e.g. -march=mips32 is not compatible with n32 and n64 therefore
 we filter it out in such case -march=from-abi which will be
 mips1 when using o32 and mips3 when using n32/n64

(From OE-Core rev: 6a013236d362874c661aa5f15b948aac32177181)

Signed-off-by: Dennis Lan <dennis.yxun@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoeglibc-2.15: Update to latest on 2.15 branch
Khem Raj [Thu, 28 Jun 2012 21:36:51 +0000 (14:36 -0700)]
eglibc-2.15: Update to latest on 2.15 branch

(From OE-Core rev: e052ab9ac0f464ae4c7054a9af6663a0213d4192)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogcc-configure-sdk, gcc-configure-cross: Dont recompute USE_NLS
Khem Raj [Thu, 28 Jun 2012 21:36:49 +0000 (14:36 -0700)]
gcc-configure-sdk, gcc-configure-cross: Dont recompute USE_NLS

This was needed because on eglibc based builds we did not
define USE_NLS but now we define it in default config to have
a valid value so we do not need this here. Moreover it was
wrong and was not covering all cases of uclibc triplets

(From OE-Core rev: fc9492654aab2a6e3f46977193b5a5f388e4ee85)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake.conf: Add weak definition for USE_NLS
Khem Raj [Thu, 28 Jun 2012 21:36:47 +0000 (14:36 -0700)]
bitbake.conf: Add weak definition for USE_NLS

USE_NLS is generally defined for uclibc based system builds
and generally its defined to 'no' there. However this variable
does not exist at all for eglibc/glibc distributions. This
patch adds a weak definition to 'yes' on eglibc based system
builds. This will ease out some of the cryptic contructs we
have to define certain options based on USE_NLS and also
checking got uclibc at the same time to avoid pythong exceptions
when its not defined.

(From OE-Core rev: 41db1bf69314e542a9d7ac1fb1b4bc65db75b642)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolibgcc: Remove unpackage unwind.h
Khem Raj [Thu, 28 Jun 2012 21:36:48 +0000 (14:36 -0700)]
libgcc: Remove unpackage unwind.h

Fixes build warnings like below

WARNING: For recipe libgcc, the following files/directories were installed but not shipped in any package:
WARNING:   /usr/lib/arm-oe-linux-gnueabi/4.7.2/include
WARNING:   /usr/lib/arm-oe-linux-gnueabi/4.7.2/include/unwind.h

(From OE-Core rev: f7ec6ea2b32207993e7fc92ed67c08f542007953)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoicu 3.6: dropp apply=yes from path
Robert Yang [Wed, 27 Jun 2012 08:19:52 +0000 (16:19 +0800)]
icu 3.6: dropp apply=yes from path

The "apply=yes" doesn't appear to be necessary, so drop it.

[YOCTO #2664]

(From OE-Core rev: 78abdd12305d4b74d7ec82fd38b7a27aaa8d7d95)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: runqueue.py: Handle multiple rdeptask entries
Richard Purdie [Wed, 27 Jun 2012 21:01:29 +0000 (21:01 +0000)]
bitbake: runqueue.py: Handle multiple rdeptask entries

I'm not sure why we don't currently allow multiple entries in rdeptask when
we do in deptask. This makes the handling match between the two since
its trivial to fix.

(Bitbake rev: 19c84fe8854639768c874cc1449963a9867ad397)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: fetch2: Revert the regexp removal for the type field and instead anchor...
Richard Purdie [Thu, 28 Jun 2012 11:34:20 +0000 (11:34 +0000)]
bitbake: fetch2: Revert the regexp removal for the type field and instead anchor regexp

People are using regexps in the url type field so we need to preserve
this bitbake behaviour. To address the issues with https:// urls mapping
badly to file:// urls we anchor the regexp if its not already anchored.
There should be no expressions in the wild which would break with this
change.

(Bitbake rev: ce0579dc256251e523c6330641f98b9f5a0e5761)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: test/fetch: Switch the comparision order to make test failures slightly...
Richard Purdie [Thu, 28 Jun 2012 11:33:05 +0000 (11:33 +0000)]
bitbake: test/fetch: Switch the comparision order to make test failures slightly clearer

(Bitbake rev: 2b1311e21172847b6a86cfb21a84fd00e4ab1ac5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: test/fetch: Ensure cwd is valud for the git clone
Richard Purdie [Thu, 28 Jun 2012 11:32:37 +0000 (11:32 +0000)]
bitbake: test/fetch: Ensure cwd is valud for the git clone

(Bitbake rev: 60b1a9f52dfec98e55a879a637f7142b0175b452)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: runqueue: Reimplement recrdepends so it works more correctly
Richard Purdie [Tue, 26 Jun 2012 18:00:58 +0000 (18:00 +0000)]
bitbake: runqueue: Reimplement recrdepends so it works more correctly

Currently, recrdepends is extremely greedy. For example:

do_foo[rdepends] = "somedep:sometask"
addtask foo

which adds foo with *no* dependencies, will suddenly start appearing
as a dependency in every task which uses recrdepends. So far this has
been mildy annoying but we now have use cases where this makes no sense
at all.

This reworks the recrdepends code to avoid this problem. To do this we
can no longer collapse things into lists just based on file ID. The problem
is this code is extremely performance sensitive. The "preparing runqueue"
phase spends a lot of time in these recursive dependency calculations so any
change here could negatively impact the user experience.

As such, this code has been carefully tested on convoluted dependency trees
with operations like "time bitbake world -g". The net result of this change
and the preceeding changes combined is a net speed up of these operations in
all cases measured.

Tests were made comparing "bitbake world -g" task-depends.dot before and after
this patch. There *are* differences for example -nativesdk do_build dependencies
on -native recipes are no longer present. All removed dependencies appear to
be sensible improvements to the system. The "rdepends" cross contamination
issue above is also fixed.

(Bitbake rev: 82d73423c57569b984ee0ae3d93e3c3bd5dc5216)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: runqueue.py: Convert depends variable to use sets
Richard Purdie [Wed, 27 Jun 2012 10:04:48 +0000 (11:04 +0100)]
bitbake: runqueue.py: Convert depends variable to use sets

This gives some small performance gains and sets the scene for other
improvements by removing the need for duplicate detection code.

(Bitbake rev: 6fd723479e8d49227fd58040b3485c1d5afc4bc5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: taskdata: Add gettask_id_fromfnid helper function
Richard Purdie [Wed, 27 Jun 2012 10:04:06 +0000 (11:04 +0100)]
bitbake: taskdata: Add gettask_id_fromfnid helper function

This is like gettask_id but doesn't require translation of fnid -> fn
first which the function then translates back. This gives a sizeable
performance improvement since a significant number of lookups are avoided.

(Bitbake rev: 3190cb83e2af195a464f669c5aa8aedbf795160e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolinux-yocto/3.0: update BSP descriptions to new kern-tools format
Bruce Ashfield [Tue, 26 Jun 2012 20:15:49 +0000 (16:15 -0400)]
linux-yocto/3.0: update BSP descriptions to new kern-tools format

In tree linux-yocto 3.0 boards indicate that they are BSPs via
the older/obsolete syntax "scc_leaf". This line in their board
description is detected by the build process and is used to find
the BSP description and the kernel type they use as their base.

To work with the latest kern tools, the BSP descriptions should
be updated to "include <ktype> branch <machine>" to acheive the
same result.

All trees newer than 3.0 already have this change and do not need
to be updated.

(From OE-Core rev: e32c993859337964033a285922dac3971e5add2d)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake.conf: disable ccache explicitly if it is not enabled
Robert Yang [Mon, 25 Jun 2012 09:31:19 +0000 (17:31 +0800)]
bitbake.conf: disable ccache explicitly if it is not enabled

The autogen-native built error on FC17:

ccache: failed to create /dev/null/.ccache

This is because the default gcc command of FC17 is a symlink to ccache,
so the ccache will always be used regardless to the setting of CCACHE,
ccache uses $HOME/.ccache as the CACHE_DIR by default, but autogen set
HOME=/dev/null, so the error happens.

Disable ccache explicitly if it is not enabled would fix the problem,
otherwise it would always use ccache regardless to the setting of CCACHE
on Fedora 17.

The ccache 3.1.7 has a bug, it would always create $CCCHE_DIR/.ccache
even CCACHE_DISABLE=1.

Unset CCACHE_DISABLE in ccache.bbclass, since ccache only checks whether
there is a CCACHE_DISABLE in the environment or not, it doesn't care about
its value, so we need unset it explicitly when enable ccache.

[YOCTO #2554]

(From OE-Core rev: dd2bab9b6a973d8086dfb6282e781fd79d30b05a)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoarchiver.bbclass: Add the function of filtering packages
Xiaofeng Yan [Tue, 26 Jun 2012 05:59:41 +0000 (13:59 +0800)]
archiver.bbclass: Add the function of filtering packages

This function can miss packages whose license is in
"COPYLEFT_LICENSE_EXCLUDE" and tarball packages with license in
"COPYLEFT_LICENSE_INCLUDE".

[YOCTO #2473]

(From OE-Core rev: 4800bed394ebd7fb50552a96d6a5f83d98fe790f)

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolibxml: disable lzma
Marcin Juszkiewicz [Tue, 26 Jun 2012 15:52:56 +0000 (17:52 +0200)]
libxml: disable lzma

On my system libxml-native got linked with host copy of liblzma and as a
result libxslt-native was not linkable:

| x86_64-linux-libtool: link: gcc -isystem/home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/include -O2 -pipe -Wall -Wl,-rpath-link -Wl,/home/hrw
/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link -Wl,/home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-
linux/lib -Wl,-rpath -Wl,/home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath -Wl,/home/hrw/HDD/devel/canonical/ci-linaro/oecore/buil
d/tmp-eglibc/sysroots/x86_64-linux/lib -Wl,-O1 -o .libs/xsltproc xsltproc.o  -L/home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib -L/home/hrw/
HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/lib ../libxslt/.libs/libxslt.so ../libexslt/.libs/libexslt.so /home/hrw/HDD/devel/canonical/ci-linaro/oecore/
build/tmp-eglibc/work/x86_64-linux/libxslt-native-1.1.26-r8/libxslt-1.1.26/libxslt/.libs/libxslt.so /home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux
/usr/lib/libxml2.so -ldl /home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/liblzma.so -lrt -lz -lm -pthread -Wl,-rpath -Wl,/home/hrw/HDD/deve
l/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib
| /home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/libxml2.so: undefined reference to `lzma_code@XZ_5.0'
| /home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/libxml2.so: undefined reference to `lzma_auto_decoder@XZ_5.0'
| /home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/libxml2.so: undefined reference to `lzma_end@XZ_5.0'
| /home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/libxml2.so: undefined reference to `lzma_properties_decode@XZ_5.0'
| collect2: error: ld returned 1 exit status
| make[2]: *** [xsltproc] Error 1
| make[2]: Leaving directory `/home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/work/x86_64-linux/libxslt-native-1.1.26-r8/libxslt-1.1.26/xsltproc'

(From OE-Core rev: d4651d420a8cf359436a9614fbc9b56f901410c7)

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogconf.bbclass: don't register schemas in the install stage
Ross Burton [Tue, 26 Jun 2012 10:10:23 +0000 (11:10 +0100)]
gconf.bbclass: don't register schemas in the install stage

Previously this was installing schemas in the sysroot, which is wrong for native
packages as nothing should touch the sysroot directly, and even more wrong for
non-native packages as the sysroot is irrelevant.

So, export the environment variable that stops the registration happening at
install time. The postinst script will handle the non-native case, and for the
sysroot I've opened #2648.  This isn't a massive problem as nothing to my
knowledge actually installs schemas to the sysroot.

[YOCTO #2245]

(From OE-Core rev: f9f2e0309a03a4dc9ed5e6cff7db6f29962b7d60)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agonative.bbclass: correct PATH to have native-intercept be prepended
Saul Wold [Tue, 26 Jun 2012 17:53:54 +0000 (10:53 -0700)]
native.bbclass: correct PATH to have native-intercept be prepended

This was needed since it was after the sysroots and thus in some cases
the native sysroot chown was being found and used instead of the script
provided by native-intercept/chown.  This was noticed by the non-gplv3
build since it's coreutils depends on coreutils-native.

(From OE-Core rev: bb5095d3f73a00222f50f9dd2cf8dc27cc72b4a2)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolinux-dtb: add multi-dtb build support
Zhenhua Luo [Tue, 26 Jun 2012 03:53:16 +0000 (11:53 +0800)]
linux-dtb: add multi-dtb build support

    including following enhancement:
    * support multi-dtb build
    * skip dtb build and install when KERNEL_DEVICETREE is empty
    * print a warning message when specified dts file is not available

(From OE-Core rev: 66f7921f34dfa8b3c7f8f7184715214164f3f8b0)

Signed-off-by: Zhenhua Luo <b19537@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobusybox: add correct ALTERNATIVE_TARGET for init.d/syslog
Saul Wold [Mon, 25 Jun 2012 23:43:05 +0000 (16:43 -0700)]
busybox: add correct ALTERNATIVE_TARGET for init.d/syslog

[YOCTO #2535]

(From OE-Core rev: 36ea756883d35f654b102f0cd6bdb2ec284753d0)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosystemtap: update to version 1.8
Wade Farnsworth [Thu, 21 Jun 2012 18:06:35 +0000 (13:06 -0500)]
systemtap: update to version 1.8

Update the systemtap recipes to the recently released 1.8.  Remove a
couple patches whose changes are already present in the new version.

(From OE-Core rev: 1c5a127d075ebf78b70d14e3ca1d0ff640a80cb8)

Signed-off-by: Wade Farnsworth <wade_farnsworth@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolinux-yocto/3.4: -rt build fixes + configuration audit (part2)
Bruce Ashfield [Fri, 22 Jun 2012 14:16:03 +0000 (10:16 -0400)]
linux-yocto/3.4: -rt build fixes + configuration audit (part2)

Updating the 3.4 SRCREVs to pickup build fixes for -rt, feature backports,
and a second set of 3.4 configuration audit results.

  d65afd9 profiling: delete reference of obsolete CONFIG_X86_UP_APIC
  9431490 meta: fix net_sched.cfg include
  242149d meta: add CONFIG_VIRTIO_CONSOLE to virtio configuration
  671a822 meta: resync series -> branches
  e044ee1 rt: integrate patch to fix compile fail on certain configs
  edac822 ktest: update with v3.5 content
  182b8da net_sched: Add CODEL queue management algorithm.
  c6adcd9 net_sched: move content out of cgroups dir
  c8edb3e sys940x: branch before merge
  6d06257 ext3: delete duplicate enablement settings.
  6a5a2f8 ipv6: build in the core support vs. it being modular
  e106230 ipv6: make standard and RT share a common config block
  42996fb netfilter: coalesce bridge settings for standard and RT into a common file.
  2b62fea netfilter: coalesce IPv6 settings for standard and RT into a common file.
  d1c38c8 netfilter: coalesce IPv4 settings for standard and RT into a common file.
  b5f9c7c preempt-rt: align with standard kernel type for basic cfg
  ea33e01 cfg: move devtmpfs cfg/scc to cfg/fs dir
  517eda4 preempt-rt: combine two config fragments into one
  171a30a cgroups: re-enable net_traffic config fragment
  86a599d cgroups: delete old blkio patches
  8be6e5b netfilter: add comment documenting external bb use case
  90e06bf x86[_64]: align with korg on HOTPLUG_PCI, HOTPLUG_PCI_PCIE and PCI_MSI
  e103f7c seccomp: backport of BPF syscall filtering from v3.5

[YOCTO #1694]

(From OE-Core rev: 0c522dfabbf6b25488865a7653ea30f994d8177f)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolinux-yocto-rt/3.4: update qemuppc branch
Bruce Ashfield [Fri, 22 Jun 2012 03:02:58 +0000 (23:02 -0400)]
linux-yocto-rt/3.4: update qemuppc branch

The 3.4 kernel adopted the qemu machine name for the kernel branches, so
the 3.4-rt recipe needs to be updated to reflect that.

(From OE-Core rev: 9cec3f55cd2381c5d69c6f0911bd985311e2baf9)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolinux-yocto/3.4: update to v3.4.3
Bruce Ashfield [Tue, 19 Jun 2012 14:26:44 +0000 (10:26 -0400)]
linux-yocto/3.4: update to v3.4.3

Bumping the linux-yocto 3.4 SRCREV to import the -stable update
to v3.4.3.

(From OE-Core rev: 529d07cf663e671140ea99877e73db091d5a9734)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>