]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agowic: renamd direct_plugin.py -> direct.py
Ed Bartosh [Tue, 31 Jan 2017 09:46:11 +0000 (11:46 +0200)]
wic: renamd direct_plugin.py -> direct.py

As this files is located in plugins/imager subdirectory it's
obvious that it's an imager plugin. Renamed to direct.py to
be consistent with plugin naming scheme.

[YOCTO #10619]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: simplified code of direct_plugin
Ed Bartosh [Tue, 31 Jan 2017 02:05:49 +0000 (04:05 +0200)]
wic: simplified code of direct_plugin

Removed unused methods.
Got rid of get_default_source_plugin and _full_name methods.

[YOCTO #10619]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: pylinted direct_plugin
Ed Bartosh [Tue, 31 Jan 2017 01:54:41 +0000 (03:54 +0200)]
wic: pylinted direct_plugin

Fixed wrong continued indentation, unused import and
trailing new line pyling warnings.

[YOCTO #10619]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: improve naming in direct_plugin classes
Ed Bartosh [Tue, 31 Jan 2017 01:43:56 +0000 (03:43 +0200)]
wic: improve naming in direct_plugin classes

Synchronized attribure names in DirectImageCreator and
DirectPlugin for better readability. Simplified code,
removed unneeded global variable disk_methods.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: get rid of __rootfs_dir_to_dict method
Ed Bartosh [Tue, 31 Jan 2017 01:25:10 +0000 (03:25 +0200)]
wic: get rid of __rootfs_dir_to_dict method

Replaced class method __rootfs_dir_to_dict with a list
comprehension.

[YOCTO #10619]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: moved content of direct.py to direct_plugin
Ed Bartosh [Mon, 30 Jan 2017 21:54:29 +0000 (23:54 +0200)]
wic: moved content of direct.py to direct_plugin

This move simplifies directory structure and makes
further refactoring easier. The code from direct.py was used
only in direct_plugin, so it's safe to move it there.

[YOCTO #10619]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: removed conf.py and empty config file.
Ed Bartosh [Mon, 30 Jan 2017 21:37:18 +0000 (23:37 +0200)]
wic: removed conf.py and empty config file.

Removed as they're not used anymore in wic code.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct_plugin: stop using config manager
Ed Bartosh [Mon, 30 Jan 2017 21:31:53 +0000 (23:31 +0200)]
wic: direct_plugin: stop using config manager

This is a preparation to removing conf.py and config/wic.conf
from the codebase.

Got rid of using configmgr global object in direct_plugin and direct
modules. It was used to implicitly parse kickstart file and set
couple of variables.

Replaced usage of configmgr by passing parameters directly to the
DirectImageCreator.

[YOCTO #10619]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: creator: stop using config manager
Ed Bartosh [Mon, 30 Jan 2017 21:23:00 +0000 (23:23 +0200)]
wic: creator: stop using config manager

This is a preparation to removing conf.py and config/wic.conf
from the codebase.

confmgr object is complicated for no reason and almost
useless as all configuration info comes from command line and
bitbake variables. It's used it creator.py to store information
about output directory, logs and some never used functionality
like tmpfs for future use, which doesn't actually happen.

[YOCTO #10619]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoselftest/bbtests: use write_config instead of local.conf file
Leonardo Sandoval [Wed, 1 Feb 2017 18:04:55 +0000 (12:04 -0600)]
selftest/bbtests: use write_config instead of local.conf file

Extra configuration data should be write using the write_config
method instead of manually appending to the local.conf file

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest: wic: stop using hddimg in FSTYPES
Ed Bartosh [Wed, 1 Feb 2017 16:00:05 +0000 (18:00 +0200)]
selftest: wic: stop using hddimg in FSTYPES

Removed hddimg from FSTYPES in wic test suite as
wic doesn't depend on hddimg anymore.

[YOCTO #10835]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic-tools: Do not remove sysroot with rm_work, because wic needs it.
Kristian Amlie [Mon, 30 Jan 2017 15:43:38 +0000 (16:43 +0100)]
wic-tools: Do not remove sysroot with rm_work, because wic needs it.

The sysroot of wic-tools is needed for wic, but if rm_work is enabled,
it will be removed before wic has a chance to use it, hence this fix.

Signed-off-by: Kristian Amlie <kristian.amlie@mender.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopkgconfig: use packageconfig
Ross Burton [Tue, 31 Jan 2017 20:27:26 +0000 (20:27 +0000)]
pkgconfig: use packageconfig

8 years agopkg-config: depend on pkgconfig-native for target builds
Ross Burton [Tue, 31 Jan 2017 20:24:32 +0000 (20:24 +0000)]
pkg-config: depend on pkgconfig-native for target builds

When building for the target, pkg-config uses the target glib-2.0 instead of
it's own minimal fork. To find this it needs to use pkg-config so ensure this
dependency exists in case it doesn't exist on the host already.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocups: add missing pkgconfig inherit
Ross Burton [Tue, 31 Jan 2017 20:24:28 +0000 (20:24 +0000)]
cups: add missing pkgconfig inherit

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Wed, 1 Feb 2017 23:10:58 +0000 (23:10 +0000)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agometa-environment: Clean up the task structure to reduce manifest warnings
Richard Purdie [Wed, 1 Feb 2017 11:31:47 +0000 (11:31 +0000)]
meta-environment: Clean up the task structure to reduce manifest warnings

This puts the dependencies on the correct task and removes pointless
noexec tasks allowing for a slightly cleaner task structure.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agostaging: Reduce the number of mkdirs calls
Richard Purdie [Wed, 1 Feb 2017 11:29:06 +0000 (11:29 +0000)]
staging: Reduce the number of mkdirs calls

The number of mkdir calls was showing up high on the profile charts since
it was getting called once per file which is excessive. Each call results
in one or more syscalls which is bad for performance. Cache which
directories we've seen to reduce the calls to a more reasonable number
and speed up recipe specific sysroots.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosstate/staging: Batch log messages for performance
Richard Purdie [Wed, 1 Feb 2017 11:25:32 +0000 (11:25 +0000)]
sstate/staging: Batch log messages for performance

According to profile data, repeated calls to bb.debug and bb.note in
the extend_recipe_sysroot() codepath were accounting for 75% of the time
(1.5s) in calls from tasks like do_image_complete.

This batches up the log messages into one call into the logging system
which gives similar behaviour to disabling the logging but retains the
debug information.

Since setscene_depvalid is also called from bitbake's setscene code,
we have to be a little creative with the function parameters and leave
the other debug output mechanism in place. This should hopefully
speed up recipe specific sysroots.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxmlto: Don't hardcode the path to tail
Richard Purdie [Mon, 30 Jan 2017 23:18:28 +0000 (23:18 +0000)]
xmlto: Don't hardcode the path to tail

We don't need to hardcode a path to tail, follow the other tools examples and
don't specify a path since PATH is good enough for us.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobinutils-cross: Remove exec_prefix from the linker search path
Richard Purdie [Mon, 30 Jan 2017 23:18:09 +0000 (23:18 +0000)]
binutils-cross: Remove exec_prefix from the linker search path

We don't put target libs into a native/cross ${exec_prefix} but having
this in the default search path means all linker scripts have to be relocated.
This is a considerable chunk of files to create multiple copies of for no good
reason.

Instead, patch out the paths we don't need.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodistro/defaultsetup: Enable removal of libtool .la files by default
Richard Purdie [Mon, 30 Jan 2017 23:11:32 +0000 (23:11 +0000)]
distro/defaultsetup: Enable removal of libtool .la files by default

Relocation of native .la files during recipe specific sysroot relocation
is probably the final straw in just killing these files off.

Change things so this class is inherited by default. If distros don't want to
do this, they can opt out but it seems like the best thing to do now since
.la files aren't needed on Linux.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorelocatable: Make native .pc files relocatable
Richard Purdie [Mon, 30 Jan 2017 23:08:38 +0000 (23:08 +0000)]
relocatable: Make native .pc files relocatable

The native .pc files currently have hardcoded paths in them meaning each has
to be relocated at final install time. pkg-config has built in functionality
to avoid this, namely the pcfiledir variable.

This function translates .pc files to use the variable meaning further
relocation later is unnecessary.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoutils: Avoid need to relocate wrapper scripts
Richard Purdie [Mon, 30 Jan 2017 23:08:11 +0000 (23:08 +0000)]
utils: Avoid need to relocate wrapper scripts

Whilst the path to the executable is dynamically determined, the passed in
environment variables or parameters are not relocatable and rely on the sstate
remapping code. In the recipe specific sysroot case this has become more costly.

This patch translates such paths into relocatable entries which means that
a sed replacement at final installation isn't needed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/core/context.py: Add validation for run-tests option
Aníbal Limón [Tue, 31 Jan 2017 21:05:53 +0000 (15:05 -0600)]
oeqa/core/context.py: Add validation for run-tests option

The run-tests option is optional so if isn't specified set
to None instead of crash on split().

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/runtime/cases: Rename syslog module to oe_syslog
Aníbal Limón [Tue, 31 Jan 2017 21:05:54 +0000 (15:05 -0600)]
oeqa/runtime/cases: Rename syslog module to oe_syslog

Debian based distros has a builtin syslog module so when
try to load tests using unittest it references the builtin
module instead of runtime/cases.

[YOCTO #10964]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestimage.bbclass: Fixes about suites and dependencies
Mariano Lopez [Tue, 31 Jan 2017 21:05:52 +0000 (15:05 -0600)]
testimage.bbclass: Fixes about suites and dependencies

There are some missing suites on sato-sdk and lsb-sdk images so add it.

The createrepo-native needs to be built before run testimage in
order to create a repository from install packages.

The DL_DIR data also needs to be updated from the current bitbake
environment instead of use the value from testdata file.

[YOCTO #10964]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoruntime/cases: Fix case numbers, missing cases and unused classes
Mariano Lopez [Tue, 31 Jan 2017 21:05:51 +0000 (15:05 -0600)]
runtime/cases: Fix case numbers, missing cases and unused classes

gcc: Removed unneded lines.

multilib: fixed case number.

syslog: added a missing test.

[YOCTO #10964]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibtasn1: depends on yacc
Patrick Ohly [Tue, 31 Jan 2017 09:05:29 +0000 (10:05 +0100)]
libtasn1: depends on yacc

This fixes a potential pollution by the build host and build error
when yacc isn't installed on the build host:

 | ../../libtasn1-4.9/build-aux/ylwrap: line 175: yacc: command not found
 | Makefile:1116: recipe for target 'ASN1.c' failed
 | make[3]: *** [ASN1.c] Error 127

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoverify-bashisms: support warnings with more than one line of source code
Patrick Ohly [Tue, 31 Jan 2017 12:50:33 +0000 (13:50 +0100)]
verify-bashisms: support warnings with more than one line of source code

All warnings start with "possible bashism in", followed by one or more
(in the case of line continuation) lines of source code. To support
more than one line, we now split by matching against the known intro
text.

Example:

 $ verify-bashisms guile
 ...
 /.../openembedded-core/meta/recipes-devtools/guile/guile_2.0.13.bb
  possible bashism in guile_cross_config line 94 ($'...' should be "$(printf '...')"):
          echo '#!'`which ${BUILD_SYS}-guile`$' \\\n--no-auto-compile -e main -s\n!#\n(define %guile-build-info '\'\( \
  > ${B}/guile-config.cross

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_ext: fix == bashism
Patrick Ohly [Tue, 31 Jan 2017 12:50:32 +0000 (13:50 +0100)]
populate_sdk_ext: fix == bashism

Found via verify-bashisms.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoverify-bashisms: check scripts only once, include original file and line
Patrick Ohly [Tue, 31 Jan 2017 12:50:31 +0000 (13:50 +0100)]
verify-bashisms: check scripts only once, include original file and line

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Missing dependency uncovered after recipe specific sysroots were enabled.

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

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

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

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

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

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

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

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

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

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

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

This eliminates redundant image creation when using such tools.

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

The memory management interface has changed in Kernel 4.9.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    qb_net = none

[YOCTO#10661]

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

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

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

[YOCTO #10964]

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

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

[YOCTO #10964]

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

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

[YOCTO #10964]

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

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

Upstream-Status: Accepted

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

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

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

Do not reference unavailable system calls when
building for ARM_EABI.

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

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

This should fix [YOCTO #10794]

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

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

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

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

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

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

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

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

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

[YOCTO #10881]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[ YOCTO #10963 ]

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

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

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

[ YOCTO #8200 ]

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

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

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

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

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

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

[ YOCTO #10700 ]

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

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

[ YOCTO #10960 ]

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

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

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

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

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

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

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

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

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

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

[YOCTO #10835]

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

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

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

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

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

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

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

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

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

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

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

[YOCTO #10835]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Removed test_alternate_output_dir test case.
Added test_default_output_dir test case.

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

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

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

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

[YOCTO #10783]

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

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

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

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

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

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

[YOCTO #10783]

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

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

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

Set default output directory to current dir.

[YOCTO #10783]

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

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

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

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

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

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

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

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

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>