]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agoRevert "local.conf.sample: Disable ARM and PPC due to prelink test case failures"
Richard Purdie [Fri, 19 Aug 2016 15:32:37 +0000 (16:32 +0100)]
Revert "local.conf.sample: Disable ARM and PPC due to prelink test case failures"

This reverts commit d3e5c1d17f80b3dd7a6d85e07b5c0c516f09ae93.

8 years agooeqa.buildperf: fix crash when creating globalres.log
Markus Lehtonen [Fri, 19 Aug 2016 13:01:34 +0000 (16:01 +0300)]
oeqa.buildperf: fix crash when creating globalres.log

Fix a bug that was introduced when converting to unittest framework.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-build-perf-test: align log message format with testrunner output
Markus Lehtonen [Fri, 19 Aug 2016 13:01:33 +0000 (16:01 +0300)]
oe-build-perf-test: align log message format with testrunner output

The previous attempt on this was a bit erroneous, dropping time stamps
completely although only the timestamp format should've been changed.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosyslinux.bbclass: ensure creation of output directory
Ed Bartosh [Fri, 19 Aug 2016 14:46:39 +0000 (17:46 +0300)]
syslinux.bbclass: ensure creation of output directory

build_syslinux_cfg function creates syslinux configuration file.
The code assumes that the output directory exists, which is not
always the case. For example rm_work task removes rootfs directory
structure and causes build_syslinux_cfg to fail with this error:
Unable to open ../<image>-<version>/syslinux_vm.cfg

Made build_syslinux_cfg depend on output directory to ensure that
directory is created before running the function.

