]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
11 years agoxkeyboard-config: Add missing dependency on libxslt-native for xsltproc
Richard Purdie [Thu, 27 Mar 2014 17:11:43 +0000 (17:11 +0000)]
xkeyboard-config: Add missing dependency on libxslt-native for xsltproc

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agozisofs-tools-native: Add missing dependency on zlib-native
Drew Moseley [Thu, 27 Mar 2014 18:18:31 +0000 (14:18 -0400)]
zisofs-tools-native: Add missing dependency on zlib-native

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoe2fsprogs: Add e2fsprogs-mke2fs and e2fsprogs-e2fsck as recommend packages
Yue Tao [Fri, 28 Mar 2014 09:43:09 +0000 (17:43 +0800)]
e2fsprogs: Add e2fsprogs-mke2fs and e2fsprogs-e2fsck as recommend packages

The mke2fs and e2fsck commands are regular tools of e2fsprogs, so they
should be installed.

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolttng-ust: add python to lttng-ust's RDEPENDS
Hongxu Jia [Fri, 28 Mar 2014 09:43:07 +0000 (17:43 +0800)]
lttng-ust: add python to lttng-ust's RDEPENDS

| Note: adding Smart RPM DB channel
|
| Note: to be installed:  run-postinsts@x86_64 kernel-modules@qemux86_64 packagegroup-core-boot@qemux86_64 lttng-ust@x86_64
| Loading cache...
| Updating cache...               ######################################## [100%]
|
| Computing transaction...error: Can't install lttng-ust-2:2.3.0-r0.0@x86_64: no package provides /usr/bin/python
|
| Saving cache...
|
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_rootfs (log file is located at tmp/work/qemux86_64-wrs-linux/wrlinux-image-glibc-small/1.0-r1/temp/do_rootfs/log.do_rootfs.13619)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibpcap: add PACKAGECONFIG for libnl1
Hu Yadi [Fri, 28 Mar 2014 09:43:04 +0000 (17:43 +0800)]
libpcap: add PACKAGECONFIG for libnl1

Add --with-libnl autoconfig parameter and dependency
between libpcap and libnl1.

Disable libnl1 by default to avoid libpcap build error
when libnl1 is involved.

Signed-off-by: Hu Yadi <Yadi.hu@windriver.com>
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosyslinux.bbclass: Enable additional kernel parameters for syslinux
Konrad Scherer [Fri, 28 Mar 2014 09:43:53 +0000 (17:43 +0800)]
syslinux.bbclass: Enable additional kernel parameters for syslinux

Add additional parameter 'SYSLINUX_KERNEL_ARGS' in order to allow
for specific kernel parameters to be set when using syslinux.

The extra kernel parameters are added to btype[1] and then written out
as part of the APPEND field.

Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoweston : refactor to identify EGL, cairoglesv2 support
Prabhu Sundararaj [Fri, 28 Mar 2014 14:02:37 +0000 (11:02 -0300)]
weston : refactor to identify EGL, cairoglesv2 support

Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate-cache-management: rm_by_stamps - discover all suffixes like remove_duplicated...
Martin Jansa [Sat, 29 Mar 2014 10:34:13 +0000 (11:34 +0100)]
sstate-cache-management: rm_by_stamps - discover all suffixes like remove_duplicated does

* instead of hard coding list of sstate enabled task use
  the same function as remove_duplicated to find them in
  sstate-cache directory

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate-cache-management: skip populate_lic archives when removing duplicates
Martin Jansa [Sat, 29 Mar 2014 10:34:12 +0000 (11:34 +0100)]
sstate-cache-management: skip populate_lic archives when removing duplicates

* there are 2 issues

* all *gcc* recipes produce "duplicate" files and we cannot keep just the newest one:
  OE qemux86@ ~/build/oe-core $ find sstate-cache/ | grep gcc.*populate_lic
  sstate-cache/cd/sstate:gcc::4.8.2:r0::3:cd8d1a33b832662b624f5e4bd9f55154_populate_lic.tgz
  sstate-cache/cd/sstate:gcc::4.8.2:r0::3:cd8d1a33b832662b624f5e4bd9f55154_populate_lic.tgz.siginfo
  sstate-cache/d5/sstate:gcc::4.8.2:r0::3:d591af812395cc386e017fa2c8fa0722_populate_lic.tgz
  sstate-cache/d5/sstate:gcc::4.8.2:r0::3:d591af812395cc386e017fa2c8fa0722_populate_lic.tgz.siginfo
  sstate-cache/f7/sstate:gcc::4.8.2:r0::3:f74cfd4982fd7c349a5418f07297f955_populate_lic.tgz
  sstate-cache/f7/sstate:gcc::4.8.2:r0::3:f74cfd4982fd7c349a5418f07297f955_populate_lic.tgz.siginfo
  sstate-cache/74/sstate:gcc::4.8.2:r0::3:7489e4502cb446506b9829cda13c7630_populate_lic.tgz
  sstate-cache/74/sstate:gcc::4.8.2:r0::3:7489e4502cb446506b9829cda13c7630_populate_lic.tgz.siginfo

  OE qemux86@ ~/build/oe-core $ find tmp-eglibc/stamps/ | grep gcc.*populate_lic
  tmp-eglibc/stamps/i586-oe-linux/gcc-cross-initial/4.8.2-r0.do_populate_lic_setscene.cd8d1a33b832662b624f5e4bd9f55154
  tmp-eglibc/stamps/i586-oe-linux/libgcc/4.8.2-r0.do_populate_lic_setscene.f74cfd4982fd7c349a5418f07297f955
  tmp-eglibc/stamps/i586-oe-linux/gcc-cross/4.8.2-r0.do_populate_lic_setscene.d591af812395cc386e017fa2c8fa0722
  tmp-eglibc/stamps/i586-oe-linux/gcc-runtime/4.8.2-r0.do_populate_lic_setscene.7489e4502cb446506b9829cda13c7630

