]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agobootchart2: add runtime dependency
Roy Li [Wed, 1 Jul 2015 01:54:14 +0000 (09:54 +0800)]
bootchart2: add runtime dependency

Bootchartd needs the command lsb_release and pidof to run, pidof maybe
provided by sysvinit or procpus;
To native bootchart2, only pybootchartgui is used, and which is not needed
both pidof and lsb_release

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest: Added 2 testcases and updated setup for other two in imagefeatures.
Daniel Istrate [Tue, 7 Jul 2015 11:36:58 +0000 (14:36 +0300)]
oeqa/selftest: Added 2 testcases and updated setup for other two in imagefeatures.

Automated 2 oe-selftest testcases:
- 1116: Check if clutter image can be built
- 1117: Check Wayland support in image

Updated setup for test_efi_gummiboot_images_can_be_build and
test_wic_command_can_create_efi_gummiboot_installation_images
to accomodate latest wic changes.

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: add PACKAGECONFIG selinux
Kai Kang [Wed, 8 Jul 2015 06:26:01 +0000 (14:26 +0800)]
systemd: add PACKAGECONFIG selinux

Add PACKAGECONFIG 'selinux' for systemd. debug-shell.service starts
different shell according whether selinux is enabled.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinitscripts: add /sbin/sushell for systemd service debug-shell
Kai Kang [Wed, 8 Jul 2015 06:26:00 +0000 (14:26 +0800)]
initscripts: add /sbin/sushell for systemd service debug-shell

Add file /sbin/sushell for systemd service debug-shell which starts with
/bin/sushell when SELinux is enabled. Copy and add sushell file from
Fedora 22.

Add runtime dependency bash as well when systemd is enabled to eliminate
QA warning:

WARNING: QA Issue: /sbin/sushell_initscripts contained in package initscripts
requires /bin/bash, but no providers found in its RDEPENDS [file-rdeps]

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopkg-build: Ignore tar error due to hardlinks issue when creating ipk files
Alejandro Hernandez [Mon, 6 Jul 2015 10:17:19 +0000 (10:17 +0000)]
opkg-build: Ignore tar error due to hardlinks issue when creating ipk files

If a the number of hard links decreases or increases while creating
the tar files used for an ipk package, tar fails with error code 1,
if this is the case we ignore the error and continue to create the ipk file

