systemd: Add new package systemd-kernel-install

Package additional directories e.g. /etc/kernel and /usr/lib/kernel

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/build-perf-test.sh: add a script for build performance tracking

This script runs a series of builds (core-image-sato by default) with
and without sstate cache and collects some metrics (time and size currently).
It takes a commit as argument  (-c <rev>) and measures wall clock for
bitbake core-image-sato and virtual/kernel.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/build-perf-test.sh: add a global results file

Append results from each run to a single file in order to keep a history.
Also do some cosmetic changes and fix some whitespace.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/build-perf-test.sh: add option to allow cherry-picking of fix revisions

Adds a -p option to allow cherry-picking of fix revisions.
Removes the final build/sstate directories to stop running out of space.
Runs subsequent tasks even if one test fails.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/build-perf-test.sh: add timings for bitbake -p

Add another test to time bitbake -p with and without cache/ or tmp/cache.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/lsb.py: extract only the needed info from lsb-release

Instead of running lsb_release -a, a lsb_release -ir will be run.
This will prevent issue with distros that don't have all the needed
info in /etc/lsb-release file, in which case lsb_release won't generate
an error code.

Partial fix for [YOCTO #4071]

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
qemuimage-testlib: Increase qemu startup timeouts

We are seeing timeouts on the autobuilder where qemu does start but the script
doesn't appear to be able to detect it in time. This patch increases the
timeouts since there seems little harm in doing so.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
qemuimage-testlib: Use ww option to ps to ensure command output isn't truncated

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
qemuimage-testlib: Fix quoting issue

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
sstate.bbclass: allow to disable sstate package creation

* building core-image-minimal-mtdutils with and without sstate packages enabled:
          with   without
  real     98m       95m
  user    212m      208m
  sys      26m       25m

* but this was tested on fast machine with TMPDIR on fast raid0 array
  so the impact is not so bad on simple image, but stuff like qt4 takes
  ages on our slow buildhost

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qemu.inc: remove EXTRA_IMAGEDEPENDS, images are usefull even without qemu installed on host

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
docbook-sgml-dtd: add 4.3 version

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
package-test: add test recipes

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
console-tools, kbd: add RREPLACES/RPROVIDES/RCONFLICTS combo between PN-dbg

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
initrdscripts: exclude conflicting packages from world-image

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
sstatesig: introduce SignatureGeneratorOEBasicHashLite

* Rebuilds packages when:
  a) If you edit patches of a given recipe it will rebuild.
  b) If you change a task like do_configure, things after it will rerun in
     a given recipe.
  c) If a dependent task in another recipe changes, it won't rerun.
  d) If you change some global configuration variable or shared .bbclass
     it will rebuild.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
oe-core: add world-image

* this depends on newer bitbake
* similar to world target, but collects all PACKAGES
* recipes marked with EXCLUDE_FROM_WORLD are excluded from world as well
  as world-image
* recipes marked with EXCLUDE_FROM_WORLD_IMAGE are excluded completely
  from world-image, sometimes you can build 2 recipes in same sysroot,
  but cannot install them in the same image
* PACKAGES listed in EXCLUDE_PACKAGES_FROM_WORLD_IMAGE are also
  excluded. You can remove e.g. ${PN}-dbg, but keep all other PACKAGES.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
icecc: Allow to use this bbclass together with external toolchains

* original implementation by Antti Harju

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
util-linux: Use u-a for getopt

* when enable busybox installs getopt to ${base_bindir} and
  util-linux to ${bindir}, so there is no file conflict, but
  because busybox implementation does not support --long used
  by lsb_release (which RDEPENDS on util-linux) we need to use
  util-linux getopt even when busybox defconfig has it enabled

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
runqemu-internal: use MACHINE_SUBTYPE variable for qemuarm*