* the same for target and native versions of the same recipe:
  OE qemux86@ ~/build/oe-core $ find tmp-eglibc/stamps/ | grep opkg-utils.*populate_lic
  tmp-eglibc/stamps/x86_64-linux/opkg-utils-native/0.1.8+gitAUTOINC+c33b217016-r0.do_populate_lic_setscene.dd21a3c5444482ce90be4c9a33d806f1
  tmp-eglibc/stamps/i586-oe-linux/opkg-utils/0.1.8+gitAUTOINC+c33b217016-r0.do_populate_lic_setscene.8571422f9e311dc41bb6b21e71a09bc0

  OE qemux86@ ~/build/oe-core $ find sstate-cache/ | grep opkg-utils.*populate_lic
  sstate-cache/dd/sstate:opkg-utils::0.1.8+gitAUTOINC+c33b217016:r0::3:dd21a3c5444482ce90be4c9a33d806f1_populate_lic.tgz.siginfo
  sstate-cache/dd/sstate:opkg-utils::0.1.8+gitAUTOINC+c33b217016:r0::3:dd21a3c5444482ce90be4c9a33d806f1_populate_lic.tgz
  sstate-cache/85/sstate:opkg-utils::0.1.8+gitAUTOINC+c33b217016:r0::3:8571422f9e311dc41bb6b21e71a09bc0_populate_lic.tgz.siginfo
  sstate-cache/85/sstate:opkg-utils::0.1.8+gitAUTOINC+c33b217016:r0::3:8571422f9e311dc41bb6b21e71a09bc0_populate_lic.tgz

* similar problem for .siginfo file of do_patch:
  OE qemux86@ ~/build/oe-core $ find sstate-cache/ | grep eglibc.*patch
  sstate-cache/99/sstate:eglibc::2.19:r0::3:99b7e1d688e4c6c659b458c9c57611df_patch.tgz.siginfo
  sstate-cache/11/sstate:eglibc::2.19:r0::3:11401ddd208a753fee17696b14dc1e52_patch.tgz.siginfo

  OE qemux86@ ~/build/oe-core $ find tmp-eglibc/stamps/  | grep /eglibc.*patch
  tmp-eglibc/stamps/i586-oe-linux/eglibc-initial/2.19-r0.do_patch.sigdata.99b7e1d688e4c6c659b458c9c57611df
  tmp-eglibc/stamps/i586-oe-linux/eglibc/2.19-r0.do_patch.sigdata.11401ddd208a753fee17696b14dc1e52

* maybe these should have ideally identical signatures, but before it's fixed lets
  just skip removing them

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate-cache-management: rm_by_stamps - remove .siginfo and .done files
Martin Jansa [Sat, 29 Mar 2014 10:34:11 +0000 (11:34 +0100)]
sstate-cache-management: rm_by_stamps - remove .siginfo and .done files

* it's possible that corresponding .tgz files were already removed
  (e.g. with -d option and older version of this script) and this
  won't find orphaned .siginfo or .done files to remove
* add sort -u to count files found multiple times only once

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate-cache-management: rm_by_stamps - include signatures of .sigdata. files
Martin Jansa [Sat, 29 Mar 2014 10:34:10 +0000 (11:34 +0100)]
sstate-cache-management: rm_by_stamps - include signatures of .sigdata. files

* there are .siginfo files in sstate-cache, but STAMPS_DIR calls them
  .sigdata, make sure that such signatures are kept, because some tasks
  like do_package, don't have _setscene or main task entry and are
  removed:

  stamps:
  tmp-eglibc/stamps/i586-oe-linux/busybox/1.22.1-r0.do_package.sigdata.cd6f625471ef1b20a9379e90519db6f1
  tmp-eglibc/stamps/i586-oe-linux/busybox/1.22.1-r0.do_package_write_ipk.f20fe66285219f23373fc64d5de1d412
  tmp-eglibc/stamps/i586-oe-linux/busybox/1.22.1-r0.do_package_write_ipk.sigdata.f20fe66285219f23373fc64d5de1d412
  tmp-eglibc/stamps/i586-oe-linux/busybox/1.22.1-r0.do_packagedata.sigdata.c55a3dbe90010c15aa3294753fbd402e
  tmp-eglibc/stamps/i586-oe-linux/busybox/1.22.1-r0.do_packagedata_setscene.c55a3dbe90010c15aa3294753fbd402e.qemux86
  sstate (we want to keep all in this case):
  sstate-cache/c5/sstate:busybox:i586-oe-linux:1.22.1:r0:i586:3:c55a3dbe90010c15aa3294753fbd402e_packagedata.tgz
  sstate-cache/c5/sstate:busybox:i586-oe-linux:1.22.1:r0:i586:3:c55a3dbe90010c15aa3294753fbd402e_packagedata.tgz.siginfo
  sstate-cache/cd/sstate:busybox:i586-oe-linux:1.22.1:r0:i586:3:cd6f625471ef1b20a9379e90519db6f1_package.tgz
  sstate-cache/cd/sstate:busybox:i586-oe-linux:1.22.1:r0:i586:3:cd6f625471ef1b20a9379e90519db6f1_package.tgz.siginfo
  sstate-cache/f2/sstate:busybox:i586-oe-linux:1.22.1:r0:i586:3:f20fe66285219f23373fc64d5de1d412_package_write_ipk.tgz
  sstate-cache/f2/sstate:busybox:i586-oe-linux:1.22.1:r0:i586:3:f20fe66285219f23373fc64d5de1d412_package_write_ipk.tgz.siginfo

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowic: Extend --rootfs-dir to connect rootfs-dirs
João Henrique Ferreira de Freitas [Sat, 29 Mar 2014 03:12:08 +0000 (00:12 -0300)]
wic: Extend --rootfs-dir to connect rootfs-dirs

The wic command-line param --rootfs-dir gets generalized to support
multiple directories. Each '--rootfs-dir' could be connected using a
special string, that should be present in .wks. I.e:

wic create ... --rootfs-dir rootfs1=/some/rootfs/dir \
  --rootfs-dir rootfs2=/some/other/rootfs/dir

  part / --source rootfs --rootfs-dir="rootfs1" --ondisk sda --fstype=ext3 \
    --label primary --align 1024

  part /standby --source rootfs --rootfs-dir="rootfs2" \
    --ondisk sda --fstype=ext3 --label secondary --align 1024

The user could use harded-code directory instead of connectors. Like this:

  wic create ... hard-coded-path.wks -r /some/rootfs/dir

  part / --source rootfs --ondisk sda --fstype=ext3 --label primary --align 1024

  part /standby --source rootfs --rootfs-dir=/some/rootfs/dir \
    --ondisk sda --fstype=ext3 --label secondary --align 1024

Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowic: Report all ROOTFS_DIR artifacts
João Henrique Ferreira de Freitas [Sat, 29 Mar 2014 03:12:07 +0000 (00:12 -0300)]
wic: Report all ROOTFS_DIR artifacts

When a .wks has more than one ROOTFS_DIR it's better to report
all ROOTFS_DIR that was used to create the image.

Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowic: Add option --rootfs-dir to --source
João Henrique Ferreira de Freitas [Sat, 29 Mar 2014 03:12:06 +0000 (00:12 -0300)]
wic: Add option --rootfs-dir to --source