[YOCTO #7933]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocoreutils: upgrade to 8.24
Chen Qi [Tue, 7 Jul 2015 03:08:51 +0000 (11:08 +0800)]
coreutils: upgrade to 8.24

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemu: fix CVE-2015-3209
Kai Kang [Tue, 7 Jul 2015 09:43:02 +0000 (17:43 +0800)]
qemu: fix CVE-2015-3209

Backport patch to fix CVE-2015-3209.

http://git.qemu.org/?p=qemu.git;a=commit;h=9f7c594

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorpm: disable external key server
yzhu1 [Wed, 8 Jul 2015 03:30:57 +0000 (11:30 +0800)]
rpm: disable external key server

When RPM experiences a signed package, with a signature that it does NOT know.
By default it will send the -fingerprint- (and only the 16 digit fingerprint)
to an external HKP server, trying to get the key down.

This is probably not a reasonable default behavior for the system to do,
instead it should simply fail the key lookup.  If someone wants to enable the
HKP server it's easy enough to do by enabling the necessary macros.

Signed-off-by: yzhu1 <yanjun.zhu@windriver.com>
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogdb: Fix detection of 64-bit PPC inferior in gdbserver
Yuanjie Huang [Wed, 8 Jul 2015 03:15:11 +0000 (11:15 +0800)]
gdb: Fix detection of 64-bit PPC inferior in gdbserver

Fix 64-bit detection according to PowerISA Boot III-S.

https://sourceware.org/ml/gdb-patches/2014-12/msg00239.html
Written by: Yao Qi <yao@codesourcery.com>

Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-smartpm: 1.4.1 -> 1.5
Robert Yang [Wed, 8 Jul 2015 07:23:48 +0000 (00:23 -0700)]
python-smartpm: 1.4.1 -> 1.5

* Remove the following patches since the are already in the source:
smart-config-ignore-all-recommends.patch
smart-conflict-provider.patch
smart-dflags.patch
smart-filename-NAME_MAX.patch
smart-flag-exclude-packages.patch
smart-flag-ignore-recommends.patch
smart-metadata-match.patch
smart-multilib-fixes.patch
smart-rpm-extra-macros.patch
smart-rpm-md-parse.patch
smart-rpm-root.patch
smart-tmpdir.patch
smart-yaml-error.patch

* Update the following patches, part of the code are already in the
  source:
smart-attempt.patch
smart-improve-error-reporting.patch
smart-recommends.patch
smartpm-rpm5-nodig.patch

* Use github and git repo as the SRC_URI.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoelfutils: 0.162 -> 0.163
Robert Yang [Wed, 8 Jul 2015 07:23:47 +0000 (00:23 -0700)]
elfutils: 0.162 -> 0.163

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoless: 471 -> 478
Robert Yang [Wed, 8 Jul 2015 07:23:46 +0000 (00:23 -0700)]
less: 471 -> 478

* Remove backport patch 0001-Fix-possible-buffer-overrun-with-invalid-UTF-8.patch.
* The LICENSE's checksum changed because of year changed, the contents
  are the same.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonfs-utils: fix to start nfs-server correctly in systemd
Chen Qi [Wed, 8 Jul 2015 08:52:45 +0000 (16:52 +0800)]
nfs-utils: fix to start nfs-server correctly in systemd

Add /etc/modules-load.d/nfsd.conf so that the system loads nfsd at start-up.

Add proc-fs-nfsd.mount systemd unit file because it's needed for nfs server
to start correctly.

After this change, in a systemd based image, we can use `systemctl start
nfs-server' to start the nfs server and things would work correctly.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoltp: Add inhibit of split
Yue Tao [Wed, 8 Jul 2015 09:01:07 +0000 (17:01 +0800)]
ltp: Add inhibit of split

With the recent change to allow strip and split of packages
to be controlled seperately, ltp will sometimes fail to build
properly. So in addition to the existing inhibit strip, we
also want to inhibit split.

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: fix immediate unmount of mountpoints not in fstab
Joshua Lock [Wed, 8 Jul 2015 09:35:55 +0000 (10:35 +0100)]
systemd: fix immediate unmount of mountpoints not in fstab

Systemd 219 immediately unmounts any mounts which don't exist
in fstab. See FDo bug #89383:
https://bugs.freedesktop.org/show_bug.cgi?id=89383

Patch from Fedora:
http://pkgs.fedoraproject.org/cgit/systemd.git/commit/?h=f22&id=9bbe0e92dc59d5a42258c729b105a7d9901eb35e

Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoreport-error: expand all variables
Ross Burton [Wed, 8 Jul 2015 10:53:44 +0000 (11:53 +0100)]
report-error: expand all variables

BUILDNAME is now composed from ${DATE} and ${TIME} so needs to be expanded to
useful.  Whilst fixing this some other variables were explicitly not expanded
for no clear reason, so expand those too.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: Add BUILD_ARCH and SSTATE_PKGARCH to HASHBASE whitelist
Richard Purdie [Wed, 8 Jul 2015 11:57:39 +0000 (12:57 +0100)]
bitbake.conf: Add BUILD_ARCH and SSTATE_PKGARCH to HASHBASE whitelist

As Chris Larson points out in the bug, "BUILD_ARCH changing doesn't change
native/cross sstate checksums, because its calculated in ${@}, so just its
unexpanded form is in the signature. But BUILD_ARCH ends up included in the
sstate filenames, so changes to BUILD_ARCH will result in rebuilds of
native/cross but not rebuilds of the target recipes which depend on
them, which is just what we want."

However it does mean we can't easily test 32 and 64 bit signatures. In order
to make the tests work, we need to add BUILD_ARCH to the HASHBASE whitelist.
BUILD_ARCH is used in the workdir paths and so on so changing it does still
rebuild when we need it to.

With improvements to function dependency tracking, a dependency on SSTATE_PKGARCH
was also introduced causing problems for 32/64 bit build signature equivalence.
Since this is reflected in the sstate filenames, we can safely whitelist this too.

[YOCTO #5970]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopseudo: Exclude SITEINFO_BITS from checksums
Richard Purdie [Wed, 8 Jul 2015 11:56:44 +0000 (12:56 +0100)]
pseudo: Exclude SITEINFO_BITS from checksums

We really want the same sstate checksums for pseudo-native on 32 and 64 bit platforms
but the use of SITEINFO_BITS prevents this. Since other things would change if
the bit size changes, we can safely exclude this variable and rely on others
(e.g. BUILD_ARCH included in WORKDIR) to handle this.

[YOCTO #5970]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/sstatetests: Add test for comparing 32 and 64 bit sstate checksums
Richard Purdie [Wed, 8 Jul 2015 11:56:13 +0000 (12:56 +0100)]
oeqa/sstatetests: Add test for comparing 32 and 64 bit sstate checksums

The sstate checksums for both native and target should not vary whether
they're built on a 32 or 64 bit system. Rather than requiring two different
build machines and running a builds, override the variables calling uname()
manually and check using bitbake -S.

[YOCTO #5970]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/bbtests: Fix to ensure DL_DIR is set
Richard Purdie [Wed, 8 Jul 2015 11:55:28 +0000 (12:55 +0100)]
oeqa/bbtests: Fix to ensure DL_DIR is set

write_config overwrites the config rather than appends to it, so
ensure we write both variables in one go.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agofile: fix long-options
Robert Yang [Mon, 6 Jul 2015 10:00:35 +0000 (03:00 -0700)]
file: fix long-options

Backport two patches to fix bug with long options:
* 0001-Fix-bug-with-long-options-and-explicitly-number-them.patch
* 0002-fix-bug-with-5.23-long-options.patch

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoca-certificates: remove Debianism in run-parts invocation
Ross Burton [Mon, 6 Jul 2015 14:19:41 +0000 (15:19 +0100)]
ca-certificates: remove Debianism in run-parts invocation

ca-certificates comes from Debian but not all distros (i.e. Fedora) have a
leaner run-parts that doesn't support the -- separator between options and
paths, which causes this error:

| Running hooks in [...]/rootfs/etc/ca-certificates/update.d...
| [...]/usr/sbin/update-ca-certificates: line 194: Not: command not found

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoimage_types.bbclass: add support for multiple ubi sizes
Pushpal Sidhu [Sat, 25 Apr 2015 00:32:22 +0000 (17:32 -0700)]
image_types.bbclass: add support for multiple ubi sizes

Add new FSTYPE called 'multiubi'. This new type has the ability to
create multple ubi's, something that's extremely useful on boards that
can include varying flash sizes (e.g. 256MB vs 2GB).

Because we don't want to reuse code, I extracted the mkfs and ubinize
commands out to a new function that will handle the creation of both
multiple ubi's, as well as the 'ubi' FSTYPE (so as not to break current
boards).

Due to the single processes nature of the OE when doing it's
'create_image', this new multiubi_mkfs function also creates it's own
symlinks as well as cleans up it's own cfg file.

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosubversion_1.8.13.bb: Regex modified to allow '-D' in paths
Jose Lamego [Fri, 3 Jul 2015 07:34:50 +0000 (07:34 +0000)]
subversion_1.8.13.bb: Regex modified to allow '-D' in paths

Modified the regex sed in serf.m4 to allow the use of '-D' characters
in project folder names without having compilation error from
subversion-native.

[YOCTO #7874]

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomklibs-native: two fixes
Yuanjie Huang [Fri, 3 Jul 2015 05:42:31 +0000 (13:42 +0800)]
mklibs-native: two fixes

1. Show GNU unique symbols as provided symbols
2. Remove dependency on dpkg
Both have been submitted to mklibs maillist:
https://lists.debian.org/debian-boot/2015/07/msg00018.html
https://lists.debian.org/debian-boot/2015/07/msg00004.html

Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosecurity_flags: eliminate FORTIFY_SOURCE for debug builds
Joe Slater [Thu, 2 Jul 2015 09:10:51 +0000 (17:10 +0800)]
security_flags: eliminate FORTIFY_SOURCE for debug builds

If -D_FORTIFY_SOURCE=2 is included in CFLAGS for debug builds,
many warnings will be generated and some packages will fail to
build.  So, only conditionally include it.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoUpdate alternatives of man pages
Kai Kang [Fri, 3 Jul 2015 07:23:49 +0000 (15:23 +0800)]
Update alternatives of man pages

Update alternatives of man pages in several packages.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoman: replace ',' with '#'
Yue Tao [Fri, 3 Jul 2015 08:53:56 +0000 (16:53 +0800)]
man: replace ',' with '#'

Sometimes, the parameters of CC/BUILD_CC contains the ',', which
cause the sed command failed, so replace the ',' with '#'

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoldconfig-native: Add 64-bit flag for ELF64 entries
Yuanjie Huang [Fri, 3 Jul 2015 01:48:37 +0000 (09:48 +0800)]
ldconfig-native: Add 64-bit flag for ELF64 entries

ldconfig-native was grepped from an old version of glibc, and its output
lacks neccessary 64bit flag in entries.
Due to this defect, ctypes.util.find_library() python function fails to
detect any library due to the old file format that ldconfig-native
creates. This fix sets architecture-dependent 64bit flags for 64-bit ELF.

Since the host's elf.h may not have definition for new AArch64 machine
type, a work-around is added to correctly flag 64-bit ARM libraries.

Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocombo-layer: modified to generate better commit messages.
Puustinen, Ismo [Fri, 3 Jul 2015 11:36:15 +0000 (14:36 +0300)]
combo-layer: modified to generate better commit messages.

This patch includes support for a global section in combo-layer.conf
called [combo-layer-settings]. Supported in this section is key
"commit_msg"; its value is the template for the git commit message
that updates the last_revision. The template can include substitution
for the updated component list: ${components}. The substituted value
will either be a comma-separated list of components or "all components",
if combo-layer was invoked without component list argument.

If the key is not present, the old default value is used for the commit
message.

Configuration file example:

[combo-layer-settings]
commit_msg = pulled in the latest changes for ${components}.

Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomesa-demos: rename clear
Li xin [Fri, 3 Jul 2015 09:53:42 +0000 (17:53 +0800)]
mesa-demos: rename clear

ncurses have already provided clear,so rename it to clear.mesa-demos.

[ RB - check that clear exists before moving ]

Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibdrm: remove git recipe, merge inc
Ross Burton [Fri, 3 Jul 2015 10:18:00 +0000 (11:18 +0100)]
libdrm: remove git recipe, merge inc

The git recipe hasn't been touched since 2012 and is out of date, so simplify
the recipe by removing the git form and merging the remaining bb and inc file.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolsbinitscripts: avoid exit 1 in functions script
Chen Qi [Fri, 3 Jul 2015 06:32:58 +0000 (14:32 +0800)]
lsbinitscripts: avoid exit 1 in functions script

If 'rc.debug' is not in kernel parameters, the functions script would
exit 1 which causes other init scripts that source it exit 1. This is
not what we want.

[YOCTO #7948]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorpm: check if the argument(rootpath) exists or be writable
Zhixiong Chi [Wed, 1 Jul 2015 07:54:21 +0000 (15:54 +0800)]
rpm: check if the argument(rootpath) exists or be writable

When user execute the command "rpm -qai --root=$dir",if $dir doesn't
exist or is unwritable as result of making a typo in rootpath,then
it will create dirent $dir and subdirectory.
So we should add the check function to fix it before creating relational
subdirectory,and warn the incorrect rootpath to user. It just checks the
rootpath reasonableness when the user input the argument(--root=/-r=).

Signed-off-by: Zhixiong Chi <zchi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoimage_types_uboot: remove the middle file
Yue Tao [Thu, 2 Jul 2015 07:18:59 +0000 (15:18 +0800)]
image_types_uboot: remove the middle file

The .gz, .bz2 or .lzma are middle files for making gz.u-boot,
bz2.u-boot, or lzma.u-boot. It should be removed once the final
image is generated. Otherwise, even RM_OLD_IMAGE = 1, it can't
be removed, moreover more and more middle files are genrated via
'bitbake *-image'

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibav: update i586 TARGET_ARCH test to also handle i686
Andre McCurdy [Tue, 30 Jun 2015 22:28:50 +0000 (15:28 -0700)]
libav: update i586 TARGET_ARCH test to also handle i686

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolsb: update i586 TARGET_ARCH tests to also handle i686
Andre McCurdy [Tue, 30 Jun 2015 22:28:49 +0000 (15:28 -0700)]
lsb: update i586 TARGET_ARCH tests to also handle i686

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc: update i586 TARGET_ARCH tests to also handle i686
Andre McCurdy [Tue, 30 Jun 2015 22:28:48 +0000 (15:28 -0700)]
gcc: update i586 TARGET_ARCH tests to also handle i686

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomultilib_global: expand multilib pref values properly
Christopher Larson [Wed, 1 Jul 2015 15:18:21 +0000 (08:18 -0700)]
multilib_global: expand multilib pref values properly

This ensures that in cases where the preference value changes when the
multilib override is applied, we correctly expand it in that context.

For example, for `PREFERRED_PROVIDER_${TARGET_PREFIX}gcc
= "gcc-external-cross-${TARGET_ARCH}"`, when it sets the prefixed version of
this, we want TARGET_ARCH expanded with the multilib applied, otherwise the
arch suffix will be incorrect for that context.

We ran into this trying to use preferences in meta-sourcery along with
multilibs. We worked around it there via PNBLACKLIST, but this fix should
still go into the core.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocore-image-kernel-dev: Define a correct subset of TEST_SUITES to run for this image
Saul Wold [Tue, 30 Jun 2015 22:48:02 +0000 (15:48 -0700)]
core-image-kernel-dev: Define a correct subset of TEST_SUITES to run for this image

Since this image can be built with both poky and poky-lsb, ensure the correct
tests are run in both cases, the auto detection does not quite work right in the
poky-lsb case since not all the Posix cmdline utilites are added. Add connman and
connman test for network sanity

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoperl: Undefine finitel for musl
Khem Raj [Thu, 2 Jul 2015 03:52:23 +0000 (20:52 -0700)]
perl: Undefine finitel for musl

finitel is not implemented in musl and since its not posix, it wont be
implemented in future too
Fixes perl 5.22 build error

perl/5.22.0-r0/perl-5.22.0/sv.c:12135: undefined reference to `finitel'
 | collect2: error: ld returned 1 exit status

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agovalgrind: build with altivec only if it supported
Kai Kang [Thu, 2 Jul 2015 08:40:51 +0000 (16:40 +0800)]
valgrind: build with altivec only if it supported

Signed-off-by: Ting Liu <ting.liu@freescale.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Cherry-pick from branch dizzy.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosquashfs-tools: upgrade to newer revision from git
Martin Jansa [Thu, 4 Jun 2015 12:44:37 +0000 (14:44 +0200)]
squashfs-tools: upgrade to newer revision from git

* 4.3 release has nasty hard to reproduce bug in LZO compression
  which in few cases results in one of these 2 errors:
  1) Lseek failure when creating the FS:
    | writer: Lseek on destination failed because Bad file descriptor, offset=0x1f72306
    | FATAL ERROR:Probably out of space on output filesystem
    | Parallel mksquashfs: Using 32 processors
    | Creating 4.0 filesystem on rootfs.squashfs, block size 262144.
    ..
  2) failing to read the filesystem in runtime, kernel 3.16.0 showing
    errors like this:
    [   46.720568] SQUASHFS error: lzo decompression failed, data probably corrupt
    [   46.730003] SQUASHFS error: squashfs_read_data failed to read block 0x1f72305
    [   46.740076] SQUASHFS error: Unable to read fragment cache entry [1f72305]
  it's fixed in upstream git repo:
  https://github.com/plougher/squashfs-tools/commit/de03266983ceb62e5365aac84fcd3b2fd4d16e6f
  https://github.com/plougher/squashfs-tools/commit/9c1db6d13a51a2e009f0027ef336ce03624eac0d
  the official repo is:
  https://git.kernel.org/cgit/fs/squashfs/squashfs-tools.git
  but author's github is kept in sync so we can use just that

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
9 years agodhcp: modify dhcpd.service to make it start successfully and add systemd service...
Li xin [Thu, 18 Jun 2015 02:14:00 +0000 (10:14 +0800)]
dhcp: modify dhcpd.service to make it start successfully and add systemd service files dhcpd6.service

Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogrub-efi: Allow to use file name different from grub.cfg in GRUBCFG
Nicolas Guyomard [Thu, 18 Jun 2015 07:43:04 +0000 (09:43 +0200)]
grub-efi: Allow to use file name different from grub.cfg in GRUBCFG

