]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agoimage_typedep.py: Add a test that ensures conversion type deps get added
Randy Witt [Thu, 5 Jan 2017 23:15:43 +0000 (15:15 -0800)]
image_typedep.py: Add a test that ensures conversion type deps get added

Add a test that ensures if IMAGE_TYPEDEP_* contains a conversion type,
that the corresponding CONVERSION_DEPENDS_ for that type gets added to
the dependency tree for do_rootfs.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoopkg: upgrade to v0.3.4
Alejandro del Castillo [Tue, 27 Dec 2016 20:50:00 +0000 (14:50 -0600)]
opkg: upgrade to v0.3.4

* Add localstatedir and sysconfdir class-native configure definitions to
  override OE default sysroot values.

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocoreutils: upgrade to 8.26
Chen Qi [Mon, 26 Dec 2016 08:10:35 +0000 (16:10 +0800)]
coreutils: upgrade to 8.26

Add 0001-local.mk-fix-cross-compiling-problem.patch to fix the following
cross compiling problem.

| Makefile:3418: *** Recursive variable 'INSTALL' references itself (eventually).  Stop.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogrep: upgrade to 2.27
Chen Qi [Mon, 26 Dec 2016 08:10:33 +0000 (16:10 +0800)]
grep: upgrade to 2.27

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosysstat: upgrade to 11.5.3
Chen Qi [Mon, 26 Dec 2016 08:10:31 +0000 (16:10 +0800)]
sysstat: upgrade to 11.5.3

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodbus/dbus-test: upgrade to 1.10.14
Chen Qi [Mon, 26 Dec 2016 08:10:30 +0000 (16:10 +0800)]
dbus/dbus-test: upgrade to 1.10.14

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosystemd-bootchart: upgrade to 231
Chen Qi [Mon, 26 Dec 2016 08:10:29 +0000 (16:10 +0800)]
systemd-bootchart: upgrade to 231

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomusl: Upgrade to 1.1.16+ on master
Khem Raj [Tue, 3 Jan 2017 01:55:28 +0000 (17:55 -0800)]
musl: Upgrade to 1.1.16+ on master

summary of changes

http://git.musl-libc.org/cgit/musl/commit/?id=8fe1f2d79b275b7f7fb0d41c99e379357df63cd9

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoimage_types.bbclass: look for wks files in <layer>/wic
Ed Bartosh [Thu, 22 Dec 2016 23:42:14 +0000 (01:42 +0200)]
image_types.bbclass: look for wks files in <layer>/wic

Added <layer>/wic directory to the list of paths to look
for wks files. This makes wic behaviour consistent when
invoked manually and by bitbake.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-firmware: remove alternatives for brcmfmac-stdio.bin
Ross Burton [Thu, 22 Dec 2016 17:07:43 +0000 (17:07 +0000)]
linux-firmware: remove alternatives for brcmfmac-stdio.bin

These alternatives are only used to provide an unversioned brcmfmac-sdio.bin,
which was required by kernels prior to 3.13.  As these alternatives all have the
same priority there's no determinism in which one is selected, and current
kernels (since January 2014) use the appropriately versioned firmware names.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogummiboot: Remove old gummiboot recipe, related class and wks file
Alejandro Hernandez [Wed, 23 Nov 2016 23:00:31 +0000 (17:00 -0600)]
gummiboot: Remove old gummiboot recipe, related class and wks file

Since the gummiboot project is no longer being maintained
and we are using systemd-boot as a replacement instead,
we can now clean up all remaining gummiboot files.

