]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
8 years agotar: CVE-2016-6321
Sona Sarmadi [Fri, 24 Feb 2017 12:49:18 +0000 (13:49 +0100)] 
tar: CVE-2016-6321

Skip members whose names contain "..".

Reference:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-6321

Upstream patch:
http://git.savannah.gnu.org/cgit/tar.git/commit/?id=7340f67b9860ea0531c1450e5aa261c50f671

(From OE-Core rev: cfa2b5facd1aa6a2bac4cb04687e1a977c533934)

Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuildstats.bbclass: Avoid index exception in /proc/PID/io parsing
Pavel Modilaynen [Fri, 24 Feb 2017 10:22:20 +0000 (11:22 +0100)] 
buildstats.bbclass: Avoid index exception in /proc/PID/io parsing

There is some probability (depends on system load) to get empty
or line containing "0" as the last line while reading /proc/PID/io.
Avoid build failure by checking if line contains separator
":" before split.

(From OE-Core rev: b26feaf51af55f17fad79dbd53dd3ec0a37c38ff)

Signed-off-by: Pavel Modilaynen <pavelmn@axis.com>
Signed-off-by: Daniel Lublin <daniel@lublin.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowebkitgtk: update to 2.14.5
Alexander Kanavin [Fri, 24 Feb 2017 08:42:30 +0000 (10:42 +0200)] 
webkitgtk: update to 2.14.5

