]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
10 years agostrace: fix ptest execution failure
Chong Lu [Mon, 18 Aug 2014 05:19:22 +0000 (13:19 +0800)]
strace: fix ptest execution failure

ptest needs runtest-TESTS target.
serial-tests is required to generate this target.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoperl: fix the output format of all tests
Chong Lu [Mon, 18 Aug 2014 05:19:21 +0000 (13:19 +0800)]
perl: fix the output format of all tests

We should use "PASS:|FAIL:|SKIP: testname" to output results of ptest.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolttng-ust: add python-core to RDEPENDS_lttng-ust-bin
Robert Yang [Mon, 18 Aug 2014 06:11:49 +0000 (23:11 -0700)]
lttng-ust: add python-core to RDEPENDS_lttng-ust-bin

There is only one script lttng-gen-tp which is a python in
lttng-ust-bin, and it is a python script.

And the lttng-ust doesn't have to rdepend on python.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosyslinux: add perl to RDEPENDS_syslinux-misc
Robert Yang [Mon, 18 Aug 2014 06:11:48 +0000 (23:11 -0700)]
syslinux: add perl to RDEPENDS_syslinux-misc

These scripts are perl:
syslinux-misc/usr/bin/md5pass
syslinux-misc/usr/bin/isohybrid.pl
syslinux-misc/usr/bin/pxelinux-options
syslinux-misc/usr/bin/keytab-lilo
syslinux-misc/usr/bin/sha1pass
syslinux-misc/usr/bin/syslinux2ansi
syslinux-misc/usr/bin/mkdiskimage
syslinux-misc/usr/bin/lss16toppm
syslinux-misc/usr/bin/ppmtolss16

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoaspell: add perl to RDEPENDS_aspell-utils
Robert Yang [Mon, 18 Aug 2014 06:11:47 +0000 (23:11 -0700)]
aspell: add perl to RDEPENDS_aspell-utils

There is a perl script:
aspell-utils/usr/bin/aspell-import

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorpm: add perl to RDEPENDS_rpm-build
Robert Yang [Mon, 18 Aug 2014 06:11:46 +0000 (23:11 -0700)]
rpm: add perl to RDEPENDS_rpm-build

Perl scripts:
rpm-build/usr/lib64/rpm/http.req
rpm-build/usr/lib64/rpm/php.prov
rpm-build/usr/lib64/rpm/osgideps.pl
rpm-build/usr/lib64/rpm/perl.prov
rpm-build/usr/lib64/rpm/bin/api-sanity-autotest.pl
rpm-build/usr/lib64/rpm/php.req
rpm-build/usr/lib64/rpm/perldeps.pl
rpm-build/usr/lib64/rpm/perl.req

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-plugins-base: add perl to RDEPENDS_gst-plugins-base-apps
Robert Yang [Mon, 18 Aug 2014 06:11:45 +0000 (23:11 -0700)]
gst-plugins-base: add perl to RDEPENDS_gst-plugins-base-apps

Perl script:
gst-plugins-base-apps/usr/bin/gst-visualise-0.10

There are two files in this pacakge, another one is (binary):
gst-plugins-base-apps/usr/bin/gst-discoverer-0.10

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodtc: add bash to RDEPENDS_dtc-misc
Robert Yang [Mon, 18 Aug 2014 06:11:44 +0000 (23:11 -0700)]
dtc: add bash to RDEPENDS_dtc-misc

Bash script:
dtc-misc/usr/bin/dtdiff

There are two files in this pacakge, another one is (binary):
dtc-misc/usr/bin/convert-dtsv0

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoapr: add bash to RDEPENDS_apr-dev
Robert Yang [Mon, 18 Aug 2014 06:11:43 +0000 (23:11 -0700)]
apr: add bash to RDEPENDS_apr-dev

Bashsim in apr-dev/usr/share/build-1/libtool:
possible bashism in apr-dev/usr/share/build-1/libtool line 1004 ($RANDOM):
        my_tmpdir="${my_template}-${RANDOM-0}$$"
possible bashism in apr-dev/usr/share/build-1/libtool line 3797 (should be '.', not 'source'):
                  dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
possible bashism in apr-dev/usr/share/build-1/libtool line 8237 (shopt):
                test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
possible bashism in apr-dev/usr/share/build-1/libtool line 8240 (shopt):
                    shopt -s nocaseglob
possible bashism in apr-dev/usr/share/build-1/libtool line 9255 (should be VAR="${VAR}foo"):
               rpath+=" $flag"

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopm-utils: add bash to RDEPENDS_pm-utils
Robert Yang [Mon, 18 Aug 2014 06:24:08 +0000 (23:24 -0700)]
pm-utils: add bash to RDEPENDS_pm-utils

Bash script:
pm-utils/usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoapt: add bash to RDEPENDS_apt
Robert Yang [Mon, 18 Aug 2014 06:24:07 +0000 (23:24 -0700)]
apt: add bash to RDEPENDS_apt

Bash scripts:
apt/usr/lib64/dpkg/methods/apt/update
apt/usr/lib64/dpkg/methods/apt/install

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoxmlto: add bash to RDEPENDS_xmlto
Robert Yang [Mon, 18 Aug 2014 06:24:06 +0000 (23:24 -0700)]
xmlto: add bash to RDEPENDS_xmlto