The '--rootfs-dir' option is optional and only takes efect is a
partition is set up like this:

  part /standby --source rootfs --rootfs-dir=<special rootfs> ...

So '--rootfs-dir' is used instead of bitbake ROOTFS_DIR variable or
'-r' param.

Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowic: Use partition label to be part of rootfs filename
João Henrique Ferreira de Freitas [Sat, 29 Mar 2014 03:12:05 +0000 (00:12 -0300)]
wic: Use partition label to be part of rootfs filename

When a partition from .wks file is set up like this:

  part /standby --source rootfs --rootfs-dir=<special rootfs> ... --label \
    --label secondary

This means that 'rootfs' must use '<special rootfs>' as rootfs and
the default partition filename in /var/tmp/wic/build/ will be create
using the '--label' as part of the name. E.g:

  /var/tmp/wic/build/rootfs_secondary.ext3

Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowic: Add rootfs_dir argument to do_prepare_partition() method
João Henrique Ferreira de Freitas [Sat, 29 Mar 2014 03:12:04 +0000 (00:12 -0300)]
wic: Add rootfs_dir argument to do_prepare_partition() method

The do_prepare_partition() method from RootfsPlugin class need
to know what will be the rootfs_dir. This makes sense when .wks
file has a partition set up like this:

  part /standby --source rootfs --rootfs-dir=<special rootfs> ...

then do_prepare_partition() will work with the correct rootfs.

Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowic: Hook up RootfsPlugin plugin
João Henrique Ferreira de Freitas [Sat, 29 Mar 2014 03:12:03 +0000 (00:12 -0300)]
wic: Hook up RootfsPlugin plugin

Remove the 'rootfs' case when internal call code is used and
replace to call the general-purpose plugin.

For now RootfsPluing class continues to invoke prepare_rootfs()
method from Wic_PartData. However RootfsPlugin could implement them.

Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowic: Add RootfsPlugin
João Henrique Ferreira de Freitas [Sat, 29 Mar 2014 03:12:02 +0000 (00:12 -0300)]
wic: Add RootfsPlugin

Implement RootfsPlugin class. The do_prepare_partition() method
is implemented using code in Wic_PartData class.

This class have 'rootfs' name, which is the name that should
be used in the --source parameters of the .wks partition commands.

Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackagegroup-core-lsb: Limit mips64 issues to qt4 packages only
Richard Purdie [Sat, 29 Mar 2014 22:49:39 +0000 (22:49 +0000)]
packagegroup-core-lsb: Limit mips64 issues to qt4 packages only

The COMPATIBLE_HOST setting was only there for mips64 issues. Move that
restriction to the qt4 packages themselves so the rest of the lsb images can
be built.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibcap 2.22: fix, disable gperf detection
Matthieu Crapet [Fri, 28 Mar 2014 16:13:35 +0000 (17:13 +0100)]
libcap 2.22: fix, disable gperf detection

gperf straight invoke is not suitable for cross environment (gperf-native should be used instead).
Formal patch has been submited to the upstream.
As libcap 2.24 is currently available, I prefer doing this quick fix.

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowic: Fix bitbake_env_command for 'None' case
Tom Zanussi [Fri, 28 Mar 2014 21:49:02 +0000 (16:49 -0500)]
wic: Fix bitbake_env_command for 'None' case

bitbake_env_command will choke if it isn't given an image, make sure
it does the right thing in that case.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackagegroup-toolset-native: remove it
Robert Yang [Sat, 29 Mar 2014 04:13:21 +0000 (00:13 -0400)]
packagegroup-toolset-native: remove it

Remove it since it seems that it is not widely used by oe.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocore-image-sato-sdk: Drop qt4 on mips64
Richard Purdie [Sat, 29 Mar 2014 09:53:26 +0000 (09:53 +0000)]
core-image-sato-sdk: Drop qt4 on mips64

qt4 doesn't build on mips64 so don't include it in sato-sdk images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomake-3.81: Fix build failures with newer makeinfo
Richard Purdie [Sat, 29 Mar 2014 09:45:24 +0000 (09:45 +0000)]
make-3.81: Fix build failures with newer makeinfo

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto/3.8: remove versioned recipes
Bruce Ashfield [Wed, 26 Mar 2014 20:33:26 +0000 (16:33 -0400)]
linux-yocto/3.8: remove versioned recipes

Yocto 1.6 will support the LTSI 3.4/3.10 kernels and the 3.14 kernel. As
such, we remove the 3.8 linux-yocto recipes to keep our number of supported
kernels at three.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
11 years agolinux-yocto/3.10: fix drm build failure
Bruce Ashfield [Thu, 27 Mar 2014 17:22:32 +0000 (13:22 -0400)]
linux-yocto/3.10: fix drm build failure

Andrea Adami reported the following build failure:

    .../drm/drm_mm.h:105:2: error: implicit declaration of function
    'BUG_ON' [-Werror=implicit-function-declaration]
    |   BUG_ON(!hole_node->hole_follows);
    |   ^
    |   CC      drivers/pci/setup-res.o
    |   CC      drivers/gpu/drm/i915/i915_drv.o
    | cc1: some warnings being treated as errors
    | make[6]: *** [drivers/gpu/drm/ttm/ttm_agp_backend.o] Error 1
    | make[5]: *** [drivers/gpu/drm/ttm] Error 2

Cherry picking mainline commit 86e81f0e6 [drm/mm: include required headers in drm_mm.h]
fixes the build problems.

cc: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
11 years agolinux-yocto/3.10: update intel common meta data
Bruce Ashfield [Thu, 27 Mar 2014 05:02:35 +0000 (01:02 -0400)]
linux-yocto/3.10: update intel common meta data

Bumping the meta branch SRCREV for the following two commits:

  df3aa753c882 intel-common: Add media-all to the standard builds
  4b0d57269dae intel-common: Add mohonpeak BSP

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
11 years agolinux-yocto/3.10: update to v3.10.34
Bruce Ashfield [Wed, 26 Mar 2014 19:43:51 +0000 (15:43 -0400)]
linux-yocto/3.10: update to v3.10.34

Updating to the latest korg -stable release.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
11 years agolinux-yocto/3.10: add valleyisland io
Bruce Ashfield [Thu, 20 Mar 2014 08:04:25 +0000 (04:04 -0400)]
linux-yocto/3.10: add valleyisland io

