]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agoverify-bashisms: check scripts only once, include original file and line
Patrick Ohly [Tue, 31 Jan 2017 12:50:31 +0000 (13:50 +0100)]
verify-bashisms: check scripts only once, include original file and line

Several scripts that are defined in .bbclass files end up in multiple
different recipes. It's better (faster, less repetitive error reports)
to check them only once.

In addition, the real information for the developer is where he can
find the script, not which recipe file uses it. verify-bashisms now
prints the original file instead of the recipe whenever possible
(i.e. 'filename' is set) and also bumps the line number so that it is
relative to the file and not the script.

Example with one real error and one added just for testing:

  $ verify-bashisms core-image-minimal core-image-sato
  Loading cache: 100% |#################################################################################| Time: 0:00:00
  Loaded 2935 entries from dependency cache.
  Parsing recipes: 100% |###############################################################################| Time: 0:00:01
  Parsing of 2137 .bb files complete (2101 cached, 36 parsed). 2935 targets, 412 skipped, 0 masked, 0 errors.
  Generating scripts...
  Scanning scripts...

  /.../openembedded-core/meta/classes/populate_sdk_ext.bbclass
   possible bashism in install_tools line 515 (should be 'b = a'):
   if [ "${SDK_INCLUDE_TOOLCHAIN}" == "1" -a ! -e $unfsd_path ] ; then
   possible bashism in install_tools line 521 (type):
            type fixme

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoverify-bashisms: revise update-rc.d whitelist entry
Patrick Ohly [Tue, 31 Jan 2017 12:50:30 +0000 (13:50 +0100)]
verify-bashisms: revise update-rc.d whitelist entry

The actual code recently changed to:
   if ${@use_updatercd(d)} && type update-rc.d >/dev/null 2>/dev/null; then

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoverify-bashisms: fix problems with tinfoil2
Patrick Ohly [Tue, 31 Jan 2017 12:50:29 +0000 (13:50 +0100)]
verify-bashisms: fix problems with tinfoil2

tinfoil2 is based on a client/server architecture, which broke the
verify-bashisms script:

- The tinfoil instance and its data proxies can't be pickled, so
  all interaction with the bitbake server has to run in the main
  script process and only processing of the plain scripts can
  be done with multiprocessing:

  _pickle.PicklingError: Can't pickle <class 'bb.tinfoil.TinfoilCookerAdapter.TinfoilRecipeCacheAdapter'>: attribute lookup TinfoilRecipeCacheAdapter on bb.tinfoil failed

- The multiprocessing pool has to be created before initializing
  tinfoil, otherwise the pool workers end up trying to communicate
  with the bitbake server during shutdown:

  ERROR: UI received SIGTERM
  Process ForkPoolWorker-2:
  Traceback (most recent call last):
    File "/usr/lib/python3.4/multiprocessing/process.py", line 257, in _bootstrap
      util._exit_function()
    File "/usr/lib/python3.4/multiprocessing/util.py", line 286, in _exit_function
      _run_finalizers(0)
    ...
    File "/usr/lib/python3.4/multiprocessing/process.py", line 131, in is_alive
      assert self._parent_pid == os.getpid(), 'can only test a child process'
   AssertionError: can only test a child process

- func() needs to defined before creating the pool to avoid:

  AttributeError: Can't get attribute 'func' on <module '__main__' from '/work/openembedded-core/scripts/verify-bashisms'>

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoverify-bashisms: explicitly shut down server
Patrick Ohly [Tue, 31 Jan 2017 12:50:28 +0000 (13:50 +0100)]
verify-bashisms: explicitly shut down server

Current tinfoil2 requires manually shutting down the server.
Without that, the script hangs during exit. This might change
in the future.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoverify-bashisms: point out where to get checkbashisms.pl
Patrick Ohly [Tue, 31 Jan 2017 12:50:27 +0000 (13:50 +0100)]
verify-bashisms: point out where to get checkbashisms.pl

The current SourceForge project seems to be unmaintained (last release
2.0.0.2 from 2015) while the copy used by Debian is quite active (last
commit 2016-09-30).

Ideally, checkbashisms.pl should get installed automatically via a
recipe, but for now at least provide the link for manual installation.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoverify-bashisms: fix typo
Patrick Ohly [Tue, 31 Jan 2017 12:50:26 +0000 (13:50 +0100)]
verify-bashisms: fix typo

Variable was renamed, it's now called "output".

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoat-spi2-atk: depend on glib-2.0-native
Markus Lehtonen [Tue, 31 Jan 2017 13:23:30 +0000 (15:23 +0200)]
at-spi2-atk: depend on glib-2.0-native

Missing dependency revealed by recipe specific sysroots. If the host
system does not have glib-compile-schemas installed have (via
libglib2.0-dev, glib2, glib2-tools or similar) do_configure would fail
with:
  configure: error: glib-compile-schemas not found.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowpa-supplicant: inherit pkgconfig
Markus Lehtonen [Tue, 31 Jan 2017 13:23:29 +0000 (15:23 +0200)]
wpa-supplicant: inherit pkgconfig

Missing dependency uncovered after recipe specific sysroots were enabled.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorpm: inherit pkgconfig
Markus Lehtonen [Tue, 31 Jan 2017 13:23:28 +0000 (15:23 +0200)]
rpm: inherit pkgconfig