Bash scripts:
xmlto/usr/bin/xmlto.real

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokconfig-frontends: add bash to RDEPENDS_kconfig-frontends
Robert Yang [Mon, 18 Aug 2014 06:24:05 +0000 (23:24 -0700)]
kconfig-frontends: add bash to RDEPENDS_kconfig-frontends

Bash script:
kconfig-frontends/usr/bin/kconfig-tweak

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopax-utils: add bash to RDEPENDS_pax-utils
Robert Yang [Mon, 18 Aug 2014 06:24:04 +0000 (23:24 -0700)]
pax-utils: add bash to RDEPENDS_pax-utils

Bash scripts:
pax-utils/usr/bin/symtree
pax-utils/usr/bin/lddtree

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibtool: add bash to RDEPENDS_libtool
Robert Yang [Mon, 18 Aug 2014 06:24:03 +0000 (23:24 -0700)]
libtool: add bash to RDEPENDS_libtool

* Set CONFIG_SHELL="/bin/bash"
* Add bash to RDEPENDS_libtool

We had already set CONFIG_SHELL="/bin/bash" for libtool-native,
libtool-cross and nativesdk-libtool, now also set for target libtool, if
we don't set this, libtool would use /bin/sh, /bin/bash, /bin/ksh or
/bin/sh5 according to the host, and the build is undetermined, this
patch can fix the problem, libtool is a development tool, rdepends on
bash should not cause toubles (for example, the size of the image)

Have tried to set CONFIG_SHELL="/bin/sh" (/bin/sh -> dash), but there is
still a few bashsim in the output libtool.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake.conf: add bash-native to ASSUME_PROVIDED
Robert Yang [Mon, 18 Aug 2014 06:24:02 +0000 (23:24 -0700)]
bitbake.conf: add bash-native to ASSUME_PROVIDED

A few native scipts requires bash-native, and we don't build
bash-native, so add it to ASSUME_PROVIDED.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoopenssl: add DEPENDS on openssl-native for rehash
Jackie Huang [Tue, 19 Aug 2014 01:44:38 +0000 (21:44 -0400)]
openssl: add DEPENDS on openssl-native for rehash

'make rehash' used the compiled openssl to get hash value
for files, it always failed when cross compiling:

/path/to/openssl/1.0.1i-r0/openssl-1.0.1i/util/shlib_wrap.sh:
line 96: /path/to/openssl/1.0.1i-r0/openssl-1.0.1i/util/../apps/openssl:
cannot execute binary file

so add DEPENDS on openssl-native for target package and use it
instead of the one compiled from target package.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodhcp: do not use ifconfig/route in dhclient-script
Fahad Usman [Tue, 19 Aug 2014 18:39:57 +0000 (23:39 +0500)]
dhcp: do not use ifconfig/route in dhclient-script

The original patch was submitted on ISC's mailing list but it didn't get merged
for some reason, it can be found here;

https://lists.isc.org/pipermail/dhcp-users/2011-January/012910.html

"The ISC DHCP's dhclient-script for Linux still uses the legacy commands
'ifconfig' & 'route' to manage IPv4 network addresses & routes,
while it uses iproute2's new "ip" command to manage IPv6 network data.

This requires users & distributions to have both types of commands installed

The attached patch tries to improve the situation by replacing the
old "ifconfig" resp. "route" commands with their "ip" counterparts.

It even improves the logic a bit by only flushing the IPv4 addresses
instead of taking down the whole interface, which may still have active IPv6
connections."

Signed-off-by: Fahad Usman <fahad.usman@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel: Prevent from installing so files into source dir
Yang Shi [Tue, 19 Aug 2014 21:21:41 +0000 (14:21 -0700)]
kernel: Prevent from installing so files into source dir

vdso build could generate so files, avoid installing such so files into kernel
source dir, otherwise the below package QA error might be hit:

ERROR: QA Issue: File '/usr/src/kernel/arch/x86/vdso/vdso64.so' from
linux-yocto was already stripped, this will prevent future
debugging! [already-stripped]

Signed-off-by: Yang Shi <yang.shi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agonss-myhostname: fix postinst/prerm scripts
Koen Kooi [Wed, 20 Aug 2014 13:28:50 +0000 (15:28 +0200)]
nss-myhostname: fix postinst/prerm scripts

${D} is expanded by bitbake which means the postinst looks like this:

sed -e '/^hosts:/s/\s*\<myhostname\>//' \
    -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \
    -i /build/scratch/angstrom-v2014.12/build/tmp-angstrom_next-eglibc/work/armv5te-angstrom-linux-gnueabi/systemd/1_216+gitAUTOINC+5d0ae62c66-r0/image/etc/nsswitch.conf

Change ${D} to $D to stop it from being expanded by bitbake.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoethtool: Fix musl build failure
Paul Barker [Wed, 20 Aug 2014 12:21:12 +0000 (12:21 +0000)]
ethtool: Fix musl build failure

We just need to ensure the proper names for uint types are used.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopsmisc: Fix musl build failure
Paul Barker [Wed, 20 Aug 2014 10:59:13 +0000 (10:59 +0000)]
psmisc: Fix musl build failure

As in procps, we just need to include <limits.h> for PATH_MAX.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoprocps: Fix musl build failure
Paul Barker [Wed, 20 Aug 2014 10:14:03 +0000 (10:14 +0000)]
procps: Fix musl build failure

