]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
10 years agoudev-cache.default: set PROBE_PLATFORM_BUS to "yes" by default
Denys Dmytriyenko [Thu, 19 Jun 2014 22:53:23 +0000 (18:53 -0400)]
udev-cache.default: set PROBE_PLATFORM_BUS to "yes" by default

Force probing of "platform" bus by default.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoudev: update init script for conditional probing of platform bus
Denys Dmytriyenko [Thu, 19 Jun 2014 22:53:22 +0000 (18:53 -0400)]
udev: update init script for conditional probing of platform bus

Make probing of "platform" bus conditional based on PROBE_PLATFORM_BUS
variable from /etc/default/udev-cache on subsequent boots when udev
cache is used. PROBE_PLATFORM_BUS has to be set to "yes" in order to
force probing on every boot, otherwise it uses the old default behaviour
of probing it just the first time.

This is helpful on modern SoCs where most of the low level peripheral
drivers are registered on the platform bus and need to be probed to load
the necessary modules and enable the connected buses and subsystems.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoown-mirrors: Add gitsm:// mirror support
Richard Purdie [Tue, 24 Jun 2014 22:55:32 +0000 (23:55 +0100)]
own-mirrors: Add gitsm:// mirror support

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogtk-doc: Add pkgconfig inherit
Richard Purdie [Tue, 24 Jun 2014 22:55:00 +0000 (23:55 +0100)]
gtk-doc: Add pkgconfig inherit

Anything using gtk-doc will be using pkgconfig as well so
add in the dependency rather than doing it for each and every recipe.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibsdl: Convert to use pkg-config in internal m4 macros
Richard Purdie [Tue, 24 Jun 2014 22:53:47 +0000 (23:53 +0100)]
libsdl: Convert to use pkg-config in internal m4 macros

Rather than code which doesn't even work properly when cross compiling,
lets just use pkg-config instead. Its a little simpler.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-openmax: Add missing pkgconfig inherit
Richard Purdie [Tue, 24 Jun 2014 22:52:58 +0000 (23:52 +0100)]
gst-openmax: Add missing pkgconfig inherit

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/package_manager.py: Add processing for alternative SDK_OS
Mark Hatle [Wed, 25 Jun 2014 00:28:07 +0000 (19:28 -0500)]
lib/oe/package_manager.py: Add processing for alternative SDK_OS

For the meta-mingw layer, we need to process alternative SDK_OS, since this
is not a Linux based OS.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc-cross-canadian: Add configure-target-libgcc
Mark Hatle [Wed, 25 Jun 2014 00:28:06 +0000 (19:28 -0500)]
gcc-cross-canadian: Add configure-target-libgcc

While we're not going to package the libgcc component as part of the SDK,
we do need to generate it to get the unwind, and quadmath headers.  Without
this change it is not possible to build eglibc or other components that
require these headers with the SDK toolchain.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopopulate_sdk: Fix TOOLCHAIN_TARGET_TASK_ATTEMPTONLY implementation
Mark Hatle [Wed, 25 Jun 2014 00:28:05 +0000 (19:28 -0500)]
populate_sdk: Fix TOOLCHAIN_TARGET_TASK_ATTEMPTONLY implementation

The variable was only partially implemented, and the part that was there
was named incorrectly to, missing the 'TASK' piece.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/package_rpm.bbclass: Fix SDK Suffix reference
Mark Hatle [Wed, 25 Jun 2014 00:28:04 +0000 (19:28 -0500)]
classes/package_rpm.bbclass: Fix SDK Suffix reference

The meta-mingw layer attempts to change the SDK Suffix, but the rpm
packaging had a hard coded reference to _nativesdk.

I did a quick scan for other hard coded entries and did not fine any
more.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocurl: Convert CURLGNUTL to PACKAGECONFIG
Saul Wold [Wed, 25 Jun 2014 00:13:20 +0000 (17:13 -0700)]
curl: Convert CURLGNUTL to PACKAGECONFIG

This will allow for easier configuration of curl for SSL vs gnutls