Rpm needs pkg-config in order to build successfully.  Recipe specific
sysroots revealed this missing dependency when trying to build on a host
without pkg-config.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogrep: add missing pkgconfig inherit
Ross Burton [Fri, 27 Jan 2017 15:36:40 +0000 (15:36 +0000)]
grep: add missing pkgconfig inherit

8 years agopython: add missing pkgconfig inherit
Ross Burton [Fri, 27 Jan 2017 15:36:22 +0000 (15:36 +0000)]
python: add missing pkgconfig inherit

8 years agogrub-efi: Deploy grub named efi binaries
Saul Wold [Tue, 24 Jan 2017 21:33:15 +0000 (13:33 -0800)]
grub-efi: Deploy grub named efi binaries

This allows both grub and systemd-boot efi bootloaders to co-exisit

Signed-off-by: Saul Wold <sgw@linux.intel.com>
8 years agocore-image-tiny-initramfs: Fix error message shown after a successful initrd boot
Alejandro Hernandez [Tue, 20 Dec 2016 23:08:40 +0000 (23:08 +0000)]
core-image-tiny-initramfs: Fix error message shown after a successful initrd boot

When booting core-image-tiny-initramfs, since we want to live on initrd,
on purpose, we never find a rootfs image to switch root to,
this causes init to show an error as it would with other images,
this patch replaces the message shown to the user, avoiding confusion
when it was indeed a successful boot.

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
8 years agocore-image-tiny-initramfs: Add and image creating image artifacts only
Tom Zanussi [Tue, 12 Jul 2016 21:50:03 +0000 (16:50 -0500)]
core-image-tiny-initramfs: Add and image creating image artifacts only

Add an image that simply creates image artifacts using
image-live-artifacts support instead of creating an actual image.

The image artifacts can then be subsequently assembled by an external
tool such as wic to create an actual image.

This eliminates redundant image creation when using such tools.

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
8 years agocryptodev: Fix changed mm interface in Kernel 4.9
Daniel Schultz [Thu, 26 Jan 2017 13:44:56 +0000 (14:44 +0100)]
cryptodev: Fix changed mm interface in Kernel 4.9

The memory management interface has changed in Kernel 4.9.

This patch adds a patch which fixes the paramter of the function call.

Backport from https://github.com/cryptodev-linux/cryptodev-linux
Based on commit f126e4837e6334d0464540995df7426fedf6b175

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoccache: update to 3.3.3
Yannick Gicquel [Wed, 25 Jan 2017 20:19:46 +0000 (21:19 +0100)]
ccache: update to 3.3.3

Release note available at this location:
https://ccache.samba.org/releasenotes.html#_ccache_3_3_3

Moving to tarball source as git.samba.org is not used anymore.

License checksum change is due to an update in URL, now refering to "https"
protocol instead of "http", line 32:
'https://ccache.samba.org/authors.html'

Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agorootfs-postcommands.bbclass: drop insert_feed_uris function
Ming Liu [Thu, 26 Jan 2017 13:03:48 +0000 (14:03 +0100)]
rootfs-postcommands.bbclass: drop insert_feed_uris function

The source makes no reference to insert_feed_uris any more, simply drop
the unused reference, to avoid confusing the developers.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agometa: remove remaining True option to getVarFlag calls
Ming Liu [Thu, 26 Jan 2017 13:29:32 +0000 (14:29 +0100)]
meta: remove remaining True option to getVarFlag calls

This is a complementary fix to commit 2dea9e49:
[ meta: remove True option to getVarFlag calls ]

it intended to remove all True option to getVarFlag calls, but there are
still some remaining.

Search made with the following regex: getVarFlag ?\((.*), True\)

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agometa: remove remaining True option to getVar calls
Ming Liu [Thu, 26 Jan 2017 13:26:44 +0000 (14:26 +0100)]
meta: remove remaining True option to getVar calls

This is a complementary fix to commit 7c552996:
[ meta: remove True option to getVar calls ]

it intended to remove all True option to getVar calls, but there are
still some remaining.

Search made with the following regex: getVar ?\((.*), True\)

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agorunqemu: allow bypassing of network setup
Juro Bystricky [Wed, 25 Jan 2017 20:54:57 +0000 (12:54 -0800)]
runqemu: allow bypassing of network setup

At present it is silently assumed all QEMU machines support networking.
As a consequence, one cannot run QEMUs without network emulation
using "runqemu".
This patch allows bypassing any network setup providing the qemuboot.conf
file contains:

    qb_net = none