To generate a same image both in live image type and boot-directdisk image type
and make boot-direct image boot directly on the rootfs partition without using
an initramfs we need to have the ability to generate several grub.cfg files.

Signed-off-by: Nicolas Guyomard <nicolas.guyomard@open.eurogiciel.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/selftest: Added new testsuite for image features.
Daniel Istrate [Mon, 29 Jun 2015 09:04:59 +0000 (12:04 +0300)]
oeqa/selftest: Added new testsuite for image features.

 Automated 5 oe-selftest testcase:
    - 1107: Check if non root user can connect via ssh without password
    - 1115: Check if all users can connect via ssh without password
    - 1114: Check rpm version 4 support on image
    - 1101: Check if efi/gummiboot images can be buit
    - 1103: Check that wic command can create efi/gummiboot installation images

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoscripts/oe-selftest: Added mechanism for including/removing bblayers.inc
Daniel Istrate [Mon, 29 Jun 2015 15:31:55 +0000 (18:31 +0300)]
scripts/oe-selftest: Added mechanism for including/removing bblayers.inc

When oe-selftest starts it includes bblayers.inc into bblayers.conf
When oe-selftest ends it deletes bblayers.inc and the included line
from bblayers.conf

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/selftest: Added @testcase decorators to oeselftest testcases.
Daniel Istrate [Mon, 29 Jun 2015 12:18:41 +0000 (15:18 +0300)]
oeqa/selftest: Added @testcase decorators to oeselftest testcases.