Updating the 3.10 meta SRCREV to include the valleyisland IO .scc and
configuration files.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
11 years agolinux-yocto/3.10: update to v3.10.33
Bruce Ashfield [Fri, 14 Mar 2014 03:27:46 +0000 (23:27 -0400)]
linux-yocto/3.10: update to v3.10.33

Updating to the latest -stable release.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
11 years agolinux-yocto/3.10: update EFI configuration
Bruce Ashfield [Thu, 13 Mar 2014 17:53:36 +0000 (13:53 -0400)]
linux-yocto/3.10: update EFI configuration

Importing the following two meta data changes for EFI configuration:

  284e9589436a meta: efi.cfg/efi-ext.cfg: add EFIVAR_FS to default efi fragment
  0a8c4971e2d9 meta: update efi config fragment to include EFI_STUB by default

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
11 years agolinux-yocto/3.4: update mohonpeak.cfg for SATA, SMBus, LPC, WDT, crypto & highmem64g
Bruce Ashfield [Thu, 6 Mar 2014 21:47:39 +0000 (16:47 -0500)]
linux-yocto/3.4: update mohonpeak.cfg for SATA, SMBus, LPC, WDT, crypto & highmem64g

Updating the meta SRCREV with the latest configuration updates.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
11 years agolinux-yocto/3.10: intel-core*/common configuration updates
Bruce Ashfield [Thu, 6 Mar 2014 21:45:58 +0000 (16:45 -0500)]
linux-yocto/3.10: intel-core*/common configuration updates

Importing the following configuration changes to support the latest intel
common BSPs:

  6e0e756d5137 intel-common: Remove GMA500 support
  226c3b7a2b82 intel-core*: Add baytrail soc support
  25df7acf2cc4 baytrail: Add feature/soc/baytrail
  8715856ab617 meta: input: add CONFIG_INPUT dependency

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
11 years agoimage.py: check file exists before deleting
Laurentiu Palcu [Fri, 28 Mar 2014 13:07:40 +0000 (15:07 +0200)]
image.py: check file exists before deleting

When RM_OLD_IMAGE = "1", we delete old images but we didn't check they
actually exist...