[YOCTO#10661]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotestimage.bbclass: Allow to run tests on autobuilder's images
Mariano Lopez [Wed, 25 Jan 2017 12:20:06 +0000 (12:20 +0000)]
testimage.bbclass: Allow to run tests on autobuilder's images

With the change to the new framework data store dependecy was
removed, instead a new file is generated and used in testimage.
When testing builds from the autobuilders the test data values
are from the autobuilder, including the paths.

Some tests require paths to current environment in order to run,
this commit will update such paths and fix the error of running
images donwloaded from autobuilders.

[YOCTO #10964]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoruntime/cases/smart.py: Check for IMAGE_PKGTYPE instead of PACKAGE_CLASSES
Mariano Lopez [Wed, 25 Jan 2017 12:20:05 +0000 (12:20 +0000)]
runtime/cases/smart.py: Check for IMAGE_PKGTYPE instead of PACKAGE_CLASSES

smart test requires to build the image using rpm packages, this check was
included, but it checked for PACKAGE_CLASSES=='package_rpm', and this is
not true when building packages for rpm and deb/ipk. So this would check
IMAGE_PKGTYPE instead.

[YOCTO #10964]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoruntime/cases/connman.py: Stop using oeRuntimeTest
Mariano Lopez [Wed, 25 Jan 2017 12:20:04 +0000 (12:20 +0000)]
runtime/cases/connman.py: Stop using oeRuntimeTest

oeRuntimeTest class is not used anymore as part of runtime
migration, this particular case was missed, so fix it.

[YOCTO #10964]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokmod: Fix handling of quotes in kernel command line
James Minor [Thu, 26 Jan 2017 00:13:32 +0000 (18:13 -0600)]
kmod: Fix handling of quotes in kernel command line

If a module parameter on the command line contains quotes, any
spaces inside those quotes should be included as part of the
parameter.

Upstream-Status: Accepted

Signed-off-by: James Minor <james.minor@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agognutls: avoid accidentally using libseccomp
Joe Slater [Wed, 25 Jan 2017 23:03:50 +0000 (15:03 -0800)]
gnutls: avoid accidentally using libseccomp

Specify whether to use libseccomp or not.  Do not
just let configure check for it.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agognutls: account for ARM_EABI
Joe Slater [Wed, 25 Jan 2017 21:52:59 +0000 (13:52 -0800)]
gnutls: account for ARM_EABI

Do not reference unavailable system calls when
building for ARM_EABI.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/sdk: Updates sanity tests for minimal eSDK
Francisco Pedraza [Wed, 25 Jan 2017 17:07:34 +0000 (11:07 -0600)]
oeqa/sdk: Updates sanity tests for minimal eSDK

Updates sanity tests to cope with minimal eSDK installer
1. Skips the validation of sanity if packagegroup-cross-canadian is in
host package.
2. Skips if SDK does not include toolchain at cases/devtool.py

This should fix [YOCTO #10794]

Signed-off-by: Francisco Pedraza <francisco.j.pedraza.gonzalez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoexternalsrc: Hide created symlinks with .git/info/exclude
Ola x Nilsson [Wed, 25 Jan 2017 15:49:46 +0000 (16:49 +0100)]
externalsrc: Hide created symlinks with .git/info/exclude

Add created symlinks to the exclude file.  This will both make them
less distracting and hide them from the srctree_hash_files function.

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosstate: Make SSTATE_SCAN_CMD vars configurable using weak defaults.
Kristian Amlie [Wed, 25 Jan 2017 14:46:15 +0000 (15:46 +0100)]
sstate: Make SSTATE_SCAN_CMD vars configurable using weak defaults.

For this we move them out of the python section so they can be
overridden on a per-recipe basis.

The motivation for this change is that not all tool chains need the
path modifications provided by the command, and these will provide
alternative or empty commands. The Go compiler is such an example.

Signed-off-by: Kristian Amlie <kristian.amlie@mender.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotoolchain-shar-extract: compare SDK and host gcc versions
Ed Bartosh [Wed, 25 Jan 2017 13:18:36 +0000 (15:18 +0200)]
toolchain-shar-extract: compare SDK and host gcc versions

If ext sdk is built by gcc version higher than host gcc version
and host gcc version is 4.8 or 4.9 the installation is known to
fail due to the way uninative sstate package is built.

It's a known issue and we don't have a way to fix it for above
mentioned combinations of build and host gcc versions.

Detected non-installable combinations of gcc versions and
print an installation error.

[YOCTO #10881]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobluez5: make readline support conditional.
Ismo Puustinen [Wed, 25 Jan 2017 13:03:35 +0000 (15:03 +0200)]
bluez5: make readline support conditional.

Add readline support to PACKAGECONFIG. If readline needs if left out
of compilation, the bluez utilities which depend on readline are not
included in build or packages.

The defaults in PACKAGECONFIG are the same as before, so there should be
no change to current users.

Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibtiff: Security Advisory - libtiff - CVE-2017-5225
Li Zhou [Wed, 25 Jan 2017 09:28:22 +0000 (17:28 +0800)]
libtiff: Security Advisory - libtiff - CVE-2017-5225

Libtiff is vulnerable to a heap buffer overflow in the tools/tiffcp
resulting in DoS or code execution via a crafted BitsPerSample value.

Porting patch from <https://github.com/vadz/libtiff/commit/
5c080298d59efa53264d7248bbe3a04660db6ef7> to solve CVE-2017-5225.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxserver-xorg: Enable glamor by default
Saul Wold [Fri, 20 Jan 2017 21:50:27 +0000 (13:50 -0800)]
xserver-xorg: Enable glamor by default

To enable glamor, we need to also enable both dri3 and xshmfence as dependencies.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxserver-xf86-config: add glamoregl
Saul Wold [Fri, 20 Jan 2017 21:50:26 +0000 (13:50 -0800)]
xserver-xf86-config: add glamoregl

When using the modesetting with glamor and MUSL, the glamoregl
library needs to be pre-loaded, so add it to the list here.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoacl: drop in instead of patching configure.ac
Ross Burton [Mon, 14 Nov 2016 13:19:28 +0000 (13:19 +0000)]
acl: drop in instead of patching configure.ac

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoacl: merge pointless .inc
Ross Burton [Mon, 14 Nov 2016 13:09:11 +0000 (13:09 +0000)]
acl: merge pointless .inc

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoattr: move attr-specific patches into attr/
Ross Burton [Mon, 14 Nov 2016 13:00:37 +0000 (13:00 +0000)]
attr: move attr-specific patches into attr/

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogptfdisk: fix support for 'large' drives
Andreas Oberritter [Wed, 30 Nov 2016 21:50:45 +0000 (22:50 +0100)]
gptfdisk: fix support for 'large' drives

Make's switch '-e' replaced important compiler flags from the
project's Makefile, i.e. -D_FILE_OFFSET_BITS=64.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoutil-linux: create own package for lsblk
Andreas Oberritter [Wed, 30 Nov 2016 18:50:27 +0000 (19:50 +0100)]
util-linux: create own package for lsblk

Let util-linux-bash-completion depend on it, because it uses it.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-publish-sdk: add pyshtables.py to .gitignore
Andrea Galbusera [Thu, 26 Jan 2017 23:34:55 +0000 (00:34 +0100)]
oe-publish-sdk: add pyshtables.py to .gitignore

pyshtables.py should be ignored by git as it is generated. If kept in
the repo, causes subsequent runs of sdk-update to fail.

[ YOCTO #10963 ]

Signed-off-by: Andrea Galbusera <gizero@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodefault-distrovars: add acl to DISTRO_FEATURES
Ross Burton [Thu, 26 Jan 2017 23:28:05 +0000 (23:28 +0000)]
default-distrovars: add acl to DISTRO_FEATURES

ACLs are pretty useful in the modern world, with security systems such as
SELinux and Smack that use them extensively.  As the overhead is minimal, add
ACL to DEFAULT_DISTRO_FEATURES so that support for them is enabled by default.

The overhead for core-image-sato is that coreutils, libarchive, and opkg link
against libacl. The size increase of those packages is minimal, and libacl is
35kb.

[ YOCTO #8200 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_deb: handle allarch when mapping tune to dpkg architectures
Ross Burton [Wed, 25 Jan 2017 17:13:40 +0000 (17:13 +0000)]
package_deb: handle allarch when mapping tune to dpkg architectures

It was discovered that buildtools-tarball can't be built with Debian packaging:

E: Unable to locate package nativesdk-buildtools-perl-dummy

The package exists but dpkg doesn't see it because the Architecture field isn't
valid: for this package the Architecture field is 'allarch' which isn't in the
list of valid architectures we define.

package_deb already has a mapping of OE architectures (PACKAGE_ARCH) to dpkg
architectures (DPKG_ARCH), for example our x86_64 is amd64 in dpkg.  However
allarch.bbclass sets an invalid TARGET_ARCH of 'allarch' (to break anything
which attempts to use the target architecture) and package_deb relied on the
PACKAGE_ARCH check later turning the Architecture field into 'all'.

This usually works, but nativesdk-buildtools-perl-dummy inherits allarch but
then changes PACKAGE_ARCH to buildtools-dummy-nativesdk to isolate the packages
in a separate feed.  We can handle this by explictly checking for allarch in the
TARGET_ARCH check, as that everything that inherits allarch will want to have
Architecture: all in their packages.

[ YOCTO #10700 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodistrodata: add DATETIME to vardepsexclude for do_distro_check.
Ross Burton [Wed, 25 Jan 2017 16:21:08 +0000 (16:21 +0000)]
distrodata: add DATETIME to vardepsexclude for do_distro_check.

This task uses DATETIME so add it to vardepsexclude so bitbake doesn't refuse to
execute the task when the time changes between the controller and the worker
calculating the hash.

[ YOCTO #10960 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoisoimage-isohybrid: renamed variable hdd_dir
Ed Bartosh [Fri, 27 Jan 2017 14:39:14 +0000 (16:39 +0200)]
isoimage-isohybrid: renamed variable hdd_dir

Renamed variable hdd_dir to deploy_dir as this variable is
assigned to the value of DEPLOY_DIR_IMAGE.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic-tools: add dependency to systemd-boot
Ed Bartosh [Fri, 27 Jan 2017 14:28:28 +0000 (16:28 +0200)]
wic-tools: add dependency to systemd-boot

Added systemd-boot to the list of dependencies of wic-tools
as wic bootimg-efi plugin depends on it.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agogrub-efi.bbclass: use 'grub-efi-' prefix
Ed Bartosh [Fri, 27 Jan 2017 14:16:05 +0000 (16:16 +0200)]
grub-efi.bbclass: use 'grub-efi-' prefix

grub-efi recipe added 'grub-efi-' prefix to the file name of
efi binary. Changed grub-efi.bbclass accordingly.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoselftest: wic: fix test_iso_image test case
Ed Bartosh [Mon, 16 Jan 2017 15:20:45 +0000 (17:20 +0200)]
selftest: wic: fix test_iso_image test case

Added "iso" to IMAGE_FSTYPES to build iso artifacts required
to fix test of isoimage-isohybrid wic plugin.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoselftest: stop using hddimg in the wic test suite
Ed Bartosh [Mon, 16 Jan 2017 13:14:14 +0000 (15:14 +0200)]
selftest: stop using hddimg in the wic test suite

Removed hddimg from IMAGE_FEATURES as wic code doesn't
use hddimg anymore.

[YOCTO #10835]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoisoimage-isohybrid: use TRANSLATED_TARGET_ARCH instead of MACHINE_ARCH
Ed Bartosh [Mon, 16 Jan 2017 12:23:08 +0000 (14:23 +0200)]
isoimage-isohybrid: use TRANSLATED_TARGET_ARCH instead of MACHINE_ARCH

isoimage-sihybrid plugin uses MACHINE_ARCH to get the name of initrd image.
It doesn't work for all machines, for example for quemux86-64 machine
MACHINE_ARCH is quemux86_64 and initrd name is
core-image-minimal-initramfs-qemux86-64.cpio.gz

Used TRANSLATED_TARGET_ARCH variable to get the initrd image name.
Replaced MACHINE_ARCH->TRANSLATED_TARGET_ARCH in WICVARS variable to
make it available from <image>.env file.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: Look for image artifacts in a common location
Tom Zanussi [Tue, 12 Jul 2016 21:50:03 +0000 (16:50 -0500)]
wic: Look for image artifacts in a common location

Rather than have each image type look for artifacts in image-specific
locations, move towards having them look for artifacts in a common
location, in this case DEPLOY_DIR_IMAGE

Use the existing deploy.bbclass to have the bootloaders put their binaries
in DEPLOY_DIR_IMAGE and then wic will find them and place them in the image

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
8 years agoimage-wic: remove HDDDIR from WICVARS
Ed Bartosh [Thu, 12 Jan 2017 17:06:02 +0000 (19:06 +0200)]
image-wic: remove HDDDIR from WICVARS

Removed HDDDIR as it's not used by wic anymore.
Stopped usage of HDDDIR in wic test suite.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: isoimage-isohybrid: stop using HDDDIR
Ed Bartosh [Thu, 12 Jan 2017 17:00:10 +0000 (19:00 +0200)]
wic: isoimage-isohybrid: stop using HDDDIR

Stop using HDDDIR in isoimage-isohybrid wic plugin.
This variable is set by hddimg code, which is going to be
removed soon.

All required artifacts should be available from ISODIR.
wic-image.bbclass has been modified to build iso artifacts,
so it should be safe to remove usage of HDDDIR.

[YOCTO #10835]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: use INITRD_LIVE in isoimage-isohybrid
Ed Bartosh [Thu, 12 Jan 2017 16:32:41 +0000 (18:32 +0200)]
wic: use INITRD_LIVE in isoimage-isohybrid

INITRD variable is not set if hddimg is disabled.
isoimage-isohybrid can't get correct name for initrd if INITRD
variable is not set.

Added INITRD_LIVE to WICVARS and used it in isoimage-isohybrid
code to get initrd artifact name. Used INITRD if INITRD_LIVE is not set.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoimage-wic: move wic code to image-wic.bbclass
Ed Bartosh [Thu, 26 Jan 2017 11:52:24 +0000 (13:52 +0200)]
image-wic: move wic code to image-wic.bbclass

There is a lot of wic code in image.bbclass and image_types.bbclass
Having all code separated in one file should make it more readable
and easier to maintain.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoselftest: check results in test_image_vars_dir*
Ed Bartosh [Thu, 26 Jan 2017 17:31:48 +0000 (19:31 +0200)]
selftest: check results in test_image_vars_dir*

Tested that result images are produced in test_image_vars_dir_long
and test_image_vars_dir_short test cases.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoselftest: split wic tests cases
Ed Bartosh [Thu, 26 Jan 2017 17:30:53 +0000 (19:30 +0200)]
selftest: split wic tests cases

Split tests to run wic only once per test case.
This should fix failures caused by result images left
from the previous wic run.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: partitionedfs: set partition name for gpt partitions
Jukka Laitinen [Thu, 26 Jan 2017 15:43:33 +0000 (17:43 +0200)]
wic: partitionedfs: set partition name for gpt partitions

Set proper gpt partition name for the partitions in case given
in the configuration

Signed-off-by: Jukka Laitinen <jukka.laitinen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: change location of .env files
Ed Bartosh [Wed, 25 Jan 2017 17:39:14 +0000 (19:39 +0200)]
wic: change location of .env files

Current location of .env files $STAGING_DIR/imagedata. It doesn't
depend on machine and be rewritten by the builds for different
machines.

Changed location to $STAGING_DIR/$MACHINE/imagedata to avoid .env
files to be rewritten.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest: wic: test default output directory
Ed Bartosh [Tue, 24 Jan 2017 13:43:56 +0000 (15:43 +0200)]
selftest: wic: test default output directory

As tests now explicitly specify output directory we don't
need test_alternate_output_dir test case. However, we need
to test wic output to default output location.

Removed test_alternate_output_dir test case.
Added test_default_output_dir test case.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest: wic: explicitly specify output directory
Ed Bartosh [Tue, 24 Jan 2017 13:43:55 +0000 (15:43 +0200)]
selftest: wic: explicitly specify output directory

wic started to use current directory as a default output dir.
Specified output directory in wic command line to make tests
more predictable and easier to maintain.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage_types: use correct output directory
Ed Bartosh [Tue, 24 Jan 2017 13:43:54 +0000 (15:43 +0200)]
image_types: use correct output directory

Wic put result images into <output dir>/build, which was confusing.
Now it's fixed in wic code and images are put into output directory.
Changed code in image_types to reflect this.

[YOCTO #10783]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: direct.py: get rid of names with two underscores
Ed Bartosh [Tue, 24 Jan 2017 13:43:53 +0000 (15:43 +0200)]
wic: direct.py: get rid of names with two underscores

Attributes with two leading underscores are mangled in Python
and used mainly for avoiding name clashes with names from
subclasses. They're not needed in most of wic classes.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: remove unused API DirectImageCreator.get_disk_names
Ed Bartosh [Tue, 24 Jan 2017 13:43:52 +0000 (15:43 +0200)]
wic: remove unused API DirectImageCreator.get_disk_names

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: make workdir a temporary directory
Ed Bartosh [Tue, 24 Jan 2017 13:43:51 +0000 (15:43 +0200)]
wic: make workdir a temporary directory

Wic used hardcoded path /var/tmp/wic/ as a work directory,
which caused conflicts if two wic instances run in parallel.

Made work directory unique and temporary. Moved results from
work directory to output directory when they're ready.

[YOCTO #10783]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: get rid of baseimager inheritance
Ed Bartosh [Tue, 24 Jan 2017 13:43:50 +0000 (15:43 +0200)]
wic: get rid of baseimager inheritance

Simplified DirectImageCreator code by removing inheritance
from BaseImageCreator. This inheritance doesn't make much sense
as DirectImageCreator is the only class that was inherited from
BaseImageCreator.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: change default output directory
Ed Bartosh [Tue, 24 Jan 2017 13:43:49 +0000 (15:43 +0200)]
wic: change default output directory

Set default output directory to current dir.

[YOCTO #10783]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agostaging: Handle stale sysroot rebuild issue
Richard Purdie [Sat, 28 Jan 2017 14:40:36 +0000 (14:40 +0000)]
staging: Handle stale sysroot rebuild issue

If a stale sysroot object was found the complete stamp wasn't removed,
meaning later code could fail when the new link creation was attempted.
Ensure the stale complete stamp is also removed if present.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agostaging: Fix missing nativesdk do_populate_sysroot depends on binutils
Richard Purdie [Sat, 28 Jan 2017 14:40:19 +0000 (14:40 +0000)]
staging: Fix missing nativesdk do_populate_sysroot depends on binutils

Recent changes exposed the fact this dependency was missing in nativesdk
cases, fix this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest: wic: split test_debug test case
Ed Bartosh [Thu, 26 Jan 2017 11:28:17 +0000 (13:28 +0200)]
selftest: wic: split test_debug test case

Splitted to test_debug_short and test_debug_long to make each
of the test cases to run wic once. This is consistent with the
rest of the test cases and ensures that test cases are set up
properly.

This also fixes the following test failure caused by the image
left from the first wic run:

FAIL: test_debug (oeqa.selftest.wic.Wic)
Test debug
----------------------------------------------------------------------
Traceback (most recent call last):
  File "meta/lib/oeqa/utils/decorators.py", line 109, in wrapped_f
    return func(*args, **kwargs)
  File "meta/lib/oeqa/selftest/wic.py", line 270, in test_debug
    self.assertEqual(1, len(glob(self.resultdir + "directdisk-*.direct")))
AssertionError: 1 != 2

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibxml2: Drop docs in native case
Richard Purdie [Fri, 27 Jan 2017 16:57:53 +0000 (16:57 +0000)]
libxml2: Drop docs in native case

With rss, moving these around was having an increasing overhead and we don't
need them in the native case so remove them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agostaging: Allow removal of stale sysroot objects
Richard Purdie [Fri, 27 Jan 2017 16:55:24 +0000 (16:55 +0000)]
staging: Allow removal of stale sysroot objects

The main sysroot components of unreachable build targets will be removed by the core
code. This currently doesn't trigger a removal in the individual workdirs. This
adds in symlinking between the complete stamps and the component sysroot meaning
we can detect when someting was removed and hence remove it from the sysroot.

This fixes cases where DISTRO_FEATURES like systemd are changed amongst other
things and makes builds more robust against configuration changes.

If a dependency is rebuild, that is caught by checksum comparision code elsewhere
in this function as before.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agostaging: Drop common prefix WORKDIR from manifest files
Richard Purdie [Fri, 27 Jan 2017 16:53:13 +0000 (16:53 +0000)]
staging: Drop common prefix WORKDIR from manifest files

Manifest files containing the same duplicated prefix are wasteful on space
and ultimately this costs build time. Drop the WORKDIR prefix from the manifest
files since this small change mounts up a lot.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosstate: Allow sstate_clean_manifest to take a prefix
Richard Purdie [Fri, 27 Jan 2017 16:50:57 +0000 (16:50 +0000)]
sstate: Allow sstate_clean_manifest to take a prefix

Manifest files containing the same duplicated prefix are wasteful on space
and ultimately this costs build time. Add support for manifest files with
common prefixes removed and use the prefix if the path isn't absolute.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogzip/pigz/expat/image: Simplify gzip-native/pigz-native
Richard Purdie [Fri, 27 Jan 2017 12:34:40 +0000 (12:34 +0000)]
gzip/pigz/expat/image: Simplify gzip-native/pigz-native

With recipe specific sysroots, the gzip-replacement-native dance/class
is obsolete, simplify the code accordingly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoallarch: Drop STAGING_DIR_HOST expansion
Richard Purdie [Fri, 27 Jan 2017 13:32:06 +0000 (13:32 +0000)]
allarch: Drop STAGING_DIR_HOST expansion

Now that STAGINGDIR_HOST doesn't contain MACHINE, we no longer need to expand
the value. Pre-expansion can mean components like PV can be expanded too early
and cause problems for certain use cases.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage/kernelsrc/packagegroups/recipes: Remove uneeded noexec tasks
Richard Purdie [Fri, 27 Jan 2017 12:33:39 +0000 (12:33 +0000)]
image/kernelsrc/packagegroups/recipes: Remove uneeded noexec tasks

We used to have issues removing tasks like do_fetch due to implications
for targets like world and universe. These have now been resolved.

Removing uneeded tasks has advantages compared to noexec since it means
that accidentally left in dependencies are no longer needed/processed
(e.g. do_patch depends on quilt-native).

This cleans up a number of cases which local analysis highlighted as
being unneeded leading to slightly cleaner task graphs.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/buildstats-diff: simplify timestamp handling
Markus Lehtonen [Wed, 25 Jan 2017 08:12:47 +0000 (10:12 +0200)]
scripts/buildstats-diff: simplify timestamp handling

Simply use floats instead of datetime and timedelta objects for handling
timestamps.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage_types.bbclass: rebuild .wks file when .wks.in changes
Patrick Ohly [Wed, 25 Jan 2017 11:07:48 +0000 (12:07 +0100)]
image_types.bbclass: rebuild .wks file when .wks.in changes

WKS_FILE(S) can refer to .wks.in files which get expanded during the
build by do_write_wks_template. The actual content of the .wks.in file
gets added to the recipe meta data during parsing, and thus we need to
ensure that the recipe gets re-parsed when the file changes.

This fixes two related problems:
- editing the .wks.in file and rebuilding an image did not recreate
  the image unless something else changed or "bitbake -c clean" was
  used explicitly
- when forcing a rebuild, the cached meta data and the actual one
  do not match, leading to "ERROR: Taskhash mismatch ... for ....bb.do_write_wks_template"

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc-cross: Ensure do_gcc_stash_builddir happens before do_build
Richard Purdie [Sat, 28 Jan 2017 10:13:58 +0000 (10:13 +0000)]
gcc-cross: Ensure do_gcc_stash_builddir happens before do_build

If we don't do this, things break with rm_work which removes things
before the task completes causing task failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosanity.conf: Update minimum bitbake version requirements to 1.33.0
Richard Purdie [Fri, 27 Jan 2017 10:41:53 +0000 (10:41 +0000)]
sanity.conf: Update minimum bitbake version requirements to 1.33.0

Recipe specific sysroots and mutliconfig need recent versions of bitbake,
look for version 1.33.0 as a minimum

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxserver-xorg: Upgrade 1.19.0 -> 1.19.1
Jussi Kukkonen [Tue, 24 Jan 2017 10:42:22 +0000 (12:42 +0200)]
xserver-xorg: Upgrade 1.19.0 -> 1.19.1

Point release with bug fixes.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxf86-input-evdev: Upgrade 2.10.4 -> 2.10.5
Jussi Kukkonen [Tue, 24 Jan 2017 10:42:21 +0000 (12:42 +0200)]
xf86-input-evdev: Upgrade 2.10.4 -> 2.10.5

Small release with bug fixes and config improvements.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibxpm: Upgrade 3.5.11 -> 3.5.12
Jussi Kukkonen [Tue, 24 Jan 2017 10:42:20 +0000 (12:42 +0200)]
libxpm: Upgrade 3.5.11 -> 3.5.12

Tiny bug fix release.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibxkbcommon: Upgrade 0.7.0 -> 0.7.1
Jussi Kukkonen [Tue, 24 Jan 2017 10:42:19 +0000 (12:42 +0200)]
libxkbcommon: Upgrade 0.7.0 -> 0.7.1

Small release with bug fixes.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibxi: Upgrade 1.7.8 -> 1.7.9
Jussi Kukkonen [Tue, 24 Jan 2017 10:42:18 +0000 (12:42 +0200)]
libxi: Upgrade 1.7.8 -> 1.7.9

Tiny bug fix release.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibinput: Upgrade 1.5.0 -> 1.6.0
Jussi Kukkonen [Tue, 24 Jan 2017 10:42:17 +0000 (12:42 +0200)]
libinput: Upgrade 1.5.0 -> 1.6.0

Bug fixes, new quirks and touchpad acceleration improvements.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibevdev: Upgrade 1.5.4 -> 1.5.6
Jussi Kukkonen [Tue, 24 Jan 2017 10:42:16 +0000 (12:42 +0200)]
libevdev: Upgrade 1.5.4 -> 1.5.6

Only changes in helper tools and a header (to support new keycodes in
linux 4.9 headers).

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogtk+3: Upgrade 3.22.5 -> 3.22.7
Jussi Kukkonen [Tue, 24 Jan 2017 10:42:15 +0000 (12:42 +0200)]
gtk+3: Upgrade 3.22.5 -> 3.22.7

Point releases with mostly just bug fixes.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofreetype: Upgrade 2.7.0 -> 2.7.1
Jussi Kukkonen [Tue, 24 Jan 2017 10:42:14 +0000 (12:42 +0200)]
freetype: Upgrade 2.7.0 -> 2.7.1

Bug fixes and some new features: support for Adobe CFF2 font format
and OpenType 1.8 variation fonts.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssh: upgrade to 7.4p1
Dengke Du [Sun, 22 Jan 2017 07:12:40 +0000 (02:12 -0500)]
openssh: upgrade to 7.4p1

1. Drop CVE patch: fix-CVE-2016-8858.patch, because the version 7.4p1 have
   been fixed it.

2. Rebase the remaining patchs on the version 7.4p1.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibpng12: Upgrade 1.2.56 -> 1.2.57
Maxin B. John [Mon, 23 Jan 2017 09:59:00 +0000 (11:59 +0200)]
libpng12: Upgrade 1.2.56 -> 1.2.57

This upgrade fixes the vulnerability: CVE-2016-10087

License file changes are due to updates in Version and Copyright date. ie:
'libpng versions 1.0.7, July 1, 2000, through 1.2.57, December 29, 2016, are
 Copyright (c) 2000-2002, 2004, 2006-2016 Glenn Randers-Pehrson'

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibpng: Upgrade 1.6.26 -> 1.6.28
Maxin B. John [Mon, 23 Jan 2017 09:58:59 +0000 (11:58 +0200)]
libpng: Upgrade 1.6.26 -> 1.6.28

This upgrade fixes the vulnerability: CVE-2016-10087

License file changes are due to updates in Package Version
and Copyright date. ie:
 'libpng version 1.6.28, January 5, 2017'

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosocat: support native compilation
Patrick Ohly [Mon, 23 Jan 2017 14:17:04 +0000 (15:17 +0100)]
socat: support native compilation

This is needed for building the swtpm TPM simulator (recipe
in meta-security).

Native compilation disables tcp-wrappers by default to simplify
the build.

"nativesdk" is added just in case that someone also wants this
in an SDK.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoexpect: support native compilation
Patrick Ohly [Mon, 23 Jan 2017 14:17:03 +0000 (15:17 +0100)]
expect: support native compilation

This is needed for building the swtpm TPM simulator (recipe
in meta-security).

"nativesdk" is added just in case that someone also wants this
in an SDK.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-libc-headers: introduce 4.9 headers
Bruce Ashfield [Thu, 22 Dec 2016 14:49:19 +0000 (09:49 -0500)]
linux-libc-headers: introduce 4.9 headers

Bumping the linux-libc-headers to the 4.9 kernel variant. Since 4.9
will be a LTSI kernel, and there will be an associated linux-yocto
it is worth moving to these headers sooner rather than later.

This commit also drops the 4.8 headers and sets 4.9 to be the default.

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>
8 years agoconnman: Add workaround to build with musl & 4.9 headers
Jussi Kukkonen [Mon, 23 Jan 2017 16:00:16 +0000 (18:00 +0200)]
connman: Add workaround to build with musl & 4.9 headers

Kernel headers break when musl defines IFF_LOWER_UP. While
waiting for more proper fix in musl, add a workaround to connman.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestimage.bbclass: Add systemd test automatically
Mariano Lopez [Mon, 23 Jan 2017 09:01:25 +0000 (09:01 +0000)]
testimage.bbclass: Add systemd test automatically

This adds systemd test automatically when an image
is build with systemd DISTRO_FEATURE

[YOCTO #10935]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogstreamer1.0-plugins-base: disable ivorbis
Ross Burton [Mon, 23 Jan 2017 12:59:50 +0000 (12:59 +0000)]
gstreamer1.0-plugins-base: disable ivorbis

Even old hardware these days doesn't really need fixed-integer Vorbis decoding
by default, so disable Tremor out of the box.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest: sstatetests: skip glibc-initial tests in case of non-glibc distro
Leonardo Sandoval [Mon, 23 Jan 2017 20:41:32 +0000 (14:41 -0600)]
selftest: sstatetests: skip glibc-initial tests in case of non-glibc distro

Some distros uses non-glibc so skip those tests requiring glibc-initial as target

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest/imagefeatures: skip weston test if required features are not present
Leonardo Sandoval [Mon, 23 Jan 2017 20:41:31 +0000 (14:41 -0600)]
selftest/imagefeatures: skip weston test if required features are not present

Also, remove hard-coded features because the image already contains them.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>