This is a simple fix, <limits.h> just needs to be included before PATH_MAX is
used.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: do not realign aligned partitions
Maciej Borzecki [Tue, 19 Aug 2014 13:14:18 +0000 (15:14 +0200)]
wic: do not realign aligned partitions

The change prevents additional realignment of already aligned
partition. Previously, even already aligned partitions would be pushed
forward by the amount of --align.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: do not steal sectors from the first partition
Maciej Borzecki [Tue, 19 Aug 2014 13:14:17 +0000 (15:14 +0200)]
wic: do not steal sectors from the first partition

In order to make up for space loss due to overhead located before the
first partition, same amount of bytes was extracted from the first
partition's size. This leads to unexpected change of first partition's
size, and is not matched by similar adjustment at the time the partition
image is generated. Thus it is possible that the first partition may
partially overwrite contents of the following partition, as the
partition image is larger than the allocated space.

This is also problematic on certain platforms such as OMAP, where the
first partition is required for have an even number of
sectors (typically already expressed by --size in kickstart
file). Subtracting an odd number of sectors lost for overhead, leads to
an odd number of sectors assigned for partition, preventing the board,
such as beaglebone, from booting correctly.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoe2fsprogs: Backport fixes for building with musl
Paul Barker [Tue, 19 Aug 2014 18:52:17 +0000 (18:52 +0000)]
e2fsprogs: Backport fixes for building with musl

Both of these fixes have been applied upstream and improve general code
correctness.  They are needed when building with TCLIBC=musl but shouldn't cause
any harm with other libc implementations.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/autotools: avoid error if recipe is first in task dependency tree
Paul Eggleton [Tue, 19 Aug 2014 16:37:41 +0000 (17:37 +0100)]
classes/autotools: avoid error if recipe is first in task dependency tree

If the recipe being built is listed first in BB_TASKDEPDATA (i.e. item
0) this is still valid and should not trigger an error.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosqlite3: Upgrade to 2.8.6.0
Saul Wold [Tue, 19 Aug 2014 14:49:13 +0000 (07:49 -0700)]
sqlite3: Upgrade to 2.8.6.0

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agognupg: Upgrade to 2.0.26
Saul Wold [Tue, 19 Aug 2014 14:49:12 +0000 (07:49 -0700)]
gnupg: Upgrade to 2.0.26

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibidn: Upgrade to 1.29
Saul Wold [Tue, 19 Aug 2014 14:49:11 +0000 (07:49 -0700)]
libidn: Upgrade to 1.29

The COPYING and other files updated the year to 2014 so the Checksums
needed to be updated also.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglew: Upgrade to 1.11.0
Saul Wold [Tue, 19 Aug 2014 14:49:10 +0000 (07:49 -0700)]
glew: Upgrade to 1.11.0

Rebase patch and move patches from too generic files to glew

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoboost: Upgrade to 1.56.0
Saul Wold [Tue, 19 Aug 2014 14:49:09 +0000 (07:49 -0700)]
boost: Upgrade to 1.56.0

Rebase boostconfig to handle moved user-config file

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibbsd: Upgrade to 0.7.0
Saul Wold [Tue, 19 Aug 2014 14:49:08 +0000 (07:49 -0700)]
libbsd: Upgrade to 0.7.0

COPYING file changed in year, but no license changes

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocups: Upgrade to 1.7.5
Saul Wold [Tue, 19 Aug 2014 14:49:07 +0000 (07:49 -0700)]
cups: Upgrade to 1.7.5

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqemu: fix Darwin cross-compilation
Cristian Iorga [Mon, 18 Aug 2014 09:44:00 +0000 (12:44 +0300)]
qemu: fix Darwin cross-compilation

Darwin target will not be detected correctly
if qemu is cross-compiled under a Linux host.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/sstate: ensure do_package_qa_setscene doesn't pull in do_package_setscene
Paul Eggleton [Mon, 18 Aug 2014 14:21:54 +0000 (15:21 +0100)]
classes/sstate: ensure do_package_qa_setscene doesn't pull in do_package_setscene

If we have done do_package_qa_setscene we do not also need
do_package_setscene. This means we can again for example rebuild an image
without needing do_package sstate packages to be present.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuildhistory: rename build-id to build-id.txt and add more info
Martin Jansa [Fri, 25 Jul 2014 13:15:38 +0000 (15:15 +0200)]
buildhistory: rename build-id to build-id.txt and add more info

* use .txt extension like other reports (e.g. image-info.txt) it's
  also useful when looking at the file from web server which doesn't
  have text/plain as default content-type
* include whole BUILDCFG_HEADER/BUILDCFG_FUNCS instead of just layer
  info
* this makes it easier for distro to include more fields without the
  need to modify buildhistory.bbclass
* currently it adds following fields:
  Build Configuration:
  BB_VERSION        = "1.23.1"
  BUILD_SYS         = "x86_64-linux"
  NATIVELSBSTRING   = "Gentoo-2.2"
  TARGET_SYS        = "x86_64-oe-linux"
  MACHINE           = "qemux86-64"
  DISTRO            = "shr"
  DISTRO_VERSION    = "2013.07-next-20140725"
  TUNE_FEATURES     = "m64 core2"
  TARGET_FPU        = ""

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibrsvg: disable Bsymbolic if it is not supported on some hosts
Chong Lu [Mon, 18 Aug 2014 09:49:18 +0000 (17:49 +0800)]
librsvg: disable Bsymbolic if it is not supported on some hosts

