]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agoqemu: backport patches to fix CVE issues
Kai Kang [Thu, 18 Jun 2015 09:02:42 +0000 (17:02 +0800)]
qemu: backport patches to fix CVE issues

Backport patches to fix CVE-2015-4103, CVE-2015-4104, CVE-2015-4105 and
CVE-2015-4106. These patches are from debian, but they are originally
from:

http://git.qemu.org/?p=qemu.git;a=shortlog;h=c25bbf1

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoterminal.py: Allow devshell/menuconfig on recent gnome-terminal
Leonardo Sandoval [Tue, 2 Jun 2015 19:54:27 +0000 (14:54 -0500)]
terminal.py: Allow devshell/menuconfig on recent gnome-terminal

Recent versions of gnome-terminal does not support non-UTF8 charset:
https://bugzilla.gnome.org/show_bug.cgi?id=732127 as a result, devshell and
menuconfig tasks silently hang  (error found on trace log of 'strace -f -v
-s 8192 -e write=2 bitbake -c devshell quilt-native': "Non UTF-8 locale
(ANSI_X3.4-1968) is not supported!"). As a workaround, clearing the LC_ALL
environment variable so it uses the locale. Once fixed on the gnome-terminal
project, this should be removed.

Tested on gnome-terminal versions:

       GNOME Terminal 3.4.1.1
       GNOME Terminal 3.14.2 (Default on Ubuntu 15.04)

[YOCTO #7791]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobluez5: upgrade to 5.31
Cristian Iorga [Mon, 22 Jun 2015 11:12:37 +0000 (14:12 +0300)]
bluez5: upgrade to 5.31

Mostly a bug fix release,
with the the following improvements:
- support for handling BNEP setup response;
- support for setting GATT database security flags;
- support for setting discovery filters interface;
- support for user controlled advertising interface.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-firmware: upgrade to commit 3161bfa479d5e9ed4f46b57df9bcecbbc4f8eb3c
Cristian Iorga [Mon, 22 Jun 2015 16:55:15 +0000 (19:55 +0300)]
linux-firmware: upgrade to commit 3161bfa479d5e9ed4f46b57df9bcecbbc4f8eb3c

Updates to firmware binaries from (not exhaustive list):
Broadcom, Atheros, Realtek, Marvell, Intel, AMD, Siano.

- AMD microcode copyright years changed;
- Siano license added;
- Intel SST2 license added;

Fixes [YOCTO #6965].

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoweston: fix libdir/libexecdir confusion
Ross Burton [Tue, 23 Jun 2015 10:43:43 +0000 (11:43 +0100)]
weston: fix libdir/libexecdir confusion

Use $libexecdir and $libdir as appropriate so the files are packaged correctly
when libexecdir != $libdir/$BPN.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobluez5: fix lib/libexecdir confusion
Ross Burton [Mon, 22 Jun 2015 21:16:01 +0000 (22:16 +0100)]
bluez5: fix lib/libexecdir confusion

Use $libexecdir and $libdir as appropriate so the files are packaged correctly
when libexecdir != $libdir/$BPN.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotestimage: Handle ipk/deb packaging format tests correctly
Richard Purdie [Tue, 23 Jun 2015 11:13:02 +0000 (12:13 +0100)]
testimage: Handle ipk/deb packaging format tests correctly

The default test list only works for rpm packaging. This fixes it for
deb and ipk too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: oe-selftest: Test image compressing
Ed Bartosh [Tue, 23 Jun 2015 08:19:49 +0000 (11:19 +0300)]
wic: oe-selftest: Test image compressing

Added 4 new testcases for 'wic --compress-with <compressor>' functionality.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Make code more pythonic
Ed Bartosh [Mon, 22 Jun 2015 13:07:13 +0000 (16:07 +0300)]
wic: Make code more pythonic

Used more pythonic way to make a list.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Implement image compressing
Ed Bartosh [Mon, 22 Jun 2015 12:45:30 +0000 (15:45 +0300)]
wic: Implement image compressing

Implemented compressing result image with specified compressor.
Updated reporting code to show compressed image.

[YOCTO #7593]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Add new argument to direct plugin
Ed Bartosh [Mon, 22 Jun 2015 12:15:22 +0000 (15:15 +0300)]
wic: Add new argument to direct plugin

Added 'compressor' argument to Direct plugin API to
pass a name of compressor utility.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Add new argument to wic_create function
Ed Bartosh [Mon, 22 Jun 2015 11:58:19 +0000 (14:58 +0300)]
wic: Add new argument to wic_create function

Added 'compressor' argument to wic_create to pass a name of
compressor utility to the wic engine.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Add --compress-with command line option
Ed Bartosh [Mon, 22 Jun 2015 11:42:37 +0000 (14:42 +0300)]
wic: Add --compress-with command line option

Added -c/--compress-with command line option to 'wic create'
subcommand. This option is used to specify compressor
utility to compress the image produced by wic. gzip, bzip2 and
xz compressors are supported in this implementation.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agosanity.bbclass: check /bin/sh is dash or bash
Robert Yang [Fri, 26 Jun 2015 06:23:21 +0000 (23:23 -0700)]
sanity.bbclass: check /bin/sh is dash or bash

The build would fail when /bin/sh links to ksh or csh, we only test dash
and bash AFAIK.

* When /bin/sh -> csh:
  $ bitbake quilt-native
$ bitbake quilt-native -cfetch
Illegal variable name.
Illegal variable name.
[snip]
uname: extra operand `2'
Try `uname --help' for more information.

* When /bin/sh -> ksh:
  If there are only a few tasks running, for example,
  "bitbake quilt-native", the build would be OK, but it would fail if we
  run "bitbake world" for a while, there would be a lot of "Broken pipe"
  errors:
Exception: CalledProcessError: Command
'cd /path/to/xx; find . -type d -print | tar -cf - -C /path/to/sysroot-destdir -p --files-from - --no-recursion | tar -xf - -C /path/to/xxx'
returned non-zero exit status 2 with output tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
find: `standard output': Broken pipe
find: write error

[YOCTO #7917]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoolchain-scripts: fix for multilib
Robert Yang [Fri, 26 Jun 2015 03:06:16 +0000 (20:06 -0700)]
toolchain-scripts: fix for multilib

Use MLPREFIX to fix:
| cat: /path/to/sysroots/lib32-qemux86-64/sysroot-providers/virtual_libc: No such file or directory

[YOCTO #7924]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/recipetool: Fix appendfile_binary test on opensuse131
Richard Purdie [Thu, 25 Jun 2015 15:47:28 +0000 (16:47 +0100)]
oeqa/selftest/recipetool: Fix appendfile_binary test on opensuse131

On OpenSUSE 13.1, /bin/ls is a symlink to /usr/bin/ls. This means the
test doesn't use a binary file an fails on that system.

Ensure we resolve any symlink using readlink to avoid this failure.

======================================================================
FAIL: test_recipetool_appendfile_binary (oeqa.selftest.recipetool.RecipetoolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/recipetool.py", line 115, in test_recipetool_appendfile_binary
    self.assertIn('WARNING: ', result.output)
AssertionError: 'WARNING: ' not found in 'Parsing recipes..done.\nNOTE: Writing append file /tmp/recipetoolqai0NY8l/recipes-core/coreutils/coreutils_8.23.bbappend\nNOTE: Copying /bin/ls to /tmp/recipetoolqai0NY8l/recipes-core/coreutils/coreutils/ls'

[YOCTO #7920]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/devtool/standard: Fix patch cleanup
Richard Purdie [Thu, 25 Jun 2015 15:09:14 +0000 (16:09 +0100)]
lib/devtool/standard: Fix patch cleanup

If patches fail to apply with git, quilt it used as a fallback. If that
happens, the code in this class is meant to handle cleanup of these patch
files. In the case where ${S} is a subdir of the git tree, the code doesn't
correctly set the patches directory.

This change correctly sets the patches directory (which is different to the
location of the git repository).

[YOCTO #7911]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/patch: Fix git patch application for source in subdirectory
Richard Purdie [Thu, 25 Jun 2015 15:08:26 +0000 (16:08 +0100)]
lib/oe/patch: Fix git patch application for source in subdirectory

Similarly to:
http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/lib/oe/patch.py?id=f205ccaf48ac36f4b26efc4aeb2e9d2939b28646
we need to fix patch application for source which is in a subdirectory.

Passing "." as the git directory or work-dir appears to work (or is ignored)
in some versions of git but does not work in others, probably quite correctly.

Since we have reporoot from the above patch, pass this in directly.

This bug caused this sanity test failure on some machines:

FAIL: test_devtool_modify_git (oeqa.selftest.devtool.DevtoolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/devtool.py", line 390, in test_devtool_modify_git
    self.assertEqual(result.output.strip(), "", 'Created git repo is not clean')
AssertionError: '?? util/mkelfImage/patches/' != '' : Created git repo is not clean

since git apply would fail, it would then fall back to quilt
and the git tree would be left unclean.

[YOCTO #7911]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe/utils.py: Add support for init/end helper functions in ThreadWorker.
Aníbal Limón [Tue, 23 Jun 2015 16:49:54 +0000 (11:49 -0500)]
oe/utils.py: Add support for init/end helper functions in ThreadWorker.

Add init/end helper functions for ThreadWorker also pass ThreadWorker
as first argument to init/end/func functions this enables per-thread
storage handling.

classes/sstate.bbclass: Add thread_worker argument to checkstatus
function.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe/utils.py: Fix thread leakage in ThreadPool
Aníbal Limón [Tue, 23 Jun 2015 16:49:53 +0000 (11:49 -0500)]
oe/utils.py: Fix thread leakage in ThreadPool

In order to fix Thread leakage caused by not call join() in Threads,

Pass num_tasks in ThreadPool for add all the tasks into a Queue this
enable catch of Queue.Empty exception and exit the threads.

classes/sstate.bbclass: Change checkstatus function to match new
ThreadPool operation.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowpa-supplicant: Revert "Make SystemD D-Bus config conditional"
Otavio Salvador [Wed, 24 Jun 2015 10:43:33 +0000 (11:43 +0100)]
wpa-supplicant: Revert "Make SystemD D-Bus config conditional"

The D-Bus config is not systemd-specific. It is required for the D-Bus
communication to be operational.

This reverts commit e658ee16dc026b96f67a4c9666d3eb7bf7027de3.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoapt-native: Drop obsolete symlinks
Richard Purdie [Tue, 23 Jun 2015 14:13:35 +0000 (15:13 +0100)]
apt-native: Drop obsolete symlinks

Apt no longer uses GLIBC_VER and LIBSTDCPP_VER variables nor appears
to need these odd symlinks. The variables expand to empty enties
which then create symlinks which loop back on themselves.

To fix, drop the obsolete code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agometa-environment: Ensure we append to the default TOOLCHAIN_NEED_CONFIGSITE_CACHE
Richard Purdie [Fri, 19 Jun 2015 10:25:12 +0000 (11:25 +0100)]
meta-environment: Ensure we append to the default TOOLCHAIN_NEED_CONFIGSITE_CACHE

The toolchain-scripts class was changed to assign to the variable using ??=
which allows users to override it. We therefore need to _append instead
of += to have the change take effect as intended.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoolchain-scrpts: Fix sitecache issues with multilib
Richard Purdie [Fri, 19 Jun 2015 10:24:39 +0000 (11:24 +0100)]
toolchain-scrpts: Fix sitecache issues with multilib

The use of TCLIBC in TOOLCHAIN_NEED_CONFIGSITE_CACHE is problematic
since a multilib may have both uclibc and glibc for different multilibs
yet switching between them doesn't change TCLIBC. This would result
in "lib32-glibc" being attempted when lib32 was actually uclibc.

The fix here is to use the virtual providers which bitbake switches
to point correctly at the right things.

This does mean we need to resolve virtual providers but we can do this using
sysroot-providers.

[YCOTO #7607]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agostaging: Strip files in sysroot
Richard Purdie [Fri, 19 Jun 2015 09:09:40 +0000 (10:09 +0100)]
staging: Strip files in sysroot

Add functionality to strip binaries/libraries going into the sysroot. Whilst
this does fractionally slow down the build, it also significantly reduces the
size of the sstate cache files.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agometa: Add explict getVar param for (non) expansion
Richard Purdie [Thu, 18 Jun 2015 14:14:16 +0000 (15:14 +0100)]
meta: Add explict getVar param for (non) expansion

Rather than just use d.getVar(X), use the more explict d.getVar(X, False)
since at some point in the future, having the default of expansion would
be nice. This is the first step towards that.

This patch was mostly made using the command:

sed -e 's:\(getVar([^,()]*\)\s*):\1, False):g' -i `grep -ril getVar *`

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoneard: remove unused service file
Ross Burton [Mon, 22 Jun 2015 14:44:04 +0000 (15:44 +0100)]
neard: remove unused service file

Upstream ships a systemd service file now, so we don't need this anymore.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorpm: Rebrand rpm custom macro paths to be distro specific
Mark Hatle [Wed, 17 Jun 2015 17:04:41 +0000 (12:04 -0500)]
rpm: Rebrand rpm custom macro paths to be distro specific

RPM was previously hard coded to use the 'poky' directory.  We really want
the directory name to be distribution specific.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorpm: Fix lua 'print' statement capture
Mark Hatle [Wed, 17 Jun 2015 17:04:40 +0000 (12:04 -0500)]
rpm: Fix lua 'print' statement capture

The print statement should capture the output and send it to the script
processing engine, and not display it directly to the screen.

Note, this is only a bug if 'lua' support has been enabled in the RPM
recipe's PACKAGECONFIG.

This patch is from: http://rpm5.org/cvs/patchset?cn=17671

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorpm: Fix CVE-2013-6435
Leonardo Sandoval [Wed, 10 Jun 2015 14:58:38 +0000 (14:58 +0000)]
rpm: Fix CVE-2013-6435

Backport to fix CVE-2013-6435. Description on [1] and original
patch taken from [2].

[1] https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2013-6435
[2] https://bugzilla.redhat.com/attachment.cgi?id=956207

[YOCTO #7181]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
9 years agorpm: Fix CVE-2014-8118
Leonardo Sandoval [Wed, 10 Jun 2015 14:55:14 +0000 (14:55 +0000)]
rpm: Fix CVE-2014-8118

Backport patch to fix CVE-2014-8118. Description is on [1] and
original patch taken from [2].

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1168715
[2] https://bugzilla.redhat.com/attachment.cgi?id=962159

[YOCTO #7181]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
9 years agodistutils-common-base: add to, don't set, FILES_${PN}
Joshua Lock [Wed, 17 Jun 2015 08:33:18 +0000 (09:33 +0100)]
distutils-common-base: add to, don't set, FILES_${PN}

If we set FILES_${PN} and a recipe inherits other classes that
modify FILES_${PN} *before* distutils-common-base is included, any
changes to FILES_${PN} made by those classes are lost.

Instead, append the additional directories we want to include in
FILES_${PN}

Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython-2.7/3.4-manifest.inc: add missing dependencies for python-netserver
Henning Heinold [Tue, 16 Jun 2015 18:24:49 +0000 (20:24 +0200)]
python-2.7/3.4-manifest.inc: add missing dependencies for python-netserver

* SimpleHTTPServer imports shutil so we need
  definitly python-shell

* SocketServer can be run without the threading modul,
  but I think we should run the full blown stuff, so
  let us add python-threading

* this work was sponsored by sysmocom GmbH

Signed-off-by: Henning Heinold <henning@itconsulting-heinold.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython3-ctypes: Fix cross compilation for arm targets
Alejandro Hernandez [Tue, 16 Jun 2015 15:29:13 +0000 (15:29 +0000)]
python3-ctypes: Fix cross compilation for arm targets

When cross compiling for arm targets ctypes compilation fails because
it uses _sysconfigdata from the HOST, this patches makes it use the
one from TARGET fixing compilation of this module

[YOCTO #7873]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Jonas Göransson <jonas.goransson@qmatic.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: removed unused command line option
Ed Bartosh [Wed, 17 Jun 2015 13:49:33 +0000 (16:49 +0300)]
wic: removed unused command line option

Removed -i/--infile wic command line option.
Removed properties_file and properties arguments of
wic_create function.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: code cleanup: superfluous-parens
Ed Bartosh [Wed, 17 Jun 2015 11:47:47 +0000 (14:47 +0300)]
wic: code cleanup: superfluous-parens

Removed unncecessary parents after 'if' 'del' and 'print' keywords.
Fixed pyling warning: Unnecessary parens after 'xxx' keyword

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: oe-selftest: Add 3 tests of 'wic help' command
Ed Bartosh [Tue, 16 Jun 2015 13:26:27 +0000 (16:26 +0300)]
wic: oe-selftest: Add 3 tests of 'wic help' command

Added tests for 'wic test overview', 'wic test plugins' and
'wic test kickstart' commands.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Return error code when wic fails to invoke command
Ed Bartosh [Tue, 16 Jun 2015 11:19:49 +0000 (14:19 +0300)]
wic: Return error code when wic fails to invoke command

Return 1 if command doesn't exist or wic is called without
any commmand.
Return result of invoke_command as wic return code.

Added tests for unsupported command and no command.

Fixed typo in test case test02_createhelp spotted by this fix.

[YOCTO #7856]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: Integrated plugin docstrings into 'wic help plugins' output
Ed Bartosh [Wed, 17 Jun 2015 06:56:44 +0000 (09:56 +0300)]
wic: Integrated plugin docstrings into 'wic help plugins' output

Added mechanism to show docstrings of plugin classes as a part of
plugins help page.
For missing plugins the following warning message is shown:
<class '<plugin class spec>'> is missing docstring.

[YOCTO #7118]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Add missing docstrings to plugin classes
Ed Bartosh [Wed, 17 Jun 2015 08:53:04 +0000 (11:53 +0300)]
wic: Add missing docstrings to plugin classes

Docstings from plugin classes are used as part of
output of 'wic help plugins'. Adding them makes help page
more informative.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Code cleanup: bad-classmethod-argument
Ed Bartosh [Wed, 17 Jun 2015 11:25:23 +0000 (14:25 +0300)]
wic: Code cleanup: bad-classmethod-argument

Fixed wrong name for the first argument in class methods.
Pylint complains about the issue this way:
    Class method should have 'cls' as first argument

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Document creation of empty partition
Ed Bartosh [Tue, 16 Jun 2015 10:18:35 +0000 (13:18 +0300)]
wic: Document creation of empty partition

Added short explanation of how to create empty pattition
to the 'wic help kickstart' output.

[YOCTO #7131]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-selftest: wic: Fix testcase
Ed Bartosh [Tue, 16 Jun 2015 06:43:17 +0000 (09:43 +0300)]
oe-selftest: wic: Fix testcase

Fixed test05_build_artifacts testcase by using values of MACHINE
and BUILD_SYS bitbake variables in paths to artifacts.

Test was failing because of hardcoded machine(qemux86) and
build_sys(qemux86-poky-linux) in artifact paths.

[YOCTO #7730]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agoinit-install: Properly delete partition table
Ed Bartosh [Tue, 16 Jun 2015 04:56:25 +0000 (07:56 +0300)]
init-install: Properly delete partition table

Fixed deletion of the partition table by increasing
amount of sectors from 2(correct for msdos PT) to 35 as
GPT size is 34 sectors + 1 sector for protective MBR.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agoinit-install: code cleanup: replace /dev/$device -> $device
Ed Bartosh [Mon, 15 Jun 2015 15:47:56 +0000 (18:47 +0300)]
init-install: code cleanup: replace /dev/$device -> $device

Shortened code by including /dev/ prefix into variable.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agoinit-install: code cleanup: Replace tabs with spaces
Ed Bartosh [Mon, 15 Jun 2015 15:18:16 +0000 (18:18 +0300)]
init-install: code cleanup: Replace tabs with spaces

Cleaned up spaces from init-install* shell scripts.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agoinit-install: Specify partition name in parted command line
Ed Bartosh [Sun, 14 Jun 2015 20:05:28 +0000 (23:05 +0300)]
init-install: Specify partition name in parted command line

parted allows to use names for partitions if GPT partition table
is used on the device. msdos partitioning can have only partition
types: 'primary', 'logical' or 'extended'.

Used meaningful partition names in parted command line for GPT
partitioning.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agoinit-install: Specify filesystem type in parted command line
Ed Bartosh [Sun, 14 Jun 2015 15:45:21 +0000 (18:45 +0300)]
init-install: Specify filesystem type in parted command line

Explicitly specified filesystem type for parted mkpart command.
This makes partition table to look more informative.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agoinit-install: Implement UUID support
Ed Bartosh [Sun, 14 Jun 2015 13:26:27 +0000 (16:26 +0300)]
init-install: Implement UUID support

Used partition UUID in kernel command line to specify root partition.
Searched root device by file system uuid in GRUB configuration.
Used partition UUID in /etc/fstab to specify swap partition.
Used filesystem UUID in /etc/fstab to specify boot partition.

[YOCTO #6101]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agoinit-install: Use GPT table with GRUB 2
Ed Bartosh [Thu, 11 Jun 2015 16:01:35 +0000 (19:01 +0300)]
init-install: Use GPT table with GRUB 2

Changed partition type from 'msdos' to 'gpt'.
Added special partition for grub stage2 bootloader.

NOTE: This is done only for GRUB 2 as legacy GRUB is
rarely used and doesn't support GPT partitions.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agoinit-install-efi: Implement UUID support
Ed Bartosh [Wed, 10 Jun 2015 14:49:32 +0000 (17:49 +0300)]
init-install-efi: Implement UUID support

Using UUID in favor of device names is more reliable as
UUID names are persistent.

Device names can change as the order of adding device nodes
is arbitrary. This sometimes results in device names switching
on each boot, which can cause system fail to boot.
Persistent naming solves these issues.

Used partition UUID in kernel command line to specify root partition.
Used partition UUID in /etc/fstab to specify swap partition.
Used filesystem UUID in /etc/fstab to specify boot partition.

[YOCTO #6101]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agobusybox: Enable UUID-related options
Ed Bartosh [Mon, 15 Jun 2015 15:01:47 +0000 (18:01 +0300)]
busybox: Enable UUID-related options

Enabled MOUNT_LABEL and VOLUMEID* features for busybox
mount to understand 'UUID=' syntax in fstab.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agoinitramfs-live-install: Add blkid to initramfs
Ed Bartosh [Wed, 10 Jun 2015 14:40:43 +0000 (17:40 +0300)]
initramfs-live-install: Add blkid to initramfs

Added util-linux-blkid to the list of dependencies of
initramfs-live-install and initramfs-live-install-efi.

This is a part of the work to support partiion UUID in installer.
blkid is going to be used to get partition and filesystem UUIDs.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agoimage-live: Set syslinux timeout to 5s
Ed Bartosh [Wed, 10 Jun 2015 13:42:33 +0000 (16:42 +0300)]
image-live: Set syslinux timeout to 5s

Increased syslinux timeout to 5s as default 1s timeout
is not enough to notice syslinux prompt on some devices.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agort-tests: bump version to v0.92
Maxin B. John [Tue, 16 Jun 2015 21:25:07 +0000 (23:25 +0200)]
rt-tests: bump version to v0.92

Version upgrade to v0.92
Rebased below listed patch to newer source code:
added-missing-dependencies.patch

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobabeltrace: Fix invalid pointer free with trace collection
Roy Li [Tue, 16 Jun 2015 02:50:04 +0000 (10:50 +0800)]
babeltrace: Fix invalid pointer free with trace collection

This fixed the bug https://bugs.lttng.org/issues/790

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodbus-test: Upgrade 1.8.10 -> 1.8.18
Jussi Kukkonen [Tue, 16 Jun 2015 08:00:59 +0000 (11:00 +0300)]
dbus-test: Upgrade 1.8.10 -> 1.8.18

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
9 years agodbus: Upgrade 1.8.16 -> 1.8.18
Jussi Kukkonen [Mon, 15 Jun 2015 14:01:00 +0000 (17:01 +0300)]
dbus: Upgrade 1.8.16 -> 1.8.18

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
9 years agopackagegroup-core-tools-profile.bb: Remove oprofile.
Philip Balister [Mon, 1 Jun 2015 20:17:22 +0000 (16:17 -0400)]
packagegroup-core-tools-profile.bb: Remove oprofile.

Oprofile functions duplicate perf. Since perf is easier to use drop oprofile
from the core-tools-profile package.

Also, the oprofile-ui package opens a port on the device. removing this
package reduces a possible security issue for devices with profiling tools.

Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackagegroup-core-sdk.bb: Drop distcc from the core-sdk.
Philip Balister [Mon, 1 Jun 2015 20:17:21 +0000 (16:17 -0400)]
packagegroup-core-sdk.bb: Drop distcc from the core-sdk.

distcc has been used in the past to speed up native compile across
several machines. This is less an issue on modern embedded systems.

Also, improvements in sdk generation have reduced the need for on target
compile of large projects.

Since the distcc packages start a daemon at boot, drop it from the
packagegroup to avoid having some slight runtime impact on systems
installing an sdk.

Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorunqemu-internal: set mutual exclusiveness for serial and nographic options
Jagadeesh Krishnanjanappa [Tue, 16 Jun 2015 10:48:30 +0000 (16:18 +0530)]
runqemu-internal: set mutual exclusiveness for serial and nographic options

Use "-nographic" option only if "serial" option is not
specified. Otherwise we get below error when
'runqemu <kernel_image> <rootfs_image> serial' is executed,

(snip)
QEMU 2.2.0 monitor - type 'help' for more information
(qemu) qemu-system-aarch64: -serial stdio: cannot use stdio by multiple
character devices
-- CUT --

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorunqemu-script: define console for qemuarm NFS booting
Jagadeesh Krishnanjanappa [Tue, 16 Jun 2015 10:48:28 +0000 (16:18 +0530)]
runqemu-script: define console for qemuarm NFS booting

Add console=ttyAMA0,115200 as one of the boot parameters
for qemuarm, in order to print bootlog messages on the
console.

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorunqemu-internal: add support to boot arm64 qemu target via NFS
Jagadeesh Krishnanjanappa [Tue, 16 Jun 2015 10:48:29 +0000 (16:18 +0530)]
runqemu-internal: add support to boot arm64 qemu target via NFS

Add required boot parameters inorder to boot arm64 qemu
target via NFS

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorunqemu: fix MACHINE being detected as qemuarm for qemuarm64 kernel image
Jagadeesh Krishnanjanappa [Tue, 16 Jun 2015 10:48:27 +0000 (16:18 +0530)]
runqemu: fix MACHINE being detected as qemuarm for qemuarm64 kernel image

Basically, runqemu script autodetects MACHINE type based on the
kernel image name; if MACHINE name is not specified. Since 'qemuarm'
string is common in both qemuarm amnd qemuarm64 kernel image names, the
MACHINE type is considered as 'qemuarm' even when qemuarm64 kernel
image name is given in command line.

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqt4-4.8.7: restore arm64 patches which are dropped by mistake
Kai Kang [Wed, 17 Jun 2015 01:32:47 +0000 (09:32 +0800)]
qt4-4.8.7: restore arm64 patches which are dropped by mistake

During upgrade qt4 from 4.8.6 to 4.8.7, four arm64 patches are removed.
But three of them are dropped by mistake that they are not merged by
upstream and still needed.

Restore them.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocups: upgrade from 2.0.2 to 2.0.3
Kai Kang [Wed, 17 Jun 2015 07:17:53 +0000 (15:17 +0800)]
cups: upgrade from 2.0.2 to 2.0.3

Upgrade cups from 2.0.2 to 2.0.3. In its release log, it fixes
CERT VU #810572/CVE-2015-1158/CVE-2015-1159.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoopenssl: fix building on x32 systems
Cristian Iorga [Mon, 15 Jun 2015 21:32:15 +0000 (00:32 +0300)]
openssl: fix building on x32 systems

Fix build on Fedora 21 i686.

When building on x32 systems where the default type is 32bit,
make sure that 64bit integers can be represented transparently.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoRevert "distrodata: Remove unnecessary include of package_regex.inc"
Ross Burton [Tue, 16 Jun 2015 09:31:29 +0000 (10:31 +0100)]
Revert "distrodata: Remove unnecessary include of package_regex.inc"

Instead of asking the user to include a number of configuration files, the class
can do this.  Next step is to fix the documentation.

This reverts commit 2a4ee94667d4d356cad2ca6d60a100a30c92737b.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolttng-modules: drop makefile patch
Nathan Lynch [Mon, 15 Jun 2015 18:37:24 +0000 (13:37 -0500)]
lttng-modules: drop makefile patch

The lttng-modules Makefile allows us to specify the kernel we're
building against via the KERNELDIR variable on the build command line.
Use that and drop the patch (which tends to need updating whenever the
upstream Makefile changes).

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinsane.bbclass: fix false negative in build-deps QA check
Patrick Ohly [Mon, 15 Jun 2015 16:05:13 +0000 (18:05 +0200)]
insane.bbclass: fix false negative in build-deps QA check

When a recipe called 'foobar-test' links against 'foobar' without
listing that in DEPENDS, the build-deps check misses that error
because it looks for 'foobar' in a package string containing (among
others) the 'foobar-test' name, leading to the incorrect conclusion
that the package is listed as dependency.

The 'packages' string needs to be split into individual package names
before the check. Doing that once directly after reading the value is
more efficient than splitting inside package_qa_check_rdepends() because
the caller also needs the individual components.

Also use a set to speed up the 'package in packages' check.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocopyleft_filter.bbclass: Allow to filter on name
Mariano Lopez [Tue, 9 Jun 2015 12:46:48 +0000 (12:46 +0000)]
copyleft_filter.bbclass: Allow to filter on name

The archiver uses a license based filter to provide the source code.
This patch allows to search on name based on two new variables (COPYLEFT_PN_INCLUDE,
COPYLEFT_PN_EXCLUDE). Both variables are empty by default.
The filter by name has higher priority than the license filter.

[YOCTO # 6929]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogtk+: Upgrade 2.24.27 -> 2.24.28
Jussi Kukkonen [Mon, 15 Jun 2015 13:23:43 +0000 (16:23 +0300)]
gtk+: Upgrade 2.24.27 -> 2.24.28

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobase.class: warn for invalid PACKAGECONFIG
Robert Yang [Thu, 11 Jun 2015 09:08:41 +0000 (02:08 -0700)]
base.class: warn for invalid PACKAGECONFIG

There may be typos or out of date values in PACKAGECONFIG, check and
warn them.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibpcap: add a dummy PACKAGECONFIG for bluez5
Robert Yang [Thu, 11 Jun 2015 02:10:13 +0000 (19:10 -0700)]
libpcap: add a dummy PACKAGECONFIG for bluez5

The BLUEZ is default to bluez5, but there is only PACKAGECONFIG[bluez4],
no PACKAGECONFIG[bluez5], add a dummy PACKAGECONFIG for bluez5 to avoid
confusing the user, and avoid the warning.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agobluez5: remove alsa from PACKAGECONFIG
Robert Yang [Thu, 11 Jun 2015 09:08:42 +0000 (02:08 -0700)]
bluez5: remove alsa from PACKAGECONFIG

The PACKAGECONFIG[alsa] had been removed when upgraded to 5.12 since it
was not supported any more.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibsdl2: PACKAGECONFIGize
Andreas Müller [Fri, 12 Jun 2015 20:50:43 +0000 (22:50 +0200)]
libsdl2: PACKAGECONFIGize

* DEPENDS + EXTRA_OECONF -> PACKAGECONFIG for directfb / opengl / x11
* added PACKAGECONFIG for gles2 / pulseaudio / tslib / wayland

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoneon: fix compat issues with gnutls 4.3
Armin Kuster [Mon, 1 Jun 2015 23:12:26 +0000 (16:12 -0700)]
neon: fix compat issues with gnutls 4.3

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agologging.bbclass: avoid bashism in bbdebug()
Patrick Ohly [Mon, 15 Jun 2015 08:20:49 +0000 (10:20 +0200)]
logging.bbclass: avoid bashism in bbdebug()

Checking the bbdebug() debug level parameter with a regular
test expression only works in bash. Using tr to filter out
digits and then checking whether anything is left achieves
the same result and is more portable.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodistutils: regenerate pyc files after being modified by sed
Alejandro Hernandez [Thu, 11 Jun 2015 15:38:54 +0000 (15:38 +0000)]
distutils: regenerate pyc files after being modified by sed

py files are edited by sed and therefore *.pyc files are recreated on first boot, but if you have a read-only filesystem this is not possible. This patch creates pyc files directly after the py files are modified.

[YOCTO #7722]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Thomas Roos <roosesweb@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosecurity_flags.inc: remove duplicated over-rides
Andre McCurdy [Fri, 12 Jun 2015 22:17:34 +0000 (15:17 -0700)]
security_flags.inc: remove duplicated over-rides

The following over-rides were both defined twice:

  SECURITY_CFLAGS_pn-grub-efi-x86-64-native
  SECURITY_CFLAGS_pn-ltp

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibxml2: Security Advisory - libxml2 - CVE-2015-1819
Yue Tao [Mon, 15 Jun 2015 01:18:52 +0000 (09:18 +0800)]
libxml2: Security Advisory - libxml2 - CVE-2015-1819

for CVE-2015-1819 Enforce the reader to run in constant memory

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 agopiglit: Add missing inclusion of Xutil.h
Otavio Salvador [Mon, 15 Jun 2015 19:31:28 +0000 (16:31 -0300)]
piglit: Add missing inclusion of Xutil.h

The EGL tests rely on Xutil.h being included. Some EGL implementation
does not explitly include it by default and than the build fail.

This fixes the build in imx53qsb board, of meta-fsl-arm, but is a
generic fix.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotzdata: update to 2015e
Armin Kuster [Sun, 14 Jun 2015 05:03:42 +0000 (22:03 -0700)]
tzdata: update to 2015e

merged inc back into recipe.

Changes affecting future time stamps

Morocco will suspend DST from 2015-06-14 03:00 through 2015-07-19 02:00,
not 06-13 and 07-18 as we had guessed.  (Thanks to Milamber.)

Assume Cayman Islands will observe DST starting next year, using US rules.
Although it isn't guaranteed, it is the most likely.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotzcode-native: update to 2015e
Armin Kuster [Sun, 14 Jun 2015 05:03:41 +0000 (22:03 -0700)]
tzcode-native: update to 2015e

merged inc back into recipe.

Changes affecting code

When displaying data, tzselect converts it to the current locale's
encoding if the iconv command works.  (Problem reported by random832.)

tzselect no longer mishandles Dominica, fixing a bug introduced
in Release 2014f.  (Problem reported by Owen Leibman.)

zic -l no longer fails when compiled with -DTZDEFAULT=\"/etc/localtime\".
This fixes a bug introduced in Release 2014f.
(Problem reported by Leonardo Chiquitto.)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodevtool: deploy: fix preservation of symlinks and permissions/ownership
Paul Eggleton [Tue, 16 Jun 2015 16:16:51 +0000 (17:16 +0100)]
devtool: deploy: fix preservation of symlinks and permissions/ownership

It turns out that scp can't be used to copy symlinks because it follows
them instead of copying them, and this is by design (since it emulates
rcp which also behaved this way); the unfortunate result is that
symlinks that point to valid files on the host translate into the host
file being copied to the target (yuck).  The simplest alternative that
does not have this undesirable behaviour is to use tar and pipe it over
ssh.

At the same time, it would be even better if we properly reflect file
permissions and ownership on the target that have been established
within the pseudo environment. We can do this by executing the copy
process under pseudo, which turns out to be quite easy with access to
the pseudo environment set up by the build system.

Fixes [YOCTO #7868].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
9 years agolib/oeqa/utils/commands: ensure get_bb_var() works when value contains =
Paul Eggleton [Wed, 17 Jun 2015 15:15:32 +0000 (16:15 +0100)]
lib/oeqa/utils/commands: ensure get_bb_var() works when value contains =

Only split on the first equals character so that values that contain
equals characters (such as FAKEROOTENV) can be retrieved.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
9 years agoclasses/externalsrc: handle tasks with existing lockfiles
Paul Eggleton [Tue, 16 Jun 2015 13:49:00 +0000 (14:49 +0100)]
classes/externalsrc: handle tasks with existing lockfiles

We need to ensure we add a leading space to the value we are prepending
here in case lockfiles already has a value.

Fixes [YOCTO #7813].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
9 years agorecipetool: appendfile: fix file command error handling
Paul Eggleton [Tue, 9 Jun 2015 16:08:43 +0000 (17:08 +0100)]
recipetool: appendfile: fix file command error handling

* It turns out that not all versions of the file command support the -E
  option - the version in Ubuntu 14.04 doesn't support it for example.
  This option is supposed to force file to return an error if the file
  can't be opened - since we can't rely upon it then fall back to
  looking at the output instead. (The results of this issue were simply
  that we didn't notice if the file was executable and give a warning,
  which tripped an oe-selftest failure - so it was minor.)
* If we receive an error there's not much point looking at the output to
  see what type was returned because there wasn't one.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
9 years agorecipetool: appendfile: clarify help text
Paul Eggleton [Tue, 26 May 2015 10:13:50 +0000 (11:13 +0100)]
recipetool: appendfile: clarify help text

Add a long description and tweak some of the argument descriptions so
that it's clearer what the appendfile subcommand does and how it works.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
9 years agodevtool: use DevtoolError for error handling
Markus Lehtonen [Wed, 27 May 2015 14:59:09 +0000 (17:59 +0300)]
devtool: use DevtoolError for error handling

Use DevtoolError exception more widely for handling error cases. This
exception is now caught in the main script and raising it can be used to
exit with an error. This hopefully simplifies error handling. The
change also makes exit codes more consistent, always returning '1' when
an error occurs.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: remove some unused return values
Markus Lehtonen [Wed, 27 May 2015 14:40:49 +0000 (17:40 +0300)]
devtool: remove some unused return values

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: split out 'patch' update mode into a separate function
Markus Lehtonen [Mon, 25 May 2015 12:12:43 +0000 (15:12 +0300)]
devtool: split out 'patch' update mode into a separate function

Continue refactoring of update_recipe() by splitting out the 'patch'
mode into a separate function.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: split out 'srcrev' update mode into a separate function
Markus Lehtonen [Fri, 22 May 2015 13:41:27 +0000 (16:41 +0300)]
devtool: split out 'srcrev' update mode into a separate function

Refactor update_recipe() (i.e. the implementation of the update-recipe
command)  by splitting out the 'srcrev' into a distinct function.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: slight simplification of path splitting logic
Markus Lehtonen [Thu, 28 May 2015 13:00:52 +0000 (16:00 +0300)]
devtool: slight simplification of path splitting logic

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: simplify few conditionals a bit
Markus Lehtonen [Wed, 27 May 2015 14:27:56 +0000 (17:27 +0300)]
devtool: simplify few conditionals a bit

Just refactor the code.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: simplify the logic of determining patches to be removed
Markus Lehtonen [Thu, 21 May 2015 15:04:01 +0000 (18:04 +0300)]
devtool: simplify the logic of determining patches to be removed

A slight simplification of the code.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: update-recipe: do rev parsing in a separate function
Markus Lehtonen [Thu, 21 May 2015 12:46:14 +0000 (15:46 +0300)]
devtool: update-recipe: do rev parsing in a separate function

Split out the logic of determining "initial rev" and "update rev" into a
separate function.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: refactor bb task execution into a separate class
Markus Lehtonen [Tue, 12 May 2015 13:39:31 +0000 (16:39 +0300)]
devtool: refactor bb task execution into a separate class

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: fix wrong indentation
Markus Lehtonen [Thu, 21 May 2015 14:47:13 +0000 (17:47 +0300)]
devtool: fix wrong indentation

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agopackagedata: Fix to ensure variables expand correctly
Richard Purdie [Thu, 11 Jun 2015 22:06:56 +0000 (23:06 +0100)]
packagedata: Fix to ensure variables expand correctly

If we set unsuffixed variables here there is a chance they could clobber
override versions of that variable, e.g. DESCRIPTION could clobber
DESCRIPTION_<pkgname>. We therefore don't clobber for the unsuffixed
variable versions by using the parsing flag to setVar.

This becomes a problem with the modifications to bitbake to
have continual expansion of the datastore, its about the one place this
turns out to be problematic.

The parameter to setVar works with current bitbake even though
we don't have the new API since it gets swallowed by the logging code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>