[YOCTO #6029]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_*.bbclass: Simplify addtask
Richard Purdie [Fri, 28 Mar 2014 11:04:30 +0000 (11:04 +0000)]
package_*.bbclass: Simplify addtask

The package_write task was previously removed. Remove a remaining superfluous
reference to it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopopulate_sdk_*: Drop now unneeded recrdeptask flags
Richard Purdie [Fri, 28 Mar 2014 11:03:06 +0000 (11:03 +0000)]
populate_sdk_*: Drop now unneeded recrdeptask flags

Now populate_sdk_base has the appropriate flags, we can drop these from the individual
classes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopopulate_sdk_base: add dependency of do_package_write_* tasks
Laurentiu Palcu [Fri, 28 Mar 2014 10:27:00 +0000 (12:27 +0200)]
populate_sdk_base: add dependency of do_package_write_* tasks

nativesdk packages were created only for the first backend listed in
PACKAGE_CLASSES. Hence, if one had it set to "package_rpm package_ipk"
and did a 'bitbake -c populate_sdk core-image-something', the nativesdk
packages were created only for rpm.

This is particularily bad for adt-installer which is based on opkg
repos.

Credits go to richard.purdie@linuxfoundation.org who suggested me this
fix.

[YOCTO #5900]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorootfs.py: add new cleanup method
Laurentiu Palcu [Fri, 28 Mar 2014 10:10:44 +0000 (12:10 +0200)]
rootfs.py: add new cleanup method

This commit adds a new _cleanup() internal method that will be called at
the end of rootfs creation, so that each backend can delete various
files that were probably generated during rootfs postprocess execution,
etc.

[YOCTO #6049]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_manager.py: leave the __db.00* files in place
Laurentiu Palcu [Fri, 28 Mar 2014 10:10:43 +0000 (12:10 +0200)]
package_manager.py: leave the __db.00* files in place

Do not delete the __db.00* files in the PackageManager class. Leave this
operation up to the client classes. One side effect of this deletion was
the following message appearing in the output of the next rpm command
executed:

rpmdb: BDB1540 configured environment flags incompatible with existing
environment

We might also gain some time here by not deleting/creating those files
very often.

[YOCTO #6049]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agonss-3.15.1: fix CVE-2013-5605
yanjun.zhu [Fri, 28 Mar 2014 09:43:38 +0000 (17:43 +0800)]
nss-3.15.1: fix CVE-2013-5605

Mozilla Network Security Services (NSS) 3.14 before 3.14.5 and
3.15 before 3.15.3 allows remote attackers to cause a denial
of service or possibly have unspecified other impact via
invalid handshake packets.

http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-5605
Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com>
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agonss-3.15.1: fix CVE-2013-1741
yanjun.zhu [Fri, 28 Mar 2014 09:43:37 +0000 (17:43 +0800)]
nss-3.15.1: fix CVE-2013-1741

Integer overflow in Mozilla Network Security Services (NSS)
3.15 before 3.15.3 allows remote attackers to cause a denial
of service or possibly have unspecified other impact via a
large size value.

http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-1741
Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com>
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibtiff: fix CVE-2013-4244
Baogen Shang [Fri, 28 Mar 2014 09:43:36 +0000 (17:43 +0800)]
libtiff: fix CVE-2013-4244

cve description:
The LZW decompressor in the gif2tiff tool in libtiff 4.0.3 and earlier
allows context-dependent attackers to cause a denial of service
(out-of-bounds write and crash) or possibly execute arbitrary code via
a crafted GIF image.

http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-4244
Signed-off-by: Baogen Shang <baogen.shang@windriver.com>
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibarchive: fix CVE-2013-0211
Baogen Shang [Fri, 28 Mar 2014 09:43:35 +0000 (17:43 +0800)]
libarchive: fix CVE-2013-0211

CVE description:
Integer signedness error in the archive_write_zip_data function in
archive_write_set_format_zip.c in libarchive 3.1.2 and earlier, when running
on 64-bit machines, allows context-dependent attackers to cause a denial of
service (crash) via unspecified vectors, which triggers an improper conversion
between unsigned and signed types, leading to a buffer overflow.

http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-0211
Signed-off-by: Baogen Shang <baogen.shang@windriver.com>
Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoautoconf: new autotest/testsuite option to enable automake test result format
Radu Patriu [Wed, 26 Mar 2014 14:38:18 +0000 (16:38 +0200)]
autoconf: new autotest/testsuite option to enable automake test result format

lib/autotest/general.m4: added "--am-fmt | -A" command line parameter
for testsuite script to enable "RESULT: testname" output format; to be
used by yocto ptest packages directly or with autoconf TESTSUITEFLAGS.

Signed-off-by: Radu Patriu <radu.patriu@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackagegroup-toolset-native: Update after ocf-linux -> cryptodev-linux change
Richard Purdie [Thu, 27 Mar 2014 19:52:56 +0000 (19:52 +0000)]
packagegroup-toolset-native: Update after ocf-linux -> cryptodev-linux change

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoocf-linux: remove recipe
Kai Kang [Wed, 26 Mar 2014 10:15:59 +0000 (18:15 +0800)]
ocf-linux: remove recipe

ocf-linux only provides header file and no kernel module is built. We
can't use ocf-linux without its implementation. And linux-yocto uses an
alternative project cryptodev-linux, so we remove ocf-linux and use
cryptodev-linux instead.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoopenssl: replace dependency ocf-linux with cryptodev-linux
Kai Kang [Wed, 26 Mar 2014 10:15:58 +0000 (18:15 +0800)]
openssl: replace dependency ocf-linux with cryptodev-linux

ocf-linux only provides header files but no implementation in kernel.
And Yocto kernel linux-yocto use cryptodev-linux to implement
/dev/crypto interface. So replace dependency ocf-linux with
cryptodev-linux for openssl.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocryptodev-linux: add recipe
Kai Kang [Wed, 26 Mar 2014 10:15:57 +0000 (18:15 +0800)]
cryptodev-linux: add recipe

Yocto kernel linux-yocto uses cryptodev-linux to use device /dev/crypto.
So add cryptodev-linux which is one alternative of ocf-linux and then
remove ocf-linux later.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorun-postinsts: fix issue with checking IMAGE_FEATURES
Laurentiu Palcu [Thu, 27 Mar 2014 12:43:57 +0000 (14:43 +0200)]
run-postinsts: fix issue with checking IMAGE_FEATURES

The old implementation was wrong. It was not very generic and it checked
IMAGE_FEATURES while building the recipe, which led to various issues
with the generation of the final script. That is, the run-postinsts
script was generated once, while building the package for the first
time. Hence, any other changes to IMAGE_FEATURES, like removing/adding
'package-management' did not reflect in the final script.

This commit makes run-postinsts script autodetect the backend used for
creating the image, making it generic.

[YOCTO #5666]
[YOCTO #5972]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobuild-appliance-image: update to head ae938eba92b2c89a9fd91161e57c5dbc594ad4ad
Cristian Iorga [Thu, 27 Mar 2014 13:15:17 +0000 (15:15 +0200)]
build-appliance-image: update to head ae938eba92b2c89a9fd91161e57c5dbc594ad4ad

Build Appliance includes a more recent version
of poky, up to commit:
ae938eba92b2c89a9fd91161e57c5dbc594ad4ad.

Adds bitbake fixes/optimizations;

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogummiboot: fix the installed but not shipped warning
Robert Yang [Thu, 27 Mar 2014 07:29:02 +0000 (15:29 +0800)]
gummiboot: fix the installed but not shipped warning

Fix the warning:
WARNING: QA Issue: gummiboot: Files/directories were installed but not shipped
  /usr/lib
  /usr/lib/gummiboot
  /usr/lib/gummiboot/gummibootx64.efi

This is because it uses "/usr/lib" in gummibootlibdir, use ${libdir} to
fix it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agogummiboot: use objcopy from the env
Robert Yang [Thu, 27 Mar 2014 07:27:01 +0000 (15:27 +0800)]
gummiboot: use objcopy from the env

Fix the error:
[snip]
| nm -D -u src/efi/gummiboot.so | grep ' U ' && exit 1 || :
| objcopy -j .text -j .sdata -j .data -j .dynamic \
|   -j .dynsym -j .rel -j .rela -j .reloc -j .eh_frame \
|   --target=efi-app-x86_64 src/efi/gummiboot.so gummibootx64.efi
| objcopy: src/efi/gummiboot.so: Invalid bfd target
| make[1]: *** [gummibootx64.efi] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make: *** [all] Error 2
[snip]

It uses the "objcopy" directly, which is not suitable for cross compile.

[YOCTO #6054]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agogummiboot: add COMPATIBLE_HOST
Robert Yang [Thu, 27 Mar 2014 06:13:58 +0000 (14:13 +0800)]
gummiboot: add COMPATIBLE_HOST

The gummiboot depends on gnu-efi which had set:

COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux"

We also need set this for gummiboot, otherwise there would be build
failures for other non-x86 archs.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agognu-efi: fix the LIBDIR
Robert Yang [Thu, 27 Mar 2014 06:09:46 +0000 (14:09 +0800)]
gnu-efi: fix the LIBDIR

Its LIBDIR in Makefile is:

LIBDIR = $(PREFIX)/lib

This is incorrect for 64 bit bsp, thus will cause build failures on gummiboot:

ld: cannot open linker script file /path/to/usr/lib64/elf_x86_64_efi.lds: No such file or directory

[YOCTO #6053]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agobitbake.conf: Adds bitbake qemu option for ppc e6500 & ppc e6500-64b.
Valentin Cobelea [Thu, 20 Mar 2014 15:08:10 +0000 (16:08 +0100)]
bitbake.conf: Adds bitbake qemu option for ppc e6500 & ppc e6500-64b.

This patch adds the bitbake qemu option for the ppc e6500 &
ppc e6500-64b architectures.

Signed-off-by: Valentin Cobelea <valentin.cobelea@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoselftest/bbtests.py: Fixed regex and added bitbake output to test_warnings_errors
Corneliu Stoicescu [Thu, 27 Mar 2014 10:32:03 +0000 (12:32 +0200)]
selftest/bbtests.py: Fixed regex and added bitbake output to test_warnings_errors

The test failed when more than 1 error or 1 warning is present.
Also pasting the bitbake output when the test fails.

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolsb: fix lsb_log_msg() implementation
Cristian Iorga [Thu, 27 Mar 2014 07:18:17 +0000 (09:18 +0200)]
lsb: fix lsb_log_msg() implementation

LSB lsb_log_message calls a begin()
function that should be implemented
in /etc/init.d/functions.
The aforementioned script does not
implement the begin() function, as
such there is a small issue related to logging.

This fix implements a local version of
the function, while cleaning up the
troublesome previous implementation.

Fix [YOCTO #5795]

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoimage.bbclass: replace rootfs with /dev/root
Chen Qi [Thu, 27 Mar 2014 02:29:07 +0000 (10:29 +0800)]
image.bbclass: replace rootfs with /dev/root

Replace 'rootfs' with '/dev/root' in read_only_rootfs_hook function
to match the latest change in fstab file from the base-files recipe.

The related commit is as follows.

commit e8bc7a136a81a0d8df2d32dfba0920c1b2835141
    base-files: use /dev/root in /etc/fstab for systemd support

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd-serialgetty: update to match systemd 211
Jonathan Liu [Thu, 27 Mar 2014 00:53:06 +0000 (11:53 +1100)]
systemd-serialgetty: update to match systemd 211

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogit: Fix perl paths in scripts and population of the perltools package
Richard Purdie [Wed, 26 Mar 2014 22:29:20 +0000 (22:29 +0000)]
git: Fix perl paths in scripts and population of the perltools package

References to "perl-native" were slipping into the target packages. These
changes ensure those references are cleaned up and that tools using perl
are packaged in the correct perltools package. The same issues affected
the nativesdk-git output so are also applied there.

[YOCTO #5918]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobase.bbclass: Merge two ConfigParsed event handlers
Richard Purdie [Wed, 26 Mar 2014 09:31:09 +0000 (09:31 +0000)]
base.bbclass: Merge two ConfigParsed event handlers

There were two ConfigParsed event handlers in base.bbclass, this merges
them together for small efficiency wins.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosanity.bbclass: Update against bitbake sanity event changes
Richard Purdie [Wed, 26 Mar 2014 15:09:06 +0000 (15:09 +0000)]
sanity.bbclass: Update against bitbake sanity event changes

Bitbake will now trigger sanity events when it needs the checks to run in all cases
so we can drop the ConfigParsed hook. We now control whether events are generated
or errors are raised from the event itself.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts: Update after addtion of parameter to bitbake -S
Richard Purdie [Wed, 26 Mar 2014 13:48:06 +0000 (13:48 +0000)]
scripts: Update after addtion of parameter to bitbake -S

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobase.bbclass: Run oe_import before other INHERITs
Richard Purdie [Wed, 26 Mar 2014 09:30:33 +0000 (09:30 +0000)]
base.bbclass: Run oe_import before other INHERITs

Its possible for classes listed in INHERIT directives to use things like
the oe.utils functions. If that happens the user sees a traceback since
the modules don't become available until the ConfigParsed event.

This change to use immediate expansion means that the oe modules become available
much sooner and can be used in the core classes, including within base.bbclass.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agometa-skeleton: Add name attribute to SRC_URI
Jukka Rissanen [Wed, 26 Mar 2014 14:40:26 +0000 (16:40 +0200)]
meta-skeleton: Add name attribute to SRC_URI

The SRCREV_machine line does not work without having name=machine
attribute in SRC_URI.

This error is seen if the custom kernel recipe is used without
the name attribute:

NOTE: Error during finalise of .../linux-yocto-custom.bb
ERROR: ExpansionError during parsing .../linux-yocto-custom.bb: Failure expanding variable do_patch: ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure for URL: 'git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;nocheckout=1'. Please set a valid SRCREV for url ['SRCREV_default_pn-linux-yocto-custom', 'SRCREV_default', 'SRCREV_pn-linux-yocto-custom', 'SRCREV'] (possible key names are git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;nocheckout=1, or use a ;rev=X URL parameter)

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowic: Add SD/MMC-Cards support to '--ondisk' param
João Henrique Ferreira de Freitas [Sat, 22 Mar 2014 22:41:36 +0000 (19:41 -0300)]
wic: Add SD/MMC-Cards support to '--ondisk' param

The special case when wic is set up to use SD/MMC-Cards in place
of sdX disks is not handled properly.

Append 'p' to the rootdev when disk is SD/MMC-Cards fix this situation.

Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoapt/package_mamager: Ensure WORKDIR is used for lists directory
Richard Purdie [Wed, 26 Mar 2014 11:41:31 +0000 (11:41 +0000)]
apt/package_mamager: Ensure WORKDIR is used for lists directory

The native sysroot should not be used as a store for the lists files since
multiple images running at once would conflict over this. Instead redirect
this to WORKDIR. This means some extra directories need to be created.

Also create apt.conf.d to silence some warnings.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_manager: Fix apt-ftparchive index creation problems
Richard Purdie [Wed, 26 Mar 2014 11:40:50 +0000 (11:40 +0000)]
package_manager: Fix apt-ftparchive index creation problems

a) There were missing parameters to the release and package commands (".")

b) The commands need to be executed as one block since they build upon each other

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_manager: Ensure we don't process directories twice
Richard Purdie [Wed, 26 Mar 2014 11:40:12 +0000 (11:40 +0000)]
package_manager: Ensure we don't process directories twice

Processing directories twice is both pointless and introduces a race condition.
When building the list, ensure duplicates (like "all" and "noarch") are handled
correctly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agommc-utils: Add user space mmc utilities for eMMC
Chase Maupin [Tue, 18 Mar 2014 11:56:13 +0000 (06:56 -0500)]
mmc-utils: Add user space mmc utilities for eMMC

* The mmc-utils are useful userspace utilities for configuring and
  working with MMC devices.  These are particularly useful when
  working with eMMC devices to do the initial programming of the
  device.

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobase-files: do_install.sigdata: remove the depends on DATE
Robert Yang [Tue, 25 Mar 2014 03:10:52 +0000 (11:10 +0800)]
base-files: do_install.sigdata: remove the depends on DATE

If we run "bitbake -S base-files" today, and re-run it tomorrow with
nothing changed, we would see that the do_install.sigdata changes
because of:

do_intall -> do_install_basefilesissue -> DISTRO_VERSION -> DATE

We had set:
IMAGE_NAME[vardepsexclude] += "DATETIME"
in meta/conf/bitbake.conf, we can set a similar line in
base-files_3.0.14.bb to fix the problem.

[YOCTO #6032]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agometa/conf/bitbake.conf: add STAMPCLEAN to BB_HASHBASE_WHITELIST
Robert Yang [Tue, 25 Mar 2014 02:18:47 +0000 (10:18 +0800)]
meta/conf/bitbake.conf: add STAMPCLEAN to BB_HASHBASE_WHITELIST

The problem is that do_configure.sigdata depends on STAMPS_DIR because:

do_configure -> STAMPCLEAN -> STAMPS_DIR

this will make the sigdata generated by "STAMPS_DIR=/tmp/stps bitbake -S
recipe" doesn't match the ones in our build dir, but it should. We can
add STAMPS_DIR or STAMPCLEAN to BB_HASHBASE_WHITELIST to fix the
problem, but we can't add  STAMPS_DIR since once it is in
BB_HASHBASE_WHITELIST, the "STAMPS_DIR=/tmp/stps bitbake -S recipe"
would not run again.

[YOCTO $6031]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoutil-linux-native: fix qsort_r for CentOS 5.10
Robert Yang [Wed, 26 Mar 2014 07:01:29 +0000 (03:01 -0400)]
util-linux-native: fix qsort_r for CentOS 5.10

The qsort_r() was added to glibc in version 2.8, so there is no qsort_r() on
the host like CentOS 5.x, use qsort() to fix it since they are nearly
identical.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocpio rootfs build: Avoid modifying rootfs dir
Jonas Eriksson [Mon, 24 Mar 2014 15:56:05 +0000 (16:56 +0100)]
cpio rootfs build: Avoid modifying rootfs dir

The Linux kernel requires that initrd images contain a /init file for
the image to be used as an initrd, even if it is empty. Adding it into
the rootfs directory creates a race, that can upset tar when building
both a .tar and .cpio image file ("tar: .: file changed as we read it").
Additionally, whether or not the tar file will contain the /init file is
also up to the race condition.

To avoid this problem, move the /init addition out from the rootfs
directory, and thus only include it in the .cpio image.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Cc: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agognupg: CVE-2013-4576
Yong Zhang [Wed, 26 Mar 2014 08:32:13 +0000 (16:32 +0800)]
gnupg: CVE-2013-4576

GnuPG 1.x before 1.4.16 generates RSA keys using sequences of introductions
with certain patterns that introduce a side channel, which allows physically
proximate attackers to extract RSA keys via a chosen-ciphertext attack and
acoustic cryptanalysis during decryption. NOTE: applications are not typically
expected to protect themselves from acoustic side-channel attacks, since this
is arguably the responsibility of the physical device. Accordingly, issues of
this type would not normally receive a CVE identifier. However, for this
issue, the developer has specified a security policy in which GnuPG should
offer side-channel resistance, and developer-specified security-policy
violations are within the scope of CVE.

Signed-off-by: Yong Zhang <yong.zhang@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agognupg: CVE-2013-4351
Ming Liu [Wed, 26 Mar 2014 08:32:12 +0000 (16:32 +0800)]
gnupg: CVE-2013-4351

GnuPG 1.4.x, 2.0.x, and 2.1.x treats a key flags subpacket with all bits
cleared (no usage permitted) as if it has all bits set (all usage permitted),
which might allow remote attackers to bypass intended cryptographic protection
mechanisms by leveraging the subkey.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoSecurity Advisory - openssl - CVE-2013-6449
Yue Tao [Wed, 26 Mar 2014 09:08:45 +0000 (17:08 +0800)]
Security Advisory - openssl - CVE-2013-6449

The ssl_get_algorithm2 function in ssl/s3_lib.c in OpenSSL before 1.0.2
obtains a certain version number from an incorrect data structure, which
allows remote attackers to cause a denial of service (daemon crash) via
crafted traffic from a TLS 1.2 client.

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoSecurity Advisory - openssl - CVE-2013-6450
Yue Tao [Wed, 26 Mar 2014 09:08:44 +0000 (17:08 +0800)]
Security Advisory - openssl - CVE-2013-6450

The DTLS retransmission implementation in OpenSSL through 0.9.8y and 1.x
through 1.0.1e does not properly maintain data structures for digest and
encryption contexts, which might allow man-in-the-middle attackers to
trigger the use of a different context by interfering with packet delivery,
related to ssl/d1_both.c and ssl/t1_enc.c.

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoSecurity Advisory - openssl - CVE-2013-4353
Yue Tao [Wed, 26 Mar 2014 09:08:43 +0000 (17:08 +0800)]
Security Advisory - openssl - CVE-2013-4353

The ssl3_take_mac function in ssl/s3_both.c in OpenSSL 1.0.1 before
1.0.1f allows remote TLS servers to cause a denial of service (NULL
pointer dereference and application crash) via a crafted Next Protocol
Negotiation record in a TLS handshake.

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolocal.conf.sample.extended: update it for the archiver
Robert Yang [Thu, 20 Mar 2014 13:25:33 +0000 (21:25 +0800)]
local.conf.sample.extended: update it for the archiver

Add the filter license comment for archiver.bbclass.

[YOCTO #5740]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotoaster.bbclass: update buildstats event data
Alexandru DAMIAN [Mon, 24 Mar 2014 18:28:22 +0000 (18:28 +0000)]
toaster.bbclass: update buildstats event data

We add the PN to the buildstats event data in order to
proper select database task when multiple similar tasks
are executed for the same recipe file.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoEnable yasm in gstreamer1.0-libav by default
Carlos Rafael Giani [Tue, 25 Mar 2014 12:43:06 +0000 (13:43 +0100)]
Enable yasm in gstreamer1.0-libav by default

Since yasm has been moved to OE-core, there is no reason for not enabling
yasm by default anymore. It improves performance of gstreamer1.0-libav
considerably.

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopiglit: ship files with correct permissions
Valentin Popa [Tue, 25 Mar 2014 12:06:08 +0000 (14:06 +0200)]
piglit: ship files with correct permissions

Adress the warning
| warning: group pulse does not exist - using root

Piglit files from framework/ generated_tests/ tests/
and templates/ belong to xuser/pulse.
Don't keep the permissions while shipping the files,
they should be root/root.

[YOCTO #6028]

Signed-off-by: Valentin Popa <valentin.popa@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobind: remove nslookup from FILES
Robert Yang [Tue, 25 Mar 2014 11:00:12 +0000 (19:00 +0800)]
bind: remove nslookup from FILES

The nslookup had been disabled from 2010 (or earlier), but it still in
FILES_${PN}-utils, we need remove it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobind: fix no bind-utils package
Robert Yang [Tue, 25 Mar 2014 11:00:11 +0000 (19:00 +0800)]
bind: fix no bind-utils package

Fix the typo:
PACKAGES_preprend -> PACKAGES_prepend

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobinutils: Add fixes for binutils issue 16428
Richard Purdie [Tue, 25 Mar 2014 10:29:26 +0000 (10:29 +0000)]
binutils: Add fixes for binutils issue 16428

"ld:i386 crashes with -static -fPIE -pie"
https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1266492

This adds in two upstream binutils fixes to avoid the internal error
triggered by the combination of -static with -pie on x86 builds. This
triggers a backtrace which then triggers a bug in glibc where the process
ends up hanging on some systems with broken libcs.

We can't fix the libc but we can stop the internal error and hence
avoid the hanging builds.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoperl-native: fix path in Config.sh for sstate
Robert Yang [Tue, 25 Mar 2014 08:34:15 +0000 (16:34 +0800)]
perl-native: fix path in Config.sh for sstate

We need fix the path in *.pm, *.pod, *.h, *.pl and *.sh as we have done
for target perl.

[YOCTO #6035]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotcl: fix path in Config.sh for sstate
Robert Yang [Tue, 25 Mar 2014 08:34:14 +0000 (16:34 +0800)]
tcl: fix path in Config.sh for sstate

We need fix the path in tclConfig.sh, tdbcConfig.sh and itclConfig.sh
for sstate, otherwise there would be build failures when use the sstate
across different builds.

e.g., when building expect:
[snip]
tmp/sysroots/qemuarma9/usr/include/tcl8.6
checking for Tcl private include files... configure: error: Cannot find private header tclInt.h in
/path/to/another/build/tmp/sysroots/qemuarma9/usr/include/tcl8.6.1
Configure failed.
[snip]

[YOCTO #6035]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotune-ppce6500: Fixes a typo in tune config file for e6500.
Valentin Cobelea [Thu, 20 Mar 2014 14:36:43 +0000 (15:36 +0100)]
tune-ppce6500: Fixes a typo in tune config file for e6500.

This patch fixes a typo in the tune config file for ppc64 e6500
where the cpu type is a wrong one.

Signed-off-by: Valentin Cobelea <valentin.cobelea@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoglib-2.0-native: Fix DEPENDS
Richard Purdie [Mon, 24 Mar 2014 13:58:01 +0000 (13:58 +0000)]
glib-2.0-native: Fix DEPENDS

Address the error

| checking for ZLIB... no
| checking for inflate in -lz... no
| configure: error: *** Working zlib library and headers not found ***

by ensuring zlib-native is in DEPENDS.

[YOCTO #5773]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/binconfig: fix indentation in python function
Paul Eggleton [Mon, 24 Mar 2014 15:18:52 +0000 (15:18 +0000)]
classes/binconfig: fix indentation in python function

If we don't fix this, the recently added dependency from
do_populate_sysroot on functions in SYSROOT_PREPROCESS_FUNCS in
staging.bbclass triggers warnings that the get_binconfig_mangle
function contains tabs for all recipes that inherit binconfig.

Related to fix for [YOCTO #5852].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/staging: ensure do_populate_sysroot re-execs on changes to sysroot preprocess...
Paul Eggleton [Mon, 24 Mar 2014 15:18:51 +0000 (15:18 +0000)]
classes/staging: ensure do_populate_sysroot re-execs on changes to sysroot preprocessing funcs

Without this dependency, changes to functions added to
SYSROOT_PREPROCESS_FUNCS do not change do_populate_sysroot's signature
and thus don't cause it to re-execute.

Fixes [YOCTO #5852].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobuildstats: use TaskBase time for elapsed time
Marius Avram [Mon, 17 Mar 2014 15:04:10 +0000 (15:04 +0000)]
buildstats: use TaskBase time for elapsed time

To avoid any further inconsistencies between buildstats and buildinfohelper
from toaster, buildstats will measure task duration using the time field
from within the TaskBase events: TaskStarted and TaskSucceeded/TaskFailed.

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agostaging: Save out provider information into the sysroot
Richard Purdie [Thu, 20 Mar 2014 11:39:20 +0000 (11:39 +0000)]
staging: Save out provider information into the sysroot

This patch saves out provider information into the sysroot for all providers
except those in MULTI_PROVIDER_WHITELIST. This means that we will start seeing
warnings when two providers for the same thing are installed into the sysroot.

In the future those warnings can be turned into errors.

Partially addresses [YOCTO #4102]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoarchiver.bbclass: emit patch series files for original src
Robert Yang [Mon, 24 Mar 2014 05:39:27 +0000 (13:39 +0800)]
archiver.bbclass: emit patch series files for original src

Emit patch series files for original src so that the user knows how to
apply the patch orderly.

[YOCTO #5113]

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoarchiver.bbclass: make it can filter the license
Robert Yang [Mon, 24 Mar 2014 05:39:26 +0000 (13:39 +0800)]
archiver.bbclass: make it can filter the license

* Filter the license (default: no), the recipe whose license in
  COPYLEFT_LICENSE_INCLUDE will be included, and in
  COPYLEFT_LICENSE_EXCLUDE will be excluded.

* The user can set the recipe type that would be archived (native,
  target, and so on), deafult to all.

The copyleft_filter.bbclass is come from copyleft_compliance.bbclass,
which is used by both copyleft_compliance.bbclass and archiver.bbclass.

[YOCTO #5740]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogtk-engines: move engine schemas to a dedicated package
Ross Burton [Fri, 21 Mar 2014 18:21:59 +0000 (18:21 +0000)]
gtk-engines: move engine schemas to a dedicated package

The GTK+ engine schemas are not insignicant in size but also mostly useless.
Put them in a sub-package instead of PN so they only get installed when
explicitly required.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogtk-engines: don't inherit gtk-icon-cache
Ross Burton [Fri, 21 Mar 2014 18:21:58 +0000 (18:21 +0000)]
gtk-engines: don't inherit gtk-icon-cache

This was accidently left in and can be removed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoutil-linux: build setpriv requires libcap-ng
Robert Yang [Mon, 24 Mar 2014 09:24:17 +0000 (05:24 -0400)]
util-linux: build setpriv requires libcap-ng

There might a failure when build util-linux with the meta-selinux layer:

[snip]
sys-utils/setpriv.c:21:20: fatal error: cap-ng.h: No such file or directory
 #include <cap-ng.h>
                    ^
compilation terminated.
[snip]

Use PACKAGECONFIG to fix the problem.

[YOCTO #6026]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoconnman: upgrade to 1.22
Jonathan Liu [Mon, 24 Mar 2014 00:23:02 +0000 (11:23 +1100)]
connman: upgrade to 1.22

Highlights:
- If VPN is split routed and not the default service, then allow
  DNS queries also to be sent to VPN DNS server.
- Session API fixes
- Memory leak fixes
- Crash fixes
- NTP kiss-of-death packet support
- Support for full USB gadget networking. Now USB gadget network can
  be used without tethering.

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