When trying to build on my Centos 5.5 machine, got below error:
| checking for gdk-pixbuf-query-loaders... /home/build/clu1/build/qemux86_standard_glibc-std/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/gdk-pixbuf-query-loaders
| checking if gcc  supports "-Wl,-Bsymbolic-functions" flag...
| configure: error: -Bsymbolic requested but not supported by ld. Use --disable-Bsymbolic to disable
| Configure failed. The contents of all config.log files follows to aid debugging
| ERROR: oe_runconf failed

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

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosite/common-darwin: Really fix common-darwin typo
Richard Purdie [Mon, 18 Aug 2014 09:00:06 +0000 (10:00 +0100)]
site/common-darwin: Really fix common-darwin typo

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/sdk/: add sdk tests for sudoku, iptables and cvs
Corneliu Stoicescu [Sat, 9 Aug 2014 10:59:09 +0000 (13:59 +0300)]
oeqa/sdk/: add sdk tests for sudoku, iptables and cvs

Add test modules for sdk tests.

NOTE: Original patch made by: Richard Purdie <richard.purdie@linuxfoundation.org>

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/utils/targetbuild.py: add support for sdk tests
Corneliu Stoicescu [Sat, 9 Aug 2014 10:59:08 +0000 (13:59 +0300)]
oeqa/utils/targetbuild.py: add support for sdk tests

- Create new abstract class BuildProject that provides basic functionality for a project/package building class
        * contains abstract method _run() that needs to be implemented by all extending classes.
- The old TargetBuildProject class now extends the abstract BuildProjct class
- Introducing new SDKBuildProject that extends the abstract BuildProjct class

NOTE: Original patch made by: Richard Purdie <richard.purdie@linuxfoundation.org>

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/oetest.py: enable sdk testing
Corneliu Stoicescu [Sat, 9 Aug 2014 10:59:07 +0000 (13:59 +0300)]
oeqa/oetest.py: enable sdk testing

- add support for sdk tests in the loadTests and runTests methods
- add new oeSDKTest test object

NOTE: Original patch made by: Richard Purdie <richard.purdie@linuxfoundation.org>

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agometa/classes/testimage.bbclass: add testsdk task and enable functionality for it.
Corneliu Stoicescu [Sat, 9 Aug 2014 10:59:06 +0000 (13:59 +0300)]
meta/classes/testimage.bbclass: add testsdk task and enable functionality for it.

- add new testsdk task for meta-toolchain testing.
- enable the get_tests_list method to work with sdk tests.
- add default TEST_SUITES value for meta-toolchain package

NOTE: Original patch made by: Richard Purdie <richard.purdie@linuxfoundation.org>

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agochrpath: Drop warning from darwn builds
Richard Purdie [Sun, 17 Aug 2014 08:52:44 +0000 (09:52 +0100)]
chrpath: Drop warning from darwn builds

This was old debug which can safely be removed for less noisy builds.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglib-2.0: Add missing nativesdk-gettext DEPENDS
Richard Purdie [Sun, 17 Aug 2014 08:51:58 +0000 (09:51 +0100)]
glib-2.0: Add missing nativesdk-gettext DEPENDS

This override overrides the gettext class additions so we need to
add back the dependency manually.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqemu.inc: Drop unneeded nativesdk-libsdl RDEPENDS
Richard Purdie [Sun, 17 Aug 2014 08:51:29 +0000 (09:51 +0100)]
qemu.inc: Drop unneeded nativesdk-libsdl RDEPENDS

Now sdl is completely handled by PACKAGECONFIG, we can drop this RDEPENDS.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqemu-targets.inc: Update to handle mingw/darwin
Richard Purdie [Sun, 17 Aug 2014 08:51:01 +0000 (09:51 +0100)]
qemu-targets.inc: Update to handle mingw/darwin

For non-linux targets, don't return linux-user qemu targets. This change
also improves readability of the functions through better variable names.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-ffmpeg: add PACKAGECONFIG for libav9 and patch from Gentoo
Martin Jansa [Fri, 8 Aug 2014 13:57:52 +0000 (15:57 +0200)]
gst-ffmpeg: add PACKAGECONFIG for libav9 and patch from Gentoo

* apply the patch only when PACKAGECONFIG is selected, because the changes
  aren't backwards compatible

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopiglit: add dependency on libxrender
Martin Jansa [Sat, 9 Aug 2014 16:08:00 +0000 (18:08 +0200)]
piglit: add dependency on libxrender

* fixes floating dependency:
  piglit/piglit/latest lost dependency on  libxrender

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolocal.conf.sample: Append sdl to qemu-native* PACKAGECONFIG
Richard Purdie [Sun, 17 Aug 2014 08:40:45 +0000 (09:40 +0100)]
local.conf.sample: Append sdl to qemu-native* PACKAGECONFIG

Now there are other PACKAGECONFIG options to qemu, we need
to append to the list.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoavahi: Since ${PN} is empty, set -dev RDEPENDS
Richard Purdie [Sat, 16 Aug 2014 09:34:55 +0000 (09:34 +0000)]
avahi: Since ${PN} is empty, set -dev RDEPENDS

