]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agoguile: do_configure: fix "Argument list too long"
Robert Yang [Thu, 6 Apr 2017 10:05:54 +0000 (03:05 -0700)]
guile: do_configure: fix "Argument list too long"

Fixed when len(TMPDIR) =  410:
Can't exec "/bin/sh": Argument list too long at /usr/lib/perl/5.18/IO/File.pm line 65.

This is becuase it has a lot of m4 files, use relative path for them
can fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agom4: do_configure: fix "Argument list too long"
Robert Yang [Thu, 6 Apr 2017 10:05:53 +0000 (03:05 -0700)]
m4: do_configure: fix "Argument list too long"

Fixed when len(TMPDIR) =  410:
Can't exec "/bin/sh": Argument list too long at /usr/lib/perl/5.18/IO/File.pm line 65.

This is becuase it has a lot of m4 files, use relative path for them
can fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agovalgrind: set ac_cv_path_PERL to /usr/bin/env perl
Robert Yang [Thu, 6 Apr 2017 10:05:52 +0000 (03:05 -0700)]
valgrind: set ac_cv_path_PERL to /usr/bin/env perl

The shebang's max length is usually 128 as defined in
/usr/include/linux/binfmts.h:
  #define BINPRM_BUF_SIZE 128

So there would be errors when /path/to/hosttools/perl is longer than 128.

Set ac_cv_path_PERL to "/usr/bin/env perl" to fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomc: replace "perl -w" with "use warnings"
Robert Yang [Thu, 6 Apr 2017 10:05:51 +0000 (03:05 -0700)]
mc: replace "perl -w" with "use warnings"

The shebang's max length is usually 128 as defined in
/usr/include/linux/binfmts.h:
  #define BINPRM_BUF_SIZE 128

There would be errors when @PERL@ (hostools/perl) is longer than 128,
use '/usr/bin/env perl' can fix the problem, but '/usr/bin/env perl -w'
doesn't work:

/usr/bin/env: perl -w: No such file or directory

So replace "perl -w" with "use warnings" to make it work.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogroff: replace "perl -w" with "use warnings"
Robert Yang [Thu, 6 Apr 2017 10:05:50 +0000 (03:05 -0700)]
groff: replace "perl -w" with "use warnings"

The shebang's max length is usually 128 as defined in
/usr/include/linux/binfmts.h:
  #define BINPRM_BUF_SIZE 128

There would be errors when @PERL@ (hostools/perl) is longer than 128,
use '/usr/bin/env perl' can fix the problem, but '/usr/bin/env perl -w'
doesn't work:

/usr/bin/env: perl -w: No such file or directory

So replace "perl -w" with "use warnings" to make it work.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglibc/gcc/libgcc-initial: Delete do_build tasks for -initial
Richard Purdie [Wed, 5 Apr 2017 16:27:20 +0000 (17:27 +0100)]
glibc/gcc/libgcc-initial: Delete do_build tasks for -initial

We've had a lot of users running into RSS issues where -initial recipes
were being installed into sysroots alongside their counterparts and
causing overlapping files issues.

In general this was through do_build dependencies. Such dependencies are
bad in general and I'd encourage people to compare the taskgraphs with
using a more specific dependency like do_populate_sysroot, do_image_complete
or do_deploy as often the more specific dependency will result in a much
cleaner build.

Regardless, we don't want -initial dependencies getting in the way like
this and there are cases a do_build dependency could make sense.

Deleting the do_build task in these cases makes sense since this is not
a build "endpoint" we'd ever want a user to use, its a behind the scenes
piece of bootstrappping.

Unfortunately to make this work, we need a newer bitbake version which
has a bitbake bug fixed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosanity: Require bitbake 1.33.4
Richard Purdie [Thu, 6 Apr 2017 11:22:33 +0000 (12:22 +0100)]
sanity: Require bitbake 1.33.4

We need the bitbake bug in recrdeptask handling of missing tasks fixed in
order to apply a fix for OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobase-files: profile: Do not assume that the tty command exists
Peter Kjellerstedt [Mon, 3 Apr 2017 12:48:26 +0000 (14:48 +0200)]
base-files: profile: Do not assume that the tty command exists

This avoids the following error when logging in to a host that does
not have the tty command:

-sh: tty: not found

Reported-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobase-files: profile: Whitespace clean up
Peter Kjellerstedt [Mon, 3 Apr 2017 12:48:25 +0000 (14:48 +0200)]
base-files: profile: Whitespace clean up

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobusybox: Security fix BUG9071
Martin Balik [Wed, 5 Apr 2017 10:38:57 +0000 (12:38 +0200)]
busybox: Security fix BUG9071

Signed-off-by: Martin Balik <martin.balik@siemens.com>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoghostscript: CVE-2017-7207
Catalin Enache [Wed, 5 Apr 2017 12:06:51 +0000 (15:06 +0300)]
ghostscript: CVE-2017-7207

The mem_get_bits_rectangle function in Artifex Software, Inc.
Ghostscript 9.20 allows remote attackers to cause a denial
of service (NULL pointer dereference) via a crafted PostScript
document.

Reference:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-7207

Upstream patch:
http://git.ghostscript.com/?p=ghostpdl.git;h=309eca4e0a31ea70dcc844812691439312dad091

Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage.bbclass: add CONFFILES to pkgdata
David Vincent [Wed, 5 Apr 2017 15:43:07 +0000 (17:43 +0200)]
package.bbclass: add CONFFILES to pkgdata

Emit CONFFILES variable in pkgdata, or else the get_conffiles function
will return 'None' for some packages instead of the expected value. This
is especially true for optional module packages.

Signed-off-by: David Vincent <freesilicon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_ipk.bbclass: Replace empty lines in DESCRIPTION with '.'
Mariano Lopez [Wed, 5 Apr 2017 18:46:35 +0000 (11:46 -0700)]
package_ipk.bbclass: Replace empty lines in DESCRIPTION with '.'

opkg uses empty lines as separator for next package and if an ipk file was
packaged with empty lines in DESCRIPTION opkg won't be able to handle such ipk
file, this happens at execution time.