Added decorator to some testcases missing this feature.

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/selftest: Add methods to manipulate bblayers.conf in base.py
Daniel Istrate [Mon, 29 Jun 2015 08:59:41 +0000 (11:59 +0300)]
oeqa/selftest: Add methods to manipulate bblayers.conf in base.py

Added methods for manipulating bblayers.conf file in the same manner as local.conf file:
    - write_bblayers_config
    - append_bblayers_config
    - remove_bblayers_config

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoreport-error.bbclass: Added file syncronization.
Mariano Lopez [Fri, 26 Jun 2015 05:56:00 +0000 (05:56 +0000)]
report-error.bbclass: Added file syncronization.

errorreport_handler would fail if several errors are
triggered at the same time because of two proccess
writting to the same file. This patch add the required
syncronization to handle concurrent process.

[YP #7899]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agovolatile-binds: Set S to prevent QA warning
Thomas Perrot [Thu, 25 Jun 2015 18:01:09 +0000 (20:01 +0200)]
volatile-binds: Set S to prevent QA warning

Also need to correct the path to COPYING.MIT.

(From OE-Core rev: 4c46a6813772d8d35dd1432dbc59f9ff4b3bd074)

Signed-off-by: Thomas Perrot <thomas.perrot@tupi.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd-serialgetty: Set S to prevent QA warning
Thomas Perrot [Thu, 25 Jun 2015 18:01:08 +0000 (20:01 +0200)]
systemd-serialgetty: Set S to prevent QA warning

(From OE-Core rev: c3c240138a38799b611fcc695a51e0c188aa1327)

Signed-off-by: Thomas Perrot <thomas.perrot@tupi.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/bbtests: Fix race over DL_DIR and SSTATE_DIR
Richard Purdie [Tue, 7 Jul 2015 12:22:15 +0000 (13:22 +0100)]
oeqa/bbtests: Fix race over DL_DIR and SSTATE_DIR

Running "-c cleanall" on shared DL_DIR and SSTATE_DIR is antisocial.
It leads to hard to debug races where we wonder why files disappear
and reappear from those directories.

Fix this by using a specific set of directories for these tests. This
avoids a long standing bug on the autobuilder where aspell and man
sources would disappear.

[YOCTO #6276]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibffi: fix typo in fix-libffi.la-location.patch
Andre McCurdy [Mon, 6 Jul 2015 20:50:10 +0000 (13:50 -0700)]
libffi: fix typo in fix-libffi.la-location.patch

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotexinfo: fix typo in dont-depend-on-help2man.patch
Andre McCurdy [Mon, 6 Jul 2015 20:50:09 +0000 (13:50 -0700)]
texinfo: fix typo in dont-depend-on-help2man.patch

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agovalgrind: fix typo in valgrind-remove-rpath.patch
Andre McCurdy [Mon, 6 Jul 2015 20:50:08 +0000 (13:50 -0700)]
valgrind: fix typo in valgrind-remove-rpath.patch

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorpm: fix typo in rpm-reloc-macros.patch
Andre McCurdy [Mon, 6 Jul 2015 20:50:07 +0000 (13:50 -0700)]
rpm: fix typo in rpm-reloc-macros.patch

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorpm: fix typo in rpm-realpath.patch
Andre McCurdy [Mon, 6 Jul 2015 20:50:06 +0000 (13:50 -0700)]
rpm: fix typo in rpm-realpath.patch

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-numpy: fix typo in no-host-paths.patch
Andre McCurdy [Mon, 6 Jul 2015 20:50:05 +0000 (13:50 -0700)]
python-numpy: fix typo in no-host-paths.patch

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopkgconfig: fix typo in fix-glib-configure-libtool-usage.patch
Andre McCurdy [Mon, 6 Jul 2015 20:50:04 +0000 (13:50 -0700)]
pkgconfig: fix typo in fix-glib-configure-libtool-usage.patch

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoflex: fix typo in do_not_create_pdf_doc.patch
Andre McCurdy [Mon, 6 Jul 2015 20:50:03 +0000 (13:50 -0700)]
flex: fix typo in do_not_create_pdf_doc.patch

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodosfstools: fix typo in nofat32_autoselect.patch
Andre McCurdy [Mon, 6 Jul 2015 20:50:02 +0000 (13:50 -0700)]
dosfstools: fix typo in nofat32_autoselect.patch

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc: fix typo in add_resource_h_to_wait_h.patch
Andre McCurdy [Mon, 6 Jul 2015 20:50:01 +0000 (13:50 -0700)]
glibc: fix typo in add_resource_h_to_wait_h.patch

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobase-passwd: fix typo in add_shutdown.patch
Andre McCurdy [Mon, 6 Jul 2015 20:50:00 +0000 (13:50 -0700)]
base-passwd: fix typo in add_shutdown.patch

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodpkg: fix typo in tar-error-code.patch, Upsteam -> Upstream
Andre McCurdy [Mon, 6 Jul 2015 20:49:59 +0000 (13:49 -0700)]
dpkg: fix typo in tar-error-code.patch, Upsteam -> Upstream

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodistrodata.bbclass: fix typo, Upsteam -> Upstream
Andre McCurdy [Mon, 6 Jul 2015 20:49:58 +0000 (13:49 -0700)]
distrodata.bbclass: fix typo, Upsteam -> Upstream

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotune-core2.inc: set X86ARCH32 to i686 (instead of i586)
Andre McCurdy [Tue, 23 Jun 2015 23:27:57 +0000 (16:27 -0700)]
tune-core2.inc: set X86ARCH32 to i686 (instead of i586)

Use i686 as TARGET_ARCH for 32bit core2 (and corei7 and atom) builds.

In most cases, i586 and i686 are equivalent values for TARGET_ARCH, however
one important exception is glibc. When configured for i686, glibc enables
optimised string functions (SSE, SSE2, etc), which are not used when
building for i586.

The benefits of i686 optimised string functions vary depending on the
application and the CPU, however in some cases the improvements are
significant. In one test, a 50% increase in FPS was seen when running the
'smashcat' benchmark [1] in a qtwebkit browser on an Intel Atom based SoC.
The gain seems to comes from a 3x improvement in memcpy performance when
copying graphics buffer lines (5120 bytes, or 1280 x 4 bytes/pixel), from
the CPU to GPU. Note that very large memcpy's (e.g. 32MB) on the same
machine show no particular performance increase between i586 and i686.

  [1] http://www.smashcat.org/av/canvas_test/

Warning: The change in TARGET_ARCH means that _i586 architecture specific
over-rides will no longer take effect. Both oe-core and meta-oe have been
updated to replace _i586 over-rides with _x86, however other layers may
still need review and updating.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowayland: enable nativesdk builds
Ross Burton [Wed, 1 Jul 2015 22:05:18 +0000 (23:05 +0100)]
wayland: enable nativesdk builds

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowayland: always build wayland-scanner
Ross Burton [Wed, 1 Jul 2015 22:04:45 +0000 (23:04 +0100)]
wayland: always build wayland-scanner

By passing --disable-scanner to use a native wayland-scanner binary a target
wayland-scanner binary isn't built, which is a problem if you want to use it on
the target or in a SDK.

Instead, always build a target wayland-scanner binary, and have an option to
control whether that binary or a host-provided binary is used at build time.

[ YOCTO #7931 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomesa: Add blank r600 PACKAGECONFIG
Drew Moseley [Mon, 29 Jun 2015 18:23:50 +0000 (14:23 -0400)]
mesa: Add blank r600 PACKAGECONFIG

Fixes warnings such as:
    WARNING: mesa: invalid PACKAGECONFIG: r600
when building with the r600 configuration.

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocmake bbclass: fix support for native builds
Koen Kooi [Wed, 1 Jul 2015 06:57:25 +0000 (08:57 +0200)]
cmake bbclass: fix support for native builds

For native builds  of recipes (e.g. mariadb-native) cmake *must* look outside of its sysroot to find the compiler, so instruct it to do so.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibinput: Upgrade 0.7.0 -> 0.18.0
Khem Raj [Wed, 3 Jun 2015 19:56:23 +0000 (12:56 -0700)]
libinput: Upgrade 0.7.0 -> 0.18.0

Upgrade is also required for wayland/weston 1.8.x

libinput license changes are
- COPYING: note that having linux/input.h in the tree does not make libinput GPL
- Updated to 2015 where appropriate, added where missing.
- filter: add Simon's copyright
  This code was largely lifted from the X server in
  bb25b2ad297891430606c367bfabc but didn't take the copyright messages
  that applied to that code.

- Change MIT X11 to MIT Expat license

  see

  http://cgit.freedesktop.org/wayland/libinput/commit/?id=bc9f16b40e23a1d25c105a4207b97d65253f0d98

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agowayland: Upgrade 1.6.0 -> 1.8.1
Khem Raj [Wed, 3 Jun 2015 19:59:01 +0000 (12:59 -0700)]
wayland: Upgrade 1.6.0 -> 1.8.1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoweston: Upgrade weston_1.6.0.bb -> weston_1.8.0.bb
Khem Raj [Wed, 3 Jun 2015 20:00:13 +0000 (13:00 -0700)]
weston: Upgrade weston_1.6.0.bb -> weston_1.8.0.bb

Make error() portable, Fix build on musl

copyright year changed for weston compositor.c

- * Copyright © 2012 Collabora, Ltd.
+ * Copyright © 2012-2015 Collabora, Ltd.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agolibpciaccess: Upgrade to 0.13.4
Khem Raj [Fri, 5 Jun 2015 04:06:03 +0000 (21:06 -0700)]
libpciaccess: Upgrade to 0.13.4

Drop upstreamed patch
backport portablility fixes from upstream
Add a fix to not use io function on ARM they dont work

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agogdb: Disable lttng support for musl
Khem Raj [Mon, 8 Jun 2015 16:09:35 +0000 (09:09 -0700)]
gdb: Disable lttng support for musl

lttng-ust is too much dependent on glibc dlfcn code
disable it for musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agofeature-arm-thumb.inc: Fix ARMPKGSFX_THUMB value
Martin Jansa [Tue, 30 Jun 2015 14:15:00 +0000 (16:15 +0200)]
feature-arm-thumb.inc: Fix ARMPKGSFX_THUMB value

* my previous thumb related commit:
  commit 3e760031f91fb87c3e2f62b77a117eb41164f259
  Author: Martin Jansa <martin.jansa@gmail.com>
  Date:   Wed Feb 18 15:40:35 2015 +0100

    feature-arm-thumb.inc: respect ARM_INSTRUCTION_SET when adding thumb
    suffix

  unfortunately removed conditional on "thumb" in TUNE_FEATURES, when
  setting ARMPKGSFX_THUMB

* in case we have MACHINE without "thumb" in TUNE_FEATURES and distro
  setting ARM_INSTRUCTION_SET to "thumb" we end with:
  ARM_INSTRUCTION_SET="thumb"
  ARM_THUMB_OPT="thumb"
  ARM_M_OPT="thumb"

  # TUNE_CCARGS correctly not adding -mthumb
  TUNE_CCARGS=" -march=armv7-a  -mthumb-interwork -mfloat-abi=softfp -mfpu=neon"

  # but ARMPKGSFX_THUMB and TUNE_PKGARCH including "t2":
  ARMPKGSFX_THUMB="t2"
  TUNE_PKGARCH="armv7at2-vfp-neon"

  # causing following error:
  Error, the PACKAGE_ARCHS variable does not contain TUNE_PKGARCH (armv7at2-vfp-neon).

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosanity.bbclass: Check if /tmp is writable
Mariano Lopez [Mon, 29 Jun 2015 07:20:10 +0000 (07:20 +0000)]
sanity.bbclass: Check if /tmp is writable

If /tmp can't be written, bitbake gaves an unrelated error.
This checks if /tmp can be written in every build.

[YOCTO #7922]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorootfs.py: Add check for kernel modules before running depmod
Saul Wold [Fri, 26 Jun 2015 18:23:06 +0000 (11:23 -0700)]
rootfs.py: Add check for kernel modules before running depmod

Add a check for kernel modules so we don't un-necessarily run the depmods, this
will also handle the case with linux-dummy does not place the kernel-abiversion
since it also does not have kernel modules.

[YOCTO #7884]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorunqemu-internal: correctly set format for root FS as raw
Cristian Iorga [Mon, 29 Jun 2015 15:03:11 +0000 (18:03 +0300)]
runqemu-internal: correctly set format for root FS as raw

qemu guesses via probing the format of root FS, but
gives a warning and restricts write operations on block 0.
Fix it by setting correctly the format as raw for more
machines and non-KVM machines.
In some cases, replaced the way machine disk is set for qemu.

Fix for [YOCTO #7918]

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobootimg bbclass: don't hardcode 'bzImage' name
Koen Kooi [Wed, 3 Jun 2015 06:11:54 +0000 (08:11 +0200)]
bootimg bbclass: don't hardcode 'bzImage' name

In the EFI case there are 2 more architectures besides x86(_64) that may use this class: aarch32, which tends to use 'zImage' and aarch64, which uses 'Image'. Instead of hardcoding those values like the luvOS fork does, use the proper variable.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodocumentation: document KERNEL_CLASSES
Marek Vasut [Mon, 29 Jun 2015 16:50:07 +0000 (17:50 +0100)]
documentation: document KERNEL_CLASSES

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoltp: vma03 fix the alginment of page size
Chuang Dong [Tue, 30 Jun 2015 09:02:45 +0000 (17:02 +0800)]
ltp: vma03 fix the alginment of page size

the offset the param of mmap2() doesn't align the page size, but,
this param allow must be a multiple of the page size as returned
by sysconf(_SC_PAGE_SIZE).meanwhile offset * 4096 must be a
multiple of the system page size, so modify the input param of offset
pgoff = (ULONG_MAX - 1)&(~((pgsz-1)>>12));

Signed-off-by: Chuang Dong <Chuang.Dong@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Code cleanup: unused imports
Ed Bartosh [Mon, 29 Jun 2015 18:26:03 +0000 (21:26 +0300)]
wic: Code cleanup: unused imports

Fixed pylint warning unused-import

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Code cleanup: long lines, identation and whitespaces
Ed Bartosh [Mon, 29 Jun 2015 15:01:42 +0000 (18:01 +0300)]
wic: Code cleanup: long lines, identation and whitespaces

Fixed pylint warnings bad-continuation, bad-continuation and
line-too-long.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Fix confusing error message
Ed Bartosh [Mon, 29 Jun 2015 10:30:36 +0000 (13:30 +0300)]
wic: Fix confusing error message

Wic throws this message when any of the build artifacts are
not provided:
  Build artifacts not completely specified, exiting.
    (Use 'wic -e' or 'wic -r -b -k -n' to specify artifacts)
It was not clear which artifact was not specified.

Reworked the code to specify list of missed artifacts.
Now the message looks like this:
  The following build artifacts are not specified:
    bootimg-dir, kernel-dir, native-sysroot

[YOCTO #7912]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Remove __write_partition method
Ed Bartosh [Mon, 29 Jun 2015 08:19:38 +0000 (11:19 +0300)]
wic: Remove __write_partition method

Moved code of __write_partition to 'assemble' method.
This way it should be more readable.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Refactor fstab update code
Ed Bartosh [Sat, 27 Jun 2015 15:24:50 +0000 (18:24 +0300)]
wic: Refactor fstab update code

Made the code to backup and restore fstab only if it's modified.

Cleaned up the code. Made it more pythonic.

Improved code readability by moving code from several tiny
methods into one place.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Add --uuid partition option
Ed Bartosh [Sat, 27 Jun 2015 14:18:10 +0000 (17:18 +0300)]
wic: Add --uuid partition option

Added --uuid option to the configuration of wks parser.
This option specifies partition UUID. The code to process
it is already in place. It was implemented for --use-uuid
option.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Fix naming conflict
Ed Bartosh [Sat, 27 Jun 2015 12:08:15 +0000 (15:08 +0300)]
wic: Fix naming conflict

Image file name is not unique for the partitions without label.
This causes image being rewritten and used as a source for all
partitions without label. Wic produces broken or incorrect result
images because of that.

Added wks line number to the image name to make it unique.

9 years agowic: Remove duplicated code
Ed Bartosh [Sat, 27 Jun 2015 10:37:27 +0000 (13:37 +0300)]
wic: Remove duplicated code

Moved duplicated code of geting rootfs size
out of prepare_rootfs* methods.

9 years agowic: Refactor prepare_empty_partition API
Ed Bartosh [Sat, 27 Jun 2015 10:28:50 +0000 (13:28 +0300)]
wic: Refactor prepare_empty_partition API

Moved code out of prepare_empty_partition* methods
to avoid code duplication.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Call methods better way
Ed Bartosh [Sat, 27 Jun 2015 09:56:38 +0000 (12:56 +0300)]
wic: Call methods better way

Shortened code by using getattr to obtain a method to call for
prepare_empty_partition_* and prepare_rootfs_* methods.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Get rid of useless variable 'image_rootfs'
Ed Bartosh [Sat, 27 Jun 2015 09:40:13 +0000 (12:40 +0300)]
wic: Get rid of useless variable 'image_rootfs'

Removed useless variable 'image_rootfs' from 4 prepare_rootfs_* methods.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Rename partition images
Ed Bartosh [Sat, 27 Jun 2015 09:23:38 +0000 (12:23 +0300)]
wic: Rename partition images

Renamed partition images into <final image>.p<partition number>
This should make output directory look more organized and easier
to understand.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Refactor prepare_rootfs API
Ed Bartosh [Sat, 27 Jun 2015 09:16:38 +0000 (12:16 +0300)]
wic: Refactor prepare_rootfs API

Moved code out of prepare_roots* methods to avoid code duplication.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Turn off debug output for 'bitbake -e'
Ed Bartosh [Sat, 27 Jun 2015 08:12:50 +0000 (11:12 +0300)]
wic: Turn off debug output for 'bitbake -e'

Switched debug level to 'normal' to prevent huge 'bitbake -e'
output to go into wic debug output. This should help to make
wic debug info much more clean and easier to read.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Remove annoing debug message
Ed Bartosh [Sat, 27 Jun 2015 08:05:19 +0000 (11:05 +0300)]
wic: Remove annoing debug message

Wic tries to find plugins in every layer and prints a message
'Plugin dir is not a directory or does not exist' if layer
doesn't have plugin dir. It causes a lot of duplicated
messages in the debug output, which makes it hard to find
useful info there.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Include mount point into image report
Ed Bartosh [Sat, 27 Jun 2015 07:54:46 +0000 (10:54 +0300)]
wic: Include mount point into image report

Wic doesn't show any information for the partition if label is not set.
Fixed this by adding mount point to the report.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Refactor getting bitbake variables
Ed Bartosh [Fri, 26 Jun 2015 18:27:31 +0000 (21:27 +0300)]
wic: Refactor getting bitbake variables

Wic gets bitbake variables by parsing output of 'bitbake -e' command.

This implementation improves this procedure as it runs 'bitbake -e' only
when API is called and does it only once, i.e. in a "lazy" way. As parsing
results are cached 'bitbake -e' is run only once and results are parsed
only once per requested set of variables.

get_bitbake_var became the only API call. It replaces find_artifacts,
find_artifact, find_bitbake_env_lines, get_bitbake_env_lines,
set_bitbake_env_lines and get_line_val calls making API much more clear.

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