[YOCTO #6329]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoca-certificates: Update to 20140325
Saul Wold [Wed, 25 Jun 2014 00:13:19 +0000 (17:13 -0700)]
ca-certificates: Update to 20140325

Changes to debian/copyright:
Update to "Copyright: Mozilla Contributors" for mozilla/{certdata.txt,nssckbi.h}

Backported on additional patch from ca-certificates tree

[YOCTO #6454]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomobile-broadband-provider-info: Update SRCREV
Saul Wold [Wed, 25 Jun 2014 00:13:18 +0000 (17:13 -0700)]
mobile-broadband-provider-info: Update SRCREV

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoman-pages: Update to 3.69
Saul Wold [Wed, 25 Jun 2014 00:13:17 +0000 (17:13 -0700)]
man-pages: Update to 3.69

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoxcb-util-renderutil: Update to version 0.3.9
Saul Wold [Wed, 25 Jun 2014 00:13:16 +0000 (17:13 -0700)]
xcb-util-renderutil: Update to version 0.3.9

Updated LIC_FILES_CHKSUM to focus only on header section
no license changes

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocurl: Update to 7.37
Saul Wold [Wed, 25 Jun 2014 00:13:15 +0000 (17:13 -0700)]
curl: Update to 7.37

Remove patches that are fixed upstream

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agognupg: Update to 2.0.23
Saul Wold [Wed, 25 Jun 2014 00:13:14 +0000 (17:13 -0700)]
gnupg: Update to 2.0.23

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoliburcu: Update to 0.8.4
Saul Wold [Wed, 25 Jun 2014 00:13:13 +0000 (17:13 -0700)]
liburcu: Update to 0.8.4

Removed patch fixed upstream

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibusb1: Update to 1.0.19
Saul Wold [Wed, 25 Jun 2014 00:13:12 +0000 (17:13 -0700)]
libusb1: Update to 1.0.19

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosqlite3: Update to 3.8.5.0
Saul Wold [Wed, 25 Jun 2014 00:13:11 +0000 (17:13 -0700)]
sqlite3: Update to 3.8.5.0

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agou-boot: Optionally deploy an environment or script file
Ash Charles [Tue, 24 Jun 2014 20:10:18 +0000 (13:10 -0700)]
u-boot: Optionally deploy an environment or script file

Some boards are configured to read a script or environment file as part
of the u-boot boot sequence.  This file, typically called 'uEnv.txt' or
'boot.scr', would be deployed alongside the u-boot binary.  If a recipe
uses this u-boot.inc, such a file can be deployed by setting the optional
UBOOT_ENV parameter and including the file in the SRC_URI.  For example:

    SRC_URI_append_overo = "file://uEnv.txt"
    UBOOT_ENV_overo = "uEnv"

Signed-off-by: Ash Charles <ashcharles@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocmake.bbclass: restore OECMAKE_SOURCEPATH
Ross Burton [Tue, 24 Jun 2014 20:21:32 +0000 (21:21 +0100)]
cmake.bbclass: restore OECMAKE_SOURCEPATH

Some packages put their CMakeLists.txt file in a subdirectory, so assuming that
it is in ${S} won't work.

Restore OECMAKE_SOURCEPATH (defaulting to ${S}) so that the location of
CMakeLists.txt can be set if required.

Based on a patch by Miroslav Keš <miroslav.kes@gmail.com>

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobinutils: Add fix for recent patch on older gcc
Richard Purdie [Wed, 25 Jun 2014 09:09:44 +0000 (09:09 +0000)]
binutils: Add fix for recent patch on older gcc

The recent bintuils patch update breaks on older gccs such as CentOS 6.
Backport a patch to address this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobinutils: Apply the proper fix for PR 16428
H.J. Lu [Tue, 24 Jun 2014 21:18:19 +0000 (14:18 -0700)]
binutils: Apply the proper fix for PR 16428

It is fixed by

commit 4199e3b8669d0a36448687850374fdc2ad7240b6
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Jan 15 21:50:55 2014 +1030

    non-PIC references to __ehdr_start in pie and shared

    Rather than hacking every backend to not discard dynamic relocations
    against an undefined hidden __ehdr_start, make it appear to be defined
    early.  We want __ehdr_start hidden before size_dynamic_sections so
    that it isn't put in .dynsym, but we do need the dynamic relocations
    for a PIE or shared library with a non-PIC reference.  Defining it
    early is wrong if we don't actually define the symbol later to its
    proper value.  (In some cases we want to leave the symbol undefined,
    for example, when the ELF header isn't loaded, and we don't have this
    infomation available in before_allocation.)

So replace the existing patches with this one.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooe-pkgdata-util: fix help text
Paul Eggleton [Tue, 22 Apr 2014 11:23:08 +0000 (12:23 +0100)]
oe-pkgdata-util: fix help text

This was copy/pasted from another script and not corrected.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agolist-packageconfig-flags: improve option parsing
Paul Eggleton [Fri, 23 May 2014 13:30:34 +0000 (14:30 +0100)]
list-packageconfig-flags: improve option parsing

* Use optparse instead of getopt (less code & automatic help)
* Change help text / output to use "recipe" instead of "package"
* Print something to indicate the script is still gathering information

Note that the long options have been renamed as appropriate.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agolist-packageconfig-flags: filter out doc and defaultval varflags
Paul Eggleton [Fri, 23 May 2014 12:20:40 +0000 (13:20 +0100)]
list-packageconfig-flags: filter out doc and defaultval varflags

These are generic flags and shouldn't be listed in the output of this
script.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agoscripts: consolidate code to find bitbake path
Paul Eggleton [Tue, 22 Apr 2014 11:07:35 +0000 (12:07 +0100)]
scripts: consolidate code to find bitbake path

Several of these scripts were using duplicated code (and slightly
different methods) to find the path to bitbake and add its lib
subdirectory to the Python import path. Add some common code to do this
and change the scripts to use it.

Fixes [YOCTO #5076].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agosyslinux: fix isohybird overflows on 32 bit system
Kai Kang [Fri, 20 Jun 2014 06:06:30 +0000 (14:06 +0800)]
syslinux: fix isohybird overflows on 32 bit system

When call isohybrid with option '-u', it overflows on a 32 bits host. It
seeks to 512 bytes before the end of the image to install gpt header. If
the size of image is larger than LONG_MAX, it overflows fseek() and
cause error:

isohybrid: wrlinux-image-x86-64-20140505110100.iso: seek error - 8: Invalid argument

Replace fseek with fseeko to fix this issue.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agonfs-utils: fix the --with-statdpath= flag
Yao Xinpan [Fri, 20 Jun 2014 06:47:02 +0000 (14:47 +0800)]
nfs-utils: fix the --with-statdpath= flag

if --with-statdpath= is not the default value, will happen the following questions:
'Failed to open directory sm: No such file or directory'.

Submitted to nfs-utils mailing list here:

    http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commitdiff;h=3b1457d219ceb1058d44bacc657581f13437ae40#patch1

This has been accepted into upstream nfs-utils so it will not be needed
for future versions.

Signed-off-by: Yao Xinpan <yaoxp@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogummiboot.bbclass: Ensure MLPREFIX is applied to depends flag
Ming Liu [Thu, 19 Jun 2014 08:43:00 +0000 (16:43 +0800)]
gummiboot.bbclass: Ensure MLPREFIX is applied to depends flag

Add MLPREFIX to depends flag to ensure the correct gummiboot is
dependended upon.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogrub-efi.bbclass: Ensure MLPREFIX is applied to depends flag
Ming Liu [Thu, 19 Jun 2014 08:42:59 +0000 (16:42 +0800)]
grub-efi.bbclass: Ensure MLPREFIX is applied to depends flag

Add MLPREFIX to depends flag to ensure the correct grub-efi is
dependended upon.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosyslinux.bbclass: Ensure MLPREFIX is applied to depends flag
Ming Liu [Thu, 19 Jun 2014 08:42:58 +0000 (16:42 +0800)]
syslinux.bbclass: Ensure MLPREFIX is applied to depends flag

Add MLPREFIX to depends flag to ensure the correct syslinux is
dependended upon.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoeglibc (2.19): fix hardcoded /sbin path
Matthieu Crapet [Thu, 19 Jun 2014 08:33:59 +0000 (10:33 +0200)]
eglibc (2.19): fix hardcoded /sbin path

Apply for ldconfig and sln packages.

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoinitscripts: update populate-volatile.sh
Kai Kang [Thu, 19 Jun 2014 07:31:52 +0000 (15:31 +0800)]
initscripts: update populate-volatile.sh

If a partition such as /tmp mounted on a volatile directory which create
by script populate-volatile.sh from initscripts, it will show errors.

In /var/log/boot, error message:

Thu Jun 19 05:39:09 2014: bootlogd.
Thu Jun 19 05:39:10 2014: rm: cannot remove '/tmp': Device or resource busy

Check volatile directories and if it is be mounted then don't force make
it as a link.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agonss-3.15.1: fix CVE-2013-1739
yzhu1 [Wed, 18 Jun 2014 09:41:30 +0000 (05:41 -0400)]
nss-3.15.1: fix CVE-2013-1739

Mozilla Network Security Services (NSS) before 3.15.2 does
not ensure that data structures are initialized before
read operations, which allows remote attackers to cause a
denial of service or possibly have unspecified other
impact via vectors that trigger a decryption failure.

http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-1739
Signed-off-by: yzhu1 <yanjun.zhu@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomesa.inc: remove '-' suffix in substitution of package names
Ming Liu [Fri, 20 Jun 2014 10:28:01 +0000 (18:28 +0800)]
mesa.inc: remove '-' suffix in substitution of package names

The current substitution to package names is not correct, its original
purpose is: replace "mesa-" with "mesa-dri-", in which process the
"mesa" package is left out, this leads mesa package to announce to
conflict with itself, and therefore cause build failures when multilib
mesa are being added to rootfs.

Changing the replacement pattern to without a '-' suffix will fix it.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodbus-test: fix incorrect checksum
Chong Lu [Tue, 24 Jun 2014 05:46:52 +0000 (13:46 +0800)]
dbus-test: fix incorrect checksum

Modify checksum to match new version.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomkefidisk.sh: Allow symlink for device
Darren Hart [Mon, 23 Jun 2014 21:44:41 +0000 (14:44 -0700)]
mkefidisk.sh: Allow symlink for device

Allow the user to specify a symlink as the host device. If a link is
used, mkefidisk will now dereference it and use the link target when
looking for sysfs information.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoiproute2: upgrade to 3.15.0
Cristian Iorga [Mon, 23 Jun 2014 13:18:44 +0000 (16:18 +0300)]
iproute2: upgrade to 3.15.0

The main new features are:
  * ss gets more attention
  * Support for HHF qdisc
  * Updates to bridge command
  * Lots of vxlan related changes
  * Lots of little corrections and build fixes.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoharfbuzz: upgrade to 0.9.29
Cristian Iorga [Mon, 23 Jun 2014 13:18:43 +0000 (16:18 +0300)]
harfbuzz: upgrade to 0.9.29

Mostly a bugfix release.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobluez5: upgrade to 5.20
Cristian Iorga [Mon, 23 Jun 2014 13:18:42 +0000 (16:18 +0300)]
bluez5: upgrade to 5.20

Mostly bugfix release;
Improved handling of PS3 controllers;
Support for the A2DP aptX codec.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoscripts/test-remote-image: add value check for rootfs fstype, change method name...
Corneliu Stoicescu [Mon, 23 Jun 2014 12:59:45 +0000 (15:59 +0300)]
scripts/test-remote-image: add value check for rootfs fstype, change method name used.

As per change in the oeqa/targetcontrol.py's BaseTarget class, changing the use of get_image_fstype() to match_image_fstype().

Also because there is no longer a value check done by the target controller's match_image_fstype() method, we have to do one here.

+ one helper comment for the get_controller() method.

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/targetcontrol.py: Separate the matching of supported image fstypes from the...
Corneliu Stoicescu [Mon, 23 Jun 2014 12:59:44 +0000 (15:59 +0300)]
oeqa/targetcontrol.py: Separate the matching of supported image fstypes from the resulting value check.

Because we used a bb.fatal call inside the get_image_fstype classmethod, this caused problems when accessed without instantiating the object with a valid bb environment.

Separating the matching part of the classmethod(that is usable by outside scripts) from the check of the resulting value.
The matching is done within a new classmethod and the latter keeps the old method name and internal functionality, this way we don't have to change any other target controllers code.

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agometa-yocto-bsp: oeqa/controllers: add GrubTarget
Cristian Iorga [Fri, 20 Jun 2014 15:42:20 +0000 (18:42 +0300)]
meta-yocto-bsp: oeqa/controllers: add GrubTarget

add control for generic grub pc via serial line

Implementation [YOCTO #5615].

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoinit-install-testfs: create signature file for master image
Cristian Iorga [Fri, 20 Jun 2014 15:42:19 +0000 (18:42 +0300)]
init-install-testfs: create signature file for master image

Also small cosmetic changes.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoinit-install-testfs: fix typo
Cristian Iorga [Fri, 20 Jun 2014 15:42:18 +0000 (18:42 +0300)]
init-install-testfs: fix typo

_EOF marker was not used properly
(space left before end of line).

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooe-core/init-install-testfs.sh: do not overwrite /etc/mtab if the link already exist
Cristian Iorga [Fri, 20 Jun 2014 15:42:17 +0000 (18:42 +0300)]
oe-core/init-install-testfs.sh: do not overwrite /etc/mtab if the link already exist

Overwriting of /etc/mtab would fail as below if the /etc/mtab link already
exist during installation phase, this patch fix this problem by checking
existance of the link before try to overwrite it.

Error message during installation if the /etc/mtab exists:
"cat: /proc/mounts: input file is output file"

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoinit-install-testfs: add grub serial line support
Cristian Iorga [Fri, 20 Jun 2014 15:42:16 +0000 (18:42 +0300)]
init-install-testfs: add grub serial line support

For automated hardware testing, boot process control
via serial interface is needed. As such, in grub, serial
line support is added upon testmaster image install.

Also add a specific timeout to automatically start
the master image upon start of testing phase.

Tested on multiple hardware targets without issues.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosstatesig: Add try/except around the stat calls
Richard Purdie [Wed, 18 Jun 2014 16:58:56 +0000 (17:58 +0100)]
sstatesig: Add try/except around the stat calls

Its possible sstate symlinks to other sstate mirrors which then my get
removed/cleaned. If we find invalid symlinks, skip over them rather
than error with a backtrace.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosstate: Fix shared work preconfigure task handling
Richard Purdie [Wed, 18 Jun 2014 16:58:18 +0000 (17:58 +0100)]
sstate: Fix shared work preconfigure task handling

When the preconfigure task was added to gcc, it wasn't added to sstate's list
of possible shared work tasks. This meant that diffsigs wasn't able to find
the preconfigure sigdata/info file since it has inconsistent naming.

This adds the task name to the list. Ideally this list would be autogenerated
or not even required, right now its a sanity test that the shared work
code works as intended so is best left as is.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolocal.conf.sample: Add sdl to nativesdk qemu PACKAGECONFIG
Saul Wold [Thu, 19 Jun 2014 00:36:17 +0000 (17:36 -0700)]
local.conf.sample: Add sdl to nativesdk qemu PACKAGECONFIG

Enable SDL by default for nativesdk as we do with natve, this will
allow qemu with ADT to use graphics no vnc by default.

[YOCTO #6446]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodbus: don't override EXTRA_OECONF
Robert Yang [Wed, 18 Jun 2014 08:28:23 +0000 (01:28 -0700)]
dbus: don't override EXTRA_OECONF

We need use EXTRA_OECONF_append_class-native rather than
EXTRA_OECONF_class-native.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-module-split: Fix KERNEL_MODULE_AUTOLOAD handling
Richard Purdie [Wed, 18 Jun 2014 09:39:39 +0000 (10:39 +0100)]
kernel-module-split: Fix KERNEL_MODULE_AUTOLOAD handling

Addresses the problem:

The stack trace of python calls that resulted in this exception/failure was:
File: 'split_kernel_module_packages', lineno: 164, function: <module>
     0160:        if len(os.listdir(dir)) == 0:
     0161:            os.rmdir(dir)
     0162:
     0163:
 *** 0164:split_kernel_module_packages(d)
     0165:
File: 'split_kernel_module_packages', lineno: 150, function: split_kernel_module_packages
     0146:     0147:    postinst = d.getVar('pkg_postinst_modules', True)
     0148:    postrm = d.getVar('pkg_postrm_modules', True)
     0149:
 *** 0150:    modules = do_split_packages(d, root='/lib/modules', file_regex=module_regex, output_pattern=module_pattern, description='%s kernel module', postinst=postinst, postrm=postrm, recursive=True, hook=frob_metadata, extra_depends='kernel-%s' % (d.getVar("KERNEL_VERSION", True)))
     0151:    if modules:
     0152:        metapkg = d.getVar('KERNEL_MODULES_META_PACKAGE', True)
     0153:        d.appendVar('RDEPENDS_' + metapkg, ' '+' '.join(modules))
     0154:
File: 'package.bbclass', lineno: 148, function: do_split_packages
     0144:                d.setVar('pkg_postrm_' + pkg, postrm)
     0145:        else:
     0146:            d.setVar('FILES_' + pkg, oldfiles + " " + newfile)
     0147:        if callable(hook):
 *** 0148:            hook(f, pkg, file_regex, output_pattern, m.group(1))
     0149:
     0150:    d.setVar('PACKAGES', ' '.join(packages))
     0151:    return split_packages
     0152:
File: 'split_kernel_module_packages', lineno: 109, function: frob_metadata
File "split_kernel_module_packages", line 109, in frob_metadata

Exception: AttributeError: 'NoneType' object has no attribute 'split'

ERROR: Function failed: split_kernel_module_packages

[YOCTO #6461]

[a revised version of a patch from Nitin Kamble]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolttng-modules: update to 2.4.1-stable latest
Bruce Ashfield [Wed, 18 Jun 2014 01:29:51 +0000 (21:29 -0400)]
lttng-modules: update to 2.4.1-stable latest

The 3.15, and 3.14.5+ kernels introduced a change to trace_block_rq_complete,
which triggers the following build error:

    probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:151:6:
    error: conflicting types for 'trace_block_rq_complete'
    |  void trace_##_name(_proto);
    |       ^
    |
    probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:117:2:
    note: in expansion of macro 'DEFINE_EVENT_MAP'
    |   DEFINE_EVENT_MAP(template, name, name, PARAMS(proto), PARAMS(args))
    |   ^
    |
    probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/block.h:235:1:
    note: in expansion of macro 'DEFINE_EVENT'
    |  DEFINE_EVENT(block_rq_with_error, block_rq_complete,

The lttng 2.4.x-stable branch contains the fix (and several other small fixes), so
we bump the SRCREV to import the change.

Build tested against 3.14 and 3.10.

[YOCTO #6459]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.10: update to v3.10.43
Bruce Ashfield [Tue, 17 Jun 2014 15:26:15 +0000 (11:26 -0400)]
linux-yocto/3.10: update to v3.10.43

Importing the v3.10.42 and 43 korg -stable updates.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.14: enable mpc8315e NAND and Yaffs2 gcc 4.9 fix
Bruce Ashfield [Tue, 17 Jun 2014 15:26:14 +0000 (11:26 -0400)]
linux-yocto/3.14: enable mpc8315e NAND and Yaffs2 gcc 4.9 fix

Updating the meta branch with configuration changes to enable NAND
booting on the mpc8315e reference board.

We also update the BSP SRCREVs to fix a compilation issue with
date/time on Yaffs2 and gcc 4.9.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.4: update to v3.4.91
Bruce Ashfield [Tue, 17 Jun 2014 15:26:13 +0000 (11:26 -0400)]
linux-yocto/3.4: update to v3.4.91

Updating to the latest korg -stable release.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.14: update to v3.14.5
Bruce Ashfield [Tue, 17 Jun 2014 15:26:12 +0000 (11:26 -0400)]
linux-yocto/3.14: update to v3.14.5

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.10: update to v3.10.41
Bruce Ashfield [Tue, 17 Jun 2014 15:26:11 +0000 (11:26 -0400)]
linux-yocto/3.10: update to v3.10.41

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoghostscript: fix sizeof(GX_COLOR_INDEX_TYPE) not equal to ARCH_SIZEOF_GX_COLOR_INDEX...
Hongxu Jia [Tue, 17 Jun 2014 11:03:03 +0000 (19:03 +0800)]
ghostscript: fix sizeof(GX_COLOR_INDEX_TYPE) not equal to ARCH_SIZEOF_GX_COLOR_INDEX on mips

The commit: http://ghostscript.com/pipermail/gs-cvs/2014-February/017271.html
newly added a 'compile time assert' on 9.14 that causes the build to fail if
the sizeof(GX_COLOR_INDEX_TYPE) is not equal to ARCH_SIZEOF_GX_COLOR_INDEX.

Disscuss on IRC:
http://ghostscript.com/irclogs/2014/02/06.html

The commit from OE-Core rev: 78a13ba170c1de6d7ef077854e3e34e18d17099f
...
ghostscript: add pregenerated objarch for mipsel/mips64/mips64el
...
has defined ARCH_SIZEOF_GX_COLOR_INDEX according to the type of archs,
and assigned 4 for mips/mipsel (8 for others).

The GX_COLOR_INDEX_TYPE was defined at do_configure time, which used
large color index (with 8) by default. We should manually choose the
opposite one (with 4) for mips/mipsel.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoghostscript: upgrade to 9.14
Hongxu Jia [Tue, 17 Jun 2014 11:03:02 +0000 (19:03 +0800)]
ghostscript: upgrade to 9.14

- The LICENSE added AGPL for the font files (in Resource/Font);

- Rebase ghostscript-9.02-parallel-make.patch to 9.14

- Rebase ghostscript-native-fix-disable-system-libtiff.patch
  since base/configure.ac has been moved to configure.ac.
  http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=f1488c5aff54f37ee67759827d4298592af5dbc8

- Obsolete ghostscript-9.05-NOT-check-endian.patch, and add option
  '--enable-little-endian'/'--enable-big-endian' conditionally to
  intead.
  http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=e76dc46756e89a14a3348bce12a633d32e4fa831

- Add base-genht.c-add-a-preprocessor-define-to-allow-fope.patch
  for native, since the upstream replace all fopen calls with
  gp_fopen and add a preprocessor define so that any unintential
  calls directly to fopen will cause an error. This patch add a
  preprocessor define to allow fopen calling in base/genht.c as
  exceptions.
  http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=773c69e46e70bdd5482676437dafd2ca83397643

- Remove package ghostscript-cups, since CUPS filters
  gstoraster and gstopxl has been moved to cups-filters
  which is a free software package hosted by OpenPrinting.
  http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=9304a21699a6c17579fae32f44f5c92a37c13e2d
  http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqmmp: upgrade to 0.7.7
Hongxu Jia [Tue, 17 Jun 2014 07:01:07 +0000 (15:01 +0800)]
qmmp: upgrade to 0.7.7

Build:
1) Add LICENSE_FLAGS_WHITELIST += "commercial" to local.conf

2) bitbake qmmp

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodirectfb: upgrade to 1.7.4
Hongxu Jia [Tue, 17 Jun 2014 07:01:06 +0000 (15:01 +0800)]
directfb: upgrade to 1.7.4

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibnewt/libnewt-python: upgrade to 0.52.17
Hongxu Jia [Tue, 17 Jun 2014 07:01:05 +0000 (15:01 +0800)]
libnewt/libnewt-python: upgrade to 0.52.17

- The company address has changed in COPYING.

- Rebase fix_SHAREDDIR.patch to 0.52.17

- Rebase cross_ar.patch to 0.52.17

- Obsolete fix_python_fpic.patch, since the patch has been
  merged by upstream;

- The upstream rename snackmodule to snack in 0.52.17, so tweak
  libnewt-python_0.52.17.bb;

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agohwlatdetect: fix PV
Koen Kooi [Tue, 17 Jun 2014 09:01:28 +0000 (11:01 +0200)]
hwlatdetect: fix PV

As an extra safety measure set PV in the same place as SRCREV.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agohwlatdetect 0.85: fix variable ordering
Koen Kooi [Tue, 17 Jun 2014 09:01:27 +0000 (11:01 +0200)]
hwlatdetect 0.85: fix variable ordering

The OE styleguide says to group R* variables below do_install.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodpkg: Security Advisory - CVE-2014-3127
Guillem Jover [Tue, 17 Jun 2014 08:25:52 +0000 (04:25 -0400)]
dpkg: Security Advisory - CVE-2014-3127

v2 changes:
* update format for commit log
* add Upstream-Status for patch

commit a12eb58959d0a10584a428f4a3103a49204c410f upstream

Dpkg::Source::Patch: Outright reject C-style filenames in patches

Because patch only started recognizing C-style filenames in diffs
in version 2.7, it's not safe to assume one behaviour or the other,
as the system might or might not have a recent enough version, or
a GNU patch program at all. There's also no reason we should be
supporting this kind of strange encoded filenames in patches, when
we have not done so up to now.

Let's just ban these types of diffs and be done with it.

Fixes: CVE-2014-0471, CVE-2014-3127
Closes: #746306
[drop the text for debian/changelog,because it's not suitable
for the veriosn]
Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodpkg: Security Advisory - CVE-2014-0471
Guillem Jover [Tue, 17 Jun 2014 08:25:51 +0000 (04:25 -0400)]
dpkg: Security Advisory - CVE-2014-0471

v2 changes:
* update format for commit log
* add Upstream-Status for patch

commit a82651188476841d190c58693f95827d61959b51 upstream

Dkpkg::Source::Patch: Correctly parse C-style diff filenames

We need to strip the surrounding quotes, and unescape any escape
sequence, so that we check the same files that the patch program will
be using, otherwise a malicious package could overpass those checks,
and perform directory traversal attacks on source package unpacking.

Fixes: CVE-2014-0471
Reported-by: Jakub Wilk <jwilk@debian.org>
[drop the text for debian/changelog,because it's not suitable
 for the veriosn]

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibtiff: Security Advisory - CVE-2012-4564
Yue Tao [Tue, 17 Jun 2014 08:25:20 +0000 (04:25 -0400)]
libtiff: Security Advisory - CVE-2012-4564

v2 changes:
* update format for commit log
* add Upstream-Status for patch

ppm2tiff does not check the return value of the TIFFScanlineSize
function, which allows remote attackers to cause a denial of service
(crash) and possibly execute arbitrary code via a crafted PPM image that
triggers an integer overflow, a zero-memory allocation, and a heap-based
buffer overflow.

http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-4564

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibpam: Security Advisory - CVE-2014-2583
Yue Tao [Tue, 17 Jun 2014 08:23:59 +0000 (04:23 -0400)]
libpam: Security Advisory - CVE-2014-2583

v2 changes:
* update format for commit log
* add Upstream-Status for patch

Multiple directory traversal vulnerabilities in pam_timestamp.c in the
pam_timestamp module for Linux-PAM (aka pam) 1.1.8 allow local users to
create aribitrary files or possibly bypass authentication via a .. (dot
dot) in the (1) PAM_RUSER value to the get_ruser function or (2) PAM_TTY
value to the check_tty funtion, which is used by the
format_timestamp_name function.

http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-2583

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoperf: add slang to the dependencies
Henning Heinold [Mon, 16 Jun 2014 20:02:45 +0000 (22:02 +0200)]
perf: add slang to the dependencies

* TUI/GUI support was added in 2.6.35 based on libnewt
* since 3.10 slang replaced libnewt completly
* changing TUI_DEFINES is not necessary, because NO_NEWT is
  still respected with newer kernels
* add comment about the gui history to the recipe

The patch was sponsored by sysmocom

Signed-off-by: Henning Heinold <henning@itconsulting-heinold.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoRevert "populate_sdk: verify executable or dynamically linked library"
Roy Li [Tue, 17 Jun 2014 06:00:27 +0000 (14:00 +0800)]
Revert "populate_sdk: verify executable or dynamically linked library"

It is introduced a bug, since The return of "file ld-linux-x86-64.so.*"
does not include "dynamically linked" in redhat 5.9/6.0(32 bit), and lead
to that ld-linux-x86-64.so.* is not in executable file list.

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorelocate_sdk: Skip to do relocation if the file size is less than 64 byte
Roy Li [Tue, 17 Jun 2014 06:00:26 +0000 (14:00 +0800)]
relocate_sdk: Skip to do relocation if the file size is less than 64 byte

When toolchain directory is changed to execute mode, some non-executable
files or empty files are sorted. This will lead to the below error:

Extracting SDK...done
Setting it up...Traceback (most recent call last):
  File "..._SDK/relocate_sdk.py", line 208, in <module>
    arch = get_arch()
  File "..._SDK/relocate_sdk.py", line 39, in get_arch
    ei_mag0,ei_mag1_3,ei_class = struct.unpack("<B3sB11x", e_ident)
struct.error: unpack requires a string argument of length 16

To call get_arch and parse_elf_header, we should ensure the sorted file
is bigger than 64 byte.

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocups: enable cups-str4402.patch
Robert Yang [Tue, 27 May 2014 01:39:47 +0000 (21:39 -0400)]
cups: enable cups-str4402.patch

This patch is used for fixing build errors without dnssd/avahi, we
already have this patch, but isn't added to SRC_URI:
meta/recipes-extended/cups/cups/cups-str4402.patch

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodbus-native: dbus-native: do_compile failed on selinux.c on CentOS 5.10
Robert Yang [Tue, 27 May 2014 01:39:46 +0000 (21:39 -0400)]
dbus-native: dbus-native: do_compile failed on selinux.c on CentOS 5.10

Found this error on CentOS 5.10, other distros may also has this
problem, I think that we can disable the selinux for dbus-native:

bus/selinux.c:327: error: array type has incomplete element type

[YOCTO #6374]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_ipk.bbclass: Support hierarchical feed
Paul Barker [Wed, 28 May 2014 15:19:50 +0000 (15:19 +0000)]
package_ipk.bbclass: Support hierarchical feed

This patch allows for an optional new layout for ipk feed directories which I've
called a 'hierarchical feed' and is based on how Debian pools package files. It
is disabled by default and is enabled by setting IPK_HIERARCHICAL_FEED to "1".

In the traditional feed layout, package files are placed in <outdir>/<arch>/.
This can lead to several thousand files existing in a single directory which is
often a problem if developers want to upload a package feed to a shared web
hosting provider. For example, in my case, listing files via FTP only shows the
first 2000 files, breaking my scripts which attempt to upload only new and
changed files via FTP.

In the hierarchical feed, package files are written to
<outdir>/<arch>/<pkg_prefix>/<pkg_subdir>, where pkg_prefix is the first letter
of the package file name for non-lib packages or "lib" plus the 4th letter of
the package file name for lib packages (eg, 'l' for less, 'libc' for libc6).
pkg_subdir is the root of the package file name, discarding the version and
architecture parts and the common suffixes '-dbg', '-dev', '-doc', '-staticdev',
'-locale' and '-locale-*' which are listed in meta/conf/bitbake.conf.

This change relies on recent patches to opkg-utils which support hierarchical
package feeds.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokexec-tools: fix warning about patch could not be found
Chong Lu [Mon, 16 Jun 2014 03:20:27 +0000 (11:20 +0800)]
kexec-tools: fix warning about patch could not be found

kexec-tools-klibc required kexec-tools.inc file. Put the patch of
kexec-tools into bb file in order to fixing QA warning about files path.
The patch only needed by kexec-tools.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowget: use GnuTLS instead of OpenSSL
Ross Burton [Mon, 16 Jun 2014 10:52:56 +0000 (11:52 +0100)]
wget: use GnuTLS instead of OpenSSL

OpenSSL has license complications and GnuTLS is preferred, so although the
license complications don't impact wget use GnuTLS for consistency.

Also add a recommendation on ca-certificates so that https: URLs work.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodirectfb: fix-compilation-with-zlib.patch merged upstream
Andre McCurdy [Sat, 14 Jun 2014 10:32:04 +0000 (03:32 -0700)]
directfb: fix-compilation-with-zlib.patch merged upstream

Compilation with zlib is fixed in DirectFB 1.7.1.

Upstream commit:

  commit 40779160de4d57bad973af9674df51ad281fdb8f
  Author: Denis Oliver Kropp <dok@directfb.org>
  Date:   Tue Sep 18 21:10:25 2012 +0200

    Core: Include zlib.h where it was missing.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogawk: ensure cross compiling doesn't try to remove host files
Paul Gortmaker [Fri, 13 Jun 2014 18:54:45 +0000 (14:54 -0400)]
gawk: ensure cross compiling doesn't try to remove host files

Fixes [YOCTO #6440]

When cross compiling gawk, it is possible to see this fail:

make[4]: Entering directory '/mnt/home/paul/poky/build/tmp/work/corei7-64-poky-
linux/gawk/4.1.1-r0/build/extension'
for i in filefuncs.la fnmatch.la fork.la inplace.la ordchr.la readdir.la readfi
le.la revoutput.la revtwoway.la rwarray.la testext.la time.la ; do \
        rm -f /usr/lib/gawk/$i ; \
done
rm: cannot remove '/usr/lib/gawk/filefuncs.la': Permission denied
rm: cannot remove '/usr/lib/gawk/fnmatch.la': Permission denied
rm: cannot remove '/usr/lib/gawk/fork.la': Permission denied
rm: cannot remove '/usr/lib/gawk/inplace.la': Permission denied
rm: cannot remove '/usr/lib/gawk/ordchr.la': Permission denied
rm: cannot remove '/usr/lib/gawk/readdir.la': Permission denied
rm: cannot remove '/usr/lib/gawk/readfile.la': Permission denied
rm: cannot remove '/usr/lib/gawk/revoutput.la': Permission denied
rm: cannot remove '/usr/lib/gawk/revtwoway.la': Permission denied
rm: cannot remove '/usr/lib/gawk/rwarray.la': Permission denied
rm: cannot remove '/usr/lib/gawk/testext.la': Permission denied
rm: cannot remove '/usr/lib/gawk/time.la': Permission denied
Makefile:1235: recipe for target 'install-data-hook' failed

The problem only manifests itself on hosts where the above files
are already present; for if they are absent then the rm -f does
not fail with -EPERM.

Before looking in mainline gawk for a fix, I fixed it myself.
Then in comparing with mainline gawk, I found their fix was
not 100% complete.  So here we get a backport of the mainline
gawk commit, plus the delta as a commit that I've sent to the
gawk mailing list.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotzcode: update to verison 2014e
Armin Kuster [Sun, 15 Jun 2014 01:40:04 +0000 (18:40 -0700)]
tzcode: update to verison 2014e

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotzdata: update to version 2014e
Armin Kuster [Sun, 15 Jun 2014 01:40:03 +0000 (18:40 -0700)]
tzdata: update to version 2014e

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoarchiver: create dir 'B' explicitly while WORKDIR changed
Hongxu Jia [Mon, 16 Jun 2014 03:22:57 +0000 (23:22 -0400)]
archiver: create dir 'B' explicitly while WORKDIR changed

In the do_unpack_and_patch task of archiver, the changed 'WORKDIR' also
casued 'B' changed, create dir 'B' for the possibly requiring of the
tasks which executed in do_unpack_and_patch task.

Such as cut-ecgl's do_patch required 'B' existed:
...
| cp: target 'tmp/work/x86_64-wrs-linux/cut-ecgl/1.0-r0/archiver-work
/cut-ecgl-1.0' is not a directory
...
| ERROR: Function failed: do_patch (log file is located at tmp/work/
x86_64-wrs-linux/cut-ecgl/1.0-r0/temp/do_unpack_and_patch/
log.do_unpack_and_patch.11886)
...

The 'B' dir is implicitly created at the task executing time while the
task tag 'dirs' is not assigned. In the above cut-ecgl example, the 'B'
was created at the wrl_buildlink executing time which is the prefuncs of
task do_unpack. So the following do_patch could use 'B' correctly. But
wrl_buildlink is unnecessary and not invoked in the do_unpack_and_patch
task.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoimage-vmdk.bbclass: set timeout to 1 second
Robert Yang [Mon, 16 Jun 2014 10:24:13 +0000 (03:24 -0700)]
image-vmdk.bbclass: set timeout to 1 second

The SYSLINUX_TIMEOUT ?= "1" means 0.1 second which is too short, set to
1 second as mage-live.bbclass and boot-directdisk.bbclass does.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: check IFLA_VLAN_PROTOCOL
Robert Yang [Mon, 16 Jun 2014 13:49:18 +0000 (06:49 -0700)]
systemd: check IFLA_VLAN_PROTOCOL

The older kernel's linux/if_link.h doesn't have IFLA_VLAN_PROTOCOL, we need
check whether it has been defined or not.

The maintainer said that he would fix it:

http://thread.gmane.org/gmane.comp.sysutils.systemd.devel/18200

Also we need redefine IFLA_MAX from 34 to 35 when define IFLA_CARRIER,
otherwise there would be error:

| src/libsystemd/sd-rtnl/rtnl-types.c:233:9: error: array index in initializer exceeds array bounds
|          [IFLA_CARRIER]          = { .type = NLA_U8 },

[YOCTO #6380]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowpa-supplicant: upgrade to 2.2
Cristian Iorga [Mon, 16 Jun 2014 12:54:11 +0000 (15:54 +0300)]
wpa-supplicant: upgrade to 2.2

- P2P enhancements/fixes;
- Interworking/Hotspot 2.0 enhancements;
- Internal TLS implementation enhancements/fixes;
- D-Bus interface extensions/fixes;
- various bug fixes.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoconnman: upgrade to 1.24
Cristian Iorga [Mon, 16 Jun 2014 12:54:10 +0000 (15:54 +0300)]
connman: upgrade to 1.24

Bug fix release

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc-configure-common: Address problems with gengtype
Richard Purdie [Mon, 16 Jun 2014 12:13:38 +0000 (13:13 +0100)]
gcc-configure-common: Address problems with gengtype

The gengtype patch we apply to gcc aims to ensure that the build and host
config headers don't get confused. We're seeing build failures where
both headers have been included, likely due to a race over the configuration
files.

It seems the gengtype-lex.c file isn't being regenerated when it should
and the unconditional inclusion of bconfig.h is resulting in these issues.

The fix is therefore to remove the file, forcing its regeneration.

[YOCTO #6393]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-module-split: Add support for KERNEL_MODULE_AUTOLOAD and KERNEL_MODULE_PROBECONF
Richard Purdie [Fri, 13 Jun 2014 15:46:25 +0000 (16:46 +0100)]
kernel-module-split: Add support for KERNEL_MODULE_AUTOLOAD and KERNEL_MODULE_PROBECONF

The current module_autoload_* and module_conf_* variables are error
both ugly and error prone. They aren't registered in the task checksums
so changes to them aren't reflected in the build. This turns out to
be near impossible to fix with the current variable format in any
sensible way :(.

This patch replace module_autoload with the list of variables in
KERNEL_MODULE_AUTOLOAD which is a much simpler and usable API. An
error is printed if an old style variable is encountered. It should
be simple to convert to this.

module_conf_* are harder to deal with since there is data associated
with it, it isn't simply a flag. We need a list of variables that are set
in order to be able to correctly handle the task checksum so we add
KERNEL_MODULE_PROBECONF for this purpose and error if the user hasn't
added a module to it when they should have.

[YOCTO #5786]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobinconfig-disabled: Add class and use
Richard Purdie [Thu, 22 May 2014 09:59:33 +0000 (10:59 +0100)]
binconfig-disabled: Add class and use

This adds a binconfig-disabled class which can be used by recipes where
a -config file is installed but we wish to disable it and just rely on
the .pc files instead.

Rather than simply deleting it, we make the script "exit 1" so that it
can be found in PATH and raise a build error rather than something
silently falling back to the build system for example.

Rather than randomly finding -config files, this adds in the
specification of a list of binconfig scripts which is more deterministic
and maintainable moving forward.

This patch converts various users in OE-Core to use this, a world build
of OE-Core tests out ok with this change. There will likely be issues in
other layers however, hence this being a RFT.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoalsa-tools: Add missing pkgconfg dependency
Richard Purdie [Sat, 14 Jun 2014 07:45:33 +0000 (08:45 +0100)]
alsa-tools: Add missing pkgconfg dependency

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoneard: fix more parallel build issues
Ross Burton [Fri, 13 Jun 2014 17:03:32 +0000 (18:03 +0100)]
neard: fix more parallel build issues

One fix, another appears...  root-cause to a magic dependency hiding at the
bottom of the Makefile, and add all binaries to it.

[ YOCTO #6416 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agonative.bbclass: Properly define directories
Matthieu Crapet [Thu, 12 Jun 2014 15:49:32 +0000 (17:49 +0200)]
native.bbclass: Properly define directories

For most users this commit will have no effect. But if you come across the idea of giving
different names for paths, you'll get some troubles.

When a recipe inherit native, properly define bindir, sbindir, includedir, sysconfdir, datadir
(using xxxdir_native definitions from meta/conf/bitbake.conf).

For example, edit "${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}/quilt-native/temp/log.do_configure"
and see what are the arguments given by oe_runconf.

Notice that ${docdir}, ${mandir}, ${infodir}, ${localstatedir} have no associated _native definition.

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake.conf/qemu: Move QEMU_OPTIONS to qemu.bbclass
Richard Purdie [Fri, 13 Jun 2014 13:09:37 +0000 (14:09 +0100)]
bitbake.conf/qemu: Move QEMU_OPTIONS to qemu.bbclass

The QEMU_OPTIONS variables belong in qemu.bbclass so move them there. The
only users of them inherit qemu.bbclass. There is no point in pushing
these into every recipe.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqemuwrapper-cross: Use QEMU_OPTIONS
Richard Purdie [Fri, 13 Jun 2014 13:07:15 +0000 (14:07 +0100)]
qemuwrapper-cross: Use QEMU_OPTIONS

The correct cpu options are needed in order to correctly run some CPU
types. This information is available in QEMU_OPTIONS, use it. This
avoids architectures like qemuppc failing postinstalls.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake.conf: Add QEMU_OPTION for ppc7400 as used by qemuppc
Richard Purdie [Fri, 13 Jun 2014 13:06:31 +0000 (14:06 +0100)]
bitbake.conf: Add QEMU_OPTION for ppc7400 as used by qemuppc

Currently, qemuppc prints warnings about gdk-pixbuf postinstalls
not working due to illegal instructions. This is due to qemu
running with the wrong cpu type. Add an option for ppc7400 so
that qemuppc works correctly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogit: don't hardcode the full path to perl
Christopher Larson [Fri, 13 Jun 2014 16:37:45 +0000 (17:37 +0100)]
git: don't hardcode the full path to perl

Hardcoded paths to perl don't make sense, use from the environment instead.

[Patch taken from meta-mentor by RP]

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuildstats-summary.bbclass: Import useful bbclass from meta-mentor
Martin Jansa [Fri, 13 Jun 2014 16:45:05 +0000 (09:45 -0700)]
buildstats-summary.bbclass: Import useful bbclass from meta-mentor

This class summarizes sstate reuse at the end of the build, so you know how
much of your build was done from scratch.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogit: revert to wrapper based relocation
Christopher Larson [Fri, 13 Jun 2014 16:46:41 +0000 (17:46 +0100)]
git: revert to wrapper based relocation

It seems that there are multiple problems with the upstream RUNTIME_PREFIX
mechanism at this time. It doesn't canonicalize argv[0] to an absolute path,
breaking calls via the PATH, for example. In addition, it doesn't seem to
locate template_dir via the runtime prefix even when specified as relative.

Revert this for now to the previous wrapper-based mechanism, but tweaked
slightly to avoid hardcoding the sysroot path into the wrapper (based on the
bits in the rpm recipe).

[YOCTO #6211]

[Pulled from meta-mentor by RP]

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>