[YOCTO #10159]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobusybox: Add parallel make fix
Richard Purdie [Fri, 19 Aug 2016 15:28:17 +0000 (16:28 +0100)]
busybox: Add parallel make fix

We're seeing regular parallel make failures in applet headers in busybox.
This adds a patch to try and avoid the issue, building upon a fix already
backported from upstream. The patch has been sent to upstream.

[YOCTO #10116]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosanity.bbclass: Ensure we expand BUILD_PREFIX
Richard Purdie [Fri, 19 Aug 2016 15:27:43 +0000 (16:27 +0100)]
sanity.bbclass: Ensure we expand BUILD_PREFIX

This likely used to work when we expanded python functions and broke when
we stopped. Since it defaults to "", it never caused an issue but
is incorrect usage so fix it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolocal.conf.sample: Disable ARM and PPC due to prelink test case failures
Mark Hatle [Thu, 18 Aug 2016 17:04:16 +0000 (12:04 -0500)]
local.conf.sample: Disable ARM and PPC due to prelink test case failures

Internal prelink test cases reloc8 and reloc9 are failing on both ARM
and PPC systems.  Disable them by removing the prelink from the
IMAGE_CLASSES setting.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoRevert "local.conf.sample: Disable prelink by default"
Mark Hatle [Mon, 15 Aug 2016 21:29:34 +0000 (16:29 -0500)]
Revert "local.conf.sample: Disable prelink by default"

This reverts commit 300f858ba07c938427ccd05a3d7220027a03d461.

Reenable prelink

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoprelink: Move to latest version of prelink
Mark Hatle [Thu, 18 Aug 2016 17:04:15 +0000 (12:04 -0500)]
prelink: Move to latest version of prelink

* Uprev rtld emulation to glibc-2.23
* Fix compilation warnings
* Add additional debug scopes
* Change rtld build_local_scope to be breadth-first
* Fix LD_PRELOAD emulation
* Change function reordering to work with latest binutils

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc: Upgrade to 6.2 RC1
Khem Raj [Tue, 16 Aug 2016 18:50:35 +0000 (11:50 -0700)]
gcc: Upgrade to 6.2 RC1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
8 years agolibunwind: Fix build race conflict with gcc and musl
Richard Purdie [Thu, 18 Aug 2016 13:46:32 +0000 (14:46 +0100)]
libunwind: Fix build race conflict with gcc and musl

Building libunwind, then gcc-runtime causes build failures. This is hard
to fix since gcc-runtime wants the internal gcc unwind.h header but libunwind
wants to provide this. There are differences in include behaviour between gcc
and glibc which are by design.

This patch hacks around the issue by looking for a define used during gcc-runtime's
build and skipping to the internal header in that case. The patch is only enabled
on musl and is the best workaround I could come up with to unblock failing builds
on our autobuilder.

[YOCTO #10129]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd-compat-units: Only enable for systemd in DISTRO_FEATURES
Richard Purdie [Thu, 18 Aug 2016 13:43:57 +0000 (14:43 +0100)]
systemd-compat-units: Only enable for systemd in DISTRO_FEATURES

This recipe only makes sense when systemd is enabled and otherwise causes
world build failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd-compat-units: pkg_postinst() does not work
Joe Slater [Mon, 15 Aug 2016 23:04:53 +0000 (16:04 -0700)]
systemd-compat-units: pkg_postinst() does not work

The test for various files is wrong and will always be
true, even if init.d does not exist.

Exit if init.d does not exist, and correctly test for
file existence otherwise.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosanity: Require bitbake 1.31.1 for multi-config changes
Richard Purdie [Thu, 18 Aug 2016 09:07:18 +0000 (10:07 +0100)]
sanity: Require bitbake 1.31.1 for multi-config changes

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool/recipetool/meta: Adapt to bitbake API changes for multi-configuration builds
Richard Purdie [Tue, 16 Aug 2016 17:00:13 +0000 (18:00 +0100)]
devtool/recipetool/meta: Adapt to bitbake API changes for multi-configuration builds

Unfortunately to implenent multiconfig support in bitbake some APIs
had to change. This updates code in OE to match the changes in bitbake.
Its mostly periperhal changes around devtool/recipetool

[Will need a bitbake version requirement bump which I'll make when merging]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoparselogs: Ignore amb_nb warning messages under qemux86*
Richard Purdie [Thu, 18 Aug 2016 07:53:25 +0000 (08:53 +0100)]
parselogs: Ignore amb_nb warning messages under qemux86*

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoparselogs.py: Add failed to setup card detect gpio error on x86
California Sullivan [Wed, 17 Aug 2016 05:14:55 +0000 (22:14 -0700)]
parselogs.py: Add failed to setup card detect gpio error on x86

This error has occurred on the MinnowBoard Max and Turbot since its
inception. It supposedly indicates a non-working SD card reader, but
ours works fine. Whitelist the error.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoparselogs.py: Add dmi and ioremap errors to ignore list for core2
California Sullivan [Wed, 17 Aug 2016 05:14:54 +0000 (22:14 -0700)]
parselogs.py: Add dmi and ioremap errors to ignore list for core2

These errors have been occuring since the introduction of the 4.4
kernel with no apparent functionality loss. Whitelist for now.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoparselogs.py: Ignore Skylake graphics firmware load errors on genericx86-64
California Sullivan [Wed, 17 Aug 2016 05:14:53 +0000 (22:14 -0700)]
parselogs.py: Ignore Skylake graphics firmware load errors on genericx86-64

These errors can't be fixed without adding the firmware to the initramfs
and building it into the kernel, which we don't want to do for
genericx86-64. Since graphics still work acceptably without the firmware
blobs, just ignore the errors for that MACHINE.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestimage: allow using kvm when running qemux86* machines
Bill Randle [Tue, 16 Aug 2016 23:08:11 +0000 (16:08 -0700)]
testimage: allow using kvm when running qemux86* machines

Using kvm can provide significant speedups when running qemux86* machines
on an x86* host. Enabled by using the new QEMU_USE_KVM variable.

[YOCTO #9298]

Signed-off-by: Bill Randle <william.c.randle@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage.bbclass: rename COMPRESS(ION) to CONVERSION
Patrick Ohly [Fri, 29 Jul 2016 14:58:52 +0000 (17:58 +0300)]
image.bbclass: rename COMPRESS(ION) to CONVERSION

With the enhanced functionality, the term "compression" is no longer
accurate, because the mechanism also gets used for conversion
operations that do not actually compress data.

It is possible to remove this naming problem in a backward-compatible
manner by including COMPRESSIONTYPES in CONVERSIONTYPES and checking for
the old COMPRESS_CMD/DEPENDS as fallbacks.

[YOCTO #9346]

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogrub: split grub-editenv into it's own package
Alejandro del Castillo [Tue, 16 Aug 2016 14:00:30 +0000 (17:00 +0300)]
grub: split grub-editenv into it's own package

grub-editenv edits the env block at runtime on a booted system. Other
tools can depend on it to configure a live system, for ex. to set next
boot mode upon reboot. By splitting grub-editenv, tools don't have to
depend on the entire grub package (grub-editenv just edits one file).

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobash: 4.3.39 -> 4.3.46
Dengke Du [Tue, 16 Aug 2016 09:50:42 +0000 (05:50 -0400)]
bash: 4.3.39 -> 4.3.46

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoopenssh: add ed25519 host key location to read-only sshd config
André Draszik [Tue, 16 Aug 2016 10:46:46 +0000 (11:46 +0100)]
openssh: add ed25519 host key location to read-only sshd config

It's simply been missing.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoconnman: add missing space in _append
André Draszik [Tue, 16 Aug 2016 10:38:34 +0000 (11:38 +0100)]
connman: add missing space in _append

We do that everywhere else, and otherwise anybody
extending SRC_URI through bbappend must know to
add a space at the end, which is an unusual
requirement.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokernel-yocto: streamline patch, configuration and audit phases
Bruce Ashfield [Mon, 15 Aug 2016 18:26:59 +0000 (14:26 -0400)]
kernel-yocto: streamline patch, configuration and audit phases

We've been running with a set of kern-tools that were designed to work
with build systems that knew nothing about git, trees, commits, etc.

As such, there's been a set of shims/wrappers in place to work with
within bitbake/oe-core. These were the *me scripts: createme, updateme,
patchme and configme.

With this commit, we strip that legacy code and use the tools directly.
This means less complexity, fewer corner cases .. and no surprises
when the tools are arunning. As another benefit, the tools consume
much less time during a typical build and have no noticeable impact
on the overall build time.

Existing .scc files, features, and processing are not impacted as
these tools are compatible with existing feature descriptions and
kerne configuration fragments.

The audit of kernel configuration fragments is now detached
from the linux-yocto build structure and process. This means that
they can eventually be tweaked to offer kernel audit to any type of
kernel build and configuration process.

Additionally, the kernel symbol audit phase can now resolve symbol
dependencies and offer guidance when a symbol is missing:

   WARNING: linux-yocto-4.4.15+gitAUTOINC+b030d96c7b_f5e2c49d58-r0 do_kernel_configcheck: [kernel config]: specified values did not make it into the kernel's final configuration:

   ---------- CONFIG_BT_6LOWPAN -----------------
   Config: CONFIG_BT_6LOWPAN
   From: /home/bruce/poky/build/tmp/work-shared/qemux86-64/kernel-source/.kernel-meta/configs/standard/features/bluetooth/bluetooth.cfg
   Requested value:  CONFIG_BT_6LOWPAN=y
   Actual value:

   Config 'BT_6LOWPAN' has the following conditionals:
     BT_LE && 6LOWPAN (value: "n")
   Dependency values are:
     BT_LE [y] 6LOWPAN [n]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-yocto/4.4: -rt update patch meta-data to remove ()
Bruce Ashfield [Mon, 15 Aug 2016 18:26:58 +0000 (14:26 -0400)]
linux-yocto/4.4: -rt update patch meta-data to remove ()

The existing kernel patching scripts don't like () in patch names, since they
are detected as function calls. Although the scripts will be updated to avoid
this error, it is worthwhile fixing the patch names in the meantime.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-yocto/4.1: config updates
Bruce Ashfield [Mon, 15 Aug 2016 18:26:57 +0000 (14:26 -0400)]
linux-yocto/4.1: config updates

Integrating the following configuration changes:

 features: usb-net: provide more coverage on USB network devices
 features: broxton: enable iTCO watchdog support
 features: broxton: enable iSMT support
 features: broxton: enable LPC bridge function for Intel ICH and SCH

Signed-off-by: Bruce Ashfield <bruce@zedd.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-yocto/4.1: bump to v4.1.29
Bruce Ashfield [Mon, 15 Aug 2016 18:26:56 +0000 (14:26 -0400)]
linux-yocto/4.1: bump to v4.1.29

Integrating the korg 4.1.29 -stable release

Signed-off-by: Bruce Ashfield <bruce@zedd.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-yocto/4.1: netfilter: x_tables: fix stable backport
Bruce Ashfield [Mon, 15 Aug 2016 18:26:55 +0000 (14:26 -0400)]
linux-yocto/4.1: netfilter: x_tables: fix stable backport

There was an issue with a netfilter backport in 4.1.28-stable. To
address it, we backport the -stable fix:

    netfilter: x_tables: fix stable backport

    Stable-4.1 backport of mainline commit 364723410175 ("netfilter:
    x_tables: validate targets of jumps") doesn't handle correctly the fact
    that 4.1 kernel is missing commit 482cfc318559 ("netfilter: xtables:
    avoid percpu ruleset duplication") so that t->entries is still a per-cpu
    array in find_jump_target().

    Use the same fix as e.g. stable-3.14 backport.

Fixes: 8163327a3a92 ("netfilter: x_tables: validate targets of jumps")
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodbus: 1.10.8 -> 1.10.10
Dai Caiyun [Wed, 17 Aug 2016 09:25:17 +0000 (17:25 +0800)]
dbus: 1.10.8 -> 1.10.10

Upgrade dbus from 1.10.8 to 1.10.10.

Signed-off-by: Dai Caiyun <daicy.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobusybox: Backport makefile fix from upstream
Richard Purdie [Wed, 17 Aug 2016 11:54:27 +0000 (12:54 +0100)]
busybox: Backport makefile fix from upstream

This at least partially addresses one of the build races we've seen
on the autobuilder in busybox. Its a straightforward backport from
upstream.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogobject-introspection: Ensure prelink config file exists to avoid build failures
Richard Purdie [Wed, 17 Aug 2016 11:53:16 +0000 (12:53 +0100)]
gobject-introspection: Ensure prelink config file exists to avoid build failures

gobject-introspection relies upon prelink-rtld. In order to function correctly,
we generate an ld.so.conf file which is generated before users of prelink-rtld
are called.

There is currently a race in gobject-introspection since the configuration file
may not have been created. This adds in code to ensure that regardless of codepath
(new build, existing build, from sstate), we trigger the creation of the configuration
file and avoid build failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoalsa-utils: 1.1.1 -> 1.1.2
Tanu Kaskinen [Wed, 17 Aug 2016 11:20:30 +0000 (14:20 +0300)]
alsa-utils: 1.1.1 -> 1.1.2

Changelog:
http://www.alsa-project.org/main/index.php/Changes_v1.1.1_v1.1.2

The FFT code in alsabat changed from double precision to single
precision floating point numbers, which is why the fftw dependency
changed to fftwf.

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoalsa-lib: 1.1.1 -> 1.1.2
Tanu Kaskinen [Wed, 17 Aug 2016 11:20:29 +0000 (14:20 +0300)]
alsa-lib: 1.1.1 -> 1.1.2

Changelog:
http://www.alsa-project.org/main/index.php/Changes_v1.1.1_v1.1.2

Removed upstreamed patch:
0001-pcm_plugin-fix-appl-pointer-not-correct-when-mmap_co.patch

Rebased avoid-including-sys-poll.h-directly.patch

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: use oe.path.remove()
Markus Lehtonen [Fri, 12 Aug 2016 11:35:54 +0000 (14:35 +0300)]
oeqa.buildperf: use oe.path.remove()

Drop the self-baked force_rm() method.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: be more verbose about failed commands
Markus Lehtonen [Thu, 30 Jun 2016 12:53:52 +0000 (15:53 +0300)]
oeqa.buildperf: be more verbose about failed commands

Log failures of commands whose output is stored.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-build-perf-test: simplify stderr log format
Markus Lehtonen [Tue, 16 Aug 2016 09:16:47 +0000 (12:16 +0300)]
oe-build-perf-test: simplify stderr log format

Remove timestamps from the stderr log in order to make the console
output more readable, i.e. more in line with the output from unittest
runner.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-build-perf-test: set-up file logging as early as possible
Markus Lehtonen [Tue, 16 Aug 2016 09:15:59 +0000 (12:15 +0300)]
oe-build-perf-test: set-up file logging as early as possible

So that the log file would not miss any records.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-build-perf-test: suppress logger output when tests are being run
Markus Lehtonen [Wed, 29 Jun 2016 17:11:28 +0000 (20:11 +0300)]
oe-build-perf-test: suppress logger output when tests are being run

Prevent logger from writing to stderr when the tests are being run by
the TestRunner. During this time the logger output is only written to
the log file. This way the console output from the script is cleaner and
not mixed with possible logger records.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: introduce runCmd2()
Markus Lehtonen [Wed, 29 Jun 2016 16:45:41 +0000 (19:45 +0300)]
oeqa.buildperf: introduce runCmd2()

Special runCmd() for build perf tests which doesn't raise an
AssertionError when the command fails. This causes command failures to
be detected as test errors instead of test failures. This way "failed"
state of tests is reserved for future making it possible to set e.g.
thresholds for certain measurement results.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-build-perf-test: use new unittest based framework
Markus Lehtonen [Mon, 27 Jun 2016 12:16:34 +0000 (15:16 +0300)]
oe-build-perf-test: use new unittest based framework

Convert scripts/oe-build-perf-test to be compatible with the new Python
unittest based buildperf test framework.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: convert test cases to unittest
Markus Lehtonen [Tue, 28 Jun 2016 07:12:24 +0000 (10:12 +0300)]
oeqa.buildperf: convert test cases to unittest

This commit converts the actual tests to be compatible with the new
Python unittest based framework.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: add BuildPerfTestResult class
Markus Lehtonen [Wed, 29 Jun 2016 16:28:31 +0000 (19:28 +0300)]
oeqa.buildperf: add BuildPerfTestResult class

The new class is derived from unittest.TextTestResult class. It is
actually implemented by modifying the old BuildPerfTestRunner class
which, in turn, is replaced by a totally new simple implementation
derived from unittest.TestRunner.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: add BuildPerfTestLoader class
Markus Lehtonen [Mon, 27 Jun 2016 12:15:57 +0000 (15:15 +0300)]
oeqa.buildperf: add BuildPerfTestLoader class

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: derive BuildPerfTestCase class from unitest.TestCase
Markus Lehtonen [Mon, 27 Jun 2016 12:05:10 +0000 (15:05 +0300)]
oeqa.buildperf: derive BuildPerfTestCase class from unitest.TestCase

Rename BuildPerfTest to BuildPerfTestCase and convert it to be derived
from TestCase class from the unittest framework of the Python standard
library. This doesn't work with our existing testcases or test runner
class and these need to be modified, too.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: rename module containing basic tests
Markus Lehtonen [Mon, 27 Jun 2016 11:45:02 +0000 (14:45 +0300)]
oeqa.buildperf: rename module containing basic tests

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuildperf: Add support for times without decimal part
Jose Perez Carranza [Wed, 10 Aug 2016 15:36:17 +0000 (10:36 -0500)]
buildperf: Add support for times without decimal part

Add logic for the cases when the time retrieved does
not have decimal part.

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oeqa/selftest/bbtests: don't report expected failures
Ross Burton [Thu, 11 Aug 2016 12:33:33 +0000 (13:33 +0100)]
lib/oeqa/selftest/bbtests: don't report expected failures

Another instance where expected failures need to be not reported to the error
reporting service.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/runtime/syslog.py: Improve test_syslog_logger on systemd
Aníbal Limón [Thu, 11 Aug 2016 20:18:16 +0000 (15:18 -0500)]
oeqa/runtime/syslog.py: Improve test_syslog_logger on systemd

When an image uses systemd journald acts as a main syslog daemon using
/dev/log.

The test_syslog_logger try to log a predifined message into the syslog
using logger and then search using grep in /var/log/messages if this
fails for some reason (file rotated) now search the predifined message
into the journal.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython3.5-manifest: Fixes several dependencies on the newest python3
Alejandro Hernandez [Fri, 12 Aug 2016 21:03:33 +0000 (21:03 +0000)]
python3.5-manifest: Fixes several dependencies on the newest python3

This patch adds the following packages: python3-enum (needed by python3-git),
python3-selectors (needed by python3-subprocess), python3-signal (needed by python3-subprocess),
and it also fixes the following ones with missing dependencies: python3-subprocess,
python3-compression, python3-datetime

[YOCTO #10127] [YOCTO #10124] [YOCTO #10122]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoncurses: upgrade to 6.0+20160625
Hongxu Jia [Mon, 15 Aug 2016 07:35:59 +0000 (03:35 -0400)]
ncurses: upgrade to 6.0+20160625

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agognupg: upgrade to 2.1.14
Hongxu Jia [Mon, 15 Aug 2016 07:35:58 +0000 (03:35 -0400)]
gnupg: upgrade to 2.1.14

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoman-pages: upgrade to 4.07
Hongxu Jia [Mon, 15 Aug 2016 07:35:57 +0000 (03:35 -0400)]
man-pages: upgrade to 4.07

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython3-git: Fixes dependencies, avoiding to install python3-misc
Alejandro Hernandez [Fri, 12 Aug 2016 21:03:35 +0000 (21:03 +0000)]
python3-git: Fixes dependencies, avoiding to install python3-misc

This patch adds the following dependencies to be able to import git on
python3: python3-enum, python3-logging, python3-datetime, python3-netclient.

[YOCTO #9757]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython3-gitdb: Fixes zlib missing dependency
Alejandro Hernandez [Fri, 12 Aug 2016 21:03:34 +0000 (21:03 +0000)]
python3-gitdb: Fixes zlib missing dependency

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogmp: Fix wrong detection of -march flag
Khem Raj [Fri, 12 Aug 2016 18:10:22 +0000 (11:10 -0700)]
gmp: Fix wrong detection of -march flag

Configure detects -march flag based upon target
triplet, it wrongly passes -march=armv4 for all
arm, this is unearthed when compiling with clang
since it errors out with flags like

/tmp/kraj01/a-0c2038.s:27: Error: selected processor does not support `bx r0' in ARM mode

since it does not pass --fix-v4bx along with
-march=armv4, which does not happen with gcc
toolchain since this flag is passed impicitly hence
this error was indetected

Fixed thusly

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agograph-tool: update to new networkx API, be iterative
Ross Burton [Fri, 12 Aug 2016 16:22:13 +0000 (17:22 +0100)]
graph-tool: update to new networkx API, be iterative

Update the dot parser to the new networkx API (using pydotplus to parse).

Also, switch the path display to output the paths as they are found instead of
collecting them into a list, so output appears sooner.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython-3.5-manifest: Add some missing RDEPENDS
Kyle Russell [Wed, 3 Aug 2016 16:32:39 +0000 (12:32 -0400)]
python-3.5-manifest: Add some missing RDEPENDS

ctype's util.py needs subprocess
lang's inspect.py needs importlib.machinery
math's random.py needs crypt's hashlib
subprocess imports threading

Signed-off-by: Kyle Russell <bkylerussell@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibpng: update 1.6.23 -> 1.6.24
Maxin B. John [Fri, 12 Aug 2016 12:24:40 +0000 (15:24 +0300)]
libpng: update 1.6.23 -> 1.6.24

Updates in License files are due to changes in Copyright date
and Version.

Ensure all tools are packaged into $PN-tools.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibtasn1: Backport compiler warning fixes
Khem Raj [Fri, 12 Aug 2016 03:31:15 +0000 (20:31 -0700)]
libtasn1: Backport compiler warning fixes

These patches are backported from master to fix issues raised by clang
compiler.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoffmpeg: Pas CC and CXX to configure
Khem Raj [Fri, 12 Aug 2016 03:31:14 +0000 (20:31 -0700)]
ffmpeg: Pas CC and CXX to configure

This helps in compiling it with with toolchain coming from
a sstate server where its built using a different build time
sysroot.

Secondly, also helps compiling with non-gcc ( clang ) compiler

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocurl: upgrade to 7.50.1
Ross Burton [Fri, 12 Aug 2016 10:26:15 +0000 (11:26 +0100)]
curl: upgrade to 7.50.1

This fixes 3 CVES:

CVE-2016-5419
CVE-2016-5420
CVE-2016-5421

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoUse PYTHON_SITEPACKAGES_DIR insted of hard-coded *site-packages*
Ming Liu [Tue, 9 Aug 2016 08:01:41 +0000 (10:01 +0200)]
Use PYTHON_SITEPACKAGES_DIR insted of hard-coded *site-packages*

For thoese recipes that are inheriting python*-dir.bbclass, there is
already a PYTHON_SITEPACKAGES_DIR present, use that definition replacing
redundant "${libdir}/python*/site-packages".

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoinit-install*: /etc/mtab make a link rather than a copy
Awais Belal [Mon, 1 Aug 2016 11:31:43 +0000 (16:31 +0500)]
init-install*: /etc/mtab make a link rather than a copy

Using a copy would only make management of devices erroneous
and makes the system unstable in some scenarios as tools will
have to manipulate both files separately. A link ensures that
both files /proc/mounts and /etc/mtab will have the same
information at all times and this is how it is handled
on newer systems where there is such a need. Same is
suggested by busybox.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agonpm: npm.bbclass now adds nodejs to RDEPENDS
Henry Bruce [Wed, 10 Aug 2016 23:26:37 +0000 (16:26 -0700)]
npm: npm.bbclass now adds nodejs to RDEPENDS

We expect that any package that uses the npm bbclass
will have a runtime dependency on node.js

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoiproute2: update 4.6.0 -> 4.7.0
Maxin B. John [Thu, 11 Aug 2016 13:56:43 +0000 (16:56 +0300)]
iproute2: update 4.6.0 -> 4.7.0

4.6.0 -> 4.7.0

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosqlite3: update 3.13.0 -> 3.14.0
Maxin B. John [Thu, 11 Aug 2016 13:56:42 +0000 (16:56 +0300)]
sqlite3: update 3.13.0 -> 3.14.0

3.13.0 -> 3.14.0

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoperl-native: backport libnm link fix
Ioan-Adrian Ratiu [Thu, 11 Aug 2016 13:49:15 +0000 (16:49 +0300)]
perl-native: backport libnm link fix

pre-5.25.0 perl by default tries to link to an antiquated libnm (new
math) which is not used anymore since the early 1990's. After 2014
another libnm appeared for NetworkManager causing build failures.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxinput-calibrator: remove bash dependency
Maxin B. John [Tue, 9 Aug 2016 14:36:18 +0000 (17:36 +0300)]
xinput-calibrator: remove bash dependency

Refresh add-geometry-input-when-calibrating.patch to remove
bashism from it.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
8 years agoclasses/populate_sdk_ext: drop duplicated error message
Paul Eggleton [Thu, 11 Aug 2016 04:45:07 +0000 (16:45 +1200)]
classes/populate_sdk_ext: drop duplicated error message

The preparation script itself prints out an error on failure, and we
aren't redirecting its output anymore, so we no longer need to print out
a message here when it fails. At the same time, make the message printed
out by the script a little clearer - we're just writing the log out to
the file, we shouldn't give the user an expectation that there will be
extra details in there (other than the output produced by
oe-init-build-env there won't be).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/populate_sdk_ext: add some pre-install checks
Paul Eggleton [Thu, 11 Aug 2016 04:45:06 +0000 (16:45 +1200)]
classes/populate_sdk_ext: add some pre-install checks

Check a number of things as early as possible in the eSDK installer
script so that the user gets an error up front rather than waiting for
the build system to be extracted and then have the error produced:

* Check for missing utilities specified in SANITY_REQUIRED_UTILITIES
  (along with gcc and g++), taking into account that some of these are
  satisfied by buildtools which ships as part of the SDK. We use the
  newly added capability to list an SDK's contents to allow us to see
  exactly which binaries are inside the buildtools installer.
* Check that Python is available (since the buildtools installer's
  relocate script is written in Python).
* Check that locale value set by the script is actually available
* Check that the install path is not on NFS

This does duplicate some of the checks in sanity.bbclass but it's
difficult to avoid that given that here they have to be written in shell
and there they are written in Python, as well as the fact that we only
need to run some of the checks here and not all (i.e. the ones that
relate to the host system or install path, and not those that check the
configuration or metadata). Given those issues and the fact that the
amount of code is fairly small I elected to just re-implement the checks
here.

Fixes [YOCTO #8657].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotoolchain-shar-extract.sh: add option to list contents
Paul Eggleton [Thu, 11 Aug 2016 04:45:05 +0000 (16:45 +1200)]
toolchain-shar-extract.sh: add option to list contents

Add a -l command-line option for SDK installers to get a list of files
that will be extracted by the SDK - internally this just runs "tar tv"
on the embedded tarball. This can be used to look at which files the SDK
provides without actually installing it. The initial user of this is the
extensible SDK build process which needs to know what binaries are going
to be installed by the buildtools installer without installing it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/populate_sdk_ext: properly determine buildtools filename
Paul Eggleton [Thu, 11 Aug 2016 04:45:04 +0000 (16:45 +1200)]
classes/populate_sdk_ext: properly determine buildtools filename

Determine the name of the current buildtools installer ahead of time,
set it in a variable and use that variable rather than the wildcarded
version everywhere, since it's much tidier.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/populate_sdk_ext: properly handle buildtools install failure
Paul Eggleton [Thu, 11 Aug 2016 04:45:03 +0000 (16:45 +1200)]
classes/populate_sdk_ext: properly handle buildtools install failure

If the buildtools installation failed, we were using a subshell instead
of a compound command and thus the subshell exited but the script
continued on, which is really not what we want to happen. Additionally
log the buildtools installer output to a file and cat it if it fails so
that you can actually see what went wrong, as well as amending the
environment setup script to print a warning as we do when the
preparation fails.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oe/copy_buildsystem: fix merging sstate directories for eSDK
Paul Eggleton [Thu, 11 Aug 2016 04:45:02 +0000 (16:45 +1200)]
lib/oe/copy_buildsystem: fix merging sstate directories for eSDK

When we don't have uninative enabled there's more merging to be done in
the default configuration (SDK_EXT_TYPE = "full" which by default means
SDK_INCLUDE_TOOLCHAIN = "1") and there are likely files that already
exist in the sstate feed we're assembling, so we need to take care to
merge the directory contents rather than just moving the directories
over. Additionally we now only run this if uninative genuinely isn't
enabled (i.e. NATIVELSBSTRING is different to the fixed value of
"universal".)

In the process of fixing this I discovered an unusual behaviour in
os.rename() - when we're merging these feeds we're dealing with
hard-linked sstate artifacts, and whilst os.rename() is supposed to
silently overwrite an existing destination (permissions allowing), if
you have the source and destination as hardlinks to the same file then
the os.rename() call will just silently fail. As a result the code now
just checks if the destination exists and deletes the source if so
(since we know it will be the same file, we don't need to check in this
case.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/populate_sdk_ext: sstate filtering fixes
Paul Eggleton [Thu, 11 Aug 2016 04:45:01 +0000 (16:45 +1200)]
classes/populate_sdk_ext: sstate filtering fixes

A couple of fixes for the recent sstate filtering implemented in OE-Core
revision 4b7b48fcb9b39fccf8222650c2608325df2a4507:

* We shouldn't be deleting the downloads directory here, since it
  contains the uninative tarball that we will need
* TMPDIR might not be named "tmp" - in OE-Core the default is tmp-glibc
  so use the actual name of TMPDIR here instead.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/populate_sdk_ext: handle lack of uninative when filtering sstate
Paul Eggleton [Thu, 11 Aug 2016 04:45:00 +0000 (16:45 +1200)]
classes/populate_sdk_ext: handle lack of uninative when filtering sstate

If the build in which the eSDK is being built isn't using uninative,
this will have an effect on NATIVELSBSTRING, which will mean that the
eSDK installer won't be able to find any of the native sstate packages.
To keep things simple, under this scenario just disable uninative
temporarily while we run the SDK installer to help us check the presence
of the sstate artifacts we need. Ideally I'd rather not have things like
this that are artificial in this verification step, but on the other
hand this was the least ugly way to solve the problem.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/populate_sdk_ext: ensure eSDK can build without uninative enabled
Paul Eggleton [Thu, 11 Aug 2016 04:44:59 +0000 (16:44 +1200)]
classes/populate_sdk_ext: ensure eSDK can build without uninative enabled

We were relying on uninative being enabled in the build in which the
eSDK was being produced, which is not the case for example for OE-Core's
default configuration. Move the code that copies the uninative tarball
and writes the checksum to copy_buildsystem so that it happens early
enough for that part of the configuration to be set up when we do the
filtering (which requires running bitbake).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogen-lockedsig-cache: ensure symlinks are dereferenced
Paul Eggleton [Thu, 11 Aug 2016 04:44:58 +0000 (16:44 +1200)]
gen-lockedsig-cache: ensure symlinks are dereferenced

If you set up a local mirror in SSTATE_MIRRORS then you can end up with
symlinks in SSTATE_DIR rather than real files. We don't want these
symlinks in the sstate-cache prodcued by gen-lockedsig-cache, so
dereference any symlinks before copying.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-buildenv-internal: hint at specifying bitbake path in error message
Paul Eggleton [Thu, 11 Aug 2016 04:37:34 +0000 (16:37 +1200)]
oe-buildenv-internal: hint at specifying bitbake path in error message

If you check out OE-Core and then run oe-init-build-env you get an error
about not having bitbake checked out in a "bitbake" subdirectory,
however it's possible to specify the bitbake path on the
oe-init-build-env command line, so hint at that in the error message
rather than implying it has to be in the default location.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoccache.bbclass: don't remove CCACHE_DIR as part of do_clean
Andre McCurdy [Thu, 11 Aug 2016 08:38:54 +0000 (01:38 -0700)]
ccache.bbclass: don't remove CCACHE_DIR as part of do_clean

Removing the ccache directory as part of do_clean is unnecessarily
conservative and defeats many of the benefits of ccache.

The original justification for this behaviour was to avoid confusion
in the corner case that the ccache directory becomes corrupted.
However the standard approach for dealing with such highly unlikely
corner cases (ie manually removing tmp) would also recover from
corruption of the ccache directories, without the negative impact of
defeating ccache during normal development.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosystemd: fix typo in avoid-using-system-auth.patch
Dmitry Rozhkov [Wed, 10 Aug 2016 09:47:56 +0000 (12:47 +0300)]
systemd: fix typo in avoid-using-system-auth.patch

The patch 0015-systemd-user-avoid-using-system-auth.patch
makes PAM session for systemd-user include common-account file
which doesn't contain any session related lines and that breaks
launching "systemd --user" with the error:

Jul 29 13:03:24 intel-corei7-64 systemd[691]: user@0.service: Failed
at step PAM spawning /lib/systemd/systemd: Operation not permitted

This change fixes the patch by including common-session file
instead.

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoinit-install*: only pick root mmc devices
Awais Belal [Wed, 10 Aug 2016 08:14:16 +0000 (13:14 +0500)]
init-install*: only pick root mmc devices

Some eMMC devices show special sub-devices such as mmcblk0boot0
etc. The installation script currently pick all of them up and
displays it to the user which makes some confusions because these
sub-devices are pretty small and complete installation including
rootfs won't be possible in most cases.
We simply now drop these sub-devices and only present the user
with the root of such mmc devices.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosanity.bbclass: Only verify /bin/sh link if it's a link
Olof Johansson [Wed, 10 Aug 2016 07:38:48 +0000 (09:38 +0200)]
sanity.bbclass: Only verify /bin/sh link if it's a link

If /bin/sh is a regular file (and not a symlink), we assume it's a
reasonable shell and allow it.

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotiff: Security fix CVE-2016-5323
Yi Zhao [Wed, 10 Aug 2016 07:11:20 +0000 (15:11 +0800)]
tiff: Security fix CVE-2016-5323

CVE-2016-5323 libtiff: a maliciously crafted TIFF file could cause the
application to crash when using tiffcrop command

External References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-5323
http://bugzilla.maptools.org/show_bug.cgi?id=2559

Patch from:
https://github.com/vadz/libtiff/commit/2f79856097f423eb33796a15fcf700d2ea41bf31

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotiff: Security fix CVE-2016-5321
Yi Zhao [Wed, 10 Aug 2016 07:11:19 +0000 (15:11 +0800)]
tiff: Security fix CVE-2016-5321

CVE-2016-5321 libtiff: a maliciously crafted TIFF file could cause the
application to crash when using tiffcrop command

External References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-5321
http://bugzilla.maptools.org/show_bug.cgi?id=2558

Patch from:
https://github.com/vadz/libtiff/commit/d9783e4a1476b6787a51c5ae9e9b3156527589f0

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotiff: Security fix CVE-2016-3186
Yi Zhao [Wed, 10 Aug 2016 07:11:18 +0000 (15:11 +0800)]
tiff: Security fix CVE-2016-3186

CVE-2016-3186 libtiff: buffer overflow in the readextension function in
gif2tiff.c allows remote attackers to cause a denial of service via a
crafted GIF file

External References:
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-3186
https://bugzilla.redhat.com/show_bug.cgi?id=1319503

Patch from:
https://bugzilla.redhat.com/attachment.cgi?id=1144235&action=diff

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotiff: Security fix CVE-2015-8784
Armin Kuster [Wed, 10 Aug 2016 07:11:17 +0000 (15:11 +0800)]
tiff: Security fix CVE-2015-8784

CVE-2015-8784 libtiff: out-of-bound write in NeXTDecode()

External Reference:
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8784

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotiff: Security fix CVE-2015-8781
Armin Kuster [Wed, 10 Aug 2016 07:11:16 +0000 (15:11 +0800)]
tiff: Security fix CVE-2015-8781

CVE-2015-8781 libtiff: out-of-bounds writes for invalid images

External Reference:
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8781

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoe2fsprogs: Fix missing check for permission denied.
Jackie Huang [Wed, 10 Aug 2016 03:19:44 +0000 (11:19 +0800)]
e2fsprogs: Fix missing check for permission denied.

If the path to "ROOT_SYSCONFDIR /mke2fs.conf" has a permission denied problem,
then the get_dirlist() call will return EACCES. But the code in profile_init
will treat that as a fatal error and all executions will fail with:
      Couldn't init profile successfully (error: 13).

But the problem should not really be visible for the target package as the path
then will be "/etc/mke2fs.conf", and it is not likely that a user have no
permission to read /etc.

Signed-off-by: Jian Liu <jian.liu@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoinitrdscripts/init-install*: Add rootwait when installing to USB devices
California Sullivan [Tue, 9 Aug 2016 20:35:52 +0000 (13:35 -0700)]
initrdscripts/init-install*: Add rootwait when installing to USB devices

It can take a bit for USB devices to be detected, so if a USB device is
your rootfs and you don't set rootwait you will most likely get a kernel
panic. Fix this by adding rootwait to the kernel command line on
installation.

Fixes [YOCTO #9462].

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agou-boot.inc: Enable out-of-tree builds
Manjukumar Matha [Tue, 9 Aug 2016 17:15:07 +0000 (10:15 -0700)]
u-boot.inc: Enable out-of-tree builds

This patch enabled out-of-tree builds for u-boot. This also helps building
u-boot using EXTERNALSRC flow

Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodropbear/init: Allow extra arguments for key generation
Mike Looijmans [Tue, 9 Aug 2016 12:19:00 +0000 (14:19 +0200)]
dropbear/init: Allow extra arguments for key generation

This patch adds DROPBEAR_RSAKEY_ARGS and DROPBEAR_DSSKEY_ARGS optional
parameters to /etc/default/dropbear. The contents are simply passed to
the 'dropbearkey' program when generating a host key.

The default keysize for RSA is currently 2048 bits. It takes a CortexA9
running at 700MHz between 4 and 10 seconds to calculate a keypair. The
board boots Linux in about a second, but you have to wait for several
seconds because of the keypair generation. This patch allows one to put
the line DROPBEAR_RSAKEY_ARGS="-s 1024" into /etc/default/dropbear, and
have a host key generated in about 0.2 seconds on the same CPU. This is
particulary useful for read-only rootfs systems which generate a key on
each boot.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoinitramfs-live-boot: Make sure we kill udev before switching root when live booting
Alejandro Hernandez [Tue, 26 Jul 2016 22:10:02 +0000 (22:10 +0000)]
initramfs-live-boot: Make sure we kill udev before switching root when live booting

When live booting, we need to make sure the running udev processes are killed
to avoid unexepected behavior, we do this just before switching root,
once we do, a new udev process will be spawned from init and will take care
of whatever work was still missing

[YOCTO #9520]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocross-canadian.bbclass: Add BASECANADIANEXTRAOS to specify main extraos
Mark Hatle [Mon, 7 Dec 2015 21:36:11 +0000 (15:36 -0600)]
cross-canadian.bbclass: Add BASECANADIANEXTRAOS to specify main extraos

By default the system will expand the extra os entries for uclibc and musl
even if they are not enabled in the build.  There was no way to prevent this
behavior while still getting the expansion for things like x32 or spe.

The change adds a new setting which a distribution creator can override
easily, setting the base set of canadianextraos components.  The other
expansions are then based on this setting.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosecurity_flags.inc: enable PIE for a few recipes
Alexander Kanavin [Mon, 8 Aug 2016 14:07:44 +0000 (17:07 +0300)]
security_flags.inc: enable PIE for a few recipes

They used to fail with PIE enabled, but no longer do.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/oetest: Improve subprocess error reporting
Richard Purdie [Mon, 15 Aug 2016 16:56:40 +0000 (17:56 +0100)]
oeqa/oetest: Improve subprocess error reporting

Without this, we get to know the command failed and the exit code but
have no idea how the command failed since we don't get the output by
default.

This makes it much easier to see what went wrong and stand a chance of
fixing it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoreport-error: Fix tracebacks
Richard Purdie [Mon, 15 Aug 2016 17:05:24 +0000 (18:05 +0100)]
report-error: Fix tracebacks

Currently the code gives tracebacks if there are no recipes to be built in a
BuildStarted event. Parse the list into a string rather than just taking the
first item. There is nothing special about the first time.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agouninative: Update to 1.3
Richard Purdie [Fri, 12 Aug 2016 22:00:11 +0000 (23:00 +0100)]
uninative: Update to 1.3

Uninative 1.2 didn't contain the nativesdk locale fix we really needed
to release and update to uninative 1.3 which does contain that fix
and also uses glibc 2.24 final release.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>