]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
10 years agosanity.bbclass/kernel.bbclass: minor fixes
Robert Yang [Fri, 22 Aug 2014 08:43:19 +0000 (01:43 -0700)]
sanity.bbclass/kernel.bbclass: minor fixes

Fixed:
- Remove an unused line
- Remove unneeded code after d.getVar(), we don't need the "or ''" after
  d.getVar() unless we need a string.
- typo: PREMIRROS -> PREMIRRORS.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogmp: ppc64 build issue
Armin Kuster [Thu, 21 Aug 2014 21:35:58 +0000 (14:35 -0700)]
gmp: ppc64 build issue

tmp-gcd_1.s: Assembler messages:
| tmp-gcd_1.s:94: Error: unsupported relocation against BMOD_1_TO_MOD_1_THRESHOLD
| make[2]: *** [gcd_1.lo] Error 1

V2: fixed PN name

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomc: Fix musl build failure
Paul Barker [Wed, 20 Aug 2014 15:15:12 +0000 (15:15 +0000)]
mc: Fix musl build failure

The CTRL macro just needs to be defined.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibc-common.bbclass: rename ALL the packages
Peter Seebach [Wed, 20 Aug 2014 21:24:21 +0000 (16:24 -0500)]
libc-common.bbclass: rename ALL the packages

The DEBIAN_NAMES feature renames some of the libc packages to
"libc6*" names --but only some. A previous patch added the -dbg
package. However, this doesn't cover other packages (such as
the -doc package), and it didn't take multilibs into account.

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoexpect: fix shared object file cannot be opened
Chong Lu [Thu, 21 Aug 2014 01:27:13 +0000 (09:27 +0800)]
expect: fix shared object file cannot be opened

When we require Expect package in tcl script, we will get following error:

couldn't load file "/usr/lib/expect5.45/libexpect5.45.so": /usr/lib/expect5.45/libexpect5.45.so: cannot open shared object file: No such file or directory
    while executing
"load /usr/lib/expect5.45/libexpect5.45.so"
    ("package ifneeded Expect 5.45" script)
    invoked from within
"package require Expect"
    (file "hello.tcl" line 3)

This patch fixes this issue.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosudo: remove volatile configuration file
Chen Qi [Thu, 21 Aug 2014 10:24:42 +0000 (18:24 +0800)]
sudo: remove volatile configuration file

The new version of sudo has fixed the problem and will create the
directory if it doesn't exist. So the configuration file is no longer
needed.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake.conf/debian.bbclass: Move AUTO_LIBNAME_PKGS definition to class file
Richard Purdie [Tue, 19 Aug 2014 12:32:26 +0000 (13:32 +0100)]
bitbake.conf/debian.bbclass: Move AUTO_LIBNAME_PKGS definition to class file

Might as well move this default to the class which uses it allowing
for easier reading/understanding of the class.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackagegroup-core-tools-debug: Drop MACHINE_ARCH as PACKAGE_ARCH
Richard Purdie [Tue, 19 Aug 2014 12:29:41 +0000 (13:29 +0100)]
packagegroup-core-tools-debug: Drop MACHINE_ARCH as PACKAGE_ARCH

There is nothing machine specific about this recipe.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage.bbclass: Fixup for using common function
Richard Purdie [Thu, 21 Aug 2014 20:47:50 +0000 (21:47 +0100)]
package.bbclass: Fixup for using common function

We may as well use the common function for this rather than
duplicating the code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/utils: Add utils function for multiprocess execution
Richard Purdie [Thu, 21 Aug 2014 20:46:28 +0000 (21:46 +0100)]
lib/oe/utils: Add utils function for multiprocess execution

Our usage of multitprocessing is problematic. In particular, there is a bug
in python 2.7 multiprocessing where signals are not handled until command
completion instead of immediately.

This factors the multiprocess code into a function which is enhanced with
a workaround to ensure immediate signal handling and also better SIGINT
handling which should happen in the parent, not the children to ensure
clean exits. The workaround for the signals is being added to the core
bb.utils function so it can benefit all users.

package_manager is then converted to use the new code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake.conf: Set PACKAGE_ARCH with ??=
Richard Purdie [Tue, 19 Aug 2014 12:31:22 +0000 (13:31 +0100)]
bitbake.conf: Set PACKAGE_ARCH with ??=

Currently its near impossible for other classes to sanely override
this value with their own default. By setting a weak default we can
allow other classes to change the default and allow end recipes to
again override this.

As far as I can tell, there shouldn't be any regressions from this
change.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/utils/httpserver: Reset SIGTERM handler
Richard Purdie [Fri, 22 Aug 2014 17:21:41 +0000 (17:21 +0000)]
oeqa/utils/httpserver: Reset SIGTERM handler

With bitbake-worker installing a SIGTERM handler, we now need to reset the one here
to ensure that when this process shuts down, it doesn't take the rest of the task
with it. This does appear to be the only place in OE that we have this problem.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoarchiver: delete the tail slash in directory name
Jian Liu [Wed, 20 Aug 2014 08:15:00 +0000 (16:15 +0800)]
archiver: delete the tail slash in directory name