Since ${PN} is empty, we need to specify the ${PN}-dev RDEPENDS.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocrosssdk: Clear MACHINEOVERRIDES
Richard Purdie [Sat, 16 Aug 2014 07:20:57 +0000 (08:20 +0100)]
crosssdk: Clear MACHINEOVERRIDES

Without this, things like arm* can make it into OVERRIDES when we're
building a compiler to build binaries for another architecture like
x86. This can can lead to build failures dependning on the
exact configuration and overrides.

For example:

MACHINE=imx53qsb bitbake gcc-crosssdk-initial-x86_64 -e | grep EXTRA_OECONF

was showing an armv7 configuration option to gcc.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoopenssl: Repace if-else with case and add musl triplet
Khem Raj [Sat, 16 Aug 2014 01:44:16 +0000 (18:44 -0700)]
openssl: Repace if-else with case and add musl triplet

Simplifies the code and adds knowlwdge about musl targets

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosyslinux: fix race issue
Robert Yang [Sat, 16 Aug 2014 05:15:02 +0000 (22:15 -0700)]
syslinux: fix race issue

Fixed do_install failed:
cp -r syslinux-6.01/com32/libupload/*.h image/usr/share/syslinux/com32/include/
[snip]
rm -rf image/usr/share/syslinux/com32/include
[snip]
cp: cannot create regular file `image/usr/share/syslinux/com32/include/serial.h': No such file or directory

The cp is happened in the "libupload" dir, while "rm -fr" is happend in
"lib" dir, let "libupload" depend "lib" will fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoavahi-ui: drop rmdir localstatedir in bb recipe
Robert Yang [Sat, 16 Aug 2014 02:08:09 +0000 (19:08 -0700)]
avahi-ui: drop rmdir localstatedir in bb recipe

There is a "rmdir --ignore-fail-on-non-empty ${D}${localstatedir}" in
avahi.inc, so drop the one in avahi-ui_0.6.31.bb, otherwise do_install
error:
rmdir: failed to remove `/path/to/image/var': No such file or directory

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoavahi: unset FILES_avahi to avoid packaging files there
Ross Burton [Fri, 15 Aug 2014 16:55:22 +0000 (17:55 +0100)]
avahi: unset FILES_avahi to avoid packaging files there

The main avahi recipe doesn't package anything into ${PN}.  If a library is
enabled but not put into a separate package it ends up in ${PN} and all the
packages are renamed using it's soname - ie libdns-sd-daemon.

Avoid this by clearing FILES_avahi so extra files are unpackaged instead of
creating a new package.  Also actually remove /var as the comments claim so the
avahi package is truly empty.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolttng-tools: update to version 2.5.0
Ross Burton [Fri, 15 Aug 2014 12:11:47 +0000 (13:11 +0100)]
lttng-tools: update to version 2.5.0

Update to latest stable-2.5 revision.

* Drop Fix-alignment-problems-on-targets-not-supporting-una.patch, merged
  upstream.
* New build-dependency on libxml2, so inherit pkgconfig so the test works and
  delete the copy of libxml.m4 that overrides our sysroot.

Based on a patch from Yasir-Khan <yasir_khan@mentor.com>.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibxml2: port AM_PATH_XML2 to use pkg-config
Ross Burton [Fri, 15 Aug 2014 12:11:46 +0000 (13:11 +0100)]
libxml2: port AM_PATH_XML2 to use pkg-config

Upstream AM_PATH_XML2 uses xml2-config which we disable, so port this macro to
use pkg-config.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocoreutils/libpam: Add BBCLASSEXTEND nativesdk
Richard Purdie [Fri, 15 Aug 2014 08:40:56 +0000 (08:40 +0000)]
coreutils/libpam: Add BBCLASSEXTEND nativesdk

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: include partition label in fs image file name
Maciej Borzecki [Mon, 21 Jul 2014 11:01:57 +0000 (13:01 +0200)]
wic: include partition label in fs image file name

Not including the label image but having multiple partitions of the same
type, the image file of one partition would overwrite the other.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc-cross-initial: Put limits.h in gccdir/include
Khem Raj [Sun, 27 Apr 2014 07:20:15 +0000 (00:20 -0700)]
gcc-cross-initial: Put limits.h in gccdir/include

musl e.g. is configured to not use fixed-include
which is an improvement btw. but libgcc-initial configure
has tests which probe for limits.h and since we put
it in include-fixed/ dir and that dir does not appear
in gcc's internal default search path the configure tests
for CPP detection fail and libgcc-initial can not be compiled.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolttng-ust/lttng-modules: Update LICENSE to reflect MIT
Richard Purdie [Thu, 14 Aug 2014 22:08:05 +0000 (23:08 +0100)]
lttng-ust/lttng-modules: Update LICENSE to reflect MIT

The code in question clearly states MIT is a third license. Update
LICENSE to reflect this (in one case, we did list BSD which is effectively
the same thing but this removes confusion).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolttng-tools/lttng-ust: Drop old 2.3.1 versions
Richard Purdie [Thu, 14 Aug 2014 22:07:40 +0000 (23:07 +0100)]
lttng-tools/lttng-ust: Drop old 2.3.1 versions

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolttng-ust: update to version 2.5.0
Yasir-Khan [Mon, 11 Aug 2014 14:09:30 +0000 (19:09 +0500)]
lttng-ust: update to version 2.5.0

update to latest stable-2.5 revision

Signed-off-by: Yasir-Khan <yasir_khan@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoolchain-shar-template.sh: Limit xargs command line
Gary Thomas [Mon, 11 Aug 2014 20:50:35 +0000 (14:50 -0600)]
toolchain-shar-template.sh: Limit xargs command line

It's possible to generate a command line in the relocate_sdk.sh script
which is too long (long paths, many files).  This change limits the
xargs command line by breaking it up into smaller pieces.

One necessary side effect is that the -0 option is no longer used as it
doesn't seem to work properly with -n, so the file name arguments are
now quoted explicitly rather than \0 terminated.

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobootchart2: fix installed-vs-shipped
Robert Yang [Tue, 12 Aug 2014 02:35:09 +0000 (19:35 -0700)]
bootchart2: fix installed-vs-shipped

Fixed:
ERROR: QA Issue: bootchart2: Files/directories were installed but not shipped
  /lib
  /lib/bootchart
  /lib/bootchart/bootchart-collector
  /lib/bootchart/tmpfs
  /lib/bootchart/.debug
  /lib/bootchart/.debug/bootchart-collector [installed-vs-shipped]

local.conf:
MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibpam: Allow use during build and in SDK
Otavio Salvador [Mon, 11 Aug 2014 20:21:44 +0000 (17:21 -0300)]
libpam: Allow use during build and in SDK

The recipe had libpam hardcoded in some places which were causing
failures as the metadata renaming hooks does not change those,
generating a broken dependencies list.

This patch fixes those and add the native and nativesdk support.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoattr: Allow use during build and SDK
Otavio Salvador [Mon, 11 Aug 2014 20:21:43 +0000 (17:21 -0300)]
attr: Allow use during build and SDK

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocracklib: Allow use in SDK
Otavio Salvador [Mon, 11 Aug 2014 20:21:42 +0000 (17:21 -0300)]
cracklib: Allow use in SDK

This adds 'nativesdk' in the BBCLASSEXTEND.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: Add mkgummidisk kickstart file
Tom Zanussi [Tue, 12 Aug 2014 01:35:41 +0000 (20:35 -0500)]
wic: Add mkgummidisk kickstart file

This is the same as mkefidisk but uses gummiboot instead of grub-efi.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: Add sourceparams to mkefidisk.wks
Tom Zanussi [Tue, 12 Aug 2014 01:35:40 +0000 (20:35 -0500)]
wic: Add sourceparams to mkefidisk.wks

The bootimg-efi plugin now requires a loader param, so supply it to
retain existing behavior.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: Add gummiboot support to bootimg-efi
Tom Zanussi [Tue, 12 Aug 2014 01:35:39 +0000 (20:35 -0500)]
wic: Add gummiboot support to bootimg-efi

Add gummiboot support to bootimg-efi, which retains the existing
grub-efi support (though requires an update to the .wks file).

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: Parse and pass sourceparams to partition plugin methods
Tom Zanussi [Tue, 12 Aug 2014 01:35:38 +0000 (20:35 -0500)]
wic: Parse and pass sourceparams to partition plugin methods

Add code to parse the sourceparams and pass them to the partition
plugin methods.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: Add sourceparam param to partition plugin methods
Tom Zanussi [Tue, 12 Aug 2014 01:35:37 +0000 (20:35 -0500)]
wic: Add sourceparam param to partition plugin methods

The sourceparam param allows source plugins to be parameterized
generically (via --sourceparams="key=val[,key=val], implemented
previously).

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: Add utility function for parsing sourceparams
Tom Zanussi [Tue, 12 Aug 2014 01:35:36 +0000 (20:35 -0500)]
wic: Add utility function for parsing sourceparams

Parses strings of the form key1=val1[,key2=val2,...] and returns a
dict.  Also accepts valueless keys i.e. without =.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: Add '--sourceparams' partition option
Tom Zanussi [Tue, 12 Aug 2014 01:35:35 +0000 (20:35 -0500)]
wic: Add '--sourceparams' partition option

To go along with '--source' as a way to parameterize source plugins.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoimage.bbclass: image_types.bbclass is a must
Robert Yang [Tue, 12 Aug 2014 06:08:11 +0000 (23:08 -0700)]
image.bbclass: image_types.bbclass is a must

The image_types.bbclass is a must since we use this in image.bbclass:

[snip]
python () {
    deps = " " + imagetypes_getdepends(d)
    d.appendVarFlag('do_rootfs', 'depends', deps)
[snip]

The imagetypes_getdepends() is defined in image_types.bbclass. Use "+="
to replace "?=" since it is a must, so that the user can use
"IMAGE_CLASSES = foo.bbclass" in local.conf to add their own image
class.

NOTE: the IMAGE_CLASSES_append = " foo" doesn't work since we use this
in image.bbclass:
 IMAGE_CLASSES += "image_types"
 inherit ${IMAGE_CLASSES}

I think that it is because inherit takes effect before append?

Another way to fix the problem is:
IMAGE_CLASSES ?= ""
inherit image_types ${IMAGE_CLASSES}

But it seems that we need another name for IMAGE_CLASSES, for example
IMAGE_CLASSES_EXTRA, and also need update the doc, which would make it
complicated.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogmp: uprev it to 6.0.0
Roy Li [Tue, 12 Aug 2014 06:33:37 +0000 (14:33 +0800)]
gmp: uprev it to 6.0.0

Uprev gmp from 5.1.1 to 6.0.0, and remove the 4.2.1 version which is GPLv2,
since gmp-6.0.0 is dual-licensing, LGPLv3 or GPLv2;

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoSupport image type "squashfs-lzo"
Mike Looijmans [Tue, 12 Aug 2014 07:54:59 +0000 (09:54 +0200)]
Support image type "squashfs-lzo"

Add "squashfs-lzo" to the image types. LZO compression support has been
in both kernel and squashfs tools for many years, but OE never enabled
it.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosquashfs-tools: Add support for LZO and LZ4 compression
Mike Looijmans [Tue, 12 Aug 2014 07:54:58 +0000 (09:54 +0200)]
squashfs-tools: Add support for LZO and LZ4 compression

For systems that want to optimize for speed rather than size, LZO is
usually a better choice than gzip or XZ. Kernel support for LZO has
been available since 2.6.29.

LZ4 support isn't in the mainline kernel yet, but we might as well add
it now for those who want to experiment with it.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agostrace: apply ptrace.h conflict workaround
Yasir-Khan [Tue, 12 Aug 2014 12:40:58 +0000 (17:40 +0500)]
strace: apply ptrace.h conflict workaround

Apply patch from strace upstream to workaround ptrace.h
header file conflict. This patch is not available in
strace-4.8 tarball pulled in by recipe.

* patch from strace upstream
 - Work around conflict between <sys/ptrace.h> and
   <linux/ptrace.h>

Signed-off-by: Yasir-Khan <yasir_khan@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocurl: --with-random is only applicable with openssl
Andre McCurdy [Wed, 13 Aug 2014 07:36:55 +0000 (00:36 -0700)]
curl: --with-random is only applicable with openssl

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocurl: let configure find gnutls via pkg-config
Andre McCurdy [Wed, 13 Aug 2014 07:36:54 +0000 (00:36 -0700)]
curl: let configure find gnutls via pkg-config

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocurl: add zlib PACKAGECONFIG and remove hardcoded DEPENDS
Andre McCurdy [Wed, 13 Aug 2014 07:36:53 +0000 (00:36 -0700)]
curl: add zlib PACKAGECONFIG and remove hardcoded DEPENDS

Add a zlib PACKAGECONFIG control and update PACKAGECONFIG[ssl] to
include the openssl dependency. Older hardcoded DEPENDS can then
be removed.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopython-pygtk: fix native python path
Robert Yang [Wed, 13 Aug 2014 08:23:13 +0000 (01:23 -0700)]
python-pygtk: fix native python path

Fixed:
1) Set IMAGE_INSTALL_append = " python-pygtk-demo" in local.conf
2) $ bitbake core-image-minimal
[snip]
Computing transaction...error: Can't install python-pygtk-demo-2.24.0-r1@core2_64: no package provides /usr/bin/python-native/python
[snip]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoconsolekit: depend on glib-2.0-native
Yasir-Khan [Wed, 13 Aug 2014 13:48:32 +0000 (18:48 +0500)]
consolekit: depend on glib-2.0-native

This is required for glib-gettextize.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Yasir-Khan <yasir_khan@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoconsolekit: allow explicit enable/disable of polkit
Yasir-Khan [Wed, 13 Aug 2014 13:48:13 +0000 (18:48 +0500)]
consolekit: allow explicit enable/disable of polkit

Adds the configure option to enable/disable policykit.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Yasir-Khan <yasir_khan@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoudev-extraconf: Unmount SD card after ejection
Yasir-Khan [Thu, 14 Aug 2014 14:56:37 +0000 (19:56 +0500)]
udev-extraconf: Unmount SD card after ejection

Adds udev rule to unmount SD card partitions in case of improper
ejection from card reader.

When SD card is ejected from card reader without being unmounted
first, kernel does not generate a REMOVE event, instead it
generates a CHANGE event(only if polling is enabled
/sys/module/block/parameters/events_dfl_poll_msecs) and we don't
have any udev rule in automount.rules to handle this event,so
partitions never get unmounted. Unmounting of partitions can be
done if udev rules handle this CHANGE event.

Signed-off-by: Abbas Raza <Abbas_Raza@mentor.com>
Signed-off-by: Yasir-Khan <yasir_khan@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoopkg: Protect add-exclude.patch from malloc failure
Paul Barker [Thu, 14 Aug 2014 16:46:51 +0000 (16:46 +0000)]
opkg: Protect add-exclude.patch from malloc failure

In the code added by add-exclude.patch, the return values of malloc and realloc
were not checked before being dereferenced.

In opkg we can use xmalloc and xrealloc instead of malloc and realloc. These
functions terminate the program instead of returning NULL if memory allocation
fails.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomultilib_global.bbclass: PREFERRED_PROVIDERS for multilibs
Peter Seebach [Thu, 14 Aug 2014 18:03:36 +0000 (13:03 -0500)]
multilib_global.bbclass: PREFERRED_PROVIDERS for multilibs

The code in base.bbclass to spread PREFERRED_PROVIDERS values
to multilibs doesn't work for things which rely on TARGET_PREFIX,
such as virtual/${TARGET_PREFIX}gcc. This is because the expansion
of TARGET_PREFIX produces the wrong value if executed prior to
the assignment of TARGET_VENDOR_virtclass-multilib-libxx, which
will always happen since that assignment doesn't happen until recipe
parsing, but the PREFERRED_PROVIDERS expansion is happening
around ConfigParsed.

To solve this, we make a couple of changes. First, the creation
of the TARGET_VENDOR override values is moved into a new ConfigParsed
event handler in multilib_global. Second, the preferred_ml_updates()
function's code is moved into that function too. It seems safe to
assume that PREFERRED_PROVIDER values only need to be spread to
other multilibs when multilibs are in use.

I don't think this directly affects any use cases that don't involve
third-party or alternative toolchains.

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc: update compiler architecture to match gcc-runtime (armv6, armv7a)
Peter A. Bigot [Thu, 14 Aug 2014 19:05:59 +0000 (14:05 -0500)]
gcc: update compiler architecture to match gcc-runtime (armv6, armv7a)

The gcc-runtime recipe builds the gcc libraries including libstdc++ with
$TARGET_CC_ARCH flags, which include -march=FOO flags that affect
whether atomic instructions are available.  This causes an ABI
incompatibility when the compiler by default generates code for less
capable architectures.  For example, gcc-runtime libraries on a
Cortex-A8 are built with a different C++11/C++14 mutex implementation
than is used code compiled outside OE and without architecture-specific
flags.

This commit fixes the problem specifically for ABI issues related to
atomic instructions available in ARMV6 and subsequent architectures.
Other ABI incompatibilities may remain in other architectures.

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

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc: backport patch affecting Linux kernel builds
Peter A. Bigot [Thu, 14 Aug 2014 19:05:58 +0000 (14:05 -0500)]
gcc: backport patch affecting Linux kernel builds

A long-standing bug in gcc turns out to cause problems with unpatched
Linux versions due to improved optimization enabled by gcc 4.9.  The
upstream fix missed the gcc-4.9.1 cut-off.  It's also been applied
upstream to the 4.8 branch so is being added for OE's 4.8 as well.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc: Abstract long double configuration into python function
Khem Raj [Thu, 14 Aug 2014 19:05:57 +0000 (14:05 -0500)]
gcc: Abstract long double configuration into python function

musl does not support IBM 128 long double for ppc, instead of
doing complex overrides move it into a pythong snippet which
is easier to read and more compact.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosdk: change EXTRA_OECONF_FPU to EXTRA_OECONF_GCC_FLOAT
Peter A. Bigot [Thu, 14 Aug 2014 19:05:56 +0000 (14:05 -0500)]
sdk: change EXTRA_OECONF_FPU to EXTRA_OECONF_GCC_FLOAT

This variable is used to ensure the proper version of --with-float=FOO
is passed to gcc's configure script.  gcc also has a --with-fpu=FOO
option that means something different.  To avoid confusion, change the
names to be consistent.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc-target: make --enable-clocale consistent with gcc-runtime
Peter A. Bigot [Thu, 14 Aug 2014 19:05:55 +0000 (14:05 -0500)]
gcc-target: make --enable-clocale consistent with gcc-runtime

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc: remove outdated configuration option
Peter A. Bigot [Thu, 14 Aug 2014 19:05:54 +0000 (14:05 -0500)]
gcc: remove outdated configuration option

--enable-libunwind-exceptions was removed from gcc at release 3.4.3
about ten years ago.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc-4.9: Ensure c++ includes are in /usr/include/c++/${BINV}
Peter A. Bigot [Thu, 14 Aug 2014 19:05:53 +0000 (14:05 -0500)]
gcc-4.9: Ensure c++ includes are in /usr/include/c++/${BINV}

Apply to gcc 4.9 the recent fix to the --with-gxx-include-dir override.

Original OE-Core rev: 5a2ff3e8f7cd7a47a5ab4e581847ecc4df87fca

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc: remove inappropriate patch
Peter A. Bigot [Thu, 14 Aug 2014 19:05:52 +0000 (14:05 -0500)]
gcc: remove inappropriate patch

0037-gcc-4.8-PR56797.patch was originally added as an OE backport during
4.8.0.  Upstream merged it in 4.8.1, and it was present in 4.9.0.

The original patch still applies to 4.9.1 (and presumably 4.8.2), but
now is modifying store_multiple_sequence instead of
load_multiple_sequence (the two functions are nearly identical).  It may
or may not be necessary in store_multiple_sequence, but absent a bug
report upstream supporting its application in this case, or a least an
updated comment and upstream status in the patch, I think this patch
should be dropped.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc: recipe whitespace changes
Peter A. Bigot [Thu, 14 Aug 2014 19:05:51 +0000 (14:05 -0500)]
gcc: recipe whitespace changes

Consistent use of whitespace in multi-line assignment, with special
focus on OECONF modifications.  Quotes on separate lines, four-space
indentation, one value per line.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotcmode-default.inc: Add eglibc-scripts and eglibc-mtrace
Mark Hatle [Wed, 13 Aug 2014 15:07:34 +0000 (10:07 -0500)]
tcmode-default.inc: Add eglibc-scripts and eglibc-mtrace

Add the specific scripts and mtrace versions to the preferred version list.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>