This commit will replace empty lines in DESCRIPTION with a '.' when generating
an ipk package to avoid this issue.

[YOCTO #10677]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-compat-layer: limit report of signature changes
Patrick Ohly [Wed, 5 Apr 2017 13:36:05 +0000 (15:36 +0200)]
yocto-compat-layer: limit report of signature changes

Typically a single change cascades through the entire task dependency
chain. Developers had to figure that out themselves, based on hard to
read and interpret output (not sorted, no indention, no explanations):

   $ yocto-compat-layer.py -n meta-xxxx
   ...
   AssertionError: True is not false : Layer meta-xxxx changed signatures.
   webkitgtk:do_install changed fe2edc9082bc0da98f9cb1391c52f565 -> b3a44684c5cd9aacd3f7c6ed88eefab5
   gstreamer1.0-plugins-good:do_configure changed 3b2f8211be3fe08422bf6087f3af16d1 -> 7d80e42fa1f4f01ff4dfe2ea4477d382
   pulseaudio:do_package_qa changed 5d0a58ada66ff17f5576555302ac319a -> 0e13bcb96143d1ae54c451bc3de0aa30
   epiphany:do_prepare_recipe_sysroot changed 29e1b277dbcb005bd54950594c50d91b -> d3c45527b37677a0668ce483c6db3052
   ...
   gst-player:do_packagedata changed 9ce6efdd357dd74919bc4957458b1e95 -> d0c083ce629f37adfc9c4ba9eff81f83
   gstreamer1.0-plugins-base:do_install changed 1161cd867d15bea63e5dd5d9abf0519c -> 5bf2b652a2d77fee3eedb35af2f201a0
   gstreamer1.0-rtsp-server:do_packagedata changed 6781dc3070f80b843ed1970d74dd323e -> 454620c2e3b9fea87e525d14b6ed0344
   alsa-plugins:do_packagedata changed 1808c3f737cb805b169d004e948ea19c -> 480124b7fa5eab1f73bf96440d725231

Now the tool automates the problem analysis: it retrieves the depgraph
using the tinfoil API and only reports those tasks with modified
signatures whose dependencies have not changed, i.e. those tasks which
definitely introduce a change.

>From the previous example, that just leaves two tasks that need to be
checked:

   AssertionError: False is not true : Layer meta-xxxx changed 120 signatures, initial differences (first hash without, second with layer):
      gstreamer1.0-plugins-base:do_fetch: 76973f19f2e30d282152bdd7e4efe5bb -> e6e7c6fa9f2bd59d7d8d107f7c6ca1ac
      pulseaudio:do_install: 668eb1e30af129df9806b0aa0d7c10cd -> 1196bdb88eef56eeee4613bb06b9387e

This pruning might be a bit too aggressive in the sense that tasks
which inherit a change and then add more changes themselves won't be
reported initially. They will be found when fixing the reported tasks
and re-running the check.

For a developer it seems better to have something listed which
definitely is a problem and needs fixing instead of everything,
including the tasks which don't need fixes.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-compat-layer: fix also other command invocations
Patrick Ohly [Wed, 5 Apr 2017 13:36:04 +0000 (15:36 +0200)]
yocto-compat-layer: fix also other command invocations

In commit 5b9ac62ab535d, one place was fixed where a command was
invoked such that failures caused double stack traces and stderr was
lost. The same problem also occurs elsewhere, triggered for example by
a layer with parsing problems.

Now a new utility method is used instead of repeating the code.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-build-perf-report-email.py: fix one file path
Markus Lehtonen [Thu, 6 Apr 2017 07:10:18 +0000 (10:10 +0300)]
oe-build-perf-report-email.py: fix one file path

Sending report email was not working correctly if the script was given
an html report path that contained directory components.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobusybox: Security fix CVE-2016-6301
Andrej Valek [Thu, 6 Apr 2017 07:07:37 +0000 (09:07 +0200)]
busybox: Security fix CVE-2016-6301

ntpd: NTP server denial of service flaw

CVE: CVE-2016-6301
Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: use realpath for imgdir
Robert Yang [Thu, 6 Apr 2017 06:41:37 +0000 (23:41 -0700)]
runqemu: use realpath for imgdir

The DEPLOY_DIR_IMAGE maybe relative or absolute path since it can be
read from env vars, so use realpath for both imgdir and
DEPLOY_DIR_IMAGE when compare.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: fix 2 typos
Robert Yang [Thu, 6 Apr 2017 06:41:33 +0000 (23:41 -0700)]
runqemu: fix 2 typos

* "is it" -> "it is"
* Remove "<image>.qemuboot.conf =" in the error message which looked strange.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/runtime/utils/targetbuildproject: use parent classes defaults tmpdir
Joshua Lock [Wed, 5 Apr 2017 12:10:55 +0000 (13:10 +0100)]
oeqa/runtime/utils/targetbuildproject: use parent classes defaults tmpdir

Rather than hard-coding the tmpdir for TargetBuildProject to /tmp allow the
parent's default handling to define an appropriate tmpdir.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/utils/targetbuild: tmp dir improvements
Joshua Lock [Wed, 5 Apr 2017 12:10:54 +0000 (13:10 +0100)]
oeqa/utils/targetbuild: tmp dir improvements

Don't hard-code /tmp as the tmpdir, instead use WORKDIR as the tmpdir if the
instantiater doesn't specify a value.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/utils/buildproject: create a more unique tmp dir
Joshua Lock [Wed, 5 Apr 2017 12:10:53 +0000 (13:10 +0100)]
oeqa/utils/buildproject: create a more unique tmp dir

Rather than hardcoding /tmp as the default tmpdir make a more unique tmpdir
with tempfile.mkdtemp() when the caller doesn't specify a tmpdir value.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglibc: fix nativesdk ldd RTLDLIST
Ming Liu [Tue, 4 Apr 2017 15:12:37 +0000 (17:12 +0200)]
glibc: fix nativesdk ldd RTLDLIST

Override RTLDLIST for nativesdk, or else ldd would fail to run on
SDK targets.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agonet-tools: Fix build with USE_NLS="no"
Jussi Kukkonen [Tue, 4 Apr 2017 08:09:29 +0000 (11:09 +0300)]
net-tools: Fix build with USE_NLS="no"

The configuration change was already done for -native but
we really want it when USE_NLS is set.

Fixes [YOCTO #11285].

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobusybox.inc: drop comment explaining '-e MAKEFLAGS=' in EXTRA_OEMAKE
Andre McCurdy [Tue, 4 Apr 2017 01:58:43 +0000 (18:58 -0700)]
busybox.inc: drop comment explaining '-e MAKEFLAGS=' in EXTRA_OEMAKE

EXTRA_OEMAKE no longer contains '-e MAKEFLAGS=' so the comment
explaining that it needs to be removed / over-ridden is obsolete.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoethtool: Switch to download mirror
Paul Barker [Sun, 2 Apr 2017 21:31:35 +0000 (22:31 +0100)]
ethtool: Switch to download mirror

The md5sum & sha256sum for ethtool-4.8.tar.gz have changed upstream :(

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest/devtool: skip test in case of poky-tiny distro
Leonardo Sandoval [Tue, 4 Apr 2017 04:20:08 +0000 (21:20 -0700)]
selftest/devtool: skip test in case of poky-tiny distro

The recipe being tested (devtoo-test-patch-gz) by devtool has dependencies (at
least libxres and virtual/libx11) that cannot be built with poky-tiny distro so
skip the test for this particular policy.

[YOCTO #10891]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibxml2: make dependencies on python conditional
Dmitry Rozhkov [Tue, 4 Apr 2017 06:46:46 +0000 (09:46 +0300)]
libxml2: make dependencies on python conditional

The library libxml2 can provide its own bindings for python2 in addition
to the third party python-lxml and python3-lxml packages if this
functionality is enabled in PACKAGECONFIG.

But in case the functionality is disabled there's no need to depend
on python2.

Make the dependency on python2 enabled only if the python feature
is added to PACKAGECONFIG. Also add missing run-time dependency on make
to libxml2-ptest.

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoyocto-uninative: Update to the 1.6 release
Joshua Lock [Mon, 3 Apr 2017 16:26:22 +0000 (17:26 +0100)]
yocto-uninative: Update to the 1.6 release

This release includes fixes for Windows/Mingw support.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agou-boot: Add bc-native to DEPENDS to fix u-boot/spl build.
Philip Balister [Mon, 3 Apr 2017 12:51:38 +0000 (08:51 -0400)]
u-boot: Add bc-native to DEPENDS to fix u-boot/spl build.

Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibjpeg-turbo: don't depend on NASM for non-x86 targets
Ross Burton [Mon, 3 Apr 2017 11:57:52 +0000 (12:57 +0100)]
libjpeg-turbo: don't depend on NASM for non-x86 targets

NASM is a x86-specific assembler so it is only required when building for x86
targets.  Use x86-architecture and class-target overrides to depend on NASM, but
explicitly disable and don't depend on it for native as complications in the
native overrides meant NASM was enabled for x86-64 but disabled for x86 (this
will be investigated later).

Original patch by Tristan Van Berkom <tristan.vanberkom@codethink.co.uk>, more
work to solve selftest failures by Richard Purdie
<richard.purdie@linuxfoundation.org>.  I just wrote a nice commit message.

Also fix some missing whitespace in _appends.

[ YOCTO #11240 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoquilt: Fix paths for patch and perl
Jussi Kukkonen [Thu, 30 Mar 2017 16:49:28 +0000 (19:49 +0300)]
quilt: Fix paths for patch and perl

Currently some shebang lines end up as
    #! /usr/bin/env perl -w
env does not like the argument. Also the current sed to insert env
does not cover the copies ptests use. Fix these issues by:
 - using --with-perl to insert "env"
 - Replacing "-w" in shebang lines with a new "use warning;" line

Remove a EXTRA_OECONF_append_class_target from the native recipe.
Don't overwrite EXTRA_OECONF in native: the values should be correct
for native as well.

--with-patch is used within the gnu patch wrapper only: before this
commit the wrapper contained a (build host) path to native patch.

Also tweak one test so busybox mv output is accepted.

All ptests should now pass: Fixes [YOCTO #11221].

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: improve error message
Chen Qi [Thu, 30 Mar 2017 08:37:36 +0000 (16:37 +0800)]
wic: improve error message

When using `wic create mkefidisk -e core-image-minimal', the following
error message appeared.

  Please bake it with 'bitbake parted-native' and try again.

However, following this command doesn't do any help. The same problem
still appeared.

The problem is that when we 'bitbake parted-native', it doesn't have
anything to do with core-image-minimal. And the required tool 'parted'
is not under core-image-minimal's recipe-sysroot-native directory.

Improve the error message so that following it could get things done.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoRevert "filemap: remove FilemapSeek class"
Ed Bartosh [Mon, 3 Apr 2017 15:31:00 +0000 (18:31 +0300)]
Revert "filemap: remove FilemapSeek class"

FIEMAP API is not supported by tmpfs file system, but
SEEK_HOLE/SEEK_DATA is supported.

Returned back FilemapSeek class that implements support
of SEEK_HOLE/SEEK_DATA API to make sparse_copy API working
on tmpfs again.

This reverts commit 6b80c13f7a82a312a3b981de5a56c66466ba1fac.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-perf-test-wrapper.sh: support sending email reports
Markus Lehtonen [Mon, 3 Apr 2017 15:58:39 +0000 (18:58 +0300)]
build-perf-test-wrapper.sh: support sending email reports

Add new '-E' command line option for sending an email report to
specified recipient.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-perf-test-wrapper.sh: support pushing to remote Git
Markus Lehtonen [Mon, 3 Apr 2017 15:58:38 +0000 (18:58 +0300)]
build-perf-test-wrapper.sh: support pushing to remote Git

Implement new '-P' option for spefifying a Git remote where to push
results after committing to a local Git repository.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-perf-test-wrapper.sh: correctly check test script exit status
Markus Lehtonen [Mon, 3 Apr 2017 15:58:37 +0000 (18:58 +0300)]
build-perf-test-wrapper.sh: correctly check test script exit status

Test of the exit code was accidentally moved to wrong place when
oe-git-archive was taken into use.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-perf-test-wrapper.sh: make it possible to specify Git branch name
Markus Lehtonen [Mon, 3 Apr 2017 15:58:36 +0000 (18:58 +0300)]
build-perf-test-wrapper.sh: make it possible to specify Git branch name

Support <branch>:<commit> format for the -c argument. This makes it
possible to test older commits of a certain branch (not just the tip of
it) so that the branch name will still be correctly recorded in the test
report data.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/oe-build-perf-report: fix typo
Markus Lehtonen [Mon, 3 Apr 2017 15:58:35 +0000 (18:58 +0300)]
scripts/oe-build-perf-report: fix typo

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/oe-build-perf-report: fix 'charts ready' console message
Markus Lehtonen [Mon, 3 Apr 2017 15:58:34 +0000 (18:58 +0300)]
scripts/oe-build-perf-report: fix 'charts ready' console message

The javascript console log messages are used in scraping, when
converting an html test report to html email. Before this patch a
console message indicating that all charts have been drawn was not
correctly sent if the last test failed (or didn't have chart data for
some other reason) which, in turn, caused oe-build-perf-report-email.py
script to fail with a timeout.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/oe-build-perf-report: better guessing of args
Markus Lehtonen [Mon, 3 Apr 2017 15:58:33 +0000 (18:58 +0300)]
scripts/oe-build-perf-report: better guessing of args

When getting info from the latest commit, don't search all refs but only
branches. We don't get correct data from refs/tags/* or refs/notest/*,
for example.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoyocto-compat-layer.py: Fix the signature validation
Mark Hatle [Fri, 31 Mar 2017 02:30:29 +0000 (21:30 -0500)]
yocto-compat-layer.py: Fix the signature validation

The initial signatures need to be collected -after- the dependency layers have
been added to the system.  Otherwise changes that happen due to dependencies,
outside of the layer being scanned, will show up as signature problems.

The add_layer function was split into two pieces so that we can process
the dependencies first, and then add the layer itself for the comparison.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocompatlayer/__init__.py: Allow add_layer to process recursive deps
Mark Hatle [Fri, 31 Mar 2017 02:30:28 +0000 (21:30 -0500)]
compatlayer/__init__.py: Allow add_layer to process recursive deps

When processing a layer for dependencies, you have to process the layer
itself, it's dependencies, the dependencies dependencies and so forth until
all items have been processed.

i.e.:  LayerA requires LayerB requires LayerC requires layerD

The end result should be LayerB, LayerC and LayerD are all dependencies of
LayerA.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoyocto-compat-layer.py: Add --dependency argument
Mark Hatle [Fri, 31 Mar 2017 02:30:27 +0000 (21:30 -0500)]
yocto-compat-layer.py: Add --dependency argument

When processing a large number of items, there are times that it would be
nice to be able to pass in a series of layers that can be used as dependencies
for the layer that is being scanned.  This avoids the significant overhead
of processing all of the layers to compatibility.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoyocto-compat-layer.py: Add status for skipped items
Mark Hatle [Fri, 31 Mar 2017 02:30:26 +0000 (21:30 -0500)]
yocto-compat-layer.py: Add status for skipped items

If items were skipped because the dependencies could not be found, we
want to record this was skipped so we can display it later.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts: Add yocto-compat-layer-wrapper
Aníbal Limón [Thu, 30 Mar 2017 20:01:14 +0000 (14:01 -0600)]
scripts: Add yocto-compat-layer-wrapper

This script will be used to create it's own build directory to make
runs of yocto-compat-layer.py againts layers isolated.

Example:

$ source oe-init-build-env
$ yocto-compat-layer-wrapper LAYER_DIR LAYER_DIR_N

[YOCTO #11164]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoupdate_gio_module_cache: Do not chown a non-existing file
Peter Kjellerstedt [Wed, 29 Mar 2017 23:16:06 +0000 (01:16 +0200)]
update_gio_module_cache: Do not chown a non-existing file

Only change the ownership of ${libdir}/gio/modules/giomodule.cache if
it exists.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agochkconfig: replace fedorahosted.org SRC_URI with github.com source
Choong YinThong [Tue, 4 Apr 2017 09:29:13 +0000 (02:29 -0700)]
chkconfig: replace fedorahosted.org SRC_URI with github.com source

fedorahosted.org was retired on March 1st, 2017. This is to update
the SRC_URI to point to github.com.

[YOCTO #11226]

Signed-off-by: Choong YinThong <yin.thong.choong@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest/recipetool: replace fedorahosted.org SRC_URI with github.com source
Choong YinThong [Tue, 4 Apr 2017 09:29:07 +0000 (02:29 -0700)]
selftest/recipetool: replace fedorahosted.org SRC_URI with github.com source

fedorahosted.org was retired on March 1st, 2017. This is to
update the SRC_URI to point to github.com.

[YOCTO #11226]

Signed-off-by: Choong YinThong <yin.thong.choong@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocronie: replace fedorahosted.org SRC_URI with github.com source
Choong YinThong [Mon, 3 Apr 2017 02:51:47 +0000 (19:51 -0700)]
cronie: replace fedorahosted.org SRC_URI with github.com source

fedorahosted.org was retired on March 1st, 2017. This is to
update the SRC_URI to point to github.com.

[YOCTO #11226]

Signed-off-by: Choong YinThong <yin.thong.choong@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoliberation-fonts: replace fedorahosted.org SRC_URI with pagure.io source
Choong YinThong [Mon, 3 Apr 2017 02:51:45 +0000 (19:51 -0700)]
liberation-fonts: replace fedorahosted.org SRC_URI with pagure.io source

fedorahosted.org was retired on March 1st, 2017. This is to
update the SRC_URI to point to pagure.io. pagure.io is a
replacement for fedorahosted.

[YOCTO #11226]

Signed-off-by: Choong YinThong <yin.thong.choong@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibnewt: replace fedorahosted.org SRC_URI with pagure.io source
Choong YinThong [Mon, 3 Apr 2017 02:51:44 +0000 (19:51 -0700)]
libnewt: replace fedorahosted.org SRC_URI with pagure.io source

fedorahosted.org was retired on March 1st, 2017. This is to
update the SRC_URI to point to pagure.io. pagure.io is a
replacement for fedorahosted.

[YOCTO #11226]

Signed-off-by: Choong YinThong <yin.thong.choong@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibuser: replace fedorahosted.org SRC_URI with pagure.io source
Choong YinThong [Mon, 3 Apr 2017 02:51:42 +0000 (19:51 -0700)]
libuser: replace fedorahosted.org SRC_URI with pagure.io source

fedorahosted.org was retired on March 1st, 2017. This is to
update the SRC_URI to point to pagure.io. pagure.io is a
replacement for fedorahosted.

[YOCTO #11226]

Signed-off-by: Choong YinThong <yin.thong.choong@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxmlto: replace fedorahosted.org SRC_URI with pagure.io source
Choong YinThong [Mon, 3 Apr 2017 02:51:41 +0000 (19:51 -0700)]
xmlto: replace fedorahosted.org SRC_URI with pagure.io source

fedorahosted.org was retired on March 1st, 2017. This is to
update the SRC_URI to point to pagure.io. pagure.io is a
replacement for fedorahosted.

[YOCTO #11226]

Signed-off-by: Choong YinThong <yin.thong.choong@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoruntime/dnf : Add ID to the dnf test cases
Jose Perez Carranza [Tue, 4 Apr 2017 15:02:10 +0000 (10:02 -0500)]
runtime/dnf : Add ID to the dnf test cases

Add the corresponding Testopia ID to the test cases for dnf

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogpgme: fix configure if 'import distutils' causes output on stderr
Ross Burton [Tue, 4 Apr 2017 14:40:01 +0000 (15:40 +0100)]
gpgme: fix configure if 'import distutils' causes output on stderr

There are a number of reasons that importing a module could cause output on
stderr that isn't a fatal error (compatibilty problems with inputrc, or encoding
warnings) so backport a patch from autoconf-archive to only check the exit code
instead of asserting that stderr is empty.

[ YOCTO #11231 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest/devtool: use kernel provider instead of recipe allowing other kernel providers
Leonardo Sandoval [Tue, 4 Apr 2017 16:45:47 +0000 (09:45 -0700)]
selftest/devtool: use kernel provider instead of recipe allowing other kernel providers

To generalize the unit test for other kernel providers, use virtual/kernel instead
of linux-yocto, allowing to run the selftest on non-poky distros, i.e. poky-tiny.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest/commands: extend variable regex to include A_B variable notation
Leonardo Sandoval [Tue, 4 Apr 2017 16:45:46 +0000 (09:45 -0700)]
selftest/commands: extend variable regex to include A_B variable notation

This change allows quering for variables with the format A_B, i.e.
PREFERRED_PROVIDER_virtual/kernel instead of just A.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agox86-base.inc, qemuarm.conf: prefer 4.10 version of linux-yocto
Martin Jansa [Tue, 4 Apr 2017 08:02:02 +0000 (10:02 +0200)]
x86-base.inc, qemuarm.conf: prefer 4.10 version of linux-yocto

* 4.8 version was removed in:
  commit 466e6e45ca04a07ebe1b1f52de747f077b362d54
  Author: Bruce Ashfield <bruce.ashfield@windriver.com>
  Date:   Tue Mar 28 08:58:07 2017 -0400

    linux-yocto: drop 4.8 recipes

    We have 4.1 (LTSI), 4.4 (LTS), 4.9 (LTS/LTSI) and 4.10 available in
    master. 4.8 is no longer required, so we drop the recipe to keep
    the version selection under control.
* causing each build to start with 188 lines of this stuff:
  NOTE: preferred version 4.8% of linux-yocto not available (for item virtual/kernel)
  NOTE: versions of linux-yocto available: 4.1.38+gitAUTOINC+7140ddb86e_4d2c95e78c 4.10.5+gitAUTOINC+01f18cba44_b97dcd4f06 4.4.56+gitAUTOINC+271b0c8d51_01aaede0a2 4.9.17+gitAUTOINC+8b97a445fa_3ff3760c2a
  NOTE: preferred version 4.8% of linux-yocto not available (for item kernel-module-raid456)
  NOTE: versions of linux-yocto available: 4.1.38+gitAUTOINC+7140ddb86e_4d2c95e78c 4.10.5+gitAUTOINC+01f18cba44_b97dcd4f06 4.4.56+gitAUTOINC+271b0c8d51_01aaede0a2 4.9.17+gitAUTOINC+8b97a445fa_3ff3760c2a

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel.bbclass: move in addtask kernel_link_images statement from linux-yocto.inc
Ming Liu [Thu, 30 Mar 2017 13:20:13 +0000 (15:20 +0200)]
kernel.bbclass: move in addtask kernel_link_images statement from linux-yocto.inc

Add kernel_link_images task in kernel.bbclass instead of adding it in
linux-yocto.inc, or else the recipes inheriting kernel.bbclass might
run into implicit dependency issues.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: point runqemu to correct native bindir
brian avery [Tue, 4 Apr 2017 23:23:24 +0000 (16:23 -0700)]
devtool: point runqemu to correct native bindir

devtool/runqemu.py was relying on STAGING_BINDIR_NATIVE to find the host
tools it needed like qemu-system-<arch>.  In the post RSS world, this no
longer exists. This patch points it to
{STAGING_DIR}/{BUILD_ARCH}/{bindir_native}.

[YOCTO #11223]

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agometa-ide-support: exclude this recipe from rm_work
brian avery [Tue, 4 Apr 2017 22:22:11 +0000 (15:22 -0700)]
meta-ide-support: exclude this recipe from rm_work

The results of meta-ide-support are used by utilities like runqemu and
runqemu-extract-sdk.  Since the usr/bin that meta-ide-support creates is
subsequently removed bu rm_work, we exclude this recipe from the rm_work
list.

[YOCTO #11119]

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts: change way we find native tools (pseudo)
brian avery [Tue, 4 Apr 2017 22:22:10 +0000 (15:22 -0700)]
scripts: change way we find native tools (pseudo)

oe-find-native-sysroot: Recipe Specific Sysroots have eliminated the
large STAGING_DIR_NATIVE. Now, we will rely on the meta-ide-support
sysroot that is what was populating the large STAGING_DIR_NATIVE in
previous versions anyway. We now look for RECIPE_SYSROOT_NATIVE.

[YOCTO #11119]

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosanity: explain where TMPDIR is if we're telling the user to delete it
Ross Burton [Tue, 4 Apr 2017 16:14:06 +0000 (17:14 +0100)]
sanity: explain where TMPDIR is if we're telling the user to delete it

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorecipe_sanity: Drop now unused FILESDIR
Richard Purdie [Wed, 5 Apr 2017 08:33:33 +0000 (09:33 +0100)]
recipe_sanity: Drop now unused FILESDIR

FILESDIR is long dead and unreferenced pretty much anywhere now, drop these
sanity references too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoautomake: Adjust shebang lines to remove interpreter path hardcode
Serhii Popovych [Fri, 31 Mar 2017 11:46:58 +0000 (11:46 +0000)]
automake: Adjust shebang lines to remove interpreter path hardcode

If build host perl (and other tools) is old and we use some kind
of toolchain to provide recent perl/python/etc to the OE build
we still locked to use build host perl due to hardcoded shebang
lines in automake scripts.

Behaviour was observed with Enterprise Linux 6 and devtoolset
toolchain from SCL (Software Collections) used to provide recent
version of perl (not provided with default buildtools-tarball).

Pass /usr/bin/env perl in ac_cv_path_PERL configuration variables
for class-native and class-nativesdk. Use patch to automake to replace
-w option in shebang line with modern way to enable warnings on perl
(i.e. "use warnings").

Also add nativesdk-autoconf to RDEPENDS to bring runtime dependencies
inline with other targets.

Note that ac_cv_path_PERL must be valid perl interpreter path
since configure will check perl version and Flock implementation.
It is not possible currently to use nativeperl from native
sysroot because automake does not DEPENDS on perl-native (and
doing so fails due to circular dependencies). Only possible
solution is to overwrite shebangs with nativeperl somewhere at
do_install() and update RDEPENDS for class-native. Or add perl
symlinks to nativeperl in sysroot.

For now it seems good to use perl found by /usr/bin/env from
automake-native.

Cc: XE-Linux <xe-linux-external@cisco.com>
Signed-off-by: Serhii Popovych <spopovyc@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoautoconf: Adjust shebang lines to remove interpreter path hardcode
Serhii Popovych [Fri, 31 Mar 2017 11:46:57 +0000 (11:46 +0000)]
autoconf: Adjust shebang lines to remove interpreter path hardcode

If build host perl (and other tools) is old and we use some kind
of toolchain to provide recent perl/python/etc to the OE build
we still locked to use build host perl due to hardcoded shebang
lines in autoconf scripts.

Behaviour was observed with Enterprise Linux 6 and devtoolset
toolchain from SCL (Software Collections) used to provide recent
version of perl (not provided with default buildtools-tarball).

Pass /usr/bin/env perl in ac_cv_path_PERL configuration variables
for class-native and class-nativesdk. Use patch to autoconf to replace
-w option in shebang line with modern way to enable warnings on perl
(i.e. "use warnings").

Also add nativesdk-m4 and nativesdk-gnu-config to RDEPENDS to bring
runtime dependencies inline with other targets.

Note that ac_cv_path_PERL must be valid perl interpreter path
since configure will check perl version and Flock implementation.
It is not possible currently to use nativeperl from native
sysroot because autoconf does not DEPENDS on perl-native (and
doing so fails due to circular dependencies). Only possible
solution is to overwrite shebangs with nativeperl somewhere at
do_install() and update RDEPENDS for class-native. Or add perl
symlinks to nativeperl in sysroot.

For now it seems good to use perl found by /usr/bin/env from
autoconf-native.

Cc: XE-Linux <xe-linux-external@cisco.com>
Signed-off-by: Serhii Popovych <spopovyc@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/contrib: add oe-build-perf-report-email
Markus Lehtonen [Fri, 31 Mar 2017 14:07:30 +0000 (17:07 +0300)]
scripts/contrib: add oe-build-perf-report-email

Script for sending build perf test reports as an email. Mangles an html
report, generated by oe-build-perf-report, into a format suitable for
html emails. Supports multipart emails where a plaintext alternative can
be included in the same email.

Dependencies required to be installed on the host:
- phantomjs
- optipng

[YOCTO #10931]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts: add oe-build-perf-report script
Markus Lehtonen [Fri, 31 Mar 2017 14:07:29 +0000 (17:07 +0300)]
scripts: add oe-build-perf-report script

A new tool for pretty-printing build perf test results stored in a Git
repository. The scripts is able to produce either simple plaintext
report showing the difference between two commits, or, an html report
that also displays trendcharts of the test results. The script uses
Jinja2 templates for generating HTML reports so it requires
python3-jinja2 to be installed on the system.

[YOCTO #10931]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobinutils: Detect 64bit mips target for gold
Khem Raj [Fri, 31 Mar 2017 18:57:55 +0000 (11:57 -0700)]
binutils: Detect 64bit mips target for gold

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoncurses_6.0: Improve reproducibility
Juro Bystricky [Fri, 31 Mar 2017 21:28:13 +0000 (14:28 -0700)]
ncurses_6.0: Improve reproducibility

Build static libraries without the binutils "ar" -U option.
This option deliberately breaks deterministic mode.
The option seems to be a relic from 2015, intended as a workaround
for some unspecified build problems.

[YOCTO#11247]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython: remove stale link to "Python for Embedded Systems Site"
Bob Cochran [Sat, 1 Apr 2017 02:38:13 +0000 (22:38 -0400)]
python: remove stale link to "Python for Embedded Systems Site"

Reference url is a stale, non existent site that returns a 404, so get rid of it

Change impacts both the manifest files and the scripts that generate the manifests

Run the following from within recipes-devtools/python

../../../scripts/contrib/python/generate-manifest-2.7.py > python-2.7-manifest.inc
../../../scripts/contrib/python/generate-manifest-2.7.py -n > python-native-2.7-manifest.inc

../../../scripts/contrib/python/generate-manifest-3.5.py > python-3.5-manifest.inc
../../../scripts/contrib/python/generate-manifest-3.5.py -n > python-native-3.5-manifest.inc

Signed-off-by: Bob Cochran <openembedded@mindchasers.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodpkg: Add PACKAGECONFIG for liblzma and enable it
Richard Purdie [Fri, 31 Mar 2017 13:39:16 +0000 (14:39 +0100)]
dpkg: Add PACKAGECONFIG for liblzma and enable it

liblzma is part of xz and we already build it but configure it out. This makes
no sense. Enabling it means we gain multithreaded compression and it speeds
dpkg-deb up massively. It also removes the fork overhead of separate xz processes.

Turning the existing config into a PACKAGECONFIG and turning it on by default
therefore makes best use of what we have available.

The manual RDEPENDS are no longer needed since it uses liblzma which is picked
up by the shlibs code magically.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel.bbclass: introduce INITRAMFS_IMAGE_NAME
Ming Liu [Thu, 30 Mar 2017 07:59:58 +0000 (09:59 +0200)]
kernel.bbclass: introduce INITRAMFS_IMAGE_NAME

It defaults to ${INITRAMFS_IMAGE}-${MACHINE} if INITRAMFS_IMAGE is not
empty.

This allows the end users to be able to override the initramfs image
name with a customized value.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobase-files: resize only serial tty's in profile
Daniel Díaz [Thu, 23 Mar 2017 21:34:44 +0000 (15:34 -0600)]
base-files: resize only serial tty's in profile

We don't want to run resize on non serial consoles. There's
been an earlier attempt (6557787), so this builds upon that.

The problem we're seeing is that if there is text buffered in
the virtual console (like from a desperate user trying to
enter login details), resize will get stuck while calling
  ioctl(tty, TCSETAW);

Since serial consoles are named (not just numbered), this
change limits resize's reach even further to run only on
/dev/tty[A-z] (thus avoiding /dev/tty[0-9]).

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolsb: Create ${base_prefix}/lib64 correctly when needed
Peter Kjellerstedt [Tue, 28 Mar 2017 12:01:18 +0000 (14:01 +0200)]
lsb: Create ${base_prefix}/lib64 correctly when needed

There were two remaining cases that could end up creating /lib64
rather than ${base_prefix}/lib64. The difference matters when building
with usrmerge.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolsb: Avoid using double slashes in paths
Peter Kjellerstedt [Tue, 28 Mar 2017 12:01:17 +0000 (14:01 +0200)]
lsb: Avoid using double slashes in paths

Use ${D}${var} rather than ${D}/${var} for variables where ${var}
contains an absolute path.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest/pkgdata: replace the glibc recipe allowing execution on non-poky distros
Leonardo Sandoval [Fri, 31 Mar 2017 04:11:39 +0000 (21:11 -0700)]
selftest/pkgdata: replace the glibc recipe allowing execution on non-poky distros

Replace the glibc recipe for zlib on unit tests, otherwise tests are restricted
to glibc distros (poky).

[YOCTO #10890]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-run-native: OLDPATH -> OLD_PATH
Robert Yang [Mon, 27 Mar 2017 10:39:13 +0000 (03:39 -0700)]
oe-run-native: OLDPATH -> OLD_PATH

It's a typo.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd: make vconsole a PACKAGECONFIG option
Enrico Jorns [Wed, 29 Mar 2017 09:07:33 +0000 (11:07 +0200)]
systemd: make vconsole a PACKAGECONFIG option

Allowing to remove the systemd-vconsole-setup package without specifying
the --disable-vconsole configure option for systemd will make the system
boot with the failure prompt

| systemd-udevd[142]: failed to execute '/lib/systemd/systemd-vconsole-setup' '/lib/systemd/systemd-vconsole-setup': No such file or directory
| systemd-udevd[96]: Process '/lib/systemd/systemd-vconsole-setup' failed with exit code 2.

as the 90-vconsole.rules will still be installed with having a
RUN+="/lib/systemd/systemd-vconsole-setup" in it that attempts to
execute a non-existing binary.

Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel.bbclass: fix a typo
Ming Liu [Thu, 30 Mar 2017 13:17:04 +0000 (15:17 +0200)]
kernel.bbclass: fix a typo

In a addtask statement, do_strip should be strip.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: partition: Update fsck parameters
Daniel Schultz [Thu, 30 Mar 2017 07:07:13 +0000 (09:07 +0200)]
wic: partition: Update fsck parameters

These parameters are copied from the ext image class.

-D will let fsck perform further directory optimizations
-v might be helpful for debugging purpose

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: remove prepare_empty_partition_squashfs
Ed Bartosh [Thu, 30 Mar 2017 18:17:20 +0000 (21:17 +0300)]
wic: remove prepare_empty_partition_squashfs

There is not much sense in creation of empty squashfs
partition. It's also not possible to create empty squashfs
partition of specified size.

Even more, prepare_empty_partition_squashfs method is
absolutely broken. It raises exception when called and
even its signature differs from the rest of of similar
methods. It means that nobody uses it and it's safe
to remove it.

Removed prepare_empty_partition_squashfs method and
testing of empty squashfs partition.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agooe-selftest: test creation of msdos partition
Ed Bartosh [Thu, 30 Mar 2017 15:14:12 +0000 (18:14 +0300)]
oe-selftest: test creation of msdos partition

Added msdos partition to the .wks file in test_fs_types
wic test case.

[YOCTO #11137]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: fix list of supported fstypes in help content
Ed Bartosh [Thu, 30 Mar 2017 15:06:02 +0000 (18:06 +0300)]
wic: fix list of supported fstypes in help content

Added vfat and msdos to the list of supported fstypes in
'wic help kickstart' output.

[YOCTO #11137]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: set correct system id for msdos partitions
Ed Bartosh [Thu, 30 Mar 2017 14:18:03 +0000 (17:18 +0300)]
wic: set correct system id for msdos partitions

Explicitly set system id 0x6(FAT16) for msdos partitions.

Removed old code that attempts to achieve the same result
using 'parted ... lba off'.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: set FAT 16 for msdos partitions
Ed Bartosh [Thu, 30 Mar 2017 14:14:22 +0000 (17:14 +0300)]
wic: set FAT 16 for msdos partitions

Used '-F 16' parameter for mkdosfs to create FAT16 partitions for
'msdos' partition type.

[YOCTO #11137]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: support 'msdos' fstype
Ed Bartosh [Thu, 30 Mar 2017 14:08:23 +0000 (17:08 +0300)]
wic: support 'msdos' fstype

Added prepare_empty_partition_msdos and prepare_rootfs_msdos
methods to support 'msdos' filesystem type.

Created aliases prepare_empty_partition_vfat and prepare_rootfs_vfat
to continue supporting creation of vfat patitiions.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: don't silently skip unknown fstypes
Ed Bartosh [Thu, 30 Mar 2017 11:05:52 +0000 (14:05 +0300)]
wic: don't silently skip unknown fstypes

Fixed wic code that loops through hard-coded list of known fstypes
to find prepare_rootfs_<fstype> or prepare_empty_partition_<fstype>
methods and silently skipping unknown fstypes.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: allow only supported fstypes
Ed Bartosh [Thu, 30 Mar 2017 10:37:15 +0000 (13:37 +0300)]
wic: allow only supported fstypes

Restricted possible values of --fstype to the list of
supported types. This should catch incorrect values
when .wks file is being parsed.

Removed checks for empty fstype and mentioning of
unsupported fstype 'ontrackdm6aux3'.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agooe-selftest: fix incorrect fstype
Ed Bartosh [Thu, 30 Mar 2017 15:11:55 +0000 (18:11 +0300)]
oe-selftest: fix incorrect fstype

Fixed typo in wks content: squash->squashfs

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agooe-selftest: add test_image_bootpart_globbed test for wic
Ed Bartosh [Sun, 26 Mar 2017 17:42:30 +0000 (20:42 +0300)]
oe-selftest: add test_image_bootpart_globbed test for wic

Test image-bootpart wic plugin with globbed value of
IMAGE_BOOT_FILES variable to increase test coverage.

[YOCTO #10618]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: remove unused code from runner module
Ed Bartosh [Sun, 26 Mar 2017 17:39:22 +0000 (20:39 +0300)]
wic: remove unused code from runner module

Removed unused APIs 'outs' and 'quiet'.
Removed 'catch' parameter from runner.runtool API as wic
uses only one value of it. Removed the code that handles
unused values of 'catch' parameter.

[YOCTO #10618]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: remove runner.show API
Ed Bartosh [Sun, 26 Mar 2017 17:34:27 +0000 (20:34 +0300)]
wic: remove runner.show API

Replaced runner.show call to exec_cmd call in bootimg-pcbios
plugin. Removed runner.show API as it's not used anywhere else.

[YOCTO #10618]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: use wic-tools STAGING_DATADIR as bootimg_dir
Ed Bartosh [Sun, 26 Mar 2017 17:27:48 +0000 (20:27 +0300)]
wic: use wic-tools STAGING_DATADIR as bootimg_dir

If bootloader artifacts are not found in default bootimg_dir
use wic-tools sysroot for the same purpose. This should
prevent wic from failing if bootloader artifacts can't be
found in image native sysroot.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: remove fsimage plugin
Ed Bartosh [Sun, 26 Mar 2017 17:20:31 +0000 (20:20 +0300)]
wic: remove fsimage plugin

Removed fsimage plugin and prepare_rootfs_from_fs_image API as
they duplicate functionality of rawcopy plugin. Fsimage plugin makes
wic to remove the image artifact from deployment directory, which
can cause problems too.

[YOCTO #10618]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agooe-selftest: add kickstart_parser test case
Ed Bartosh [Sun, 26 Mar 2017 17:15:19 +0000 (20:15 +0300)]
oe-selftest: add kickstart_parser test case

Added test_kickstart_parser test case to test wks parser
options not yet covered by tests.

[YOCTO #10618]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agofilemap: remove FilemapSeek class
Ed Bartosh [Sun, 26 Mar 2017 17:08:46 +0000 (20:08 +0300)]
filemap: remove FilemapSeek class

FIEMAP API was added to Linux kernel 2.6.28 back in 2008
SEEK_HOLE and SEEK_DATA API was added much letter.
As FIEMAP is used by filemap module as a default API it's
safe to remove FileMpSeek class as it's never used.

[YOCTO #10618]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agooe-selftest: add wic test case test_fs_types
Ed Bartosh [Sun, 26 Mar 2017 15:38:46 +0000 (18:38 +0300)]
oe-selftest: add wic test case test_fs_types

Added wic test case to test all possible filesystem
types for empty and not empty partitions.

[YOCTO #10618]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic-tools: add btrfs-tools squashfs-tools to DEPENDS
Ed Bartosh [Sun, 26 Mar 2017 17:04:34 +0000 (20:04 +0300)]
wic-tools: add btrfs-tools squashfs-tools to DEPENDS

Added btrfs-tools-native and squashfs-tools-native to DEPENDS as
wic uses these tools to support btrfs and squashfs filesystems.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>