If directory names in SRC_URI ended with "/", function
do_ar_original() in layers/oe-core/meta/classes/archiver.bbclass
will generate a tar file whose name is ".tar.gz".
So delete the "/" at the tail of the directory names before use the names.

Signed-off-by: Jian Liu <jian.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogrub_2.00: strip the sparc64 files from building
Nitin A Kamble [Fri, 15 Aug 2014 19:34:52 +0000 (12:34 -0700)]
grub_2.00: strip the sparc64 files from building

Avoid building and packaging of sparc64 specific files in the x86 builds.

Fixes Bug:
[YOCTO #6427]

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomesa: fix Multilib QA Issue
Chong Lu [Fri, 15 Aug 2014 03:00:56 +0000 (11:00 +0800)]
mesa: fix Multilib QA Issue

This patch fixed warning:
WARNING: Multilib QA Issue: lib32-mesa package lib32-mesa-megadriver - suspicious values
'mesa-driver-swrast mesa-driver-nouveau-vieux mesa-driver-r200 mesa-driver-i915 mesa-driver-radeon mesa-driver-i965' in RPROVIDES
WARNING: Multilib QA Issue: lib32-mesa package lib32-mesa-megadriver - suspicious values
'mesa-driver-swrast mesa-driver-nouveau-vieux mesa-driver-r200 mesa-driver-i915 mesa-driver-radeon mesa-driver-i965' in RREPLACES
WARNING: Multilib QA Issue: lib32-mesa package lib32-mesa-megadriver - suspicious values
'mesa-driver-swrast mesa-driver-nouveau-vieux mesa-driver-r200 mesa-driver-i915 mesa-driver-radeon mesa-driver-i965' in RCONFLICTS

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoudev: fix /var/volatile/tmp permissions
Riku Voipio [Thu, 14 Aug 2014 09:03:53 +0000 (12:03 +0300)]
udev: fix /var/volatile/tmp permissions

Mariadb postinstall will fail with:

ERROR: 1  Can't create/write to file '/tmp/#sql_a2a_0.MAI' (Errcode: 13)
140814  8:14:06 [ERROR] Aborting

/tmp is a link to /var/volatile/tmp, set as:

drwxr-xr-x 3 root root 60 Aug 14 08:07 .

populate-volatiles.sh does not create the directory or set
permissions, because it already exists:

Checking for -/var/volatile/tmp-.
Creating directory -/var/volatile/tmp-.
Target already exists. Skipping.

Traced the creation to the initfile in udev. Create with -m 1755
to be sure. With this patch applied, mysql postinst succeeds and
creates the neccesary user tables.

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogrep: set CONFIG_SHELL to /bin/sh
Robert Yang [Thu, 14 Aug 2014 12:05:43 +0000 (05:05 -0700)]
grep: set CONFIG_SHELL to /bin/sh

It would be bash, sh, ksh or sh5 according to the host if we don't set
this, and its scripts don't have bashism as the checkbashisms shows.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogzip: set CONFIG_SHELL to /bin/sh
Robert Yang [Wed, 13 Aug 2014 08:18:13 +0000 (01:18 -0700)]
gzip: set CONFIG_SHELL to /bin/sh

It would be bash, sh, ksh or sh5 according to the host if we don't set
this, and its scripts don't have bashism as the checkbashisms shows.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoxz: set CONFIG_SHELL to /bin/sh
Robert Yang [Wed, 13 Aug 2014 08:18:12 +0000 (01:18 -0700)]
xz: set CONFIG_SHELL to /bin/sh

It would be bash, sh, ksh or sh5 according to the host if we don't set
this, and its scripts don't have bashism as the checkbashisms shows.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqemumips.conf: Default to (and support) mips32r2
Peter Seebach [Fri, 15 Aug 2014 01:42:47 +0000 (20:42 -0500)]
qemumips.conf: Default to (and support) mips32r2

The MIPS emulation for qemumips actually supports
mips32r2:
isa                     : mips1 mips2 mips32r1 mips32r2

We should probably use that tuning file.

This implicitly changes the default value of DEFAULTTUNE to
mips32r2.

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agofix up eglibc-utils description to match what is actually included
Bob Cochran [Sun, 17 Aug 2014 16:22:55 +0000 (12:22 -0400)]
fix up eglibc-utils description to match what is actually included

iconf must have been a typo for iconv
rpcinfo is found elsewhere (currently rpcbind) and not eglibc-utils - replace its mention with
rpcgen

Signed-off-by: Bob Cochran <openembedded@mindchasers.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqemu: Explicitly disable libiscsi, its not in DEPENDS
Jonathan Liu [Sun, 17 Aug 2014 14:35:50 +0000 (00:35 +1000)]
qemu: Explicitly disable libiscsi, its not in DEPENDS

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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>