Remove a reference to WebKit/LICENSE, as the directory is not there anymore
(and the LICENSE file in it hasn't been moved somewhere else) - it was
a relic of webkit 1.x era.

(From OE-Core rev: 10331f42acfa5dc429198b7c025cc2360511e534)

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>
8 years agosystemtap: update to 3.1
Alexander Kanavin [Fri, 24 Feb 2017 16:02:03 +0000 (18:02 +0200)] 
systemtap: update to 3.1

Removed patches are in upstream.

Rebase monitor-option.patch and no-msgfmt-check.patch

Add support for python 3 probes
(this necessitates the 0001-Do-not-let-configure-write-a-python-location-into-th.patch
and the Add 0001-Install-python-modules-to-correct-library-dir.patch to
install python modules to correct destination).

Add perl to RDEPENDS to fix a QA warning about one of the installed files.

(From OE-Core rev: e3bccfba499565ea13f154a11dadcab48ef5e0ab)

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>
8 years agoltp: upgrade to 20170116
Dengke Du [Wed, 22 Feb 2017 10:04:50 +0000 (05:04 -0500)] 
ltp: upgrade to 20170116

1. Upgrade ltp from 20160126 to 20170116.

2. Delete some patches because these have been integrated in upstream.

0001-ltp-Don-t-link-against-libfl.patch
0006-sendfile-Use-off64_t-instead-of-__off64_t.patch
0007-replace-SIGCLD-with-SIGCHLD.patch
0009-Guard-error.h-with-__GLIBC__.patch
0012-fsstress.c-Replace-__int64_t-with-int64_t.patch
0013-include-fcntl.h-for-getting-O_-definitions.patch
0014-hyperthreading-Include-sys-types.h-for-pid_t-definit.patch
0015-mincore01-Rename-PAGESIZE-to-pagesize.patch
0016-ustat-Change-header-from-ustat.h-to-sys-ustat.h.patch
0017-replace-sigval_t-with-union-sigval.patch
0019-tomoyo-Replace-canonicalize_file_name-with-realpath.patch
0022-include-sys-types.h.patch
0029-trace_shed-Fix-build-with-musl.patch
0031-vma03-fix-page-size-offset-as-per-page-size-alignmen.patch
0032-regen.sh-Include-asm-unistd.h-explicitly.patch
0037-containers-netns_netlink-Avoid-segmentation-fault.patch
0038-run-posix-option-group-test-replace-CWD-qith-PWD.patch
0040-containers-userns05-use-unsigned-int-for-ns-id.patch

3. Add new patch based on Khem Raj's 0007-replace-SIGCLD-with-SIGCHLD.patch

0001-add-_GNU_SOURCE-to-pec_listener.c.patch

4. Add new patches fix building errors with musl:

0006-fix-PATH_MAX-undeclared-when-building-with-musl.patch
0007-fix-__WORDSIZE-undeclared-when-building-with-musl.patch
0009-fix-redefinition-of-struct-msgbuf-error-building-wit.patch

   Add new patch fix building errors, when the distro is poky-lsb

0012-fix-faccessat01.c-build-fails-with-security-flags.patch

5. Modify some patches because the upstream contains changes, those patches
   maybe failed when they apply to the new version of ltp.

0011-Rename-sigset-variable-to-sigset1.patch
0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch
0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch
0035-fix-test_proc_kill-hang.patch

6. Rename and modify this patch.

fcntl-fix-the-time-def-to-use-time_t.patch to
0039-fcntl-fix-the-time-def-to-use-time_t.patch

7. The new version of ltp add the checking for ksh and csh, we doesn't support
   ksh and csh in oe-core, so remove the checking files when the system executes
   do_install function.

(From OE-Core rev: 25c71d320198d41cf760dbea96840d352681dced)

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoed: update to 1.14.1
Alexander Kanavin [Wed, 22 Feb 2017 14:51:08 +0000 (16:51 +0200)] 
ed: update to 1.14.1

Revert to the upstream server, now that we can handle .lz files.
License checksum changes are due to copyright years.

(From OE-Core rev: 007c624781076264fab88cc355146ec68cdd15b4)

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>
8 years agolzip: add a recipe from meta-oe
Alexander Kanavin [Wed, 22 Feb 2017 14:51:07 +0000 (16:51 +0200)] 
lzip: add a recipe from meta-oe

ed tarballs are now available only in .lz format, which saves them
an amazing 30 kilobytes over gz.

(From OE-Core rev: ad2afeab2128835a56ed20fef97b77041149105a)

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>
8 years agoglib-2.0/glib.inc: If 'charset.alias' exists drop it
Nathan Rossi [Wed, 22 Feb 2017 05:58:57 +0000 (15:58 +1000)] 
glib-2.0/glib.inc: If 'charset.alias' exists drop it

Delete the 'charset.alias' file during the do_install task if it exists.
This file is not shipped in any packages and on the targets that it is
generated (musl and mingw32) it is undesired.

(From OE-Core rev: ba69323b58071593fa917bf902314eb6eace25a8)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglib-2.0/glib.inc: Only apply MLPREFIX renaming to class-target
Nathan Rossi [Wed, 22 Feb 2017 05:58:57 +0000 (15:58 +1000)] 
glib-2.0/glib.inc: Only apply MLPREFIX renaming to class-target

When renaming the 'gio-querymodules' binary to prefix with the current
MLPREFIX, only do this for target packages where the MLPREFIX makes
sense. This skips renaming for nativesdk targets which have MLPREFIX set
to 'nativesdk-'.

(From OE-Core rev: a84ac3667d8b216164b80c88866325908c5ad98f)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobtrfs-tools: update to 4.9.1
Alexander Kanavin [Wed, 22 Feb 2017 14:51:05 +0000 (16:51 +0200)] 
btrfs-tools: update to 4.9.1

(From OE-Core rev: 05cc95e266d09e8af8e2bfab851d8ef8dc74fac3)

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>
8 years agoslang: 2.3.1 -> 2.3.1a
Robert Yang [Wed, 22 Feb 2017 01:44:28 +0000 (17:44 -0800)] 
slang: 2.3.1 -> 2.3.1a

(From OE-Core rev: 8fd956d4706ee115b03b02a91c7e761576b42d0a)

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>
8 years agolicense.bbclass: run chown only under pseudo
Markus Lehtonen [Wed, 22 Feb 2017 15:26:50 +0000 (17:26 +0200)] 
license.bbclass: run chown only under pseudo

The copy_license_files() function in license.bbclass is called in two
different contexts. First, it is run as part of the do_populate_lic
task. In addition, it is called from do_package task when
LICENSE_CREATE_PACKAGE is enabled. The function has code that changes
the owner of license files to root which is meant only to happend in the
latter case - i.e. under do_package which is run under pseudo.
Previously, the code was blindly always running chown and just ignored
errors that happened when running from do_populate_lic. This patch
changes it to be more intelligent, only doing chown when running under
pseudo.

[YOCTO #10897]

(From OE-Core rev: 19118a1408f32bb24d95ab3d7d7faed58cbae900)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoboost: update to 1.63.0
Alexander Kanavin [Wed, 22 Feb 2017 14:51:04 +0000 (16:51 +0200)] 
boost: update to 1.63.0

Drop backported 0002-boost-test-execution_monitor.hpp-fix-mips-soft-float.patch
Rebase consider-hardfp.patch to 0001-When-using-soft-float-on-ARM-we-should-not-expect-th.patch

(From OE-Core rev: ef603f41b5df4772bb598ec9d389dd5f858592af)

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>
8 years agokconfig-frontends: fetch source from git
Alexander Kanavin [Wed, 22 Feb 2017 14:50:58 +0000 (16:50 +0200)] 
kconfig-frontends: fetch source from git

This is where development happens; tarballs are no longer produced.

(From OE-Core rev: ac5c08ea00816852a712a8d7025bce7e865460ec)

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>
8 years agoglib-2.0: Upgrade 2.50.2 -> 2.50.3
Jussi Kukkonen [Wed, 22 Feb 2017 13:02:31 +0000 (15:02 +0200)] 
glib-2.0: Upgrade 2.50.2 -> 2.50.3

Tiny bug fix release.

(From OE-Core rev: 41f44be8e35f73e78cf0c7a025cb8dc56c3ac258)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agounzip: CVE-2014-9913 CVE-2016-9844
Zhixiong Chi [Wed, 22 Feb 2017 07:14:42 +0000 (15:14 +0800)] 
unzip: CVE-2014-9913 CVE-2016-9844

Backport the patches for CVE-2014-9913 CVE-2016-9844

CVE-2016-9844:
Buffer overflow in the zi_short function in zipinfo.c in Info-Zip
UnZip 6.0 allows remote attackers to cause a denial of service
(crash) via a large compression method value in the central
directory file header.
CVE-2014-9913:
Buffer overflow in the list_files function in list.c in Info-Zip
UnZip 6.0 allows remote attackers to cause a denial of service
(crash) via vectors related to the compression method.

Patches come from:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/archivers/unzip/  or
https://release.debian.org/proposed-updates/stable_diffs/unzip_6.0-16+deb8u3.debdiff

Bug-Debian: https://bugs.debian.org/847486
Bug-Ubuntu: https://launchpad.net/bugs/1643750

(LOCAL REV: NOT UPSTREAM) --send to oe-core on 20170222

(From OE-Core rev: fc386ed4afb76bd3e5a3afff54d7dc8dde14fe9c)

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>
8 years agonss: update to 3.28.1
Alexander Kanavin [Wed, 22 Feb 2017 14:51:18 +0000 (16:51 +0200)] 
nss: update to 3.28.1

Rebase nss-fix-support-cross-compiling.patch

(From OE-Core rev: f65baebafc3d1389c5e5000c6cd921b7569123a1)

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>
8 years agolibwebp: update to 0.6.0
Alexander Kanavin [Wed, 22 Feb 2017 14:51:17 +0000 (16:51 +0200)] 
libwebp: update to 0.6.0

(From OE-Core rev: 6276f70d6925d8e72078e1974e77dc6433aab2dc)

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>
8 years agolibnl: update to 3.2.29
Alexander Kanavin [Wed, 22 Feb 2017 14:51:16 +0000 (16:51 +0200)] 
libnl: update to 3.2.29

Dropped patches are all backports.

(From OE-Core rev: 57ff86881cb8e303c6a177b0ec8e8930dfb3b0a3)

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>
8 years agokbd: update to 2.0.4
Alexander Kanavin [Wed, 22 Feb 2017 14:51:14 +0000 (16:51 +0200)] 
kbd: update to 2.0.4

(From OE-Core rev: 40b19c1710aff449b8c7cf93f2b635b44fa85e7d)

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>
8 years agoiso-codes: update to 3.74
Alexander Kanavin [Wed, 22 Feb 2017 14:51:13 +0000 (16:51 +0200)] 
iso-codes: update to 3.74

(From OE-Core rev: 4f0f96fe0115c44ba0c28d6d1d4da9071a0f3733)

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>
8 years agognutls: update to 3.5.9
Alexander Kanavin [Wed, 22 Feb 2017 14:51:12 +0000 (16:51 +0200)] 
gnutls: update to 3.5.9

Drop 0001-Do-not-add-cli-args.h-to-cli-args.stamp-Makefile-tar.patch, it's merged upstream.
Rebase 0001-configure.ac-fix-sed-command.patch.

(From OE-Core rev: bed7c85e9ed77ae961c4588d4f7eca6b20d2f1e8)

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>
8 years agoffmpeg: update to 3.2.4
Alexander Kanavin [Wed, 22 Feb 2017 14:51:11 +0000 (16:51 +0200)] 
ffmpeg: update to 3.2.4

(From OE-Core rev: 453681bd6b2221f2adc681c9774b30d2237b3a73)

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>
8 years agobash-completion: update to 2.5
Alexander Kanavin [Wed, 22 Feb 2017 14:51:03 +0000 (16:51 +0200)] 
bash-completion: update to 2.5

(From OE-Core rev: e61e40c4d6cf1dd84065c47066696b1aaace78fe)

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>
8 years agobabeltrace: update to 1.5.2
Alexander Kanavin [Wed, 22 Feb 2017 14:51:02 +0000 (16:51 +0200)] 
babeltrace: update to 1.5.2

(From OE-Core rev: 219915ceff629337bdab113db14f1efc86943d64)

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>
8 years agolibva: fix upstream version check
Alexander Kanavin [Wed, 22 Feb 2017 14:51:01 +0000 (16:51 +0200)] 
libva: fix upstream version check

(From OE-Core rev: 41b8c42a9089ccfbb7a53ff7ea80a282d19fea07)

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>
8 years agolibepoxy: fix upstream version check
Alexander Kanavin [Wed, 22 Feb 2017 14:51:00 +0000 (16:51 +0200)] 
libepoxy: fix upstream version check

(From OE-Core rev: e5c5db953ad29d33a9916ceccb5da7851d67ea11)

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>
8 years agosysprof: inherit upstream-version-is-even
Alexander Kanavin [Wed, 22 Feb 2017 14:50:59 +0000 (16:50 +0200)] 
sysprof: inherit upstream-version-is-even

It is a gnome project, and so is subject to same versioning convention.

(From OE-Core rev: 2a56cff903e469d262930bfe622bcf830d7c34d3)

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>
8 years agozlib: fix upstream version check
Alexander Kanavin [Wed, 22 Feb 2017 14:50:57 +0000 (16:50 +0200)] 
zlib: fix upstream version check

(From OE-Core rev: a684148e9e0f5473078f2d087e2489ab3352aeac)

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>
8 years agoruby: fix upstream version check
Alexander Kanavin [Wed, 22 Feb 2017 14:50:56 +0000 (16:50 +0200)] 
ruby: fix upstream version check

(From OE-Core rev: 0299731f9c11fda2e0a17600f758e0d7ff31fbbe)

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>
8 years agoinitscripts/sysfs.sh: mount configfs if present
Mike Looijmans [Wed, 22 Feb 2017 14:32:09 +0000 (15:32 +0100)] 
initscripts/sysfs.sh: mount configfs if present

configfs is another kernel virtual file system that should be mounted
if configured, so if it's configured into the kernel, mount it. It is
used to configure e.g. USB gadget mode and devicetree overlays.

(From OE-Core rev: 4f52130475d026c32f0380d301f56f6fa3df7ac9)

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: fix ineffective include conf/target/${TARGET_SYS}.conf
Andre McCurdy [Wed, 22 Feb 2017 10:21:42 +0000 (02:21 -0800)] 
bitbake.conf: fix ineffective include conf/target/${TARGET_SYS}.conf

TARGET_SYS is defined in terms of TARGET_ARCH, so it's not valid
until after TUNE_ARCH has been set by the machine config. The
original order of includes resulted in an attempt to include
non-existent files such as:

  conf/target/INVALID-oe-linux.conf

(From OE-Core rev: b33e644da0d8b6edb97257b16430b545c289883a)

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>
8 years agopython-pexpect: BBCLASSEXTEND to native
Ming Liu [Wed, 22 Feb 2017 08:26:49 +0000 (09:26 +0100)] 
python-pexpect: BBCLASSEXTEND to native

Some developers might need it.

(From OE-Core rev: 4aca17e945c51c9ca1fff61c0ef7b512413dea81)

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-ptyprocess: BBCLASSEXTEND to native
Ming Liu [Wed, 22 Feb 2017 08:26:09 +0000 (09:26 +0100)] 
python-ptyprocess: BBCLASSEXTEND to native

Some developers might need it.

(From OE-Core rev: 1b7421307e835904ebde17e8eeb9f2c04e0c758c)

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest: Avoid sstate corruption by calling cleansstate
Mariano Lopez [Tue, 21 Feb 2017 14:33:07 +0000 (14:33 +0000)] 
selftest: Avoid sstate corruption by calling cleansstate

Currently selftest doesn't use sstates because some tests
clean sstate cache; using sstates would give a performance
boost instead of building everything from scratch.

With this sstates are not corrupted using different methods
depending on tests:

devtool: These tests needed to delete the cache so SSTATE_DIR
as SSTATE_MIRRORS and set a temporal SSTATE_DIR.

sstatetests: This module already used a temporal SSTATE_DIR, so
just set up the SSTATE_MIRRORS.

Rest: Removed cleansstate, some of them required to force a
certain task, others were just removed or changed for another
task.

[YOCTO #10929]

(From OE-Core rev: 62c61087a10cc3b26fbff32c9e2efd1704a39724)

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>
8 years agocurl: upgrade to 7.53.0
Oleksandr Kravchuk [Thu, 23 Feb 2017 12:33:34 +0000 (13:33 +0100)] 
curl: upgrade to 7.53.0

(From OE-Core rev: 8889426d822fb403db1c2263e88ed7608202aafa)

Signed-off-by: Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oe/gpg_sign: fix rpm signing with gpg > 2.1
Markus Lehtonen [Thu, 23 Feb 2017 10:24:20 +0000 (12:24 +0200)] 
lib/oe/gpg_sign: fix rpm signing with gpg > 2.1

We need to check the gpg version and alter its command line options
accordingly.

[YOCTO #11054]

(From OE-Core rev: 44a44b7e582a5a654baf21829d168568481c13d9)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oe/gpg_sign: make gpg version a property of the signer
Markus Lehtonen [Thu, 23 Feb 2017 10:24:19 +0000 (12:24 +0200)] 
lib/oe/gpg_sign: make gpg version a property of the signer

(From OE-Core rev: a00a362e3dc18ba04230cbbd6f91264e5d76f40d)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorpm: support customizing gpg command line
Markus Lehtonen [Thu, 23 Feb 2017 10:24:18 +0000 (12:24 +0200)] 
rpm: support customizing gpg command line

Add a new %_gpg_sign_cmd_extra_args macro that allows customizing the
gpg options used when signing rpm packages. This is needed to be able to
sign packages with gpg 2.1 which requires "--pinentry-mode loopback" to
allow non-interactive signing.

[YOCTO #11054]

(From OE-Core rev: 373a7146d596d27376a003014df0d06f3df5348d)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oe/gpg_sign: sign rpm packages in chunks of 100
Markus Lehtonen [Thu, 23 Feb 2017 10:23:50 +0000 (12:23 +0200)] 
lib/oe/gpg_sign: sign rpm packages in chunks of 100

Split the file list into chunks in order to avoid
"OSError: [Errno 7] Argument list too long"

This would happend when a package has huge amount of subpackages, e.g.
glibc-locale.

[YOCTO #11069]

(From OE-Core rev: 874f5016fd4dc76bc867b68470297fe59e78a9e6)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemu: fix build with glibc-2.25
Martin Jansa [Tue, 21 Feb 2017 18:55:26 +0000 (19:55 +0100)] 
qemu: fix build with glibc-2.25

(From OE-Core rev: c0ab96a7b7d2c41167e2ad79be76f6eec2b6ebb5)

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>
8 years agoe2fsprogs: Fix build with glibc-2.25
Martin Jansa [Tue, 21 Feb 2017 18:55:27 +0000 (19:55 +0100)] 
e2fsprogs: Fix build with glibc-2.25

(From OE-Core rev: 1e8fc70596e27edca428dd78b8095e6b76aa8e58)

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>
8 years agosyslinux: fix build with glibc-2.25
Martin Jansa [Wed, 22 Feb 2017 20:02:32 +0000 (21:02 +0100)] 
syslinux: fix build with glibc-2.25

(From OE-Core rev: 383d1398b27705ee94523068fae2db961d365652)

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>
8 years agoparted: fix build with glibc-2.25
Martin Jansa [Wed, 22 Feb 2017 20:02:31 +0000 (21:02 +0100)] 
parted: fix build with glibc-2.25

(From OE-Core rev: 792568406f49be7a83cf7f69af3a17abd46adc7c)

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>
8 years agox264: Upgrade to stable branch head
Jussi Kukkonen [Thu, 23 Feb 2017 12:47:19 +0000 (14:47 +0200)] 
x264: Upgrade to stable branch head

Small number of bug fixes and x86 optimizations.

(From OE-Core rev: a8aff2a0e77c401fee5a94a906ab355814505157)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogst-player: Upgrade to recent git revision
Jussi Kukkonen [Thu, 23 Feb 2017 12:47:18 +0000 (14:47 +0200)] 
gst-player: Upgrade to recent git revision

The update contains a small number of bug fixes. Removed one
upstreamed patch.

gst-player does not have releases: this is the current git master.

(From OE-Core rev: 72889d45c610c4895c6a2f439439755ef4853fab)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxf86-video-intel: Upgrade to recent git revision
Jussi Kukkonen [Thu, 23 Feb 2017 12:47:17 +0000 (14:47 +0200)] 
xf86-video-intel: Upgrade to recent git revision

This includes a number of small fixes and some new PCI IDs, no
major changes.

For background, xf86-video-intel does not get releases so
we have to follow git.

(From OE-Core rev: 7dd5a74df4b19c30456f4e7e844856c5e9cbaa7f)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoepiphany: update to 3.22.6
Alexander Kanavin [Wed, 22 Feb 2017 14:51:10 +0000 (16:51 +0200)] 
epiphany: update to 3.22.6

(From OE-Core rev: a093bad83994bcdb95e713e2d7a870ea9420d71b)

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>
8 years agogdk-pixbuf: Upgrade 2.36.1 -> 2.36.5
Jussi Kukkonen [Wed, 22 Feb 2017 13:02:36 +0000 (15:02 +0200)] 
gdk-pixbuf: Upgrade 2.36.1 -> 2.36.5

Mostly bug fix releases.

Generating the thumbnailer metadata now requires running yet another
tool at build time. This is broken for cross-compiling, add a
work-around.

Add gdk-pixbuf-native to DEPENDS to make the above workaround possible:
We already build gdk-pixbuf-native anyway so this is not a huge deal.

(From OE-Core rev: 645e14bb39d10a50648daaf7a015f2d75bf357db)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomenu-cache: Upgrade 1.0.1 -> 1.0.2
Jussi Kukkonen [Wed, 22 Feb 2017 13:02:35 +0000 (15:02 +0200)] 
menu-cache: Upgrade 1.0.1 -> 1.0.2

Small bug fix release.

(From OE-Core rev: ee1beb8c321b5aa9a26e7b5a9df9ceed83ca9056)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibdrm: Upgrade 2.4.74 -> 2.4.75
Jussi Kukkonen [Wed, 22 Feb 2017 13:02:34 +0000 (15:02 +0200)] 
libdrm: Upgrade 2.4.74 -> 2.4.75

* Remove udev from depends (it's not actually used).
* Rebase a patch

(From OE-Core rev: a6ab6e6157e8045155639682881de4184e72704a)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibgudev: Upgrade 230 -> 231
Jussi Kukkonen [Wed, 22 Feb 2017 13:02:33 +0000 (15:02 +0200)] 
libgudev: Upgrade 230 -> 231

Very small bug fix release.

Use --disable-umockdev: Testing is great but a single regression test
isn't really worth a new build dependency (that isn't in oe-core yet).

(From OE-Core rev: 942946a18ec2e644a297e45787a3947f3229a783)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogtk+3: Upgrade 3.22.7 -> 3.22.8
Jussi Kukkonen [Wed, 22 Feb 2017 13:02:32 +0000 (15:02 +0200)] 
gtk+3: Upgrade 3.22.7 -> 3.22.8

Bug fix release.

(From OE-Core rev: 62bf29691608794f2b7f810d020982b492c68358)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosudo: upgrade to 1.8.19p2
Chen Qi [Wed, 22 Feb 2017 03:13:44 +0000 (11:13 +0800)] 
sudo: upgrade to 1.8.19p2

The license checksum for doc/LICENSE is changed. It's a small change.
'2015' is changed to '2017'. Nothing else is changed. So the licenses
remain the same.

(From OE-Core rev: a14b935461d231429b6dc3bd0fdc34142b48fe86)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofile: 5.29 -> 5.30
Robert Yang [Wed, 22 Feb 2017 01:44:30 +0000 (17:44 -0800)] 
file: 5.29 -> 5.30

(From OE-Core rev: 83a822e7b7810a9a59f0ad0efe6c827b89878b61)

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>
8 years agoguile: 2.0.13 -> 2.0.14
Robert Yang [Wed, 22 Feb 2017 01:44:27 +0000 (17:44 -0800)] 
guile: 2.0.13 -> 2.0.14

(From OE-Core rev: 335265b60c9c908bed323ffd8d280857001620a3)

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>
8 years agostrace: 4.15 -> 4.16
Robert Yang [Wed, 22 Feb 2017 01:44:26 +0000 (17:44 -0800)] 
strace: 4.15 -> 4.16

* The license cheksum is changed becuase a new line is added:
  Copyright (C) 2001-2017 The strace developers.

* Remove use-asm-sgidefs.h.patch, it doesn't check sgidefs.h any more, it was
  use for building on mips, I checked it built well.

* Update Makefile-ptest.patch and disable-git-version-gen.patch.

(From OE-Core rev: 204e0e9916f6acfa02d7a49bf5e33678abb0578d)

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>
8 years agodpkg: Upgrade to 1.18.10
Aníbal Limón [Tue, 21 Feb 2017 18:34:52 +0000 (12:34 -0600)] 
dpkg: Upgrade to 1.18.10

Add a patch to don't use --clamp-time when call tar because
isn't supported in tar hosts versions. See
0007-dpkg-deb-build.c-Remove-usage-of-clamp-mtime-in-tar.patch
patch for details.

Rebased patch:

-  0003-Our-pre-postinsts-expect-D-to-be-set-when-running-in.patch

(From OE-Core rev: 4c23b8ce417551f2ee252426158fea272b8a9dfd)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoperl: Upgrade to 5.24.1
Aníbal Limón [Tue, 21 Feb 2017 18:34:51 +0000 (12:34 -0600)] 
perl: Upgrade to 5.24.1

Upgrade config.sh to match new version.

Removed CVE patches already in upstream:

- perl-fix-CVE-2016-1238.patch
- perl-fix-CVE-2016-6185.patch

Update customized.dat patch to match new hashes.

(From OE-Core rev: f3f1614b87aa5c55653fe8f3247fb094baf98087)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoRevert "flex: upgrade to 2.6.2"
Trevor Woerner [Fri, 10 Feb 2017 20:13:08 +0000 (15:13 -0500)] 
Revert "flex: upgrade to 2.6.2"

This reverts commit 3632abd01abb8dfff230e18f828af705da488f97.

Multiple people have expressed issues with flex-2.6.2; personally I had
problems compiling libsepol from meta-selinux (for libselinux). I tried
upgrading to flex-2.6.3, but that caused binutils-cross_2.27 to fail.

The simplest for now is to downgrade to flex-2.6.0.

(From OE-Core rev: b45776bbdafa6f6afe815714ac329494ad57e644)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosqlite3: upgrade to 3.17.0
Maxin B. John [Tue, 21 Feb 2017 11:55:06 +0000 (13:55 +0200)] 
sqlite3: upgrade to 3.17.0

3.16.2 -> 3.17.0

* Approximately 25% better performance from the R-Tree extension.
* Other performance improvements. Uses about 6.5% fewer CPU cycles.

(From OE-Core rev: 2ecc3dc9cb11feb6804ec08d1b7b1470f01aadbe)

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>
8 years agopython: Upgrade both python and python-native to 2.7.13
Alejandro Hernandez [Tue, 24 Jan 2017 06:55:06 +0000 (00:55 -0600)] 
python: Upgrade both python and python-native to 2.7.13

Rebased:
- python-native/multilib.patch
- python/multilib.patch
- python/01-use-proper-tools-for-cross-build.patch

Upstream:
- CVE-2016-1000110

(From OE-Core rev: 2eaadc5464e3340359b626026d80afb6bc01d3f1)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-devsrc: remove symlink source
Robert Yang [Tue, 29 Nov 2016 08:54:26 +0000 (00:54 -0800)] 
kernel-devsrc: remove symlink source

Fixed:
$ rpm -qplv tmp/deploy/rpm/qemuppc/kernel-devsrc-1.0-r0.qemuppc.rpm | grep kernel/source
/usr/src/kernel/source -> /buildarea/lyang1/test_yocto/tmp/work/qemuppc-poky-linux/kernel-devsrc/1.0-r0/image/usr/src/kernel

It is generated by kernel's "make clean _mrproper_scripts", the
kernel-devsrc includeds full sources, this symlink is not needed, and
the path is invalid on target, so remove it.

(From OE-Core rev: 65804d1239e626bbe1a4b5772f2464db21163713)

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>
8 years agoscripts/lib/devtool/deploy.py: add --port/-P argument for target connection
Tim Orling [Sun, 19 Feb 2017 08:08:18 +0000 (00:08 -0800)] 
scripts/lib/devtool/deploy.py: add --port/-P argument for target connection

Enable using, e.g. host port 2222 for connection to qemu target.
Defaults to 22 for standard ssh/scp port.

[YOCTO #11079]

(From OE-Core rev: a2bfa2cc9ee19f617f7d3b6447896e45eb855d2e)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/license.bbclass: Don't copy unneeded licenses by package
Aníbal Limón [Thu, 16 Feb 2017 16:45:32 +0000 (10:45 -0600)] 
classes/license.bbclass: Don't copy unneeded licenses by package

Usually a recipe only provides one package but when provides more
than one package the LICENSE variable per package (i.e. linux-firmware)
needs to take into account to avoid unnecesary copy of licenses into
packages.

The patch validates if LICENSE exists in package LICENSES in order to
don't copy unneeded licenses.

As result of this patch some packages will not contain licenses there
are not into LICENSE variable.

For example:

acl contains GPLv2+ instead of GPLv2+ and LGPLv2.1+
libacl contains LGPLv2+ instead of GPLv2+ and LGPLv2.1+

This behaviour is declared on the acl recipe as:

SUMMARY = "Utilities for managing POSIX Access Control Lists"
HOMEPAGE = "http://savannah.nongnu.org/projects/acl/"
SECTION = "libs"

LICENSE = "LGPLv2.1+ & GPLv2+"
LICENSE_${PN} = "GPLv2+"
LICENSE_lib${BPN} = "LGPLv2.1+"

[YOCTO #10325]

(From OE-Core rev: 8c8c8edea9c9015e21f47f3d10e6f45446a2823b)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolicense.bbclass: Don't copy again LICENSE already handled as no-generic
Aníbal Limón [Thu, 16 Feb 2017 16:45:31 +0000 (10:45 -0600)] 
license.bbclass: Don't copy again LICENSE already handled as no-generic

The NO_GENERIC_LICENSE mapping was added [1] to enable copy LICENSES
from upstream source code into recipe licenses, previously that only
common-licenses was processed.

This result on copy twice the NO_GENERIC_LICENSE specified because there
is a mapping between license in LIC_CHKSUM and NO_GENERIC_LICENSE.

In order to avoid double copy one as generic_ and other as LICENSE. keep
track of licenses already copied.

For linux-firmware the result will be only generic_ licenses into
common-licenses.

[YOCTO #10325]

[1] http://lists.openembedded.org/pipermail/openembedded-core/2015-April/104222.html

(From OE-Core rev: 95b9e2cd26c7cae265ff52af90480b75251f00e5)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bitbake-user-manual: Added "path_spec" parameter to SVN Fetcher
Scott Rifenbark [Mon, 20 Feb 2017 18:30:58 +0000 (10:30 -0800)] 
bitbake: bitbake-user-manual: Added "path_spec" parameter to SVN Fetcher

Fixes [YOCTO #10405]

The section on the SVN Fetcher was missing information on the
"path_spec" option.  I added this option and also updated the
examples at the bottom of the section to include that parameter.
Also, made the other two examples consistent.
I also removed the "date" parameter.

Also, updated the "protocol" parameter as well as the "modify"
parameter.  For "modify" I removed the reference to "rsh". I
applied a small wording change to the "protocol" parameter.

Finally, I added a new "ssh" parameter.

(Bitbake rev: 3ce6169afa646ef2b847e5fbabfe0191c93928b7)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bitbake-user-manual: Rewrite dependency dot file generation
Scott Rifenbark [Mon, 23 Jan 2017 23:44:19 +0000 (15:44 -0800)] 
bitbake: bitbake-user-manual: Rewrite dependency dot file generation

The package-depends.dot and pn-depends.dot files are inaccurate,
missing out key dependencies such those made via the [depends]
flags. As such they can be misleading to the user.

They mainly exist for historical reasons, coming from a time
before we had task based execution.

This commit removes the two dated file formats and replaces
them with a recipe-depends.dot which is a flattened version
of task-depends.dot.

The old format files are removed if present so that the user
can't get confused about why data might not match between files.

The code is also rewritten to use 'with f: f.write()' syntax as
is more commonly used now. Also update the docs to match the change.

(Bitbake rev: f82537d27f2a5bf9d576aa841593db9ec0985ea8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorecipes: Make use of the new bb.utils.filter() function
Peter Kjellerstedt [Mon, 27 Feb 2017 13:02:50 +0000 (14:02 +0100)] 
recipes: Make use of the new bb.utils.filter() function

(From OE-Core rev: 0a1427bf9aeeda6bee2cc0af8da4ea5fd90aef6f)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosanity: Require bitbake 1.33.2
Richard Purdie [Fri, 24 Feb 2017 21:18:01 +0000 (13:18 -0800)] 
sanity: Require bitbake 1.33.2

We want to update to a version with the bb.utils.filter() function.

(From OE-Core rev: 6db26339522a22c3e3c13287ea0c9daf40c7c15e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel, license, sstate, rootfs.py: Remove deploy directory README
Mike Crowe [Tue, 14 Feb 2017 14:20:02 +0000 (14:20 +0000)] 
kernel, license, sstate, rootfs.py: Remove deploy directory README

It isn't clear that the README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
file in the deploy directory warrants the complexity it brings elsewhere.
Let's just remove it entirely.

In particular, if two do_image_complete tasks run in parallel they risk
both trying to put their image into ${DEPLOY_DIR_IMAGE} at the same time.
Both will contain a README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
file. In theory this should be safe because "cp -alf" will just cause one
to overwrite the other. Unfortunately, coreutils cp also has a race[1]
which means that if one copy creates the file at just the wrong point the
other will fail with:

 cp: cannot create hard link â€˜..../tmp-glibc/deploy/images/pantera/README_-_DO_NOT_DELETE_FILES_IN_THIS_D.txt’ to
+‘..../tmp-glibc/work/rage_against-oe-linux-gnueabi/my-own-image/1.0-r0/deploy-my-own-image-complete/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt’: File exists

[1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25680

(From OE-Core rev: 71e9e88847d7000781642ea6187ebd8f40dfdcfe)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoovmf: increase path length limit
Patrick Ohly [Thu, 23 Feb 2017 17:38:55 +0000 (18:38 +0100)] 
ovmf: increase path length limit

The VfrCompile tool has a hard-coded maximum length for path names
which turned out to be too small by around 20 characters in the
Yocto autobuilder setup. Increasing the maximum by a factor of 4
is relatively easy and makes the problem less likely.

(From OE-Core rev: ea296ab42a7a65055657b950d8248d94f0ac56f1)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoovmf: remove BGRT patch
Patrick Ohly [Tue, 10 Jan 2017 15:40:57 +0000 (16:40 +0100)] 
ovmf: remove BGRT patch

This patch was added to meta-luv for kernel testing purposes and
probably is not relevant for OE-core.

(From OE-Core rev: 240e96e6196c32ddabb0c1aff3ee83458c98a9bd)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoovmf: build image which enrolls standard keys
Patrick Ohly [Wed, 21 Dec 2016 08:18:05 +0000 (09:18 +0100)] 
ovmf: build image which enrolls standard keys

When booting a qemu virtual machine with ovmf.secboot, it comes up
with no keys installed and thus Secure Boot disabled. To lock down
the machine like a typical PC, one has to enroll the same keys
that PC vendors normally install, i.e. the ones from Microsoft.

This can be done manually (see
https://wiki.ubuntu.com/SecurityTeam/SecureBoot and
https://github.com/tianocore-docs/Docs/raw/master/White_Papers/A_Tour_Beyond_BIOS_into_UEFI_Secure_Boot_White_Paper.pdf) or automatically with the EnrollDefaultKeys.efi helper
from the Fedora ovmf rpm.

To use this with qemu:
$ bitbake ovmf-shell-image
...
$ runqemu serial nographic qemux86 ovmf-shell-image wic ovmf.secboot
...
UEFI Interactive Shell v2.1
EDK II
UEFI v2.60 (EDK II, 0x00010000)
Mapping table
      FS0: Alias(s):HD2b:;BLK4:
          PciRoot(0x0)/Pci(0x5,0x0)/HD(1,GPT,06AEF759-3982-4AF6-B517-70BA6304FC1C,0x800,0x566C)
     BLK0: Alias(s):
          PciRoot(0x0)/Pci(0x1,0x0)/Floppy(0x0)
     BLK1: Alias(s):
          PciRoot(0x0)/Pci(0x1,0x0)/Floppy(0x1)
     BLK2: Alias(s):
          PciRoot(0x0)/Pci(0x1,0x1)/Ata(0x0)
     BLK3: Alias(s):
          PciRoot(0x0)/Pci(0x5,0x0)

Press ESC in 1 seconds to skip startup.nsh or any other key to continue.
Shell> fs0:EnrollDefaultKeys.efi
info: SetupMode=1 SecureBoot=0 SecureBootEnable=0 CustomMode=0 VendorKeys=1
info: SetupMode=0 SecureBoot=1 SecureBootEnable=1 CustomMode=0 VendorKeys=0
info: success
Shell> reset

Remember that this will modify
deploy/images/qemux86/ovmf.secboot.qcow2, so make a copy and use the
full path of that copy instead of the "ovmf" argument if needed.

The ovmf-shell-image contains an EFI shell, which is what got started
here directly. After enrolling the keys, Secure Boot is active and the
same image cannot be booted anymore, so the BIOS goes through the
normal boot targets (including network boot, which can take a while to
time out), and ends up in the internal EFI shell. Trying to invoke
bootia32.efi (the shell from the image) or EnrollDefaultKeys.efi then
fails:
Shell> bootia32.efi
Command Error Status: Security Violation

The main purpose at the moment is to test that Secure Boot enforcement
really works. If we had a way to sign generated images, that part could
also be tested by booting in a locked down qemu instance.

0007-OvmfPkg-EnrollDefaultKeys-application-for-enrolling-.patch is
from
https://src.fedoraproject.org/cgit/rpms/edk2.git/tree/0007-OvmfPkg-EnrollDefaultKeys-application-for-enrolling-.patch?id=b1781931894bf2057464e634beed68b1e3218c9e
with one line changed to fix
https://bugzilla.redhat.com/show_bug.cgi?id=132502:
"EFI_STATUS Status = EFI_SUCCESS;" in EnrollListOfX509Certs() lacked
the initializer.

(From OE-Core rev: 1913ace7d0898b5a23a2dbdc574ab1d8648927c5)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: support UEFI with OVMF firmware
Patrick Ohly [Fri, 16 Dec 2016 14:18:12 +0000 (15:18 +0100)] 
runqemu: support UEFI with OVMF firmware

In the simplest case, "runqemu qemux86 <some-image> qcow2 ovmf" for an
EFI-enabled image in the qcow2 format will locate the ovmf.qcow2
firmware file deployed by the ovmf recipe in the image deploy
directory, override the graphics hardware with "-vga std" because that
is all that OVMF supports, and boot with UEFI enabled.

ovmf is not built by default. Either do it explicitly ("bitbake ovmf")
or make it a part of the normal build
("MACHINE_ESSENTIAL_EXTRA_RDEPENDS_append = ' ovmf'").

The firmware file is activated as a flash drive instead of using the
qemu BIOS parameters, because that is the recommended method
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764918#47) as it
allows storing UEFI variables in the file.

Instead of just "ovmf", a full path to an existing file can also be
used, just as with the rootfs. That may be useful when making a
permanent copy of the virtual machine data files.

It is possible to specify "ovmf*" parameters more than once, then
each parameter creates a separate flash drive. This way it is possible
to use separate flash drives for firmware code and variables:
$ runqemu qemux86 <some-image> qcow2 ovmf.code ovmf.vars"

Note that rebuilding ovmf will overwrite the ovmf.vars.qcow2 file in
the image deploy directory. So when the goal is to update the firmware
while keeping variables, make a copy of the variable file and use
that:
$ mkdir my-machine
$ cp tmp/deploy/images/qemux86/ovmf.vars.qcow2 my-machine/
$ runqemu qemux86 <some-image> qcow2 ovmf.code my-machine/ovmf.vars.qcow2

When Secure Boot was enabled in ovmf, one can pick that instead of
the non-Secure-Boot enabled ovmf.code:
$ runqemu qemux86 <some-image> qcow2 ovmf.secboot.code my-machine/ovmf.vars.qcow2

(From OE-Core rev: b91fc0893651b9e3069893e36439de0b4e70ad13)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: also accept -image suffix for rootfs parameter
Patrick Ohly [Tue, 10 Jan 2017 11:11:21 +0000 (12:11 +0100)] 
runqemu: also accept -image suffix for rootfs parameter

The magic detection of the rootfs parameter only worked for image
recipes which embedd the "image" string in the middle, as in
"core-image-minimal".

Sometimes it is more natural to call an image "something-image". To
get such an image detected by runqemu, "-image" at the end of a
parameter must also cause that parameter to be treated as the rootfs
parameter.

Inside the image directory, "something-image" has an -<arch> suffix
and thus no change is needed for those usages of
re.search('-image-'). However, while at it also enhance those string
searches a bit (no need for re; any()+map() a bit closer to the
intended logic).

(From OE-Core rev: ca0fad3ad9d75d4198388b2a3133326267fc58db)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: fix undefined variable reference in check_arg_path()
Patrick Ohly [Tue, 10 Jan 2017 11:46:58 +0000 (12:46 +0100)] 
runqemu: fix undefined variable reference in check_arg_path()

'arg' isn't defined, the right name there is 'p'.

This fixes a rather obscure error message when that code path
ends up being taken:

$ runqemu some/existing-file-name
runqemu - ERROR - name 'arg' is not defined
runqemu - ERROR - Try 'runqemu help' on how to use it

(From OE-Core rev: 3f11e4cbb36fc65ff92296065e5f0a508b210ac7)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoovmf_git.bb: enable Secure Boot
Patrick Ohly [Tue, 20 Dec 2016 07:47:21 +0000 (08:47 +0100)] 
ovmf_git.bb: enable Secure Boot

When enabled via PACCKAGECONFIG = "secureboot" (off by default because
of the extra work and license change), the recipe compiles OVMF twice,
once without Secure Boot, once with. This is the same approach as in
https://src.fedoraproject.org/cgit/rpms/edk2.git/tree/edk2.spec

The results are "ovmf.qcow2" and "ovmf.secboot.qcow2" in the
image deploy directory, so
  runqemu <machine> <image> ovmf.secboot
will boot with Secure Boot enabled.

ovmf.secboot.code.qcow2 is provided for those who want separate code
and variable flash drives. The normal ovmf.vars.qcow2 can be used with
it.

In contrast to Fedora, no attempt is made to strip potentially patent
encumbered algorithms out of the OpenSSL archive. OVMF does not use
the ones considered problematic for Fedora, so this shouldn't be a
problem.

Fixes: luv-yocto/#38
(From OE-Core rev: d493f0b4760808f880a0fd6dedf918a3b85006b7)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoovmf_git.bb: enable parallel compilation
Patrick Ohly [Mon, 19 Dec 2016 16:02:43 +0000 (17:02 +0100)] 
ovmf_git.bb: enable parallel compilation

The Fedora srpm [1] seems to have no problems with parallel
compilation, so let's also use that for the target. The native
tools however indeed have dependency problems:

| test_Ecc_CParser (CheckPythonSyntax.Tests) ... gcc -o ../bin/EfiRom -L/fast/build/ostro/x86/tmp-glibc/sysroots/x86_64-linux/usr/lib -L/fast/build/ostro/x86/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-rpath-link,/fast/build/ostro/x86/tmp-glibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/fast/build/ostro/x86/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-rpath,/fast/build/ostro/x86/tmp-glibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/fast/build/ostro/x86/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-O1 EfiRom.o -L../libs -lCommon
| /usr/bin/ld: cannot find -lCommon
| collect2: error: ld returned 1 exit status

ERROR: Task (virtual:native:.../meta/recipes-core/ovmf/ovmf_git.bb:do_compile) failed with exit code '1'

[1] https://src.fedoraproject.org/cgit/rpms/edk2.git/tree/edk2.spec

(From OE-Core rev: be307609a067b7d23dc2cd8e39e3a35f770bebc7)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoovmf: deploy firmware in image directory
Patrick Ohly [Fri, 16 Dec 2016 14:07:29 +0000 (15:07 +0100)] 
ovmf: deploy firmware in image directory

When used with '-drive if=pflash', qemu will store UEFI variables
inside the firmware image file. That is unexpected for a file located in
the sysroot, which should be read-only, while it is normal for image
files in the deploy/images directory. Therefore that directory is a
better place for use with runqemu.

The name was chose so that "runqemu ovmf" can be used as shorthand for
"runqemu <full path>/ovmf.qcow2" by treating "ovmf" as the base name
of the firmware file. "ovmf.secboot.qcow2" is meant to be used for the
Secure Boot enabled firmware.

qcow2 is used because it is needed for "savevm" snapshots of a virtual
machine.

With code and variables stored in the same ovmf.qcow2 it is not
possible to update the firmware code without also overwriting the
variables. For users who care about persistent variables, the code and
variables are also provided as separate files, in ovmf.code.qcow2 and
ovmf.vars.qcow2.

The traditional usage of OVMF via the qemu bios parameter ("biosdir"
and/or "biosfilename" in runqemu) is no longer recommended, and
therefore this recipe no longer provides the bios.bin file. Instead,
OVMF is meant to be used as flash drive in qemu. See the "runqemu:
support UEFI with OVMF firmware" patch for details on how to use OVMF
that way.

(From OE-Core rev: 6f84653e34b75a821fbf31b9f1aa912858e27f43)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoovmf: explicitly depend on nasm-native
Patrick Ohly [Fri, 16 Dec 2016 09:19:31 +0000 (10:19 +0100)] 
ovmf: explicitly depend on nasm-native

Fixes a build issue when nasm was not build already because of
something else.

(From OE-Core rev: 92198bdda7add49f2c76ce55ab1f310e2128bf8f)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoovmf: move from meta-luv to OE-core
meta-luv [Tue, 6 Dec 2016 15:21:17 +0000 (16:21 +0100)] 
ovmf: move from meta-luv to OE-core

This is an unmodified copy of
github.com/01org/luv-yocto/meta-luv/recipes-core/ovmf revision
4be4329.

(From OE-Core rev: 49cdce8716ded0b612069d7614c3efe7724e5b40)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoacpica: fix compilation with musl
Patrick Ohly [Thu, 23 Feb 2017 17:48:50 +0000 (18:48 +0100)] 
acpica: fix compilation with musl

Manipulating stderr after freopen() fails as done by upstream
does not work with musl. The replacement is Unix specific
and uses open()/dup2().

(From OE-Core rev: d656298e1438c9c5a2979a1c76f5cdb804a267fb)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoacpica: work around flex 2.6.2 code generation issue
Patrick Ohly [Fri, 20 Jan 2017 13:26:59 +0000 (14:26 +0100)] 
acpica: work around flex 2.6.2 code generation issue

Without this patch, linking fails with a missing implementation of
yy_scan_string. This looks like a regression in flex, because 2.6.0 generated
different code that called PrParser_scan_string
resp. DtParser_scan_string.

Working around that in acpica until this is better understood or fixed
in flex is the easiest solution for now.

(From OE-Core rev: 8f2ace5e1b396ad97b8e9cc88e7bb773d18acd21)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoacpica: move from meta-oe to OE-core
Fathi Boudra [Tue, 10 Jan 2017 14:55:10 +0000 (15:55 +0100)] 
acpica: move from meta-oe to OE-core

qemu support for UEFI in OE-core depends on OVMF, which needs the iasl
tools provided by this recipe. There's also an iasl recipe in
meta-luv, but than can and will be replaced by this one, thus reducing
overall maintenance work.

Copied from meta-openembedded rev fa65be9ba (current master).

(From OE-Core rev: 020f7ea3aa5c1f311841d4fb16bc525ae1dd5f11)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemu: support virtual TPM
Patrick Ohly [Fri, 20 Jan 2017 07:51:07 +0000 (08:51 +0100)] 
qemu: support virtual TPM

This enables the use of swtpm (from meta-security) as a virtual TPM in
qemu. These patches extend the existing support in qemu for TPM
passthrough so that a swtpm daemon can be accessed via CUSE (character
device in user space).

To use this:
 - add the meta-security layer including the swtpm enhancements for qemu
 - bitbake swtpm-native
 - create a TPM instance and initialize it with:

   $ mkdir -p my-machine/myvtpm0
   $ tmp-glibc/sysroots/x86_64-linux/usr/bin/swtpm_setup_oe.sh --tpm-state my-machine/myvtpm0 --createek
   Starting vTPM manufacturing as root:root @ Fri 20 Jan 2017 08:56:18 AM CET
   TPM is listening on TCP port 52167.
   Successfully created EK.
   Successfully authored TPM state.
   Ending vTPM manufacturing @ Fri 20 Jan 2017 08:56:19 AM CET

 - run swtpm *before each runqemu invocation* (it shuts down after use) and
   do it as root (required to set up the /dev/vtpm0 CUSE device):

   $ sudo sh -c 'PATH=`pwd`/tmp-glibc/sysroots/x86_64-linux/usr/bin/:`pwd`/tmp-glibc/sysroots/x86_64-linux/usr/sbin/:$PATH; export TPM_PATH=`pwd`/my-machine/myvtpm0; swtpm_cuse -n vtpm0' && sudo chmod a+rw /dev/vtpm0

 - run qemu:

   $ runqemu 'qemuparams=-tpmdev cuse-tpm,id=tpm0,path=/dev/vtpm0 -device tpm-tis,tpmdev=tpm0' ...

The guest kernel has to have TPM support enabled, which can be done with:

KERNEL_FEATURES_append = " features/tpm/tpm.scc"

(From OE-Core rev: 1264d26fa251ac11a9069f3e602dec6be9d8b9ba)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: fetch2: don't use deprecated bb.data APIs
Andre McCurdy [Mon, 27 Feb 2017 23:14:09 +0000 (15:14 -0800)] 
bitbake: fetch2: don't use deprecated bb.data APIs

Cleanup some more usage of bb.data APIs in the fetchers.

(Bitbake rev: 9752fd1c10b8fcc819822fa6eabc2c1050fcc03b)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: bitbake: Update version to 1.33.2
Richard Purdie [Fri, 24 Feb 2017 21:17:20 +0000 (13:17 -0800)] 
bitbake: bitbake: Update version to 1.33.2

(Bitbake rev: f5ab65610d6d6c0587948b644292f57c07dece0c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: lib/bb/utils: Add filter()
Peter Kjellerstedt [Tue, 21 Feb 2017 15:18:59 +0000 (16:18 +0100)] 
bitbake: lib/bb/utils: Add filter()

The bb.utils.filter() function can be used to filter a variable
containing whitespace separated words based on another set of words.
It has been modeled after the bb.utils.contains_any() function.

A typical example of how it can be used is to simplify constructs for
PACKAGECONFIG that depend on DISTRO_FEATURES:

-PACKAGECONFIG ?= "\
-    ${@bb.utils.contains('DISTRO_FEATURES', 'acl', 'acl', '', d)} \
-    ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
-"
+PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)}"

(Bitbake rev: 03ae490366d2046f5b5c185fe4ec2adf1b0a902e)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: wget.py: match .lz tarballs as well when determining latest version
Alexander Kanavin [Tue, 21 Feb 2017 11:36:42 +0000 (13:36 +0200)] 
bitbake: wget.py: match .lz tarballs as well when determining latest version

(Bitbake rev: c55e09fbd2b64a2b909d9992350b6b2e26e5e86d)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: process: stop bb.process.communicate mixing bytes and str return types
Mike Crowe [Fri, 24 Feb 2017 16:20:04 +0000 (16:20 +0000)] 
bitbake: process: stop bb.process.communicate mixing bytes and str return types

Python3 regards b"" as False so it is not being converted to a string by
d0f904d407f57998419bd9c305ce53e5eaa36b24. This confusingly causes three
different potential types for each member of the returned tuple.

Let's just assume that everything that's not None is a bytes object and
convert it to a string.

(Bitbake rev: 0cf5589b7fb3582a6caca5014c4d8152347df545)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: lib/bb/fetch2: rewrite / to - in package names
Anders Darander [Fri, 24 Feb 2017 20:52:55 +0000 (21:52 +0100)] 
bitbake: lib/bb/fetch2: rewrite / to - in package names

Most angular2 packages have names of the form @angular/xxx.
The / obviously can't be used in a file name, replace it with -.

(Bitbake rev: d3bd41d0ec9621307c362b394872b18b8b7ed8d6)

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: fetch2/__init__: handle @ in package names
Anders Darander [Fri, 24 Feb 2017 20:52:54 +0000 (21:52 +0100)] 
bitbake: fetch2/__init__: handle @ in package names

A number of npm packages use @ as a leading chararacter.
Examples are most of the angular2 packages.

(Bitbake rev: 628c4bf6c89b3d62c9b864380b5c8e131a899bff)

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: fetch2/svn: change 'rsh' parameter to 'ssh'
Markus Lehtonen [Fri, 17 Feb 2017 09:39:18 +0000 (11:39 +0200)] 
bitbake: fetch2/svn: change 'rsh' parameter to 'ssh'

The functionality around the 'rsh' parameter seemed to be broken. The
'rsh' parameter was only used when 'protocol' was set to 'svn+ssh' which
is confusing. The 'rsh' parameter was used for setting the value of
'svn_RSH' environment variable, which however, is not supported by svn
(not at least according to SVN documentation).

This patch removes the 'rsh' parameter and replaces it with 'ssh'. This
new (optional) parameter is used when svn+ssh protocol is used and it
can be used to specify the ssh program used by svn. This is achieved by
setting the SVN_SSH environment variable which is mentioned in SVN
documentation.

(Bitbake rev: 5b364b02270b0d7c2b7ca8d67fa2731bf93720ee)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibva: Find the correct wayland-scanner
Jussi Kukkonen [Thu, 23 Feb 2017 14:49:49 +0000 (16:49 +0200)] 
libva: Find the correct wayland-scanner

* Add a patch to make sure wayland-scanner from native sysroot is used
* Depend on wayland-native to get the scanner into the sysroot
* Add a patch to make sure the scanner really is used

(From OE-Core rev: 65cfc8aca3ff7e39453977a0215a350d13cb85ef)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest/eSDK.py: Cleanup when there is an error in setUpClass
Mariano Lopez [Wed, 22 Feb 2017 13:12:55 +0000 (13:12 +0000)] 
selftest/eSDK.py: Cleanup when there is an error in setUpClass

Lately autobuilders are experiencing hangs with selftest,
it seems it is cause if an error happens in setUpClass
method of oeSDKExtSelfTest class because HTTP server
keeps running in background.

This patch will ensure tearDownClass will be run if there
is an error in setUpClass.

(From OE-Core rev: eb1383949f76c6eb36f86c051057f761a71016a3)

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>
8 years agoiptables: upgrade to 1.6.1
Maxin B. John [Tue, 21 Feb 2017 11:55:07 +0000 (13:55 +0200)] 
iptables: upgrade to 1.6.1

1.6.0 -> 1.6.1

Refreshed the following patches:
 a) 0001-configure-Add-option-to-enable-disable-libnfnetlink.patch
 b) 0002-configure.ac-only-check-conntrack-when-libnfnetlink-enabled.patch

(From OE-Core rev: 0148bb131b2ac68f168562e9eaedce8aa4e4a875)

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>
8 years agoffmpeg: Fix the license description
Andreas Oberritter [Thu, 16 Feb 2017 10:34:49 +0000 (11:34 +0100)] 
ffmpeg: Fix the license description

FFmpeg has complicated licensing options, so it should also
have complicated license statements in its recipe.

(From OE-Core rev: b0881c295e868535a8eb55fc0658a330d0f1465d)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-firmware: Add Marvell sd88xx WiFi firmwares
Stefan Agner [Thu, 16 Feb 2017 00:35:19 +0000 (16:35 -0800)] 
linux-firmware: Add Marvell sd88xx WiFi firmwares

Add packages for Marvells sd88xx SDIO WiFi firmwares.

(From OE-Core rev: 35ed7ded1a845f88a7bea44498d524f4b61c0d70)

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibarchive: Backport upstream fixes.
Amarnath Valluri [Fri, 10 Feb 2017 14:31:59 +0000 (16:31 +0200)] 
libarchive: Backport upstream fixes.

These set of patches backported from upstream, which fixes the issues in
extracting hardlinks over softlinks while etracting packages by opkg.

(From OE-Core rev: d123490284331c02854f6527a04086c058b7c32e)

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