[YOCTO #10332]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest/devtool: update test to work with new mtd-utils
Ross Burton [Fri, 6 Jan 2017 12:36:45 +0000 (12:36 +0000)]
selftest/devtool: update test to work with new mtd-utils

The new mtd-utils (version 2.0) has been autotooled so the test needs to touch
Makefile.am instead of Makefile.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agohdparm: 9.48 -> 9.50
Robert Yang [Tue, 20 Dec 2016 03:09:45 +0000 (03:09 +0000)]
hdparm: 9.48 -> 9.50

Remove "-e MAKEFLAGS=" from EXTRA_OEMAKE to fix:
ERROR: hdparm-9.50-r0 do_package: QA Issue: File '/sbin/hdparm.hdparm' from hdparm was already stripped, this will prevent future debugging! [already-stripped]
ERROR: hdparm-9.50-r0 do_package: Fatal QA errors found, failing task.

The "-e MAKEFLAGS=" would cause submake can't get vars from environment,
The git log said that it was added for fixing a QA warning, but
everything is OK after remove it now.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoattr/ea-acl: pass --disable-gettext when USE_NLS=no
Denys Dmytriyenko [Fri, 23 Dec 2016 19:34:31 +0000 (14:34 -0500)]
attr/ea-acl: pass --disable-gettext when USE_NLS=no

Fixes following error in configure:
  FATAL ERROR: msgfmt does not seem to be installed.
  attr cannot be built without a working gettext installation.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowebkitgtk: add missing python-native dep
Christopher Larson [Thu, 5 Jan 2017 19:41:59 +0000 (12:41 -0700)]
webkitgtk: add missing python-native dep

Since we can't inherit pythonnative, we need this dep explicitly.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowebkitgtk: patch & disable JIT for x32
Christopher Larson [Fri, 16 Dec 2016 18:02:08 +0000 (11:02 -0700)]
webkitgtk: patch & disable JIT for x32

It might not be speedy, but it does build now.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agognome-desktop3: fix for x32
Christopher Larson [Wed, 14 Dec 2016 03:52:33 +0000 (20:52 -0700)]
gnome-desktop3: fix for x32

Explicitly use strftime+strptime rather than snprintf+atol. This fixes the
build for X32, where long's size doesn't match that of time_t.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibunwind: apply a patch to fix x32
Christopher Larson [Wed, 14 Dec 2016 03:09:04 +0000 (20:09 -0700)]
libunwind: apply a patch to fix x32

Apply patch to fix the X32 build from https://github.com/sjnewbury/x32

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agonss: fix for x32
Christopher Larson [Wed, 14 Dec 2016 03:08:03 +0000 (20:08 -0700)]
nss: fix for x32

This was casting to a pointer, and the pointer sizes are 32-bit on X32, not
64-bit. Adjust as appropriate.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agox264: for x32, disable asm and pass -mx32
Christopher Larson [Wed, 14 Dec 2016 03:06:51 +0000 (20:06 -0700)]
x264: for x32, disable asm and pass -mx32

We should probably patch it to stop adding the -m argument to CFLAGS/LDFLAGS
in the first place, since we pass it in via CC, but this will do for now.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoffmpeg: disable asm for x32
Christopher Larson [Wed, 14 Dec 2016 03:04:34 +0000 (20:04 -0700)]
ffmpeg: disable asm for x32

This is the usual way this is handled in desktop distros (see debian, gentoo).
I wasn't able to track down a patch to add proper x32 support to ffmpeg. There
was, however, a libav patch series which may be worth investigating.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogstreamer1.0-libav: disable asm for x32
Christopher Larson [Wed, 14 Dec 2016 03:04:00 +0000 (20:04 -0700)]
gstreamer1.0-libav: disable asm for x32

The included libav lacks support for x32, so disable the assembly
optimizations.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoboost: drop flags bits, fix for x32
Christopher Larson [Wed, 14 Dec 2016 03:09:58 +0000 (20:09 -0700)]
boost: drop flags bits, fix for x32

boost was adding -march/-mcpu itself, and adding -m32/-m64 itself as well.
Patch that behavior out, apply another similar patch from elsewhere, and
adjust BJAM_OPTS to fix the x32 build.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoltp: fix build for x32
Christopher Larson [Wed, 14 Dec 2016 03:02:57 +0000 (20:02 -0700)]
ltp: fix build for x32

We need to use the correct time() definition with time_t rather than a long,
since long is 32-bit on x32.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agognu-efi: ignore arch mismatch for x32
Christopher Larson [Wed, 14 Dec 2016 03:00:57 +0000 (20:00 -0700)]
gnu-efi: ignore arch mismatch for x32

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agognu-efi: build 64-bit for x32
Christopher Larson [Wed, 14 Dec 2016 03:00:35 +0000 (20:00 -0700)]
gnu-efi: build 64-bit for x32

We're targeting the x86_64 EFI ABI.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolttng-tools: fix for x32
Christopher Larson [Thu, 1 Dec 2016 02:42:55 +0000 (19:42 -0700)]
lttng-tools: fix for x32

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogrub-efi: ignore arch mismatch for x32
Christopher Larson [Thu, 1 Dec 2016 02:40:01 +0000 (19:40 -0700)]
grub-efi: ignore arch mismatch for x32

Ordinary 64-bit binaries are expected for the bootloader.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopackagegroup-core-tools-profile: exclude valgrind for x32
Christopher Larson [Thu, 1 Dec 2016 02:40:56 +0000 (19:40 -0700)]
packagegroup-core-tools-profile: exclude valgrind for x32

valgrind doesn't seem to support x32 at this time, even in current upstream.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agovalgrind: skip for linux-gnux32
Christopher Larson [Wed, 14 Dec 2016 03:12:59 +0000 (20:12 -0700)]
valgrind: skip for linux-gnux32

valgrind doesn't support x32 at this time, so skip it for that host.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agozlib: update SRC_URI to fix fetching
Joshua Lock [Thu, 5 Jan 2017 16:34:23 +0000 (16:34 +0000)]
zlib: update SRC_URI to fix fetching

Upstream have removed the file from zlib.net as a new version has
been released, switch to fetching from the official sourceforge
mirror.

[YOCTO #10879]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomtd-utils: Upgrade to 2.0.0
Mike Crowe [Wed, 4 Jan 2017 19:28:46 +0000 (19:28 +0000)]
mtd-utils: Upgrade to 2.0.0

Upstream has started using automake which means that the recipe must now
inherit from autotools and pkgconfig.

The source tree has been reorganised too which requires the paths in the
patches to be modified. None of the patches appear to have been applied
upstream.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agonettle: Modify configure script to get consistent build.
Haiqing Bai [Thu, 5 Jan 2017 03:32:54 +0000 (11:32 +0800)]
nettle: Modify configure script to get consistent build.

The original configure script detects the header files
of openssl to set variable like 'HAVE_OPENSSL_AES_H' in
config.h and ignore the value of '--enable-openssl', this
may cause inconsistent build.

Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agonss: Fix postinstall script
David Vincent [Wed, 4 Jan 2017 16:43:02 +0000 (17:43 +0100)]
nss: Fix postinstall script

When installing NSS on a read-only rootfs, the current postinstall
scriptlet exits after having run the signing part. This causes an error
when appending the task because the rest of the script is simply ignored
and therefore never run.

Signed-off-by: David Vincent <freesilicon@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocurl: upgrade to 7.52.1
Oleksandr Kravchuk [Wed, 4 Jan 2017 08:19:27 +0000 (09:19 +0100)]
curl: upgrade to 7.52.1

Signed-off-by: Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoppp: Add patch to fix build with musl and 4.9 headers
Jussi Kukkonen [Wed, 28 Dec 2016 14:45:45 +0000 (16:45 +0200)]
ppp: Add patch to fix build with musl and 4.9 headers

Removing unused includes fixes the build.

Fixes [YOCTO #10853].

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoppp: Partly remove patch that doesn't make sense any more
Jussi Kukkonen [Wed, 28 Dec 2016 14:45:44 +0000 (16:45 +0200)]
ppp: Partly remove patch that doesn't make sense any more

ppp no longer provides the duplicate if_pppox.h header so no need to patch that
out of the Makefile.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogcc6: Upgrade to 6.3.0
Khem Raj [Wed, 21 Dec 2016 20:08:31 +0000 (12:08 -0800)]
gcc6: Upgrade to 6.3.0

6.3.0 is a bugfix release in gcc 6 series

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocairo: set license for cairo-doc
Ross Burton [Tue, 6 Dec 2016 17:05:08 +0000 (17:05 +0000)]
cairo: set license for cairo-doc

8 years agoopkg-utils: Do not use --ignore-fail-on-non-empty with rmdir
Khem Raj [Wed, 21 Dec 2016 17:34:12 +0000 (09:34 -0800)]
opkg-utils: Do not use --ignore-fail-on-non-empty with rmdir

--ignore-fail-on-non-empty is coreutils specific, and you
are not always going to have coreutils on target systems
especially small ones. They will use the busybox applet which
does not support --ignore-fail-on-non-empty, use pipe and true
to ignore the errorcode from rmdir instead

Fixes upgrade errors on target e.g.

rmdir: unrecognized option '--ignore-fail-on-non-empty'
BusyBox v1.24.1 (2016-12-20 10:41:39 PST) multi-call binary.

Usage: rmdir [OPTIONS] DIRECTORY...
To remove package debris, try `opkg remove update-alternatives-opkg`.
To re-attempt the install, try `opkg install update-alternatives-opkg`.
Collected errors:
 * pkg_run_script: package "update-alternatives-opkg" postrm script returned status 1.
 * postrm_upgrade_old_pkg: postrm script for package "update-alternatives-opkg" failed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-dtb: strip DTB extension properly in postinst/postrm
Denys Dmytriyenko [Wed, 21 Dec 2016 20:20:17 +0000 (15:20 -0500)]
linux-dtb: strip DTB extension properly in postinst/postrm

The use of awk -F "." in do_install/do_deploy to strip filename extension
was deprecated long time ago in 72980d5bb465f0640ed451d1ebb9c5d2a210ad0c.

Make a similar change in postinst/postrm to properly use basename command.

Otherwise DTB files that contain dots in the name result in broken symlinks
that point to non-existent truncated files.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-selftest: devtool: Reverting a change should trigger rebuild
Ola x Nilsson [Thu, 22 Dec 2016 13:16:33 +0000 (14:16 +0100)]
oe-selftest: devtool: Reverting a change should trigger rebuild

Add code to verify that not only does a change trigger a build, but so
does reverting that change.

Reverting a change in a devtool managed git repo may cause the current
checksum to match the checksum of a previous build, which will cause
bitbake to skip builds that are needed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oe.sstatesig: make locked sig file consistent
Jianxun Zhang [Wed, 21 Dec 2016 22:31:46 +0000 (14:31 -0800)]
lib/oe.sstatesig: make locked sig file consistent

Sort keys of dict 'types' prior to dumping, in order to have
identical output every time. This could make it a little easier
to diff these human-readable dumps.

Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agometa: use require instead of include when file should exist
Paul Eggleton [Thu, 22 Dec 2016 03:13:56 +0000 (16:13 +1300)]
meta: use require instead of include when file should exist

If the file is expected to exist, then we should always be using require
so that if it doesn't we get an error rather than some other more
obscure failure later on.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agouseradd-example: exclude from world
Kai Kang [Thu, 22 Dec 2016 09:55:16 +0000 (17:55 +0800)]
useradd-example: exclude from world

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-selftest: fix behaviour if oe-selftest.log is a dangling symlink
Paul Eggleton [Thu, 22 Dec 2016 03:13:57 +0000 (16:13 +1300)]
oe-selftest: fix behaviour if oe-selftest.log is a dangling symlink

If you delete the log file that the oe-selftest.log symlink points to
but not the symlink itself, because we were using os.path.exists() here
the code assumed that the symlink didn't exist when in fact it still
did. Use os.path.lexists() instead.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: Remove gummiboot test
Alejandro Hernandez [Thu, 22 Dec 2016 19:11:54 +0000 (13:11 -0600)]
wic: Remove gummiboot test

Weve now migrated to systemd-boot, the gummiboot test on wic is no longer necessary

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogummiboot: Remove/change gummiboot references with systemd-boot
Alejandro Hernandez [Wed, 23 Nov 2016 22:53:30 +0000 (16:53 -0600)]
gummiboot: Remove/change gummiboot references with systemd-boot

After systemd-boot was introduced, its been tested for a while with no major
issues being found until now, this patch completely replaces all gummiboot
instances with systemd-boot ones, taking the next step into cleaning
up systemd-boot/gummiboot.

[YOCTO #10332]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoopkg-utils: warn if update-alternatives finds priority conflict
Chen Qi [Wed, 21 Dec 2016 04:32:47 +0000 (12:32 +0800)]
opkg-utils: warn if update-alternatives finds priority conflict

If multiple providers for a utility have the same alternatives priority,
which one would be chosen is determined by which one is installed later.
Our alternatives system should be able to detect such problem and warn users
so that potential problems could be avoided.

Modify update-alternatives to warn users when detecting multiple providers
with the same priority.

[YOCTO #8314]

(From OE-Core rev: 06cf956e3441868d69f81d6c034778d855ce1c98)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotoaster: prevent use of unset variable BUILDSTATS_BASE
Jochen Jaegers [Wed, 4 Jan 2017 18:00:24 +0000 (19:00 +0100)]
toaster: prevent use of unset variable BUILDSTATS_BASE

Signed-off-by: Jochen Jaegers <jochen.jaegers@riedel-at.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses: Fix alternatives and rc.d ordering
David Vincent [Tue, 20 Dec 2016 09:47:45 +0000 (10:47 +0100)]
classes: Fix alternatives and rc.d ordering

When using an alternative as an initscript, the ordering between
update-rc.d and update-alternatives tasks during prerm and postinst
tasks must always be the following in order to work:
  * prerm:
    - stop daemon
    - remove alternative

  * postinst:
    - add alternative
    - start daemon

This patchset adds comments to the scripts generated by both classes and
organize the generated sections based on those comments.

[YOCTO #10433]

Changes since v5:
    - Remove boolean in d.getVar() calls

Signed-off-by: David Vincent <freesilicon@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoexternalsrc: Add optional srcdir arg to srctree_hash_files
Ola x Nilsson [Thu, 22 Dec 2016 13:59:49 +0000 (14:59 +0100)]
externalsrc: Add optional srcdir arg to srctree_hash_files

Make it easier to reuse the function for other dirs than EXTERNALSRC.

Signed-off-by: Ola x Nilsson <ola.x.nilsson@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoexternalsrc: Set STAMPCLEAN to match STAMP
Ola x Nilsson [Thu, 22 Dec 2016 13:16:34 +0000 (14:16 +0100)]
externalsrc: Set STAMPCLEAN to match STAMP

Only the last stamp file should be kept, but unless STAMPCLEAN matches
files generated using STAMP old stamp files may linger.  This may
cause false positives for skipping tasks.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/buildstats: don't expand variable pointing to SystemStats
Paul Eggleton [Thu, 22 Dec 2016 03:13:58 +0000 (16:13 +1300)]
classes/buildstats: don't expand variable pointing to SystemStats

We're placing an object into the datastore - it's very definitely not
something we want to be expanding.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/sstate: fix file conflict message
Paul Eggleton [Thu, 22 Dec 2016 02:19:59 +0000 (15:19 +1300)]
classes/sstate: fix file conflict message

* Fix not decoding output from grep ("Matched in b'manifest...')
* Fix showing "Matched in b''" if no match (show "not matched to any
  task" instead)
* Drop the filtering out of .populate-sysroot from matched manifest
  names - it should have been .populate_sysroot so it doesn't work, and
  in any case the value of removing the task name is questionable given
  that we aren't removing it for any other task, and that the rest of
  the filename isn't only the task name, we might as well have the whole
  thing. At least then you can do a find on that exact name without
  wildcards and find it.
* Fix indenting of file list entries and indent "matched in" further
  underneath
* Minor punctuation fixes

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/sstate: handle filenames containing square brackets
Paul Eggleton [Thu, 22 Dec 2016 02:19:58 +0000 (15:19 +1300)]
classes/sstate: handle filenames containing square brackets

If a recipe installs a file or directory whose name contains square
brackets [ ] that form a valid glob expression and that file then they
won't be correctly removed from the sysroot, because we pass each path
in the sstate manifest to our oe.path.remove() function which calls
glob.glob() on the path passed into it and the expression won't
actually match the original filename. Since we don't expect to put any
wildcarded expressions in the sstate manifests, and we already have a
try...except around this, we can actually use os.remove() here instead.

Similarly, when we pass existing file paths to "grep" looking through
the manifests, we don't want those paths to be treated as regexes - so
use grep's -F command line switch.

Fixes [YOCTO #10836].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/package_rpm: handle square brackets in filenames
Paul Eggleton [Thu, 22 Dec 2016 02:19:56 +0000 (15:19 +1300)]
classes/package_rpm: handle square brackets in filenames

When constructing a spec file we list files and directory paths in the
%files section. If ] or [ characters are in a file or directory name,
rpm treats them as wildcards which will mean it won't properly match the
filename. Instead, transform these into an ? wildcard so they don't
cause a problem.

(This fixes packaging the npm package "file-set" and anything that
happens to depend upon it, since it includes tests with files that
contain unusual characters including ] and [).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oe/path: add warning comment about oe.path.remove() with wildcarded filenames
Paul Eggleton [Thu, 22 Dec 2016 02:19:57 +0000 (15:19 +1300)]
lib/oe/path: add warning comment about oe.path.remove() with wildcarded filenames

Add a warning in the doc comment for oe.path.remove() about using that
function on paths that may contain wildcards in the actual
file/directory names.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agometa/scripts: Various getVar/getVarFlag expansion parameter fixes
Richard Purdie [Thu, 5 Jan 2017 21:15:08 +0000 (21:15 +0000)]
meta/scripts: Various getVar/getVarFlag expansion parameter fixes

There were a few straggling expansion parameter removals left for
getVar/getVarFlag where the odd whitespace meant they were missed
on previous passes. There were also some plain broken ussages such
as:

d.getVar('ALTERNATIVE_TARGET', old_name, True)
path = d.getVar('PATH', d, True)
d.getVar('IMAGE_ROOTFS', 'True')

which I've corrected (they happend to work by luck).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackagegroup-core-lsb: add opengl to REQUIRED_DISTRO_FEATURES
Christopher Larson [Wed, 4 Jan 2017 22:57:55 +0000 (15:57 -0700)]
packagegroup-core-lsb: add opengl to REQUIRED_DISTRO_FEATURES

This group pulls in libglu, which needs virtual/libgl, whose providers require
opengl in DISTRO_FEATURES.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackagegroup-self-hosted: add opengl to REQUIRED_DISTRO_FEATURES
Christopher Larson [Wed, 4 Jan 2017 22:57:54 +0000 (15:57 -0700)]
packagegroup-self-hosted: add opengl to REQUIRED_DISTRO_FEATURES

This rdepends on libgl.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoeglinfo-x11: add opengl to REQUIRED_DISTRO_FEATURES
Christopher Larson [Wed, 4 Jan 2017 22:57:53 +0000 (15:57 -0700)]
eglinfo-x11: add opengl to REQUIRED_DISTRO_FEATURES

The .inc already included this, but the x11 version was overriding it. This is
a problem, as the x11 version still needs opengl as well as x11. Append
instead.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibglu: add opengl to REQUIRED_DISTRO_FEATURES
Christopher Larson [Wed, 4 Jan 2017 22:57:52 +0000 (15:57 -0700)]
libglu: add opengl to REQUIRED_DISTRO_FEATURES

This requires libgl, and mesa requires the opengl distro feature.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopiglit: add opengl to REQUIRED_DISTRO_FEATURES
Christopher Larson [Wed, 4 Jan 2017 22:57:51 +0000 (15:57 -0700)]
piglit: add opengl to REQUIRED_DISTRO_FEATURES

This recipe depend on virtual/libgl, whose providers require the opengl distro
feature.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowaffle: add opengl to REQUIRED_DISTRO_FEATURES
Christopher Larson [Wed, 4 Jan 2017 22:57:50 +0000 (15:57 -0700)]
waffle: add opengl to REQUIRED_DISTRO_FEATURES

Multiple packageconfigs depend upon virtual/libgl, whose providers require the
opengl distro feature.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_ext: whitelist do_package tasks
Ed Bartosh [Wed, 4 Jan 2017 18:48:18 +0000 (20:48 +0200)]
populate_sdk_ext: whitelist do_package tasks

With enabled SSTATE_MIRRORS sstate code expects mirrors to
contain entries for all tasks, which is not the case for ext
installer as it uses reduced sstate cache.

Added do_package tasks to BB_SETSCENE_ENFORCE_WHITELIST to prevent
installer failing with ERROR: Sstate artifact unavailable

[YOCTO #10832]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_ext: fix working with uninative sstate
Ed Bartosh [Wed, 4 Jan 2017 18:48:17 +0000 (20:48 +0200)]
populate_sdk_ext: fix working with uninative sstate

Mapped uninative sstate directories to make ext SDK installer to
use them when it's run on systems with gcc version different from
gcc version used to build installer.

[YOCTO #10832]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-selftest: Improve BUILDDIR environment handling
Richard Purdie [Wed, 4 Jan 2017 23:34:30 +0000 (23:34 +0000)]
oe-selftest: Improve BUILDDIR environment handling

Its possible something (like bitbake/tinfoil2) may mess around with the
environment and using the enviroment as a global variable store isn't
particularly nice anyway.

This patch changes the BUILDDIR usages so that the environment isn't used
as a global store and a global variable is used instead. Whilst that
is still not perfect, it does avoid the current double and triple backtraces
we're seeing where tinfoil2/bitbake has trampled the enviroment leading
to failures of failures making debugging even harder.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: let command line parameters override defaults
Patrick Ohly [Wed, 21 Dec 2016 13:11:28 +0000 (14:11 +0100)]
runqemu: let command line parameters override defaults

It may be necessary to override the parameters gathered for the qemu
invocation. For example, the qemux86 machine configuration sets "-vga
vmware", but when using OVMF as BIOS, only "-vga std" is supported.

By putting the parameters derived from custom runqemu parameters like
"qemuparams" after the parameters derived from the machine
configuration the user gets the possibility to override those.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomodule.bbclass: allow to override location of Module.symvers
André Draszik [Mon, 21 Nov 2016 09:37:13 +0000 (09:37 +0000)]
module.bbclass: allow to override location of Module.symvers

Requiring all build systems for external kernel modules to
place Module.symvers directly into ${B}/. is quite an
artificial assumption/requirement. It doesn't have to end
up there, but could easily end up somewhere below ${B}.

Allow to override the location below ${B}

Note that we still don't make use of multiple
Module.symvers in case there are any generated by one
single kernel module build, but this is no change in
behaviour from before and could be added if there really
is a demand for that.

Reported-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoifupdown: upgrade to 0.8.16
Maxin B. John [Wed, 21 Dec 2016 15:20:28 +0000 (17:20 +0200)]
ifupdown: upgrade to 0.8.16

Refreshed the following patch:
 * inet-6-.defn-fix-inverted-checks-for-loopback.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosqlite3: upgrade to 3.15.2
Maxin B. John [Wed, 21 Dec 2016 15:20:27 +0000 (17:20 +0200)]
sqlite3: upgrade to 3.15.2

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agofile: 5.28 -> 5.29
Huang Qiyu [Wed, 21 Dec 2016 10:37:22 +0000 (02:37 -0800)]
file: 5.28 -> 5.29

Upgrade file from 5.28 to 5.29.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokexec-tools: Update to 2.0.14
He Zhe [Wed, 21 Dec 2016 09:56:23 +0000 (17:56 +0800)]
kexec-tools: Update to 2.0.14

Remove kexec-aarch64.patch since it has been merged upstream
Remove kexec-x32.patch since it has been reverted upstream
Backport patches for kdump arm64 from:
https://git.linaro.org/people/takahiro.akashi/kexec-tools.git

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogstreamer: Upgrade to 1.10.2
Khem Raj [Wed, 21 Dec 2016 07:02:38 +0000 (23:02 -0800)]
gstreamer: Upgrade to 1.10.2

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoguile: 2.0.12 -> 2.0.13
Robert Yang [Wed, 21 Dec 2016 06:17:11 +0000 (22:17 -0800)]
guile: 2.0.12 -> 2.0.13

Remove 0002-Recognize-nios2-as-compilation-target.patch which is already
in the source.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoquilt: 0.64 -> 0.65
Robert Yang [Wed, 21 Dec 2016 06:17:10 +0000 (22:17 -0800)]
quilt: 0.64 -> 0.65

* Removed install.patch since it is already in the patch.
* Fix indent for file://test.sh

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodebianutils: 4.8 -> 4.8.1
Robert Yang [Wed, 21 Dec 2016 06:17:08 +0000 (22:17 -0800)]
debianutils: 4.8 -> 4.8.1

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoqemu: Fix pci-assign
He Zhe [Tue, 29 Nov 2016 09:56:47 +0000 (17:56 +0800)]
qemu: Fix pci-assign

Fix iommu pci device assignment failure.

"qemu-system-x86_64: -device pci-assign,host=02:00.0: No IOMMU found.
Unable to assign device "(null)""

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopopulate_sdk: don't force target debug packages into SDK
Ross Burton [Wed, 21 Dec 2016 16:36:07 +0000 (16:36 +0000)]
populate_sdk: don't force target debug packages into SDK

TOOLCHAIN_TARGET_TASK doesn't need to explicitly list sdk-target-dbg because if
SDKIMAGE_FEATURES contains dbg-pkgs (as it does by default) then they'll all be
installed anyway.  This means that if the user removes dbg-pkgs from
SDKIMAGE_FEATURES then the SDK correctly doesn't have debug packages in.

[ YOCTO #9078 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oe/utils: Drop python2 compatibility code
Richard Purdie [Mon, 19 Dec 2016 16:37:44 +0000 (16:37 +0000)]
lib/oe/utils: Drop python2 compatibility code

We've moved to python3, we don't need this compatibility code which just makes
the code less readable.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibgcc-common: Don't apply symlinks for nativesdk
Richard Purdie [Wed, 21 Dec 2016 13:33:07 +0000 (13:33 +0000)]
libgcc-common: Don't apply symlinks for nativesdk

nativesdk-libgcc doesn't need a symlink into the target space and if we do this
sstate installation of the recipe can fail depending on whether it races with
the cross-canadian toolchains.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: Add inclusion of BB_CURRENT_MC.conf after local.conf
Richard Purdie [Tue, 20 Dec 2016 19:05:01 +0000 (19:05 +0000)]
bitbake.conf: Add inclusion of BB_CURRENT_MC.conf after local.conf

People are strugling with multiconfig as the up front inclusion of the
configuration file doesn't do what people expect. The only way to meet
user expectations is to include the file immediately after local.conf.

We add BB_CURRENT_MC to bitbake so that the metadata can determine when
to include the extra configuration.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agouninative: Parameterise the use of STAGING_DIR
Richard Purdie [Wed, 21 Dec 2016 14:13:09 +0000 (14:13 +0000)]
uninative: Parameterise the use of STAGING_DIR

This means that a user can change TMPDIR in a multiconfig situation
and still only have one path to the uninative setup. Without this change
its not possile to make such a setup work.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoncurses.inc: add v6 binconfig-disabled entries
Trevor Woerner [Tue, 20 Dec 2016 16:11:58 +0000 (11:11 -0500)]
ncurses.inc: add v6 binconfig-disabled entries

Newer host distributions are moving to ncurses6, therefore add entries so the
host's ncurses{w}6-config scripts aren't picked up.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopackagegroup-core-standalone-sdk-target: add libssp
Paul Eggleton [Tue, 20 Dec 2016 03:47:49 +0000 (16:47 +1300)]
packagegroup-core-standalone-sdk-target: add libssp

If you want to be able to use -fstack-protector then you need the
runtime support - you can either write this yourself or use libssp
supplied with GCC. If you're using GCC then it seems likely that you'd
just be using libssp, so include in the SDK by default; however use
RRECOMMENDS just in case it's been disabled or you aren't using GCC.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoinitscripts: populate-volatile: suppress read-only-rootfs warnings
André Draszik [Tue, 20 Dec 2016 09:02:40 +0000 (09:02 +0000)]
initscripts: populate-volatile: suppress read-only-rootfs warnings

rm: can't remove '/etc/resolv.conf': Read-only file system
ln: /etc/resolv.conf: File exists

/etc/default/volatiles contains an entry:
l root root 0644 /etc/resolv.conf /var/run/resolv.conf

which causes populate-volatile.sh to execute the following in link_file():
  if [ -L \"$2\" ]; then
    [ \"\$(readlink -f \"$2\")\" != \"\$(readlink -f \"$1\")\" ] && { rm -f \"$2\"; ln -sf \"$1\" \"$2\"; };
  elif [ -d \"$2\" ]; then
    ...

At the time the image is created, /etc/resolv.conf is already a
symlink to /var/run/resolv.conf, but at boot time when
populate-volatiles.sh is run, /var/run/resolv.conf doesn't
exist, causing it to try to rm -f and ln -sf which of course
fails due to the read-only filesystem.

[YOCTO #10814]

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoglew: build for EGL in non-X11 distros
Andre McCurdy [Tue, 20 Dec 2016 12:12:27 +0000 (04:12 -0800)]
glew: build for EGL in non-X11 distros

The glew 2.0.0 release added support for building for EGL:

  http://glew.sourceforge.net/log.html

Add PACKAGECONFIG options for 'opengl' (ie the previous default, with
dependencies on opengl and X11) and 'egl-gles2', which depends on EGL
and GLESv2 and allow glew to be built for non-X11 distros.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest/wic: extending test coverage for WIC script options
Jair Gonzalez [Sat, 17 Dec 2016 03:46:18 +0000 (21:46 -0600)]
selftest/wic: extending test coverage for WIC script options

The previous WIC script selftest didn't cover all of its command line
options. Some option variants were included in existing test cases and
the following tests were added to complete covering them:

1552 Test wic --version
1553 Test wic help create
1554 Test wic help list
1555 Test wic list images
1556 Test wic list source-plugins
1557 Test wic listed images help
1558 Test debug
1563 Test skip build check
1564 Test build rootfs
1559 Test image vars directory selection
1562 Test alternate output directory

Signed-off-by: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest/wic: reorganizing test methods by functionality
Jair Gonzalez [Sat, 17 Dec 2016 01:24:08 +0000 (19:24 -0600)]
selftest/wic: reorganizing test methods by functionality

Part of the test methods were rearranged to group them by
functionality and identify more easily opportunities to extend
coverage.

Signed-off-by: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest/wic: code cleanup
Jair Gonzalez [Fri, 16 Dec 2016 22:12:55 +0000 (16:12 -0600)]
selftest/wic: code cleanup

The following changes were added to improve the code readability:

- Removed redundant backlashes between brackets
- Aligned continuation lines according to PEP8 style
- Refactored command execution in the next methods for enhanced
  legibility:

  - test_build_image_name(self)
  - test_gpt_image(self)
  - test_qemux86_directdisk(self)
  - test_rootfs_indirect_recipes(self)
  - test_iso_image(self)
  - test_mkgummidisk(self)
  - test_mkefidisk(self)
  - test_directdisk_bootloader_config(self)
  - test_qemu(self)
  - test_bmap(self)
  - test_systemd_bootdisk(self)
  - test_sdimage_bootpart(self)

Signed-off-by: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest/wic: adding Testopia ID numbers to test cases missing it
Jair Gonzalez [Fri, 16 Dec 2016 18:13:05 +0000 (12:13 -0600)]
selftest/wic: adding Testopia ID numbers to test cases missing it

The following test cases were assigned an ID number on Testopia:

1496 Test generation of .bmap file
1560 Test creation of systemd-bootdisk image
1561 Test creation of sdimage-bootpart image

Signed-off-by: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokernel: Fix symlinks
David Vincent [Tue, 20 Dec 2016 09:53:29 +0000 (10:53 +0100)]
kernel: Fix symlinks

When installing a kernel package, the symlinks created by
update-alternatives should point to a path relative to KERNEL_IMAGEDEST
and not an absolute path to '/boot'.

Failing to do so causes problems when resolving the symlink inside some
bootloaders which mount the boot partition elsewhere.

Signed-off-by: David Vincent <freesilicon@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogstreamer1.0-libav: Fix build on mips64
Khem Raj [Tue, 20 Dec 2016 08:47:01 +0000 (00:47 -0800)]
gstreamer1.0-libav: Fix build on mips64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoshared-mime-info 1.6 -> 1.8
Zheng Ruoqin [Tue, 20 Dec 2016 05:12:11 +0000 (13:12 +0800)]
shared-mime-info 1.6 -> 1.8

Upgrade shared-mime-info from 1.6 to 1.8

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: add kickstart file for MPC8315
Ed Bartosh [Fri, 16 Dec 2016 17:12:45 +0000 (19:12 +0200)]
wic: add kickstart file for MPC8315

Added kickstart file to produce partitioned image for
MPC8315 reference hardware.

[YOCTO #8719]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoinitscripts: populate-volatile: don't run commands in background
Mans Rullgard [Fri, 16 Dec 2016 16:28:38 +0000 (16:28 +0000)]
initscripts: populate-volatile: don't run commands in background

If commands are run asynchronously they may be completed out of
order causing problems if later entries depend on earlier ones.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: add --fixed-size wks option
Maciej Borzecki [Mon, 19 Dec 2016 11:20:58 +0000 (12:20 +0100)]
wic: add --fixed-size wks option

Added new option --fixed-size to wks. The option can be used to indicate
the exact size of a partition. The option cannot be added together with
--size, in which case an error will be raised. Other options that
influence automatic partition size (--extra-space, --overhead-factor),
if specifiec along with --fixed-size, will raise an error.

If it partition data is larger than the amount of space specified with
--fixed-size option wic will raise an error.

Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/utils/commands.py: allow use of binaries from native sysroot
Maciej Borzecki [Mon, 19 Dec 2016 11:20:57 +0000 (12:20 +0100)]
oeqa/utils/commands.py: allow use of binaries from native sysroot

Tests may need to run a native tool that is not available on the host
filesystem, but can be built using one of the *-native recipes. In such case,
the tool will be available in native sysroot, and running in from that location
will require adjustments to PATH.

runCmd() can now take a path to native sysroot as one of its arguments and
setup PATH accordingly.

Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agognutls: Do not use libunistring prefix
Khem Raj [Mon, 19 Dec 2016 19:12:10 +0000 (11:12 -0800)]
gnutls: Do not use libunistring prefix

when using clang, configure it poking at build host
if we do not use it then it falls back to sysroot
which is what we need here.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>