]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
7 years agolibxml2: Avoid reparsing and simplify control flow in xmlParseStartTag2
Andrej Valek [Wed, 14 Jun 2017 12:38:35 +0000 (14:38 +0200)]
libxml2: Avoid reparsing and simplify control flow in xmlParseStartTag2

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
7 years agolibxml2: Disable LeakSanitizer when running API tests
Andrej Valek [Wed, 14 Jun 2017 12:34:37 +0000 (14:34 +0200)]
libxml2: Disable LeakSanitizer when running API tests

Makefile.am: Disable LeakSanitizer when running API tests

The autogenerated API tests leak memory.

Upstream-Status: Backported - [https://git.gnome.org/browse/libxml2/commit/?id=ac9a4560ee85b18811ff8ab7791ddfff7b144b0a]
Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
7 years agoutil-linux: upgrade to 2.30
Denys Dmytriyenko [Tue, 13 Jun 2017 16:51:52 +0000 (12:51 -0400)]
util-linux: upgrade to 2.30

Drop uuid-test-error-api.patch as it's been fixed upstream differently:
https://github.com/karelzak/util-linux/commit/b770b487004778f4425639c7ed1bb6ca22d157bf

Drop ptest for tailf, as it got deprecated and removed:
https://github.com/karelzak/util-linux/commit/70ca1a77721b41f2355eeb00d4e55e13dba3e313

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobluez5: add more PACKAGECONFIG options
Marc Ferland [Tue, 13 Jun 2017 17:44:56 +0000 (13:44 -0400)]
bluez5: add more PACKAGECONFIG options

This patch adds missing PACKAGECONFIG options and allow for a more
fine-grained build of bluez5.

I took care of providing a default configuration that matches the
previous default config.

Signed-off-by: Marc Ferland <ferlandm@amotus.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobluez5: remove libusb dependency
Marc Ferland [Tue, 13 Jun 2017 17:44:55 +0000 (13:44 -0400)]
bluez5: remove libusb dependency

Not a dependency since version 5.9.

Signed-off-by: Marc Ferland <ferlandm@amotus.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agokernel-uimage.bbclass: Fix up generation of uImage from vmlinux
Nathan Rossi [Fri, 16 Jun 2017 12:38:49 +0000 (22:38 +1000)]
kernel-uimage.bbclass: Fix up generation of uImage from vmlinux

Fix up the generation of uImage from vmlinux when KEEPUIMAGE != 'yes'.
This fixes up the working directory that do_uboot_mkimage is run from,
such that it is run from the ${B} directory to access built artefacts.

Simplify the logic in the task so that the parse step either adds the
task or not if the conditions are met. This reduces the need for the
task to run in cases when it is not used. The task is also changed to
depend on the kernel_link_images task as arch/<arch>/boot/* is not
available until after kernel_link_images in certain cases (e.g.
vmlinux/uImage only KERNEL_IMAGETYPES).

Fix up the use of ${S}/vmlinux when pulling the entry symbols
address so that it accesses the vmlinux in ${B}.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoinsane.bbclass: Ignore perl as dependency for nativesdk packages
Peter Kjellerstedt [Thu, 15 Jun 2017 13:53:12 +0000 (15:53 +0200)]
insane.bbclass: Ignore perl as dependency for nativesdk packages

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomultilib.bbclass: fix faulty redefinition of STAGING_KERNEL_DIR
Petter Mabäcker [Mon, 15 May 2017 04:17:11 +0000 (06:17 +0200)]
multilib.bbclass: fix faulty redefinition of STAGING_KERNEL_DIR

Due to the problem fixed in
'56c677a multilib: Move redefinition of STAGING_DIR_KERNEL'
STAGING_KERNEL_DIR must be redefined for lib32 in multilib.bbclass.
However this redefinition expanded STAGING_KERNEL_DIR to an absolute
path. This unconsciously added the TMPDIR path in the sstate object,
causing packages depended on STAGING_KERNEL_DIR being rebuild if the
TMPDIR was changed.

Solve this by forcing the unexpanded TMPDIR variable to remain in the
beginning of STAGING_DIR_KERNEL (as default). Since TMPDIR is included in
BB_HASHBASE_WHITELIST, the sstate object will not be depended on the
expanded path anymore.

Signed-off-by: Petter Mabäcker <petter@technux.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/selftest/context: Reload testlayer_path when meta-selftest isn't added
Aníbal Limón [Thu, 15 Jun 2017 22:09:50 +0000 (17:09 -0500)]
oeqa/selftest/context: Reload testlayer_path when meta-selftest isn't added

When add meta-selftest by the script the testlayer_path needs to be
reloaded to avoid None value.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/core/loader.py: Fix _make_failed_test for python >= 3.4.4
Aníbal Limón [Thu, 15 Jun 2017 22:09:49 +0000 (17:09 -0500)]
oeqa/core/loader.py: Fix _make_failed_test for python >= 3.4.4

Python unittest change the signature of the _make_failed_test
after python 3.4.4 don't pass the method name.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/core/threaded: Don't assume that results exists on logDetails
Aníbal Limón [Thu, 15 Jun 2017 22:09:48 +0000 (17:09 -0500)]
oeqa/core/threaded: Don't assume that results exists on logDetails

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoselftest: Add Testopia ID to test cases
Jose Perez Carranza [Thu, 15 Jun 2017 12:49:22 +0000 (05:49 -0700)]
selftest: Add Testopia ID to test cases

Add decorator @OETestID() with proper Tesopia TC ID to the test cases
that did not have it set.

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoselftest/devtool: replace file assertTrue/False with assertExists/NotExists
Yeoh Ee Peng [Wed, 14 Jun 2017 20:01:12 +0000 (13:01 -0700)]
selftest/devtool: replace file assertTrue/False with assertExists/NotExists

Current osselftest print confusing assertion message when using
self.assertTrue(os.path.exists(filepath)) to test file path,
example of confusing assertion message:
AssertionError: False is not true

Replce assertTrue/assertFalse with assertExists/assertNotExists to test
file path, this will improve assertion message and simplify coding,
self.assertExists(filepath) will print below
AssertionError: <filepath> does not exist

[YOCTO #11356]

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosstate-sysroot-cruft.sh: Extend the whitelist
Martin Jansa [Fri, 16 Jun 2017 10:46:09 +0000 (12:46 +0200)]
sstate-sysroot-cruft.sh: Extend the whitelist

* add more php5 entries

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: remove extra double-quote on documentation string
Jean-Francois Dagenais [Tue, 20 Jun 2017 11:58:13 +0000 (07:58 -0400)]
wic: remove extra double-quote on documentation string

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic/runner.py: move runtool API to misc.py
Ed Bartosh [Fri, 16 Jun 2017 13:19:27 +0000 (16:19 +0300)]
wic/runner.py: move runtool API to misc.py

Moved remaining API to misc.py.
Removed runner.py.

Now misc.py is ready to be moved to the scripts/lib/wic and
utils directory can be removed.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: fix restoring of original fstab
Ed Bartosh [Fri, 16 Jun 2017 13:19:30 +0000 (16:19 +0300)]
wic: fix restoring of original fstab

Wic updates fstab if mount points are specified in .wks.
After partition images are created the original fstab is restored.
However, if exception is raised when partition image being prepared
wic doesn't restore original fstab. This can cause duplication of
added lines in fstab when 'wic create' runs next time.

Wrapping call of 'prepare' method and restoring original fstab
even if exception occurs should fix this.

[YOCTO #11633]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: code cleanup
Ed Bartosh [Fri, 16 Jun 2017 13:19:29 +0000 (16:19 +0300)]
wic: code cleanup

Split long lines.
Removed unused imports.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: flatten directory structure
Ed Bartosh [Fri, 16 Jun 2017 13:19:28 +0000 (16:19 +0300)]
wic: flatten directory structure

Moved misc.py from wic/utils/ to wic/
Removed wic/utils directory

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/contrib/patchtest: run patchtest on local branch
Leonardo Sandoval [Fri, 10 Feb 2017 22:46:24 +0000 (16:46 -0600)]
scripts/contrib/patchtest: run patchtest on local branch

The script run patchtest on local branch commits, printing results into
stdout. This script is useful to test patches before sending to the
mailing list.

Examples:

$ git checkout master-next-1.9
Branch master-next-1.9 set up to track remote branch master-next-1.9 from origin.
Switched to a new branch 'master-next-1.9'

  $ ~/scripts/contrib/patchtest.sh
  166e70e: Robert Yang: Thu Apr 2 12:01:37 2015 +0100: patch: fix CVE-2015-1196: FAIL
   Issue             Missing or incorrectly formatted CVE tag in commit message [test_cve_presence_in_commit_message]
    Suggested fix    Include a "CVE-xxxx-xxxx" tag in the commit message
   Issue             Missing or incorrectly formatted CVE tag in included patch file [test_cve_tag_format]
    Suggested fix    Correct or include the CVE tag on cve patch with format: "CVE: CVE-YYYY-XXXX"

  eaa4536: Robert Yang: Thu Apr 2 12:01:37 2015 +0100: wget: 1.16.1 -> 1.16.2: OK

  3c29ce3: Robert Yang: Thu Apr 2 12:01:38 2015 +0100: git: 2.3.0 -> 2.3.1: OK

  85491f6: Khem Raj: Thu Apr 2 12:01:38 2015 +0100: gdb: Upgrade 7.8.1 -> 7.9: OK

  f701142: Robert Yang: Thu Apr 2 12:01:38 2015 +0100: binutils: upgrade to 2.25: OK

  385d0b1: Khem Raj: Thu Apr 2 12:01:39 2015 +0100: binutils: Fix ICE in gold: OK

[YOCTO #10720]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobuildhistory-diff: exclude paths from the output
Ed Bartosh [Tue, 13 Jun 2017 13:12:18 +0000 (16:12 +0300)]
buildhistory-diff: exclude paths from the output

Implemented -e/--exclude-path command line option to
exclude paths from buildhistory-diff output.

[YOCTO #11459]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoclasses/buildhistory: fix failures collecting output signatures
Paul Eggleton [Tue, 9 May 2017 00:38:39 +0000 (12:38 +1200)]
classes/buildhistory: fix failures collecting output signatures

It's possible for tasks to stage symlinks that point to non-existent
files; an example is ncurses-native.do_populate_sysroot. There wasn't
any error checking here so this broke the build when "task" was included
in BUILDHISTORY_FEATURES. In any case we shouldn't be following symlinks
and getting the sha256sum of the link target - we need concern ourselves
only with the target path, so check if the file is a link and sha256 the
target path instead if it is. If it's neither a regular file nor a
symlink (perhaps a pipe or a device), just skip it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokconfig-frontends: Remove as only needed for eglibc
Richard Purdie [Thu, 15 Jun 2017 22:49:22 +0000 (23:49 +0100)]
kconfig-frontends: Remove as only needed for eglibc

This was only added for eglibc. That is gone so we can drop this too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopciutils: Fold patches into a single patch with a description
Richard Purdie [Thu, 15 Jun 2017 22:43:22 +0000 (23:43 +0100)]
pciutils: Fold patches into a single patch with a description

Patches patching content from other patches is bad. This folds the three
patches into one, improves some of what its doing to be a little
cleaner and adds a proper description to the patch header.

This also moves the STRIP override to the configure commandline rather
than patching and handles passing libdir the same way.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agometa: Remove further uclibc remnants (inc. patches and site files)
Richard Purdie [Thu, 15 Jun 2017 22:15:00 +0000 (23:15 +0100)]
meta: Remove further uclibc remnants (inc. patches and site files)

Some of these are clearly dead, e.g. one binutils patch reverts the effects
of the earlier one.

This also removes the uclibc site files. We now have mechanisms to allow these
to be extended from another layer should someone ever wish to do that.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogcc: Drop 5.4 series
Richard Purdie [Thu, 15 Jun 2017 17:30:29 +0000 (18:30 +0100)]
gcc: Drop 5.4 series

We now have gcc 6 and gcc 7 recipes, the gcc 5 series can be dropped
as we're no longer going to support it for targets.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agometa: Drop further remnants of uclibc support
Richard Purdie [Thu, 15 Jun 2017 17:25:54 +0000 (18:25 +0100)]
meta: Drop further remnants of uclibc support

uclibc support was removed a while ago and musl works much better. Start to
remove the various overrides and patches related to uclibc which are no longer
needed.

uclibc support in a layer would still be possible. I have strong reasons to
believe nobody is still using uclibc since patches are missing and I doubt
the metadata even parses anymore.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_deb: Drop obsolete comments/variables
Richard Purdie [Thu, 15 Jun 2017 17:20:21 +0000 (18:20 +0100)]
package_deb: Drop obsolete comments/variables

These comments/variables appear to be long dead, remove them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agometa: Drop remnants of uclibc support
Richard Purdie [Thu, 15 Jun 2017 14:21:42 +0000 (15:21 +0100)]
meta: Drop remnants of uclibc support

uclibc support was removed a while ago and musl works much better. Start to
remove the various overrides and patches related to uclibc which are no longer
needed.

uclibc support in a layer would still be possible. I have strong reasons to
believe nobody is still using uclibc since patches are missing and I doubt
the metadata even parses anymore.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_ipk: Parallelise ipk creation
Richard Purdie [Thu, 30 Mar 2017 21:02:45 +0000 (22:02 +0100)]
package_ipk: Parallelise ipk creation

Allow the creation of ipks to happen in parallel, making best use of resources
on multiprocessor systems.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_deb: Enable multithreaded package creation
Richard Purdie [Fri, 31 Mar 2017 14:06:39 +0000 (15:06 +0100)]
package_deb: Enable multithreaded package creation

Allow the creation of debs to happen in parallel, making best use of resources
on multiprocessor systems.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopseudo: Handle too many files deadlock
Richard Purdie [Tue, 25 Apr 2017 14:25:54 +0000 (15:25 +0100)]
pseudo: Handle too many files deadlock

If we have large amounts of parallelism, pseudo can end up with too
many open connections and will no longer accept further connections,
hanging. This patch works around that by closing some clients, allowing
turnover of connections and unblocking the system. The downside is a small
but theoretical window of data loss. This is likely better than locking
up entirely though. Discussions with Peter are onging about how we could
better fix this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoovmf: fix secureboot PACKAGECONFIG + OpenSSL update
Patrick Ohly [Fri, 16 Jun 2017 09:53:48 +0000 (11:53 +0200)]
ovmf: fix secureboot PACKAGECONFIG + OpenSSL update

The recent ovmf update broke secureboot because upstream changed the
way how openssl gets compiled into ovmf. It's now integrated directly
into the ovmf build process, without having to patch it first.

In addition, more recent OpenSSL releases are supported. 1.1.0e was
explicitly mentioned in the ovmf commits and because the current
1.1.0f only has minor build enhancements, 1.1.0e is used here.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_ipk: Clean up Source entry in ipk packages
Richard Purdie [Fri, 16 Jun 2017 08:42:30 +0000 (09:42 +0100)]
package_ipk: Clean up Source entry in ipk packages

There is the potential for sensitive information to leak through the urls
there and removing it brings this into the behavior of the other package
backends since filtering it is likely error prone.

Since ipks don't appear to be generated at all if we don't set this, set
the field to the recipe name used (basename only, no paths). This avoids
information leaking. We may want to drop the field if opkg can allow that
at a future point but the recipe name is a suitable identifier for now.

Reported-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomtools-native: fix Upstream-Status
Ed Bartosh [Tue, 13 Jun 2017 14:34:02 +0000 (17:34 +0300)]
mtools-native: fix Upstream-Status

This is OE-specific customisation so set the status as such.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_manager: flush installed_pkgs file before oe-pkgdata-util uses it
Martin Jansa [Tue, 30 May 2017 05:48:13 +0000 (07:48 +0200)]
package_manager: flush installed_pkgs file before oe-pkgdata-util uses it

* since this commit:
  commit f5a1013ffa9815f22e13989e2bcb83f966e7ce2c
  Author: Ross Burton <ross.burton@intel.com>
  Date:   Tue Apr 18 16:19:12 2017 +0100

    package_manager: don't race on a file when installing complementary
    packages

  the file isn't closed before oe-pkgdata-util uses it and this
  temporary file might look empty to oe-pkgdata-util, because it
  wasn't flushed yet. Which resulted in almost empty debugfs tarballs
  and no locale packages in regular rootfs.
* without this change:
  124K May 30 07:41 core-image-full-cmdline-raspberrypi3-64-20170530054003-dbg.rootfs.tar.gz
* with this change:
  173M May 30 07:29 core-image-full-cmdline-raspberrypi3-64-20170530052715-dbg.rootfs.tar.gz

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodistrooverrides.bbclass: DISTRO_FEATURES as overrides
Patrick Ohly [Wed, 14 Jun 2017 10:33:50 +0000 (12:33 +0200)]
distrooverrides.bbclass: DISTRO_FEATURES as overrides

This achieves the same goal as the same change to bitbake.conf itself,
but because the class gets added later as part expanding INHERIT, this
new approach is less likely to run into problems when DISTRO_FEATURES
contains complex code.

Another difference is that the class currently does not get inherited
by default and thus is completely absent from a build unless some
layer or include file adds it to INHERIT.

Compared to the earlier code in bitbake.conf and a similar class in
intel-iot-refkit, additional overrides now get sorted. This makes the
final OVERRIDES more deterministic.

The lessons learned about unintentionally depending on OVERRIDES are
documented in the class because such problems are more likely to show
up as unexpected signature differences when using this class.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoRevert "bitbake.conf: DISTRO_FEATURES as overrides"
Patrick Ohly [Wed, 14 Jun 2017 10:33:49 +0000 (12:33 +0200)]
Revert "bitbake.conf: DISTRO_FEATURES as overrides"

This reverts commit 3b3ae91a22d6f685e804df4f32cdeebe1bd6bd88.

It turned out that the code which expands DISTRO_FEATURES early during
base config parsing can fail because some entries in DISTRO_FEATURES
might call Python functions like base_conditional() from base.bbclass
which aren't defined yet.

A different solution will be needed.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopython-3.5: Move bz2.py, lzma.py and _compression.py from python3-misc to python3...
Martin Jansa [Wed, 14 Jun 2017 10:25:38 +0000 (12:25 +0200)]
python-3.5: Move bz2.py, lzma.py and _compression.py from python3-misc to python3-compression

* the /usr/lib/python3.5/_compression.py file is possibly incorrectly included
  in python3-misc. This runtime dependency is needed in order to use e.g. gzip.py in runtime:

  >>> import tarfile, zlib, gzip
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/lib/python3.5/gzip.py", line 12, in <module>
      import _compression
  ImportError: No module named '_compression'

* at least python3-tests and lzma and bz2 still in python3-misc are using this as well:
  $ grep -R import.*_compression tmp-glibc/work/aarch64-oe-linux/python3/3.5.2-r1.0/packages-split/
  tmp-glibc/work/aarch64-oe-linux/python3/3.5.2-r1.0/packages-split/python3-compression/usr/lib/python3.5/gzip.py:import _compression
  tmp-glibc/work/aarch64-oe-linux/python3/3.5.2-r1.0/packages-split/python3-misc/usr/lib/python3.5/lzma.py:import _compression
  tmp-glibc/work/aarch64-oe-linux/python3/3.5.2-r1.0/packages-split/python3-misc/usr/lib/python3.5/bz2.py:import _compression
  tmp-glibc/work/aarch64-oe-linux/python3/3.5.2-r1.0/packages-split/python3-tests/usr/lib/python3.5/test/test_bz2.py:import _compression
  tmp-glibc/work/aarch64-oe-linux/python3/3.5.2-r1.0/packages-split/python3-tests/usr/lib/python3.5/test/test_lzma.py:import _compression

  and python3-tests are using it as well, so add new runtime dependency
  on python3-compression

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoattr: Fix build failure when image includes man-pages pkg
Mark Asselstine [Tue, 13 Jun 2017 20:26:45 +0000 (16:26 -0400)]
attr: Fix build failure when image includes man-pages pkg

If you attempt to build an image with both attr(-doc) and man-pages
packages your rootfs might fail to assemble. The error will be
something like:

Error: Transaction check error:
  file /usr/share/man/man2/fgetxattr.2 from install of \
    attr-doc-2.4.47-r0.core2_64 conflicts with file from \
    package man-pages-4.11-r0.core2_64

(the error is usually only seen on builders which don't have manpages
installed, if you have /usr/share/man/man1/man.1.gz your build will
complete but you will have duplicate manpages, just one zipped and one
not)

Backporting changes from upstream attr removes the conflicted files in
favour of those in the man-pages package.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoexternalsrc: verify that EXTERNALSRC/EXTERNALSRC_BUILD are absolute paths
Ross Burton [Tue, 13 Jun 2017 16:44:54 +0000 (17:44 +0100)]
externalsrc: verify that EXTERNALSRC/EXTERNALSRC_BUILD are absolute paths

If these are set to URLs then the errors produced are not helpful.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoadwaita-icon-theme: add a patch to speed up the do_install() task
Alexander Kanavin [Tue, 13 Jun 2017 15:41:40 +0000 (18:41 +0300)]
adwaita-icon-theme: add a patch to speed up the do_install() task

Goes down to 40 seconds from over 4 minutes :)

Note that there is no control over the amount of shell jobs; on my machine
this is not a problem, but if it's a problem on less capable hardware,
we can add some kind of limiter.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorunqemu: change terminal settings for valid tty's
Mikko Ylinen [Tue, 13 Jun 2017 15:39:09 +0000 (18:39 +0300)]
runqemu: change terminal settings for valid tty's

runqemu uses stty to change terminal settings to give users
better control to qemu. However, stty does not work when
runqemu is run directly or indirectly via oe-selftest in
a Docker container (presumably some problems with Docker's
pseudo-tty implementation).

The error reported is:
stty: 'standard input': Inappropriate ioctl for device

As runqemu recently moved to subprocess.check_call() for
stty calls we now get thrown an error and all runqemu
runs fail.

sys.stdin.isatty() does proper job in detecting if the stty
calls can work so we use that check before running the stty
subprocess operations.

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogrub: switch from ftp to https
Maxin B. John [Tue, 13 Jun 2017 14:29:53 +0000 (17:29 +0300)]
grub: switch from ftp to https

For the same reasons as Debian:
https://www.debian.org/News/2017/20170425

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibid3tag: switch from ftp to http
Maxin B. John [Tue, 13 Jun 2017 14:29:52 +0000 (17:29 +0300)]
libid3tag: switch from ftp to http

For the same reasons as Debian:
https://www.debian.org/News/2017/20170425

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibglu: switch from ftp to https
Maxin B. John [Tue, 13 Jun 2017 14:29:51 +0000 (17:29 +0300)]
libglu: switch from ftp to https

For the same reasons as Debian:
https://www.debian.org/News/2017/20170425

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomesa: switch from ftp to https
Maxin B. John [Tue, 13 Jun 2017 14:29:50 +0000 (17:29 +0300)]
mesa: switch from ftp to https

For the same reasons as Debian:
https://www.debian.org/News/2017/20170425

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomesa-demos: switch from ftp to https
Maxin B. John [Tue, 13 Jun 2017 14:29:49 +0000 (17:29 +0300)]
mesa-demos: switch from ftp to https

For the same reasons as Debian:
https://www.debian.org/News/2017/20170425

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodhcp: switch from ftp to http
Maxin B. John [Tue, 13 Jun 2017 14:29:48 +0000 (17:29 +0300)]
dhcp: switch from ftp to http

For the same reasons as Debian:
https://www.debian.org/News/2017/20170425

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibpcre: switch from ftp to https
Maxin B. John [Tue, 13 Jun 2017 14:29:47 +0000 (17:29 +0300)]
libpcre: switch from ftp to https

For the same reasons as Debian:
https://www.debian.org/News/2017/20170425

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage.bbclass: fix setting of vardeps flag
Ed Bartosh [Wed, 14 Jun 2017 09:07:06 +0000 (12:07 +0300)]
image.bbclass: fix setting of vardeps flag

Added leading space to vardeps to avoid flag value to be
added to the existing value without a separator.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage.bbclass: improve setup of flags
Ed Bartosh [Wed, 14 Jun 2017 09:07:05 +0000 (12:07 +0300)]
image.bbclass: improve setup of flags

Replaced setVarFlag calls to appendVarFlag to allow
modification of prefuncs, postfuncs and subimages flags
in inherited image classes.

[YOCTO #11372]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage.bbclass: cleanup: add new variable "task"
Ed Bartosh [Wed, 14 Jun 2017 09:07:04 +0000 (12:07 +0300)]
image.bbclass: cleanup: add new variable "task"

Replaced repeated expression "do_image_%s" % t with
a variable 'task' to simplify the code and increase
readability.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agostaging.bbclass: fix typo
Chen Qi [Wed, 14 Jun 2017 06:20:12 +0000 (14:20 +0800)]
staging.bbclass: fix typo

The function is "sysroot_strip" instead of "split_and_strip_files".

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoconnman: correct the systemd boot in read only rootfs
Maxin B. John [Mon, 12 Jun 2017 15:10:22 +0000 (18:10 +0300)]
connman: correct the systemd boot in read only rootfs

connman fails to start in systemd based read-only images while creating links:

Jun 08 12:53:56 qemux86-64 systemd[1]: Starting Create Volatile Files
and Directories...
Jun 08 12:53:56 qemux86-64 systemd-tmpfiles[366]:
[[0;1;31msymlink(/var/run/connman/resolv.conf, /etc/resolv.conf) failed:
Read-only file system[[0m

Fix this failure and make connman co-exist with systemd-resolved.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemd: enable resolved and networkd
Maxin B. John [Mon, 12 Jun 2017 15:10:21 +0000 (18:10 +0300)]
systemd: enable resolved and networkd

Enable systemd-resolved and systemd-networkd by default.
Make it co-exist with connman and  Fix associated problems
in read-only rootfs.

Fixes [YOCTO #11331]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoselftest/sstatetests: Fix potential failure on uniprocessor machines
Richard Purdie [Wed, 14 Jun 2017 10:55:45 +0000 (11:55 +0100)]
selftest/sstatetests: Fix potential failure on uniprocessor machines

It was pointed out +1 is safer than -1 for systems with one processor.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogcc_7.1.bb: disable thumb on armv5t
Khem Raj [Sat, 10 Jun 2017 18:34:24 +0000 (11:34 -0700)]
gcc_7.1.bb: disable thumb on armv5t

It results in same link errors like armv4t

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agogcc: Add recipes for gcc-7
Khem Raj [Sat, 15 Apr 2017 01:10:45 +0000 (18:10 -0700)]
gcc: Add recipes for gcc-7

Switch default compiler to gcc 7

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agoovmf: Update to latest
Khem Raj [Sat, 10 Jun 2017 08:39:36 +0000 (01:39 -0700)]
ovmf: Update to latest

Fix build with gcc7

clang can not compile it therefore mark it gcc only recipe

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agouboot-config: check UBOOT_CONFIG variable, not flags, for error conditions
Denys Dmytriyenko [Mon, 12 Jun 2017 18:47:49 +0000 (14:47 -0400)]
uboot-config: check UBOOT_CONFIG variable, not flags, for error conditions

Sometimes there's a need to change existing UBOOT_CONFIG setting from a recipe,
distro or local config, such as an override or even switch back to UBOOT_MACHINE.
Unfortunately, there's no easy way to override or unset flags, so using them as
an error condition is rather heavy-handed. Change those conditions to check the
UBOOT_CONFIG variable itself, not its flags.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosed: changes to support merged /usr
Amarnath Valluri [Tue, 13 Jun 2017 06:52:38 +0000 (09:52 +0300)]
sed: changes to support merged /usr

Few of the perl scripts referring '#!/bin/sed' inside the script. But when
'usrmerge' feature is enabled this path would be /usr/bin/sed. So to satisfy
build dependency add '/bin/sed' to it's providers list.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobusybox: changes to support merged /usr
Amarnath Valluri [Tue, 13 Jun 2017 06:52:37 +0000 (09:52 +0300)]
busybox: changes to support merged /usr

Most of the shell scripts refer to /bin/sh inside the script. When 'usrmege'
feature is enabled, this path would be /usr/bin/sh. Hence, to satisfy build
dependency add '/bin/sh' to it's providers list.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobash: changes to support merged /usr
Amarnath Valluri [Tue, 13 Jun 2017 06:52:36 +0000 (09:52 +0300)]
bash: changes to support merged /usr

Most of shell scripts refer to '#!/bin/{sh,bash}' inside the script. But when
'usrmege' feature is enabled this path will be /usr/bin/{sh, bash}.

so to satisify build dependency add '/bin/{sh,bash}' to its providers list.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogcc-cross-canadian: Use ${target_includedir} for compatibility with meta-micro
Mike Crowe [Tue, 16 May 2017 12:40:00 +0000 (13:40 +0100)]
gcc-cross-canadian: Use ${target_includedir} for compatibility with meta-micro

meta-micro puts headers in /include rather than /usr/include in the
sysroot. ${target_includedir} means that the correct path will be used
automatically.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Acked-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoselftest: add test_wic_rm test case
Ed Bartosh [Tue, 13 Jun 2017 11:22:14 +0000 (14:22 +0300)]
selftest: add test_wic_rm test case

Added test case for "wic rm" functionality.
    - remove file from vfat partition
    - remove directory from vfat partition

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: implement removing directories
Ed Bartosh [Tue, 13 Jun 2017 11:22:13 +0000 (14:22 +0300)]
wic: implement removing directories

Added support for removing directories using mdeltree
utility to Disk.del method

[YOCTO #11283]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: implement removing files
Ed Bartosh [Tue, 13 Jun 2017 11:22:12 +0000 (14:22 +0300)]
wic: implement removing files

Added implementation of Disk.del method and wic_r
function that removes files from the vfat partition
using mdel utility.

[YOCTO #11283]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: add 'wic rm' command
Ed Bartosh [Tue, 13 Jun 2017 11:22:11 +0000 (14:22 +0300)]
wic: add 'wic rm' command

Added empty 'wic rm' command that does nothing.
The functionality will be added by the next commits.

[YOCTO #11283]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: add help and usage content for 'wic rm'
Ed Bartosh [Tue, 13 Jun 2017 11:22:10 +0000 (14:22 +0300)]
wic: add help and usage content for 'wic rm'

Added wic_rm_help and wic_rm_usage variables to help.py.
These variables contain help content that will be used in
'wic rm help' and 'wic rm --help' output.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: add wic_init_parser_rm
Ed Bartosh [Tue, 13 Jun 2017 11:22:09 +0000 (14:22 +0300)]
wic: add wic_init_parser_rm

Add parser for 'wic rm' subcommand.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoselftest: add test_wic_cp test case
Ed Bartosh [Tue, 13 Jun 2017 11:22:08 +0000 (14:22 +0300)]
selftest: add test_wic_cp test case

Added test case for "wic cp" functionality.
     - copy file to vfat partition
     - copy directory to vfat partition

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: fully implement 'wic cp'
Ed Bartosh [Tue, 13 Jun 2017 11:22:07 +0000 (14:22 +0300)]
wic: fully implement 'wic cp'

Added implementation of Disk.copy method and wic_cp
function that copies files/directories to the vfat partition
of the partitioned image.

[YOCTO #11283]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: add Disk._put_part_image method
Ed Bartosh [Tue, 13 Jun 2017 11:22:06 +0000 (14:22 +0300)]
wic: add Disk._put_part_image method

This method copies partition image into the wic image.
It will be used in 'wic cp' and 'wic rm' subcommands
to copy changed partition back into wic image.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agofilemap: calculate dst size correctly
Ed Bartosh [Tue, 13 Jun 2017 11:22:05 +0000 (14:22 +0300)]
filemap: calculate dst size correctly

Fixed calculation of the dst file size using skip, seek and
length parameters. Current code does it incorrectly which
causes sparse_copy API to create unnecessary big output files.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agofilemap: check if dest is written for every block
Ed Bartosh [Tue, 13 Jun 2017 11:22:04 +0000 (14:22 +0300)]
filemap: check if dest is written for every block

If lenght parameter is provided to sparse_copy call
it's mandatory to check if the output file is fully
written after reading unmapped block from input file.

If it's not done then sparse_copy can write more data
than specified length.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agofilemap: change signature of sparse_copy function
Ed Bartosh [Tue, 13 Jun 2017 11:22:03 +0000 (14:22 +0300)]
filemap: change signature of sparse_copy function

Renamed parameter offset->skip to match names of dd
parameters.

Changed affected sparse_copy calls.

Added explanation of the parameters to docstring.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: add mcopy property
Ed Bartosh [Tue, 13 Jun 2017 11:22:02 +0000 (14:22 +0300)]
wic: add mcopy property

Added property that points to the mcopy executable.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: add Disk._prop helper
Ed Bartosh [Tue, 13 Jun 2017 11:22:01 +0000 (14:22 +0300)]
wic: add Disk._prop helper

Added generic helper to use in property methods to
access commands in a lazy manner.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: add 'wic cp' command
Ed Bartosh [Tue, 13 Jun 2017 11:22:00 +0000 (14:22 +0300)]
wic: add 'wic cp' command

Added empty 'wic cp' command that does nothing.
The functionality will be added by the next commits.

[YOCTO #11283]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: add help and usage content for 'wic cp'
Ed Bartosh [Tue, 13 Jun 2017 11:21:59 +0000 (14:21 +0300)]
wic: add help and usage content for 'wic cp'

Added wic_cp_help and wic_cp_usage variables to
help.py. These variables contain help content that
will be used in 'wic cp help' and 'wic cp --help'
output.

[YOCTO #11283]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: add wic_init_parser_cp
Ed Bartosh [Tue, 13 Jun 2017 11:21:58 +0000 (14:21 +0300)]
wic: add wic_init_parser_cp

Add parser for 'wic cp' subcommand and a custom argument type.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoselftest: add new test case test_wic_ls
Ed Bartosh [Tue, 13 Jun 2017 11:21:57 +0000 (14:21 +0300)]
selftest: add new test case test_wic_ls

Tested 'wic ls' functionality:
 - list of image partitions
 - list of directory content of vfat partition

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoengine: implement listing wic images
Ed Bartosh [Tue, 13 Jun 2017 11:21:56 +0000 (14:21 +0300)]
engine: implement listing wic images

Implemented 'wic ls' functionality:
 - list image partitions
 - list directory content of vfat partitions

[YOCTO #11283]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: add 'wic ls' command
Ed Bartosh [Tue, 13 Jun 2017 11:21:55 +0000 (14:21 +0300)]
wic: add 'wic ls' command

Added empty 'wic ls' command that does nothing.
The functionality will be added by the next commits.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: add help and usage content for 'wic ls'
Ed Bartosh [Tue, 13 Jun 2017 11:21:54 +0000 (14:21 +0300)]
wic: add help and usage content for 'wic ls'

Added wic_ls_help and wic_ls_usage variables to
help.py. These variables contain help content that
will be used in 'wic ls help' and 'wic ls --help'
output.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: add wic_init_parser_ls
Ed Bartosh [Tue, 13 Jun 2017 11:21:53 +0000 (14:21 +0300)]
wic: add wic_init_parser_ls

Added parser for 'wic ls' command.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobootimg-pcbios: make boot image file unique
Ed Bartosh [Tue, 13 Jun 2017 11:21:52 +0000 (14:21 +0300)]
bootimg-pcbios: make boot image file unique

Plugin code uses boot.img file name for an image file. If there are
two partitions that use bootimg-pcbios wic breaks with an error
"file already exists: boot.img"

Made image file name unique by adding wks like number to it to fix
the issue.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agofilemap: add parameter 'length' to sparse_copy
Ed Bartosh [Tue, 13 Jun 2017 11:21:51 +0000 (14:21 +0300)]
filemap: add parameter 'length' to sparse_copy

Added parameter 'length' to specify amount of data
to write into destination file. This is useful when only
part of source file should be written into destination file.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agofilemap: fix skip logic
Ed Bartosh [Tue, 13 Jun 2017 11:21:50 +0000 (14:21 +0300)]
filemap: fix skip logic

Fixed bug in processing 'skip' parameter:
   don't read input file if end of bmap block is less than skip

Simplified logic of positioning to the start of data inside a
partially skipped bmap block.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomtools-native: disable reading host configs
Ed Bartosh [Tue, 13 Jun 2017 11:55:52 +0000 (14:55 +0300)]
mtools-native: disable reading host configs

Removed code that reads /etc/mtools.conf, /etc/default/mtools.conf,
/etc/mtools and /etc/default/mtools to ensure that mtools output
doesn't depend on the global host configs.

It's still possible to use ~/.mtoolsrc config or point MTOOLSRC
environment variable to any configuration file if user want
to configure mtools.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake.conf: Don't exclude MACHINE/MACHINEOVERRIDES from hashes
Richard Purdie [Tue, 13 Jun 2017 09:22:28 +0000 (10:22 +0100)]
bitbake.conf: Don't exclude MACHINE/MACHINEOVERRIDES from hashes

A long time ago (6 years), this seemed like a good idea. The reality is
that OVERRIDES should not be being added to hashes and if it is, it likely
needs excluding in its own right. This was a nice workaround but we need
to fix the real underlying issues now. In some cases this means excluding
OVERRIDES from the variables dependency using the vardepsexclude flag however
caution is needed to ensure this is safe.

Variable values used to construct hashes are unexpanded but the values used
are computed after the application of OVERRIDES. The important detail is if
the end resulting unexpanded value changes, not the value of the OVERRIDES
used in the construction of that unexpanded value. This is why dependencies
on OVERRIDES itself shouldn't be in the hashes in general.

The recent DISTRO_FEATURES changes adding in override mappings for them
highlighted this issue. We have some good sstate tests which are effective
at highlighting where potential issues arrive with OVERRIDES contamination
(oe-selftest -r sstatetests.SStateTests).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosstatetests: Use higher parallelism value
Richard Purdie [Tue, 13 Jun 2017 09:21:46 +0000 (10:21 +0100)]
sstatetests: Use higher parallelism value

Since the processing code for signature generation is now threaded,
use higher thread values as examples in this code for better performance.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoutils: Exclude OVERRIDES from hashes in multilib functions
Richard Purdie [Tue, 13 Jun 2017 09:17:21 +0000 (10:17 +0100)]
utils: Exclude OVERRIDES from hashes in multilib functions

7 years agoinsane: Don't depend on OVERRIDES
Richard Purdie [Tue, 13 Jun 2017 09:14:15 +0000 (10:14 +0100)]
insane: Don't depend on OVERRIDES

In common with the other package handling functions, don't depend on the
value of OVERRIDES. This means when we change MACHINE, we don't have to
repackage everything.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoallarch: Append to vardepsexclude, not overwrite
Richard Purdie [Tue, 13 Jun 2017 09:09:29 +0000 (10:09 +0100)]
allarch: Append to vardepsexclude, not overwrite

These have values set elsewhere and this code was overwriting them leading
to odd signature issues. Append instead preserving the original values.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/loader: Use full and small module name on filtering
Aníbal Limón [Mon, 12 Jun 2017 21:41:18 +0000 (16:41 -0500)]
oeqa/core/loader: Use full and small module name on filtering

The small module name was added to support run a whole suite that
has more that 3 levels in the test case name, but this broke the
behaviour for use a full test case name.

[YOCTO #11632]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/runner: Don't log details twice if test fails
Aníbal Limón [Mon, 12 Jun 2017 21:41:17 +0000 (16:41 -0500)]
oeqa/core/runner: Don't log details twice if test fails

The details of a test failure is upper on the unittest output
so don't log twice the actual failure.

[YOCTO #11622]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoiproute2: Upgrade 4.10.0 -> 4.11.0
Changhyeok Bae [Mon, 12 Jun 2017 05:44:30 +0000 (05:44 +0000)]
iproute2: Upgrade 4.10.0 -> 4.11.0

0001-ip-Remove-unneed-header.patch is to fix build error
built with musl.

Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorpm: add explicit dependency on bzip2-replacement-native for native builds
Ming Liu [Mon, 12 Jun 2017 07:25:52 +0000 (09:25 +0200)]
rpm: add explicit dependency on bzip2-replacement-native for native builds

This fixes a following error:
| recipe-sysroot-native/usr/lib/rpm/debugedit: error while loading shared libraries: \
| libbz2.so.1: cannot open shared object file: No such file or directory

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>