]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
9 years agoscripts/yocto-layer: Avoids duplication of "meta-" prefix
Humberto Ibarra [Wed, 9 Dec 2015 18:04:56 +0000 (12:04 -0600)] 
scripts/yocto-layer: Avoids duplication of "meta-" prefix

The yocto-layer script puts and extra "meta-" prefix on the given layer
name even when the prefix is already there. This fix avoids duplicating
the prefix in these situations.

The change was done inside the create subcommand since this is a parsing
specific to the layer creation. Parsing this in the main method of
yocto-layer was not the right way to go.

Before the change:

$ yocto-layer create meta-layer
[...]
New layer created in meta-meta-layer.

After the change:

$ yocto-layer create meta-layer
[...]
New layer created in meta-layer.

[YOCTO #8050]

(From meta-yocto rev: e21c79eb830ed1593e81f2d58815664109a10933)

Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopoky-lsb/poky-tiny: update preferred kernel to 4.1
Bruce Ashfield [Thu, 26 Nov 2015 14:18:18 +0000 (09:18 -0500)] 
poky-lsb/poky-tiny: update preferred kernel to 4.1

The 3.14 LTSI kernel has been removed, so we bump the preferred
kernel version to 4.1.

(From meta-yocto rev: 63c1e527fbc82987617a4ca050d4ca82e2ef0f55)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoyocto-bsp: remove 3.14 and 3.19 bbappends
Bruce Ashfield [Thu, 26 Nov 2015 14:17:36 +0000 (09:17 -0500)] 
yocto-bsp: remove 3.14 and 3.19 bbappends

The 3.14 and 3.19 kernel have been removed from oe-core, so we drop
our bbappends.

(From meta-yocto rev: e82a9e75b2d02387fc58232ee469ed0ae661b996)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoconf/local.conf.sample: comment out ASSUME_PROVIDED=libsdl-native
Ross Burton [Fri, 18 Dec 2015 16:56:18 +0000 (16:56 +0000)] 
conf/local.conf.sample: comment out ASSUME_PROVIDED=libsdl-native

Ubuntu 15.10 and Debian testing can't build qemu-native against the host libsdl.
Now that libsdl-native is buildable, comment out the ASSUME_PROVIDED which meant
it wouldn't be used.

[ YOCTO #8553 ]

(From meta-yocto rev: 759accbfca46de058ce402938713189dab22a70c)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: Really remove lockfiles flag
Richard Purdie [Wed, 6 Jan 2016 18:04:23 +0000 (18:04 +0000)] 
image: Really remove lockfiles flag

This was supposed to be removed by a previous patch but was readded.
Really remove it.

(From OE-Core rev: 5661d8cb7849df62358368743134c0aaf523965e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoboost: ensure boost to remain an empty metapackage
Lukas Bulwahn [Tue, 5 Jan 2016 09:32:40 +0000 (10:32 +0100)] 
boost: ensure boost to remain an empty metapackage

To ensure that boost remains an empty metapackage after version
updates, we explicitly require boost files to be empty. If new
libraries exist after a version update of the boost recipe,
bitbake will emit a warning at the do_package task. For example,
at the version update from 1.58.0 to 1.59.0, the new timer
library is indicated with:

WARNING: QA Issue: boost: Files/directories were installed but not shipped in any package:
  /usr/lib/libboost_timer.so.1.59.0
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
boost: 1 installed and not shipped files. [installed-vs-shipped]

Ross Burton suggested this improvement on the openembedded-core
mailing list during review of the boost recipe version update [1].

[1] http://lists.openembedded.org/pipermail/openembedded-core/2015-December/114314.html

(From OE-Core rev: c4e33232db2da3594cc4ba38eea56ee1acb54d3a)

Signed-off-by: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage_types.bbclass: Rebuild when WICVARS change
Mariano Lopez [Wed, 30 Dec 2015 06:52:54 +0000 (06:52 +0000)] 
image_types.bbclass: Rebuild when WICVARS change

The procces to do a wic image is to save a file with
variables required by wic and then call wic using this
file. Because this is external to bitbake if the vars
change, the image won't be rebuild; an example of such
is IMAGE_BOOT_FILES.

This patch adds these variables to vardeps of do_rootfs
when a wic image is build. This will rebuild the image
if a variable needed by wic changes.

[YOCTO #8693]

(From OE-Core rev: 12c54d50ed4c321dc272beb3c6cb770965c979f1)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogccmakedep: fix buildpaths qa check
Kai Kang [Thu, 24 Dec 2015 09:47:54 +0000 (17:47 +0800)] 
gccmakedep: fix buildpaths qa check

When enable "buildpaths" QA check, it fails to build gccmakedep:

| ERROR: QA Issue: File
| work/mips64-poky-linux/gccmakedep/1_1.0.3-r3/packages-split/gccmakedep/usr/bin/gccmakedep
| in package contained reference to tmpdir [buildpaths]

Remove build related path to fix this issue.

(From OE-Core rev: 9f3e6d811d9a360dc41031838431edcd2e226f3d)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobash: fix buildpaths qa check error
Kai Kang [Thu, 24 Dec 2015 09:47:53 +0000 (17:47 +0800)] 
bash: fix buildpaths qa check error

Script bashbug and Makefile for ptest contain build related paths
which cause fail to pass buldpaths QA check.

Remove such paths from these 2 files.

(From OE-Core rev: b600adb4297798f108cb38d8ad7581bc517ae56b)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotestimage: remove VNC test, x11vnc isn't in oe-core anymore
Ross Burton [Wed, 6 Jan 2016 09:50:04 +0000 (09:50 +0000)] 
testimage: remove VNC test, x11vnc isn't in oe-core anymore

Now that x11vnc won't be in Sato images we don't want to test it.

(From OE-Core rev: 90ff7219332d9651fcdfc895d61fb73a46ffde78)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agox11vnc: remove all references to moved package
Ioan-Adrian Ratiu [Tue, 5 Jan 2016 12:24:23 +0000 (14:24 +0200)] 
x11vnc: remove all references to moved package

Together with the move to meta-oe, all references to x11vnc should be
removed from oe-core. There are three of these: a distro alias, a
packagegroup rdepends and a runtime test.

(From OE-Core rev: cfd1e4bcd66a9a542007115647cadb8480330fab)

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agox11vnc: move recipe to meta-oe
Ioan-Adrian Ratiu [Tue, 5 Jan 2016 12:24:22 +0000 (14:24 +0200)] 
x11vnc: move recipe to meta-oe

x11vnc can be configured with --use-system-libvncserver to use an
external libvncserver which will be added to meta-oe. Since oe-core
should not depend on meta-oe, we move x11vnc there.

(From OE-Core rev: 210b40b694e5ab03537c02baba453c9cdd11f4e0)

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/buildhistory: actually use KiB in extensible SDK sizes files
Paul Eggleton [Tue, 5 Jan 2016 03:43:21 +0000 (16:43 +1300)] 
classes/buildhistory: actually use KiB in extensible SDK sizes files

I was using bytes here for the sizes and writing out KiB as the suffix.
Change it to actually write out size values in KiB.

(From OE-Core rev: e6b1840ee9aeb933f86fd2a92a90b94c1bc9db7c)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agox11vnc: move recipe to meta-oe
Ioan-Adrian Ratiu [Thu, 3 Dec 2015 10:17:14 +0000 (12:17 +0200)] 
x11vnc: move recipe to meta-oe

x11vnc can be configured with --use-system-libvncserver to use an
external libvncserver which will be added to meta-oe. Since oe-core
should not depend on meta-oe, we move x11vnc there.

(From OE-Core rev: d5dc09e65e85d378e98baff58833c3fe27bb7471)

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoreadline: move inputrc into readline
Joseph A. Lutz [Tue, 29 Dec 2015 22:54:27 +0000 (16:54 -0600)] 
readline: move inputrc into readline

inputrc is the global configuration file for the readline library.

(From OE-Core rev: 619d15b9a2c53eb8496c807f0f229f5cb192e9d7)

Signed-off-by: Joseph A. Lutz <joseph.lutz@novatechweb.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotune-*: use mcpu instead of mtune for ARM tunes
Martin Jansa [Tue, 6 Oct 2015 15:01:24 +0000 (17:01 +0200)] 
tune-*: use mcpu instead of mtune for ARM tunes

* since:
  commit cffda9a821a3b83a8529d643c567859e091c6846
  Author: Martin Jansa <Martin.Jansa@gmail.com>
  Date:   Tue Sep 11 17:05:45 2012 +0000

      arch-arm: define different ARMPKGARCH when different CCARGS are used
  we don't need to worry about e.g. cortexa7 device upgrading
  binary package from armv7a feed which would be built with
  -mcpu=cortexa15, so we can use -mcpu instead of -mtune, because
  we won't share the binary feed with MACHINEs built with different
  tune.

(From OE-Core rev: f7bb2d4cf18ca8d2a90b4b3b5c6c48dad106ca28)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarch-armv7ve: add tune include for armv7ve and use it from cortexa7 and cortexa15
Martin Jansa [Tue, 6 Oct 2015 15:08:59 +0000 (17:08 +0200)] 
arch-armv7ve: add tune include for armv7ve and use it from cortexa7 and cortexa15

* be aware that this -march value is available only in gcc-4.9 and
  newer:
  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57907
* -mcpu=cortex15 and -mcpu=cortexa7 conflict with -march=armv7a
  We either have to stop putting -march in default CCARGS or at
  least set it compatible one like this patch does.

(From OE-Core rev: 35392025f3236f5e5393f9cf0857732da9a2e503)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocortexa{7,15,17}: add VFPv4 tunes
Martin Jansa [Tue, 6 Oct 2015 13:28:11 +0000 (15:28 +0200)] 
cortexa{7,15,17}: add VFPv4 tunes

* it was added only to hf cortexa7 in:
  commit e97d152ca13556b41a236c1a4cfb11e77ff857d7
  Author: Kristof Robot <krirobo@gmail.com>
  Date:   Sun Jan 26 10:03:56 2014 +0100

      Add Cortex A7 support for NEONv2 & FPv4

* add it to softfp cortexa7 and both versions for cortexa15 and
  cortexa17 tunes

(From OE-Core rev: 109c26d99b6324c1412f440fef85f090518f6da0)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agofeature-arm-vfp.inc: Further simplify with TUNE_CCARGS_MFLOAT
Martin Jansa [Wed, 9 Dec 2015 16:14:26 +0000 (17:14 +0100)] 
feature-arm-vfp.inc: Further simplify with TUNE_CCARGS_MFLOAT

* add TUNE_CCARGS_MFLOAT variable which is used to set -mfloat-abi
  parameter as well as ARMPKGSFX_EABI suffix in TUNE_PKGARCH and
  TARGET_FPU
* TARGET_FPU was using ARMPKGSFX_FPU, but in most cases we use it
  only to distinguish between hard and soft abi, not various -mfpu
  variants which can appear in ARMPKGSFX_FPU

(From OE-Core rev: 10bece310ca6e0bbae28665f873f907d751d1057)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agofeature-arm-{neon,vfp}.inc: refactor and fix issues
Martin Jansa [Mon, 19 Oct 2015 17:59:21 +0000 (19:59 +0200)] 
feature-arm-{neon,vfp}.inc: refactor and fix issues

* respect all 4 vfp options ('vfp', 'vfpv3d16', 'vfpv3', 'vfpv4') when
  setting -mfloat-abi and ARMPKGSFX_EABI, without this change it wasn't
  possible to use call-convention hard together with vfpv4
* move 'vfpv3d16', 'vfpv3', 'vfpv4' support from
  feature-arm-vfp.inc
  to
  feature-arm-neon.inc
  the main difference is that feature-arm-vfp.inc is included in
  arch-armv5.inc while feature-arm-neon.inc only in armv7*.inc, so
  these options should be added to TUNEVALID also only for armv7*
  MACHINEs.
* support vfpv4 with or without neon
  when both vfpv4 and neon are in TUNE_FEATURES we want to set only one
  -mfpu parameter and to neon-vfpv4
* prevent multiple appends to ARMPKGSFX_FPU, we don't want to include
  e.g. -vfp as well as -vfpv4 when both "vfp" and "vfpv4" are in
  TUNE_FEATURES
* add -mfpu=vfp for tunes with "vfp" in TUNE_FEATURES - before that we
  were only adding -vfp to ARMPKGSFX_FPU
* add TUNE_CCARGS_MFPU variable which is used to set -mfpu parameter as
  well as ARMPKGSFX_FPU suffix in TUNE_PKGARCH, all enabled values are
  appended to it based on TUNE_FEATURES and then the last one is used
  in the actual param and suffix
* this prevents multiple -mfpu options in TUNE_CCARGS

* !!!
  This means we need to change TUNE_PKGARCH and PACKAGE_EXTRA_ARCHS for
  vfpv4, vfpv3d16, vfpv3 tunes, because the -vfp* isn't prependend
  multiple times. If you're using one of these new DEFAULTTUNES (which
  were at least partially broken anyway) and depend on working binary
  package feed upgrade-path, then don't forget to migrate PR service
  database to new TUNE_PKGARCH.

(From OE-Core rev: 6661718158f8fdcdf63b0d48e8fe72d3ac4778f2)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarch-armv7a.inc: add vfpv4 support also to softfp and big endiand tunes
Martin Jansa [Wed, 9 Dec 2015 13:17:13 +0000 (14:17 +0100)] 
arch-armv7a.inc: add vfpv4 support also to softfp and big endiand tunes

(From OE-Core rev: b4e90a15e6b1e5639b2039adeae26f2c780a7864)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarch-armv7a.inc: Fix PACKAGE_EXTRA_ARCHS for tune-armv7atb-vfpv3, tune-armv7atb-vfpv3...
Martin Jansa [Wed, 9 Dec 2015 13:09:24 +0000 (14:09 +0100)] 
arch-armv7a.inc: Fix PACKAGE_EXTRA_ARCHS for tune-armv7atb-vfpv3, tune-armv7atb-vfpv3d16, cortexa7thf-neon-vfpv4

(From OE-Core rev: 8c12a71e41fb53a014b8357ae9b30bfd422f86ec)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarch-armv5.inc: drop duplicate ARMPKGSFX_DSP and PACKAGE_EXTRA_ARCHS_tune-armv5tehf-vfp
Martin Jansa [Wed, 9 Dec 2015 16:46:07 +0000 (17:46 +0100)] 
arch-armv5.inc: drop duplicate ARMPKGSFX_DSP and PACKAGE_EXTRA_ARCHS_tune-armv5tehf-vfp

* both belong and already are in arch-armv5-dsp.inc

(From OE-Core rev: 791f52d3b58ce1fd4bfd159deb83a1917d6267f2)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarch-armv[456]*.inc: improve indentation like armv7a
Martin Jansa [Wed, 9 Dec 2015 16:39:21 +0000 (17:39 +0100)] 
arch-armv[456]*.inc: improve indentation like armv7a

(From OE-Core rev: 5e685647733294315e6c2ce76733c9b9a5ee554b)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarm/arch-arm*, tune-cortexa*, tune-thunderx.inc, powerpac/arch-powerpc64.inc: Use...
Martin Jansa [Wed, 9 Dec 2015 14:07:09 +0000 (15:07 +0100)] 
arm/arch-arm*, tune-cortexa*, tune-thunderx.inc, powerpac/arch-powerpc64.inc: Use normal assignment

* some tunes were using weak assignment for TUNE_FEATURES, unify
  all tunes to use normal assignment so it behaves consistently

(From OE-Core rev: 0a52bd3ed23e66200401d0836aad783095e7c7a0)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarch-armv7a, tune-cortexa*: improve indentation
Martin Jansa [Wed, 9 Dec 2015 13:06:40 +0000 (14:06 +0100)] 
arch-armv7a, tune-cortexa*: improve indentation

* indent the assignments, so that it's easier to see the algoritm how these
  values are modified and do less errors, see fixes in next commit

(From OE-Core rev: f774b44fa007a2a756ada892ede832b1251d940c)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarch-armv7a, tune-cortexa*: improve comment VFP -> HF
Martin Jansa [Wed, 9 Dec 2015 13:33:13 +0000 (14:33 +0100)] 
arch-armv7a, tune-cortexa*: improve comment VFP -> HF

* the section bellow the comment adds only HF variants, VFP is already
  mixed in the softfp sections above (unlike armv5, armv6 tune files
  where it really was above VFP/DSP section)

(From OE-Core rev: 0c60d744f6ec3b77f044ac7d66e30c00d00fea81)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarch-armv7a: add missing space before ?=
Martin Jansa [Mon, 7 Dec 2015 22:36:38 +0000 (23:36 +0100)] 
arch-armv7a: add missing space before ?=

(From OE-Core rev: e4502063aae68b8dc31160fb418c74e4f0412cb6)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotune-cortexr4.inc: fix PACKAGE_EXTRA_ARCHS
Martin Jansa [Mon, 7 Dec 2015 22:57:27 +0000 (23:57 +0100)] 
tune-cortexr4.inc: fix PACKAGE_EXTRA_ARCHS

* PACKAGE_ARCHS were missing TUNE_PKGARCH armv7rt2-vfp because thumb is enabled
  in TUNE_FEATURES

(From OE-Core rev: 51a99e28d0d15e227fc05f43974f54f6d8e62ef5)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosanity.bbclass: add more information to error message about TUNE_PKGARCH missing...
Martin Jansa [Fri, 18 Dec 2015 13:14:24 +0000 (14:14 +0100)] 
sanity.bbclass: add more information to error message about TUNE_PKGARCH missing in PACKAGE_ARCHS

* sometimes it's hard to see what's wrong here
* error message:
  Error, the PACKAGE_ARCHS variable does not contain TUNE_PKGARCH (cortexa7t2hfhf-vfp-vfpv4-neon).
  doesn't help much to understand what exactly went wrong and where

(From OE-Core rev: 4bedd149964b3b594d7b1a233a9cc436925288e9)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomkefidisk.sh: add boot log on console
Trevor Woerner [Sat, 28 Nov 2015 14:29:51 +0000 (09:29 -0500)] 
mkefidisk.sh: add boot log on console

Hooking up a serial console is a "developer mode", the chances are pretty good
developers are interested in watching the kernel boot log on the console so
they can spot any problems or diagnose any failed boots (e.g. can't find root
fs).

(From OE-Core rev: d03e399623b9320268a2b56e4928bb7effa9146c)

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomkefidisk.sh: add startup script for automated boot
Trevor Woerner [Sat, 28 Nov 2015 14:43:02 +0000 (09:43 -0500)] 
mkefidisk.sh: add startup script for automated boot

Regardless of which image is built using which layers, try to ensure the image
on the SD device being prepared is the one that is booted automatically when
the board is powered.

(From OE-Core rev: 51dc79d55d0985e64838a08d39a22e8cd3fcd59a)

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/recipetool: update for libjpeg-turbo migration
Ross Burton [Tue, 5 Jan 2016 13:20:39 +0000 (13:20 +0000)] 
oeqa/selftest/recipetool: update for libjpeg-turbo migration

The recipe creation test of libmatchbox now depends on libjpeg-turbo, not jpeg.

(From OE-Core rev: 58bb2d82f4f1b111641c480a27836be6119ee279)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibjpeg: Replace libjpeg with libjpeg-turbo
Maxin B. John [Wed, 2 Dec 2015 08:39:35 +0000 (10:39 +0200)] 
libjpeg: Replace libjpeg with libjpeg-turbo

Moving libjpeg-turbo from meta-oe as a replacement for libjpeg
package. libjpeg-turbo has same API/ABI as libjpeg. It is
relatively faster in JPEG compression/decompression than libjpeg.

libjpeg-turbo doesn't support x32 ABI. Work around missing x32 ABI support by
building with "--without-simd" option.

Move to recipes-graphics [RB]

[YOCTO #8628]

(From OE-Core rev: 7c0b96813279e7aac36864a5629851439f3f6e49)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3: fix installed-vs-shipped when 64bit + multilib
Robert Yang [Wed, 30 Dec 2015 01:39:11 +0000 (17:39 -0800)] 
python3: fix installed-vs-shipped when 64bit + multilib

Fixed:
python3-3.5.0: python3: Files/directories were installed but not shipped in any package:
  /usr/lib
  /usr/lib/python3.5
  /usr/lib/python3.5/config-3.5m
  /usr/lib/python3.5/config-3.5m/python.o
  /usr/lib/python3.5/config-3.5m/Setup.local
  /usr/lib/python3.5/config-3.5m/Setup
  /usr/lib/python3.5/config-3.5m/python-config.py
  /usr/lib/python3.5/config-3.5m/install-sh
  /usr/lib/python3.5/config-3.5m/config.c.in
  /usr/lib/python3.5/config-3.5m/makesetup
  /usr/lib/python3.5/config-3.5m/Setup.config
  /usr/lib/python3.5/config-3.5m/config.c
  /usr/lib/python3.5/config-3.5m/Makefile
  /usr/lib/python3.5/config-3.5m/libpython3.5m.a
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
python3: 14 installed and not shipped files. [installed-vs-shipped]

(From OE-Core rev: 8a96dbe5dd44e1c80aef7b8efe5820dee96a5bd7)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopulseaudio: add PACKAGECONFIG for lirc
Martin Jansa [Mon, 4 Jan 2016 14:13:15 +0000 (15:13 +0100)] 
pulseaudio: add PACKAGECONFIG for lirc

* it's autodetected from sysroot

(From OE-Core rev: 849abbb0a779cfc4a6f5bbde49ba41e005e65fa8)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstate-sysroot-cruft.sh: Extend the whitelist
Martin Jansa [Mon, 4 Jan 2016 14:13:14 +0000 (15:13 +0100)] 
sstate-sysroot-cruft.sh: Extend the whitelist

* add more php5 entries
* add builder user (from builder.bb)
* add .bashrc and .profile in HOME directory of created user
* add imgdata directory generated by image.py

(From OE-Core rev: 49c744321ff1dfb16491d300ff46b6b5d5aa3f14)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoiptables: upgrade to 1.6.0
Maxin B. John [Tue, 29 Dec 2015 13:11:59 +0000 (15:11 +0200)] 
iptables: upgrade to 1.6.0

1.4.21 -> 1.6.0

xtables_globals structure layout has changed.

* Refreshed below listed patches to work with this release:
        1. 0001-configure-Add-option-to-enable-disable-libnfnetlink.patch
        2. 0001-fix-build-with-musl.patch

* Added PACKAGECONFIG for libnftnl

(From OE-Core rev: 8609c4e5eadfdd60664640c4ae07e250c98dd86b)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoscripts/oe-selftest: Allow to run tests on random/all MACHINEs
Daniel Istrate [Tue, 5 Jan 2016 14:53:34 +0000 (16:53 +0200)] 
scripts/oe-selftest: Allow to run tests on random/all MACHINEs

Add an option for random MACHINE into oe-selftest:
--machine [random/all]
1. random: will set a random MACHINE for each test
2. all: will run tests for all machines

Custom machine sets only weak default values (??=) for MACHINE in machine.inc.
This let test cases that require a specific MACHINE to be able to
override it, using (?= or =).

e.g.:
oe-selftest --run-tests signing --machine random -->
will run all tests switching MACHINE randomly for each test

oe-selftest --run-tests signing --machine all -->
for each machine will run all tests

oe-selftest --run-all-tests --machine random

Also update oeqa/selftest/base.py to accomodate this feature.

Fix for [YOCTO #5880].

(From OE-Core rev: 4a9c3653eecd9a3c1b45bab5e16c8d679c55f8bd)

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoselftest: Added testcase decorators for 2 tests
Daniel Istrate [Tue, 5 Jan 2016 09:42:13 +0000 (11:42 +0200)] 
selftest: Added testcase decorators for 2 tests

1391 for test_devtool_add_fetch_simple from devtool
1392 for test_recipetool_create_simple from recipetool

(From OE-Core rev: d6ee070127a08be98958bbb8b11c80bb64165dc7)

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: New option --list-tests
Daniel Istrate [Mon, 4 Jan 2016 15:47:59 +0000 (17:47 +0200)] 
oe-selftest: New option --list-tests

This option will list all available tests in a comprehensive manner.

Fix for [YOCTO #8868]

(From OE-Core rev: 8b9ea3ee39bceef7ee6faeef64f33bd9dbad2e4b)

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: Improved --list-classes when determining test names
Daniel Istrate [Mon, 4 Jan 2016 13:43:56 +0000 (15:43 +0200)] 
oe-selftest: Improved --list-classes when determining test names

--list-classes does a weak validation when determining test names:
(if method.startswith("test_") which could report any class attribute
that starts with 'test_' as a valid test case.

This fix checks that the class attribute that starts with 'test_'
is also callable (is a method).

Fix for [YOCTO #8862]

(From OE-Core rev: 175810503d5596370cf7d840539ebdf35cf30278)

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoselftest: moved tc test_buildhistory_does_not_change_signatures
Daniel Istrate [Mon, 4 Jan 2016 13:26:08 +0000 (15:26 +0200)] 
selftest: moved tc test_buildhistory_does_not_change_signatures

Moved test_buildhistory_does_not_change_signatures from
buildhistory/BuildhistoryBase to buildoptions/BuildhistoryTests.

The test being in the base class was causing it to run
multiple times.

Fix for [YOCTO #8867]

(From OE-Core rev: 975e67e28ccba5dcb0fced43c1f9e7da183dc201)

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoscripts/oe-selftest: Remove extra coverage data added to unittests
Humberto Ibarra [Wed, 23 Dec 2015 23:36:08 +0000 (17:36 -0600)] 
scripts/oe-selftest: Remove extra coverage data added to unittests

Coverage data tracking initiates too early, causing coverage data from the
oe-selftest environment setting to be added to each run. Even when no tests are run
oe-selftest reports around 24% of coverage due to this extra data.

Change the custom resultclass used by the TextTestRunner to one generated from the
command arguments. The generated class processes coverage when needed, running
coverage setup just before the first testcase is run and reporting after the last
one finished.

[Yocto #8846]

(From OE-Core rev: d66a4c5cb77f745e973daf34b84724f91549f391)

Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoexpat: CVE-2015-1283
Zhixiong Chi [Thu, 24 Dec 2015 09:29:59 +0000 (17:29 +0800)] 
expat: CVE-2015-1283

Add CVE-2015-1283 patch for fixing integer overflow bug in expat.

Details are at below link:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-1283

Patch comes from:
https://hg.mozilla.org/releases/mozilla-esr31/rev/2f3e78643f5c
https://codereview.chromium.org/1224303003

(From OE-Core rev: c89c5383e304a52b604a3672ac93fd88b5eb8b41)

Signed-off-by: Zhixiong Chi <Zhixiong.Chi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackagegroup-core-x11-sato: enable pcmanfm on mips
Maxin B. John [Wed, 23 Dec 2015 14:39:31 +0000 (16:39 +0200)] 
packagegroup-core-x11-sato: enable pcmanfm on mips

Enable pcmanfm in MIPS. Tested on qemumips.

(From OE-Core rev: a71bfa1e75f7b963a91ee03db169af60372987f3)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: rawcopy: Copy source file to build folder
Noor Ahsan [Wed, 23 Dec 2015 13:50:35 +0000 (15:50 +0200)] 
wic: rawcopy: Copy source file to build folder

When a file is given using --sourceparams then wic directly use that file
instead of copying them to build folder. At time of assembling it os.rename
is called which renames all the files to name. In that process the original
file is renamed. When image recipe is rebuilt then wic complains about
missing file which was renamed in previous build.

[YOCTO #8854]

(From OE-Core rev: 33c52b1f2d39feb641465bf42e8b16d0ab22a316)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogrub2: Fix CVE-2015-8370
Awais Belal [Wed, 23 Dec 2015 11:10:34 +0000 (16:10 +0500)] 
grub2: Fix CVE-2015-8370

http://git.savannah.gnu.org/cgit/grub.git/commit/?id=451d80e52d851432e109771bb8febafca7a5f1f2

(From OE-Core rev: 7d0779b0133f253d06740653d8d1b8276dbcab7f)

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: enable compatibility libraries by default
Ross Burton [Wed, 6 Jan 2016 09:21:51 +0000 (09:21 +0000)] 
systemd: enable compatibility libraries by default

Too many packages haven't been updated to use the new systemd library names, so
enable the compatibility libraries by default.

(From OE-Core rev: f95c327cb5ffc9374f84946fc64e840bb3febd23)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: add more compression and importd PACKAGECONFIGs
Ross Burton [Mon, 4 Jan 2016 10:20:25 +0000 (10:20 +0000)] 
systemd: add more compression and importd PACKAGECONFIGs

Add explicit PACKAGECONFIGs for all of compression formats that systemd can
detect at configure time, and an explicit enable/disable for importd.  importd
defaults to disabled as it needs curl and all the compression formats to be
enabled.

(From OE-Core rev: 24d358c44770b2ea145380f8648d6797b7bdb04c)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-sanitizers: link directly against sysroot libstc++
Ross Burton [Mon, 4 Jan 2016 13:02:11 +0000 (13:02 +0000)] 
gcc-sanitizers: link directly against sysroot libstc++

Instead of building a shadow libstdc++-v3 directory with symlinks to the sysroot
libstdc++-v3.la, fiddle the Makefiles so that it doesn't attempt to link to a
in-tree library at all.

This fixes builds where .la files are not being installed into the sysroot at
all.

(From OE-Core rev: f0f814a674faef2160fb8a041b63169c74da108e)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopenjade: Fix build if not installing libtool .la files
Phil Blundell [Tue, 14 May 2013 10:59:37 +0000 (11:59 +0100)] 
openjade: Fix build if not installing libtool .la files

The openjade build system is slightly funky and does strange things with library
dependencies.  Fix it up so that it depends on the .so rather than the .la
(which may not exist) for libraries from the sysroot.

(From OE-Core rev: dd6998ee068f0edf20139fee80fbbf6c1347649d)

Signed-off-by: Phil Blundell <philb@brightsign.biz>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agovalgrind: Define __UCLIBC__ for uclibc based systems
Khem Raj [Tue, 15 Dec 2015 21:25:48 +0000 (21:25 +0000)] 
valgrind: Define __UCLIBC__ for uclibc based systems

Helps configure valgrind for uclibc targets otherwise it tries to assume
funcitons that are implemented in glibc like __free_res

(From OE-Core rev: 928973960d1e4d0797fe3569a07f6265368a6aff)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosecurity_flags.inc: disable -fstack-protector-XXX for valgrind
Andre McCurdy [Tue, 22 Dec 2015 23:57:58 +0000 (15:57 -0800)] 
security_flags.inc: disable -fstack-protector-XXX for valgrind

Valgrind (v3.11.0) expects to build with stack protection disabled
and includes -fno-stack-protector in its default CFLAGS. However, the
CFLAGS provided by OE are included on the compiler command line after
the defaults so any -fstack-protector-all / -fstack-protector-strong
option provided by security_flags.inc will cause problems.

 | .../build-bcm97425vms/tmp/work/mips32el-rdk-linux/valgrind/3.11.0-r0/valgrind-3.11.0/coregrind/m_mallocfree.c:892: undefined reference to `__stack_chk_guard'
 | .../build-bcm97425vms/tmp/work/mips32el-rdk-linux/valgrind/3.11.0-r0/valgrind-3.11.0/coregrind/m_mallocfree.c:947: undefined reference to `__stack_chk_fail'

(From OE-Core rev: ff4f46700a4810fcb49c58978b17af4f52fa9925)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agometa/conf/layer.conf: bump layer version due to Qt4 removal
Ross Burton [Wed, 16 Dec 2015 10:27:44 +0000 (10:27 +0000)] 
meta/conf/layer.conf: bump layer version due to Qt4 removal

Qt4 has been moved to meta-qt4, so increase the layer version so that this can
be detected programatically.

(From OE-Core rev: 824f0bdbe87f9a847bd7a3bdd9a89bffd58befa8)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackagegroup-core-lsb: treat qt4 packages same as qt3 packages
Alexander Kanavin [Fri, 27 Nov 2015 14:01:45 +0000 (16:01 +0200)] 
packagegroup-core-lsb: treat qt4 packages same as qt3 packages

This means issuing a warning about adding a separate layer if
it is not configured.

(From OE-Core rev: 81ddc453d09f23eca192171e93d5aa8878852388)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqt4: remove recipes and classes
Alexander Kanavin [Fri, 27 Nov 2015 13:48:20 +0000 (15:48 +0200)] 
qt4: remove recipes and classes

Qt4 is no longer supportd upstream, but it is still needed for LSB compliancy.
Qt4 recipes have been moved to a separate meta-qt4 layer to be consistent with
meta-qt3 and meta-qt5.

(From OE-Core rev: cb89d2b25b4edb1241bc5426a69a6bc44df9be2c)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoaster-manual: Updates to toaster use chapter.
Ed Bartosh [Tue, 5 Jan 2016 22:29:48 +0000 (16:29 -0600)] 
toaster-manual: Updates to toaster use chapter.

 * Removed obsolete bits that were already commented out of the
   XML file.

 * Added more detail to running Toaster and accessing the information.

(From yocto-docs rev: d2b964e395273bde4f75ba3cd8e26a9e7d00b569)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoref-manual: Updated the list of supported image types.
Ed Bartosh [Tue, 5 Jan 2016 21:14:33 +0000 (15:14 -0600)] 
ref-manual: Updated the list of supported image types.

The list in the IMAGE_TYPES variable description has been
updated to add and remove several image types.

(From yocto-docs rev: d363d4d2dcf1760c5a392b443b52965ca7177984)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodev-manual: Added the --configfile bootloader option.
Ed Bartosh [Tue, 5 Jan 2016 21:04:14 +0000 (15:04 -0600)] 
dev-manual: Added the --configfile bootloader option.

(From yocto-docs rev: 649b6cf64a726b0682d756e23e6d56a490ea505e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodev-manual: Added three new wic option descriptions.
Ed Bartosh [Tue, 5 Jan 2016 20:59:01 +0000 (14:59 -0600)] 
dev-manual: Added three new wic option descriptions.

 * --part-type
 * --use-uuid
 * --uuid

(From yocto-docs rev: 63e08898bc2853789a0a13ce015183a35cf1a92a)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodev-manual: Added the --overhead-factor wic option description.
Ed Bartosh [Tue, 5 Jan 2016 20:50:39 +0000 (14:50 -0600)] 
dev-manual: Added the --overhead-factor wic option description.

(From yocto-docs rev: 67d90401faa4992638ed6903fb74388193ff6aec)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodev-manual: Added the --extra-space wic option description.
Ed Bartosh [Tue, 5 Jan 2016 20:45:30 +0000 (14:45 -0600)] 
dev-manual: Added the --extra-space wic option description.

(From yocto-docs rev: 1c386d5f76eb905487fe59c55618aea02abd1d7e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodev-manual: Added wic --notable option description.
Ed Bartosh [Tue, 5 Jan 2016 20:38:23 +0000 (14:38 -0600)] 
dev-manual: Added wic --notable option description.

(From yocto-docs rev: 5e0594889eee6cff30cf378ac66993439351b486)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodev-manual:
Ed Bartosh [Tue, 5 Jan 2016 19:46:13 +0000 (13:46 -0600)] 
dev-manual:

Updated the --source wic command-line option for partition
size details.

(From yocto-docs rev: 3affc38b6a9716316257d1d627185a4d5e9befef)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosdk-manual: Initial Manual framework
Scott Rifenbark [Mon, 28 Dec 2015 17:49:01 +0000 (11:49 -0600)] 
sdk-manual: Initial Manual framework

Makefile - Added support for new sdk-manual.
mega-manual - Added the sdk-title.png file to the list of figures.
              Modified to support inclusion of the new sdk-manual
              into the mega-manual.
poky.ent - Added a new string to support the new sdk-manual.
sdk-manual - Created new sdk-title.png image.
             Created new sdk-manual.xml file.
             Created sdk-manual customization layers for both
             standard build and Eclipse build.
             Note that we are pointing to local XSL templates for
             and these will change going forward.
             Created new sdk-style.css file.
             Created three chapter files that are placeholders
             at this point.

(From yocto-docs rev: ab591831a97a97d405d13ed75e9fb01e0452c292)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobsp-guide: Updated the license statement.
Scott Rifenbark [Tue, 8 Dec 2015 03:37:00 +0000 (21:37 -0600)] 
bsp-guide: Updated the license statement.

Changed the license statement to not be "non-commercial".

(From yocto-docs rev: bb1d80c121e9e34090a07feac9d510b2304f058e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodev-manual: Correction to the KVM stuff in the runqemu commands.
Anibal Limon [Wed, 18 Nov 2015 20:07:04 +0000 (12:07 -0800)] 
dev-manual: Correction to the KVM stuff in the runqemu commands.

Applied this patch from Anibal to correct an earlier patch.

(From yocto-docs rev: 9b944a5f4192b2e03df4ddcba5af4949df7bb8a9)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodocumentation: Prepare for 2.1 builds
Scott Rifenbark [Wed, 18 Nov 2015 19:20:17 +0000 (11:20 -0800)] 
documentation: Prepare for 2.1 builds

The changes are for the poky.ent file and the mega-manual.sed
file to take care of variables.  Also, entries added for the
manual revision table.

(From yocto-docs rev: 60da39f85165e2d4aef55d456f8203183e089433)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomega-manual: Added four new figures for GUI example.
Scott Rifenbark [Wed, 18 Nov 2015 18:37:37 +0000 (10:37 -0800)] 
mega-manual: Added four new figures for GUI example.

Forgot to add these to the mega-manual figures folder so they
were not being found when the mega-manual was made.  This is
an issue with the tarball for jethro but will be correct for
the HTML published versions in the jethro branch.

(From yocto-docs rev: 509f5c746fc44947ed519307ec6abfa12c954bb2)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: ast: Add filename/lineno to mapped functions
Richard Purdie [Tue, 5 Jan 2016 23:01:25 +0000 (23:01 +0000)] 
bitbake: ast: Add filename/lineno to mapped functions

Where we add in mappings for EXPORT_FUNCTIONS, add dummy filename
and lineno data so ensure the assumption that all python functions
have this is correct.

(Bitbake rev: 547128731e62b36d2271c4390b3fee2b16c535dc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: main: kill server without queue setup
Ed Bartosh [Tue, 5 Jan 2016 13:45:38 +0000 (15:45 +0200)] 
bitbake: main: kill server without queue setup

Setup of event queue includes registering of UI handler.
This operation can fail when cooker is busy. However, there is
no need in registering UI handler for terminating the server.

Moved the call of connection.terminateServer before setting up
of the event queue. This should make terminating server to work
more reliably as it doesn't depend on setting up the event queue
and registering UI handler anymore.

This should also help Toaster backend to restart bitbake server
and observer without getting "Could not register UI event handler"
errors.

[YOCTO #8776]

(Bitbake rev: 0c5a9349f797d05c282c2ada1893e187e05f0576)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: xmplrpc: split connect method
Ed Bartosh [Tue, 5 Jan 2016 13:45:37 +0000 (15:45 +0200)] 
bitbake: xmplrpc: split connect method

Current code in connect method sets up event queue, which requires
registering UI handler. This functionality may not be needed for
some operations, e.g. for server termination.

Moved functionality of setting up event queue in from 'connect'
method to 'setupEventQueue' in BitBakeXMLRPCServerConnection class.

(Bitbake rev: 4429871da76d6bd29e023ff42740fe7daa6b40fa)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: uievent: refactor retry loop
Ed Bartosh [Mon, 4 Jan 2016 09:26:34 +0000 (11:26 +0200)] 
bitbake: uievent: refactor retry loop

Replaced 'while' loop with 'for' loop.
Made the code more compact and hopefully more understandable.

(Bitbake rev: 4e1e497c8432536b3522295e5b1284844ccea056)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: uievent: get rid of EventHandler attribute
Ed Bartosh [Thu, 31 Dec 2015 16:42:15 +0000 (18:42 +0200)] 
bitbake: uievent: get rid of EventHandler attribute

This attribute was introduced by mistake. EventHandle is used in the
code for the same purpose.

(Bitbake rev: 8d505ec8913a7d51de48b4f52bb64c5d6a0bb08e)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: uievent: add error to registerEventHandler return
Ed Bartosh [Thu, 31 Dec 2015 16:42:14 +0000 (18:42 +0200)] 
bitbake: uievent: add error to registerEventHandler return

Current code throws Exception("Could not register UI event handler")
if event handler can't be registered. The real reason of this is that
cooker is in busy state. Error message lacks information about this.

Added error message to the return value of registerEventHandler.
Included returned error message into the log message and exception
text.

(Bitbake rev: 07de1ca7d57dcd0cc37406feae2949da12a3fa7a)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: cooker: add state.get_name method
Ed Bartosh [Thu, 31 Dec 2015 16:42:13 +0000 (18:42 +0200)] 
bitbake: cooker: add state.get_name method

Added method to convert state code into the human readable name.
It will be used in logging and error reporting.

(Bitbake rev: 9ec6379b27d210214d0b3f2e55962f721b7f5f51)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: fetch2/__init__.py: Add support for 7-Zip
Juro Bystricky [Mon, 4 Jan 2016 18:51:43 +0000 (10:51 -0800)] 
bitbake: fetch2/__init__.py: Add support for 7-Zip

7-Zip is a file archiver claiming the highest compression ratio.
This patch allows using 7-Zip commpressed files in bitbake recipes.
Two common formats are supported:

SRC_URI = "file://abc.tar.7z"
SRC_URI = "file://abc.7z"

(Bitbake rev: 7120f5bfaae54e91bc95da5667831424724ce613)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: utils: Remove double compile from better_compile
Richard Purdie [Mon, 4 Jan 2016 17:34:02 +0000 (17:34 +0000)] 
bitbake: utils: Remove double compile from better_compile

Poking around the ast to correct linenumbers works well for runtime failures
but not for parsing ones. We can use blank linefeeds to correct the line
numbers instead, with the advantage that we don't need to double compile.

(Bitbake rev: 10256ac3e7be7e691176ecc5d55856d88f1fe940)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: fetch2/local.py: avoid using PREMIRROR
Robert Yang [Mon, 4 Jan 2016 10:15:39 +0000 (02:15 -0800)] 
bitbake: fetch2/local.py: avoid using PREMIRROR

The PREMIRROR isn't useful for "file://", so avoid using it, this is
good for searching speed and can reduce useless lines in log.do_fetch.

(Bitbake rev: e130dca85bac82bd4d88f94a6bf9fe36e8ad4d7c)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: siggen: Change exception note into a warning
Richard Purdie [Mon, 4 Jan 2016 17:35:10 +0000 (17:35 +0000)] 
bitbake: siggen: Change exception note into a warning

This makes no sense as just a note, its at least a warning and useful
to get an idea of which codepath is failing.

(Bitbake rev: 0194cf0da24dc72dab0612cd54aa5190e6cd92f2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: data: Drop misleading ExpansionError exception
Richard Purdie [Mon, 4 Jan 2016 17:33:26 +0000 (17:33 +0000)] 
bitbake: data: Drop misleading ExpansionError exception

This codepath can be triggered by a python indentation error for example.
Showing it as an ExpansionError is misleading.

Change the code to add a warning about where the failure came from (in
particular giving the variable key name that triggered it) but raise the
proper exception.

(Bitbake rev: d49d46533704e8b4404e29abfb5a7383d704c91a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: cooker: Drop useless parsing exception
Richard Purdie [Mon, 4 Jan 2016 17:32:45 +0000 (17:32 +0000)] 
bitbake: cooker: Drop useless parsing exception

The SyntaxError exception simply shows the recipe that failed to parse
which is pretty useless without the actual exception. We could make it
print more info, however we can just use one of the more generic handlers
instead and remove this one.

For a python indentation error, this leads to a much more readable error
message.

(Bitbake rev: 9241eb10847634e34c5ff8767ed8c114f66ff6cf)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: data: Pass lineno/filename data from build_dependencies
Richard Purdie [Mon, 4 Jan 2016 17:31:58 +0000 (17:31 +0000)] 
bitbake: data: Pass lineno/filename data from build_dependencies

If parse_python() fails, the output is confusing. Passing in the extra
file/line data isn't expensive and improves readability significantly.

(Bitbake rev: a4bb753488d322e0e31c31d6377ba780f2f824c4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: codeparser: Add support for correct linenumbers
Richard Purdie [Mon, 4 Jan 2016 17:31:19 +0000 (17:31 +0000)] 
bitbake: codeparser: Add support for correct linenumbers

Currently, if there is something like a python indentation error in a
python function, the linenumbers and even file aren't reported correctly.

This allows lineno and filename parameters to be passed in to correct this.

The lack of a lineno parameter to python's compile() function is worked
around by using empty linefeeds. Ugly, but effective and with minimal
performance overhead.

(Bitbake rev: 5796ed550d127853808f38257f8dcc8c1cf59342)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoudev-extraconf: introduce multiple blacklist files for more complex setups
Jens Rehsack [Tue, 5 Jan 2016 16:11:42 +0000 (17:11 +0100)] 
udev-extraconf: introduce multiple blacklist files for more complex setups

In cases where a target image wants prevent the recovery partition is mounted
automatically, but the recovery partition identifier moves with the device
(internal flash, sd card, usb stick, ...), device/machine dependend extra
blacklists might be desired.

The grep utility prints the file name for each match when there is more
than one file to search. Add -h to suppress the prefixing of file names
on output.

(From OE-Core rev: 95fced137a46dc98863fe5af7be5cbce708602f2)

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouclibc: disable parallel builds
Ross Burton [Tue, 5 Jan 2016 16:03:20 +0000 (16:03 +0000)] 
uclibc: disable parallel builds

There appears to be a parallel make race in uclibc:

 GEN /extra/locale/locale_collate.h
 xargs: ../..//extra/locale/gen_collate: Text file busy
 make[1]: *** [../..//extra/locale/locale_collate.h] Error 126

As uclibc is slated to be removed in the 2.1 cycle let's just disable parallel
building for now.

(From OE-Core rev: 6bb6fd592ca9caac75504b8c339e20ab54c0cae9)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: Condense do_rootfs function/flags
Richard Purdie [Tue, 5 Jan 2016 17:52:55 +0000 (17:52 +0000)] 
image: Condense do_rootfs function/flags

Various prefuncs and flags and addtask statements make sense to belong together
in one clearer function now, this patch cleans things up a bit.

(From OE-Core rev: eae0cf7875197f9520be54370bc670e27338aad3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage/rootfs-postcommands: Separate out post rootfs commands to separate class
Richard Purdie [Tue, 5 Jan 2016 17:52:06 +0000 (17:52 +0000)] 
image/rootfs-postcommands: Separate out post rootfs commands to separate class

Reading image.bbclass is a little difficult as it has many post rootfs
helper functions and its hard to separate those from the core contents
of the rootfs/image code.

Moving it to a separate class would be one way of making it clearer
what these functions are. There are some comment layout improvements
but no code changes.

(From OE-Core rev: df4cb51c8e60fa46d4d15be8da3d84287ff08ae7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: Remove pointless rootfs lock
Richard Purdie [Tue, 5 Jan 2016 17:49:51 +0000 (17:49 +0000)] 
image: Remove pointless rootfs lock

It was added in aa3141e979326a9d931ff03bad75923faa1d9dc6 back in 2008
but I don't see why multiple images would need this now.

(From OE-Core rev: 2eaeac6d98c310cb2602ba194d934c5b7bed253d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackagegroup-core-boot:replace busybox to variable
Alejandro Joya [Tue, 17 Nov 2015 22:13:16 +0000 (16:13 -0600)] 
packagegroup-core-boot:replace busybox to variable

It replaces the use of busybox as hardcoded dependency to more dynamic
this wouldn't affect the way that the system is build only it let a more
flexible replacement in the core.

(From OE-Core rev: 9f5b8047c5247b18602dd79d384d57e07220abb2)

Signed-off-by: Alejandro Joya <alejandro.joya.cruz@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinitramfs-framework_1.0:replace busybox for variable.
Alejandro Joya [Tue, 17 Nov 2015 22:13:15 +0000 (16:13 -0600)] 
initramfs-framework_1.0:replace busybox for variable.

It replaces the use of busybox as hardcoded dependency to more dynamic
this wouldn't affect the way that the initrams is build, just it let a more
flexible replacement in the core.

(From OE-Core rev: f0f7062e9aa5e7708fc92cac2afb1aa85eb3d4ef)

Signed-off-by: Alejandro Joya <alejandro.joya.cruz@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocore-image-minimal-initramfs: replace base-utils
Alejandro Joya [Tue, 17 Nov 2015 22:13:14 +0000 (16:13 -0600)] 
core-image-minimal-initramfs: replace base-utils

It replaces the use of busybox as hardcoded dependency to more dynamic
this wouldn't affect the way that the system is build only it let a more
flexible replacement in the core.

(From OE-Core rev: 3cef7dda39ac88046e282121585f5b4e067d47a7)

Signed-off-by: Alejandro Joya <alejandro.joya.cruz@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobase-utils:flexible dependency for command utilities
Alejandro Joya [Tue, 17 Nov 2015 22:13:13 +0000 (16:13 -0600)] 
base-utils:flexible dependency for command utilities

add base-line configuration for command utilities, this will be used instead
of hardcoded uses of busybox around the environment.

(From OE-Core rev: b14027e361fc0393fa4ee060ecb1088742607533)

Signed-off-by: Alejandro Joya <alejandro.joya.cruz@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoorc: Add missing PACKAGES_DYNAMIC
Richard Purdie [Tue, 5 Jan 2016 13:55:48 +0000 (13:55 +0000)] 
orc: Add missing PACKAGES_DYNAMIC

Recipes should always indicate the packages they build, this corresponds to
the do_split_packages() call.

(From OE-Core rev: eae16471baccfe4849dc579dfec7434a9ac142b6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobluez5: include the patch only for 5.36
Martin Jansa [Mon, 28 Dec 2015 12:55:52 +0000 (13:55 +0100)] 
bluez5: include the patch only for 5.36

* it's backport so it probably won't be needed for newer version and it doesn't
  apply for older versions, so it just prevents to easily use bluez5.inc

(From OE-Core rev: 1568f4fa1c8f8abd9b365ecd264841cd4f6b66b1)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agometa-yocto-bsp: remove 3.14 and 3.19 bbappends
Bruce Ashfield [Fri, 18 Dec 2015 20:52:23 +0000 (15:52 -0500)] 
meta-yocto-bsp: remove 3.14 and 3.19 bbappends

the 3.14 and 3.19 kernels have been removed from oe-core master, so
we drop the bbappens for the yocto reference BSPs.

(From meta-yocto rev: 9b392ef494f3fee9b85ee9e37ad700781e32e636)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agometa-yocto-bsp: Remove uvesafb (v86d) from generic x86 features
Jianxun Zhang [Tue, 15 Dec 2015 18:17:42 +0000 (10:17 -0800)] 
meta-yocto-bsp: Remove uvesafb (v86d) from generic x86 features

When uvesafb is automatically loaded during boot and FW doesn't
support legacy video bios and frame buffer, its user space helper
will throw error messages in kernel log:

[6.843790] uvesafb: Getting VBE info block failed (eax=0x4f00, err=1)
[6.843864] uvesafb: vbe_init() failed with -22
[6.843916] uvesafb: probe of uvesafb.0 failed with error -22

Assuming most x86 boards today don't really rely on this module, this
change simply removes it from the common feature list to get rid of
these harmless messages.

[YOCTO #6584]

(From meta-yocto rev: d58fc630b1114dbafa8342de7dcaef8e7d798848)

Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemu: add PACKAGECONFIG for Nettle crypto support
Ross Burton [Wed, 23 Dec 2015 21:22:24 +0000 (21:22 +0000)] 
qemu: add PACKAGECONFIG for Nettle crypto support

(From OE-Core rev: 0565377851bf73be39b09b06b2aa630f2225eee3)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest: support sets in devtool comparisons
Ross Burton [Wed, 23 Dec 2015 13:45:23 +0000 (13:45 +0000)] 
oeqa/selftest: support sets in devtool comparisons

The devtool and recipetool tests do literal string comparisons, but for some
fields the ordering could be irrelevant and potentially non-deterministic.  For
example, the recipetool_create_simple test started failing with:

AssertionError: 'GPLv2 Unknown' != 'Unknown GPLv2' : values for LICENSE do not match

The ordering of the LICENSE field isn't relevant.  So, if the expected value is
a set(), split the string into a set too and compare those.

(From OE-Core rev: dab1b0ad42f08eb547732e854ba28a4cf0a23107)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>