]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agomesa-demos: provide option for disabling GLX demos
Awais Belal [Thu, 19 May 2016 11:26:59 +0000 (16:26 +0500)]
mesa-demos: provide option for disabling GLX demos

There are platforms that default to EGL only configurations
in which case the GLX applications are not required
at all. Allow the user to control generation of these
demos as needed through a configure switch.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel: moves KERNEL_SRC_PATH to bitbake.conf
Ming Liu [Thu, 19 May 2016 11:05:50 +0000 (13:05 +0200)]
kernel: moves KERNEL_SRC_PATH to bitbake.conf

"/usr/src/kernel" is being hard-coded in multiple recipes so far, move its
definition to bitbake.conf.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agozip: update SRC_URI
Ross Burton [Thu, 19 May 2016 10:43:18 +0000 (11:43 +0100)]
zip: update SRC_URI

The infozip FTP server appears to have been taken down, so change the SRC_URI to
point at their SourceForge project.

Also as the SRC_URI can't be generated from the version and there is no other
user of the .inc, merge the .bb and .inc together.

[ YOCTO #9655 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agounzip: update SRC_URI
Ross Burton [Thu, 19 May 2016 10:43:17 +0000 (11:43 +0100)]
unzip: update SRC_URI

The infozip FTP server appears to have been taken down, so change the SRC_URI to
point at their SourceForge project.

[ YOCTO #9655 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibgudev: fix upstream check
Maxin B. John [Thu, 19 May 2016 13:43:08 +0000 (16:43 +0300)]
libgudev: fix upstream check

Provide UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX to fix upstream
check.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofreetype: fix upstream check
Maxin B. John [Thu, 19 May 2016 13:43:07 +0000 (16:43 +0300)]
freetype: fix upstream check

Provide UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX for proper
upstream check.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_regex.inc: remove deprecated file
Maxin B. John [Thu, 19 May 2016 13:43:06 +0000 (16:43 +0300)]
package_regex.inc: remove deprecated file

Remove this file as it has been deprecated in the previous release.
New entries should be added to recipes itself.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-uninative: Update to 1.1 tarball (new version of glibc)
Richard Purdie [Tue, 17 May 2016 10:00:31 +0000 (11:00 +0100)]
yocto-uninative: Update to 1.1 tarball (new version of glibc)

Since we have a new version of glibc, upgrade to a new version of
the uninative tarball to ensure we work on recent distributions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorootfs.py: Unify _log_check_warn() and _log_check_error()
Peter Kjellerstedt [Wed, 18 May 2016 22:28:18 +0000 (00:28 +0200)]
rootfs.py: Unify _log_check_warn() and _log_check_error()

Use a common _log_check_common() function (based on the old
_log_check_warn() function) to implement the logic for both
_log_check_warn() and _log_check_error().

The main benefit of this is that now all error messages will be
reported again, not just the first one found. Additionally the output
will now look the same for both error and warning messages.

This removes the context for the error messages. However, since there
was no indication in the output that some of the lines were context,
they were more confusing than helping.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorootfs.py: Reduce spam from _log_check_warn()
Peter Kjellerstedt [Wed, 18 May 2016 22:28:17 +0000 (00:28 +0200)]
rootfs.py: Reduce spam from _log_check_warn()

For each warning found in the log, _log_check_warn() would output a
line stating that it had found a warning, then the actual warning and
finally an empty line. This is quite excessive when there are many
warnings in the log.

With this change the output is instead a line stating how many
warnings were found, followed by the warnings. This makes the output
much more compact and actually much more readable.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorootfs.py: Exclude lines in _log_check_warn() as well
Peter Kjellerstedt [Wed, 18 May 2016 22:28:16 +0000 (00:28 +0200)]
rootfs.py: Exclude lines in _log_check_warn() as well

This will make _log_check_warn() exclude the same lines as
_log_check_error() does.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorootfs.py: Use one way to exclude lines in _log_check_error()
Peter Kjellerstedt [Wed, 18 May 2016 22:28:15 +0000 (00:28 +0200)]
rootfs.py: Use one way to exclude lines in _log_check_error()

Before there were three different ways to exclude a line from being
searched for error messages in _log_check_error(). Now there is only
one: an array of regular expressions. This should make it easy to add
more excludes if nedded.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorootfs.py: Simplify the regular expression used in _log_check_warn()
Peter Kjellerstedt [Wed, 18 May 2016 22:28:14 +0000 (00:28 +0200)]
rootfs.py: Simplify the regular expression used in _log_check_warn()

In commit 0387d095 lines with "NOTE:" in them were excluded from the
log check for warnings. However, those lines were only there in the
first place since the regular expression that is used to find warning
messages explicitly included those lines...

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorootfs.py: Remove _log_check_error() from the RpmRootfs class
Peter Kjellerstedt [Wed, 18 May 2016 22:28:13 +0000 (00:28 +0200)]
rootfs.py: Remove _log_check_error() from the RpmRootfs class

The fact that this function was overridden in the RpmRootfs class
seems to have led to a number of misstakes when changes have been made
to the base function in the Rootfs class. E.g., this change will
properly solve ticket 7789, which was supposedly solved in 38871dc0,
but that change had no effect in practice as the log_check_regex that
was modified for RpmRootfs class was not used by the RpmRootfs version
of _log_check_error()...

The only thing _log_check_error() in RpmRootfs did that the base
function in Rootfs did not do was to skip lines in the log that begin
with a + sign. This has now been moved to the base function instead.

[YOCTO #7789]

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoRevert "rootfs.py: add more info to the warning message"
Peter Kjellerstedt [Wed, 18 May 2016 22:28:12 +0000 (00:28 +0200)]
Revert "rootfs.py: add more info to the warning message"

The reverted commit added a warning with the log line that triggered
the log check for error messages before the warning that states that
an error has been found in the log. However, the error line is output
by the call to bb.fatal() that follows immediately after the original
warning, which makes it redundant. Additionaly, having two warnings
contradicts the intent of commit 8dfdd329 where the log warnings were
tidied up.

This reverts commit f9cf31525fc885e1a0f65bd55654631257f87078.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosysprof: Disable nios2 support
Marek Vasut [Sun, 8 May 2016 21:40:13 +0000 (23:40 +0200)]
sysprof: Disable nios2 support

sysprof does not support nios2 yet, so disable it.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Ley Foon Tan <lftan@altera.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Ross Burton <ross.burton@intel.com>
Cc: Thomas Chou <thomas@wytron.com.tw>
Cc: Walter Goossens <waltergoossens@home.nl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoelfutils-0.148: Fix build with gcc6
Khem Raj [Wed, 18 May 2016 21:56:37 +0000 (21:56 +0000)]
elfutils-0.148: Fix build with gcc6

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd: Create missing sysusers offline
Khem Raj [Wed, 18 May 2016 04:40:21 +0000 (21:40 -0700)]
systemd: Create missing sysusers offline

Some system users which are needed by systemd components were missing
create these users knobbed with relevant packageconfig

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agouseradd.bbclass: Strip trailing ';' in cmd params
Khem Raj [Wed, 18 May 2016 04:20:15 +0000 (21:20 -0700)]
useradd.bbclass: Strip trailing ';' in cmd params

When there are more than 1 packages in a recipe requiring useradd
services, they are concatnated and a ';' is inserted just after
each of the users being added by the packages. A situation arises
in cases where this is controlled by PACKAGECONFIG then we add a
';' separator in the USERADD_PARAM value itself for each packagecofig
since we do not know which one will be picked, we end up in situation
where the final string returned from get_all_cmd_params() appears to be

a; ; b; c;

and then the logic which uses these cmds triggers with ';' as separator
but in this case it will fail after executing useradd 'a' because the next
cmd it will call will be just a whitespace

This is highlighted by the systemd patch to add more users as needed
by systemd 229 components.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomakedevs: fix security issues
Edwin Plauchu [Tue, 17 May 2016 19:26:16 +0000 (14:26 -0500)]
makedevs: fix security issues

This avoids makedevs failure to compile with compiler flags
which elevate common string formatting issues into an error
(-Wformat -Wformat-security -Werror=format-security).

[YOCTO #9549]

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agozip: fix security issues
Edwin Plauchu [Tue, 17 May 2016 19:25:11 +0000 (14:25 -0500)]
zip: fix security issues

This patch avoids zip recipe fails to compile with compiler
flags which elevate common string formatting issues into an
error (-Wformat -Wformat-security -Werror=format-security).

[YOCTO #9552]

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agostat: fix security issues
Edwin Plauchu [Tue, 17 May 2016 19:25:35 +0000 (14:25 -0500)]
stat: fix security issues

This patch avoids stat fails to compile with compiler flags which
elevate common string formatting issues into an error (-Wformat
-Wformat-security -Werror=format-security).

[YOCTO #9550]

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopixman: Fix build on arches not defining FE_INVALID exception
Khem Raj [Wed, 18 May 2016 04:40:22 +0000 (21:40 -0700)]
pixman: Fix build on arches not defining FE_INVALID exception

Nios2 e.g. only supports round to nearest in glibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuildtools-tarball: add nativesdk-locale-base-en-us
Robert Yang [Wed, 18 May 2016 07:43:45 +0000 (00:43 -0700)]
buildtools-tarball: add nativesdk-locale-base-en-us

It is required by python3's bitbake.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuildtools-tarball: replace nativesdk-python with nativesdk-python3
Robert Yang [Wed, 18 May 2016 07:43:44 +0000 (00:43 -0700)]
buildtools-tarball: replace nativesdk-python with nativesdk-python3

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuildtools-tarball: remove nativesdk-python-pexpect
Robert Yang [Wed, 18 May 2016 07:43:43 +0000 (00:43 -0700)]
buildtools-tarball: remove nativesdk-python-pexpect

It was added for testing, and not needed any more after:
4a8a74c62836a20610daf029d4cec0b3087758b2
Author: Robert Yang <liezhi.yang@windriver.com>
Date:   Mon Mar 21 02:25:50 2016 -0700

    gpg_sign.py: get rid of pexpect

So remove it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-git: add it for buildtools-tarball
Robert Yang [Wed, 18 May 2016 07:43:42 +0000 (00:43 -0700)]
python3-git: add it for buildtools-tarball

Need add python3-git to buildtools-tarball for the py3 build.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-gitdb: add it for python3-git
Robert Yang [Wed, 18 May 2016 07:43:41 +0000 (00:43 -0700)]
python3-gitdb: add it for python3-git

Need add python3-git to buildtools-tarball for the py3 build, and the
dependencies chain is:

python3-git -> python3-gitdb

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-async: add it for python3-gitdb
Robert Yang [Wed, 18 May 2016 07:43:40 +0000 (00:43 -0700)]
python3-async: add it for python3-gitdb

Need add python3-git to buildtools-tarball for the py3 build, and the
dependencies chain is:

python3-git -> python3-gitdb -> python3-async

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-smmap: add it for python3-gitdb
Robert Yang [Wed, 18 May 2016 07:43:39 +0000 (00:43 -0700)]
python3-smmap: add it for python3-gitdb

Need add python3-git to buildtools-tarball for the py3 build, and the
dependencies chain is:

python3-git -> python3-gitdb -> python3-smmap

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agouseradd: use bindir_native for pseudo PATH
Martin Jansa [Wed, 18 May 2016 09:57:33 +0000 (11:57 +0200)]
useradd: use bindir_native for pseudo PATH

* useradd/userdel functions will fail for recipes which override their target prefix
  (e.g. to /opt/foo), because it will try to use pseudo from native-sysroot/opt/foo/bin/pseudo

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssh: Backport fix for CVE-2015-8325
Jussi Kukkonen [Wed, 18 May 2016 12:11:56 +0000 (15:11 +0300)]
openssh: Backport fix for CVE-2015-8325

PAM environment vars must be ignored when UseLogin=yes

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssh: Upgrade 7.1p2 -> 7.2p2
Jussi Kukkonen [Wed, 18 May 2016 12:11:55 +0000 (15:11 +0300)]
openssh: Upgrade 7.1p2 -> 7.2p2

Remove patches that are in the release.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/oe-selftest: Improve listing by reducing unneeded spacing
Humberto Ibarra [Wed, 18 May 2016 16:17:59 +0000 (11:17 -0500)]
scripts/oe-selftest: Improve listing by reducing unneeded spacing

The --list-tests option assumes a terminal of 150 characters wide,
which is clearly wrong. The output for this command is messy and
hard to understand for lower widths. Every command should look
good in a 80 characters terminal.

Unfortunately, this can't be done at the moment. The bad naming of
testcases have made the test names incredibly long.

This patch reduces spacing between columns and shows the tests
names in a concise and understandable way. The format is even the
same one required for running a testcase. Once the testcase naming
improves, this output will look even better.

[Yocto #9534]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-selftest: wic: add test_bmap test case
Ed Bartosh [Wed, 18 May 2016 12:34:19 +0000 (15:34 +0300)]
oe-selftest: wic: add test_bmap test case

Tested generation of .bmap file using wic --bmap command
line option.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: add help for --bmap commandline option
Ed Bartosh [Wed, 18 May 2016 12:34:18 +0000 (15:34 +0300)]
wic: add help for --bmap commandline option

Included description of -m/--bmap option to the help page
produced by 'wic help create'.

[YOCTO #9413]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: implement --bmap option
Ed Bartosh [Wed, 18 May 2016 12:34:17 +0000 (15:34 +0300)]
wic: implement --bmap option

This option enables generation of <image>.bmap file for the
result image using native bmaptool.

[YOCTO #9413]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: add bmaptool to the list of utilities
Ed Bartosh [Wed, 18 May 2016 12:34:16 +0000 (15:34 +0300)]
wic: add bmaptool to the list of utilities

Added bmaptool -> bmap-tools pair to the dictionary
executable -> recipe as bmaptool is going to be used by wic
to generate .bmap file.

[YOCTO #9413]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomkefidisk.sh: mount images as read-only
Raymond Tan [Tue, 17 May 2016 05:41:09 +0000 (13:41 +0800)]
mkefidisk.sh: mount images as read-only

Mount the hddimg and rootfs.img as read-only when creating the bootable
image on the medium. Otherwise, the md5 checksum values of the hddimg will
be altered. As this changed checksum value might cause issue for users
whom would reuse the hddimg.

Signed-off-by: Raymond Tan <raymond.tan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-smartpm: Remove unnecessary error reporting improvement patch
Klauer, Daniel [Tue, 17 May 2016 12:59:25 +0000 (12:59 +0000)]
python-smartpm: Remove unnecessary error reporting improvement patch

The error reporting improvements were merged upstream (smartpm 406541f569)
and refactored later (smartpm 20af0aac33), yet a part of the patch was
kept here (oe-core 5fc580fc44).

Due to the upstream refactoring the patch still applies cleanly, but it
isn't actually needed. The added changes are duplicate or dead code.

Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-smartpm: Don't ignore error if RPM transaction fails without problems
Klauer, Daniel [Tue, 17 May 2016 12:58:04 +0000 (12:58 +0000)]
python-smartpm: Don't ignore error if RPM transaction fails without problems

SmartPM could misinterpret RPM transaction error as success,
if ts.run() (RPM Python API) returns an empty problems list.

This could happen for example if the RPM database is partially corrupted
such that the transaction does not have any problems like conflicts or
missing dependencies, but still can't be committed.

The added patch fixes the problem in the upstream sources;
one of the existing patches has to be adjusted to still apply.

Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-smartpm: Fix channel command --remove-all option (again)
Klauer, Daniel [Tue, 17 May 2016 12:55:39 +0000 (12:55 +0000)]
python-smartpm: Fix channel command --remove-all option (again)

SmartPM's --remove-all option was unusable, because the fix from
commit 03266e89a6 was lost in commit 5fc580fc44. Thus, add a new
patch to fix --remove-all.

It seems like the previous fix was lost by mistake:
Upstream merged the *old* version of the patch (smartpm 406541f569),
and when SmartPM in oe-core was upgraded to the new upstream release,
the --remove-all fix from the *new* patch was not carried over.

Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-numpy: fix build failure with python-matplotlib
Armin Kuster [Tue, 17 May 2016 06:58:37 +0000 (23:58 -0700)]
python-numpy: fix build failure with python-matplotlib

Fix for aarch64, mips64 and ppc64

numpy/core/include/numpy/npy_common.h:149:10: error:
|          #error Unsupported size for type off_t

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooetest.py: Use the real ExportTestContext in exported tests
Mariano Lopez [Mon, 2 May 2016 13:19:19 +0000 (13:19 +0000)]
oetest.py: Use the real ExportTestContext in exported tests

There are parts of the fuctionallity missing when using the
dummy ExportTestContext class in runexported.py.

This changes the use of ExportTestContext dummy class from
runexported.py to the real class in oetest.py.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooetest.py: Add default pscmd to oeTest
Mariano Lopez [Mon, 2 May 2016 13:19:18 +0000 (13:19 +0000)]
oetest.py: Add default pscmd to oeTest

pscmd is used by some tests to get the process
running on the target. If the test are exported
there won't be any pscmd attibute in the oeTest.

This adds "ps" as default pscmd.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestimage.bbclass: Remove exported test
Mariano Lopez [Mon, 2 May 2016 13:19:17 +0000 (13:19 +0000)]
testimage.bbclass: Remove exported test

Exported tests now have their own class, so
the code in testimage is not needed anymore.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/runexported.py: Remove host dumper
Mariano Lopez [Mon, 2 May 2016 13:19:16 +0000 (13:19 +0000)]
oeqa/runexported.py: Remove host dumper

The host dumper is used to get information about the host
running the test when a test fails. This is used for the
autobuilders of Yocto Project.

Now that exported tests have thier own class the host dumper
is not necessary anymore.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestexport.bbclass: Split testimage class
Mariano Lopez [Mon, 2 May 2016 13:19:15 +0000 (13:19 +0000)]
testexport.bbclass: Split testimage class

This adds a new class that only export tests of images,
the code was taken from testimage class and most of it
wasn't modified. Just add some vars for the new class.

testexport class require testimage class to get the
test suites defined for all the images.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/oetest.py: Add class ExportTestContext
Mariano Lopez [Mon, 2 May 2016 13:19:14 +0000 (13:19 +0000)]
oeqa/oetest.py: Add class ExportTestContext

Adding the class is needed to separate the exported test
from the test image; both test run under different conditions,
i.e. an exported test doesn't require to change the signal
handling.

This change adds clasess ExportTestContext and ImageTestContext,
both of them inherits from RuntimeTestContext. Also refactors
RuntimeTestContext class, to keep the code common in this class.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopseudo: Work around issues with glibc 2.24
Richard Purdie [Wed, 18 May 2016 18:28:29 +0000 (19:28 +0100)]
pseudo: Work around issues with glibc 2.24

There are issues with a change made to RTLD_NEXT behaviour in glibc 2.24
and that change was also backported to older glibc versions in some distros
like Fedora 23. This adds a workaround whilst the pseudo maintainer fixes
various issues properly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglibc: Add missing patch hunk back
Richard Purdie [Wed, 18 May 2016 22:13:06 +0000 (23:13 +0100)]
glibc: Add missing patch hunk back

This hunk of patch went missing during the glibc upgrade to 2.24
and without it, uninative-tarball doesn't work properly. This adds
it back so we can spin a new version of uninative.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopkgconfig: Update AM_GLIB_GNU_GETTEXT macro
Jussi Kukkonen [Tue, 17 May 2016 12:18:55 +0000 (15:18 +0300)]
pkgconfig: Update AM_GLIB_GNU_GETTEXT macro

This fixes
  error: m4_copy: won't overwrite defined macro: glib_DEFUN
with glib-2.0 >= 2.48.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agognome-doc-utils: Update AM_GLIB_GNU_GETTEXT macro
Jussi Kukkonen [Tue, 17 May 2016 12:18:54 +0000 (15:18 +0300)]
gnome-doc-utils: Update AM_GLIB_GNU_GETTEXT macro

This fixes
  error: m4_copy: won't overwrite defined macro: glib_DEFUN
with glib-2.0 >= 2.48.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoweston: Upgrade 1.9.0 -> 1.10.0
Jussi Kukkonen [Mon, 16 May 2016 13:22:50 +0000 (16:22 +0300)]
weston: Upgrade 1.9.0 -> 1.10.0

Support for multiple new protocols, many new features:
https://lists.freedesktop.org/archives/wayland-devel/2016-February/027039.html

* Weston now depends on wayland-protocols (which is protocol
  collection split off from weston).
* Remove upstreamed patches, add a patch to fix the wayland-protocols
  path used during build.
* Use HTTPS for tarball download

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowayland-protocols: Add recipe
Jussi Kukkonen [Mon, 16 May 2016 13:22:49 +0000 (16:22 +0300)]
wayland-protocols: Add recipe

wayland-protocols is a collection of Wayland protocols split
out from weston. It is a build dependency for Weston 1.10.
* Added a patch to enable allarch build.
* Use HTTPS for tarball uri.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowayland: Upgrade 1.9.0 -> 1.10.0
Jussi Kukkonen [Mon, 16 May 2016 13:22:48 +0000 (16:22 +0300)]
wayland: Upgrade 1.9.0 -> 1.10.0

Yes, Wayland now depends on another xml parser (just for build time
dtd validation).

Use HTTPS for tarball uri.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglib-2.0: Upgrade 2.46.2 -> 2.48.1
Jussi Kukkonen [Mon, 16 May 2016 13:22:38 +0000 (16:22 +0300)]
glib-2.0: Upgrade 2.46.2 -> 2.48.1

* Remove now unnecessary readlink patches and
  ignore-format-nonliteral-warning.patch
* Port relocate-modules.patch
* Add ${datadir}/gettext/its to FILES_${PN}-dev: this could be done in
  gettext.bbclass but so far glib is the first and only ITS rule
  installer

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc: Security fix CVE-2016-4490
Armin Kuster [Fri, 6 May 2016 07:11:57 +0000 (00:11 -0700)]
gcc: Security fix CVE-2016-4490

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc: Security fix CVE-2016-2226
Armin Kuster [Fri, 6 May 2016 07:11:56 +0000 (00:11 -0700)]
gcc: Security fix CVE-2016-2226

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc: Security fix CVE-2016-4489
Armin Kuster [Fri, 6 May 2016 07:11:55 +0000 (00:11 -0700)]
gcc: Security fix CVE-2016-4489

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc: Security fix CVE-2016-4488
Armin Kuster [Fri, 6 May 2016 07:11:54 +0000 (00:11 -0700)]
gcc: Security fix CVE-2016-4488

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoeudev: remove eudev-hwdb from RRECOMMENDS_eudev
Robert Yang [Mon, 16 May 2016 01:42:21 +0000 (18:42 -0700)]
eudev: remove eudev-hwdb from RRECOMMENDS_eudev

The eudev-hwdb needs 12M after install, this made small images like
core-image-minimal much biggher than before, and may also hurt the
devices which use udev, so remove it RRECOMMENDS_eudev by default.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomesa-demos: OpenVG demos with single frame need eglSwapBuffer
Tom Hochstein [Mon, 16 May 2016 15:35:33 +0000 (10:35 -0500)]
mesa-demos: OpenVG demos with single frame need eglSwapBuffer

sp and text demos rendering single frame. to display the
single frame rendered needed a eglSwapBuffer to diplay to window.
Hence added eglutPostRedisplay to display the frame.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/base: get_lic_checksum_file_list imporve validaton of url's
Aníbal Limón [Wed, 11 May 2016 16:41:55 +0000 (11:41 -0500)]
classes/base: get_lic_checksum_file_list imporve validaton of url's

When specify an URL different that supported file:// the function
returns an empty path causing an exception without notice the user
that the URL is Malformed.

[YOCTO #9211]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocoreutils: fix for native and nativesdk
Dengke Du [Tue, 26 Apr 2016 05:59:19 +0000 (22:59 -0700)]
coreutils: fix for native and nativesdk

The do_install_append is used for moving/renaming for ALTERNATIVE, but
it breaks native, for example there is no ln, but ln.coreutils, that
makes coreutils-native don't work. This patch fixes the problem.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-buildenv-internal: add BBPATH_EXTRA to BB_ENV_EXTRAWHITE_OE
Robert Yang [Mon, 25 Apr 2016 08:47:43 +0000 (01:47 -0700)]
oe-buildenv-internal: add BBPATH_EXTRA to BB_ENV_EXTRAWHITE_OE

So that user can easily make their own conf files such as conf/site.conf
work. For example, poky's default BBPATH in bblayers.conf is:
BBPATH = "${TOPDIR}"
Will change it to:
BBPATH_EXTRA ??= ""
BBPATH = "${BBPATH_EXTRA}${TOPDIR}"

When user sets BBPATH_EXTRA in env to their own dir which contains
conf/site.conf, it will work.

Note, BBPATH_EXTRA must end with ":", we can't set BBPATH as
"${BBPATH_EXTRA}:${TOPDIR}" since the sanity would fail when
BBPATH_EXTRA is null.

[YOCTO #7837]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agognu-efi: set COMPATIBLE_HOST_armv4 to null
Robert Yang [Thu, 21 Apr 2016 06:16:47 +0000 (23:16 -0700)]
gnu-efi: set COMPATIBLE_HOST_armv4 to null

It doesn't build with armv4:
lib1funcs.S: Assembler messages:
Assembler messages:
gnu-efi-3.0.3/lib/arm/lib1funcs.S:140: Error: selected processor does not support `clz r3,r1' in ARM mode
gnu-efi-3.0.3/lib/arm/div64.S:95: Error: selected processor does not support `clz r2,r4' in ARM mode
gnu-efi-3.0.3/lib/arm/lib1funcs.S:140: Error: selected processor does not support `clz r2,r0' in ARM mode
[snip]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocogl-1.0: set COMPATIBLE_HOST_armv4 to null
Robert Yang [Thu, 21 Apr 2016 06:16:47 +0000 (23:16 -0700)]
cogl-1.0: set COMPATIBLE_HOST_armv4 to null

It doesn't build with armv4:
cogl-texture-deprecated.c  -fPIC -DPIC -o deprecated/.libs/cogl-texture-deprecated.o
{standard input}: Assembler messages:
{standard input}:831: Error: selected processor does not support `clz r3,r0' in ARM mode
make[4]: *** [deprecated/cogl-fixed.lo] Error 1
[snip]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssh: change URI to http:
Ross Burton [Mon, 16 May 2016 09:42:24 +0000 (10:42 +0100)]
openssh: change URI to http:

The OpenBSD FTP server isn't accepting connections from wget, which breaks
fetches.  Luckily they also have a HTTP server on the same host.

[ YOCTO #9628 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoperl: use PACKAGESPLITFUNCS instead of populate_packages_prepend
Guojian Zhou [Mon, 16 May 2016 08:53:38 +0000 (16:53 +0800)]
perl: use PACKAGESPLITFUNCS instead of populate_packages_prepend

This is cleaner and leads to more accurate profiles.

Signed-off-by: Guojian Zhou <guojian.zhou@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibsolv: upgrade to 0.6.20
Maxin B. John [Mon, 16 May 2016 12:15:29 +0000 (15:15 +0300)]
libsolv: upgrade to 0.6.20

0.6.19 -> 0.6.20

Added the following patch to fix build with musl:
        0001-Add-fallback-fopencookie-implementation.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibproxy: update to version 0.4.13
Maxin B. John [Mon, 16 May 2016 12:15:28 +0000 (15:15 +0300)]
libproxy: update to version 0.4.13

1. libproxy moved from google-code to github
2. Remove upstreamed patch:
        a) 0001-test-Include-sys-select.h-for-select.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxproto: Upgrade 7.0.28 -> 7.0.29
Jussi Kukkonen [Mon, 16 May 2016 13:22:47 +0000 (16:22 +0300)]
xproto: Upgrade 7.0.28 -> 7.0.29

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoexpat: Upgrade 2.1.0 -> 2.1.1
Jussi Kukkonen [Mon, 16 May 2016 13:22:46 +0000 (16:22 +0300)]
expat: Upgrade 2.1.0 -> 2.1.1

* Remove backported CVE patch
* Update autotools patch
* Update SRC_URI to match current archive type

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibsoup-2.4: Upgrade 2.52.2 -> 2.54.1
Jussi Kukkonen [Mon, 16 May 2016 13:22:45 +0000 (16:22 +0300)]
libsoup-2.4: Upgrade 2.52.2 -> 2.54.1

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agojson-glib: Upgrade 1.0.4 -> 1.2.0
Jussi Kukkonen [Mon, 16 May 2016 13:22:44 +0000 (16:22 +0300)]
json-glib: Upgrade 1.0.4 -> 1.2.0

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoinputproto: Upgrade 2.3.1 -> 2.3.2
Jussi Kukkonen [Mon, 16 May 2016 13:22:43 +0000 (16:22 +0300)]
inputproto: Upgrade 2.3.1 -> 2.3.2

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogsettings-desktop-schemas: Upgrade 3.19.3 -> 3.20.0
Jussi Kukkonen [Mon, 16 May 2016 13:22:42 +0000 (16:22 +0300)]
gsettings-desktop-schemas: Upgrade 3.19.3 -> 3.20.0

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogdk-pixbuf: Upgrade 2.32.3 -> 2.34.0
Jussi Kukkonen [Mon, 16 May 2016 13:22:41 +0000 (16:22 +0300)]
gdk-pixbuf: Upgrade 2.32.3 -> 2.34.0

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopango: Upgrade 1.38.1 -> 1.40.1
Jussi Kukkonen [Mon, 16 May 2016 13:22:40 +0000 (16:22 +0300)]
pango: Upgrade 1.38.1 -> 1.40.1

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglib-networking: Upgrade 2.46.1 -> 2.48.2
Jussi Kukkonen [Mon, 16 May 2016 13:22:39 +0000 (16:22 +0300)]
glib-networking: Upgrade 2.46.1 -> 2.48.2

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosstate: Ensure we sort the value used for SSTATETASKS for determinism
Richard Purdie [Mon, 16 May 2016 21:53:25 +0000 (22:53 +0100)]
sstate: Ensure we sort the value used for SSTATETASKS for determinism

This avoids 'basehash changed' errors with python 3 but could break
build determinism in general.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/oeqa: Update for print statements and file() -> open() for python3 uninative-1.0
Richard Purdie [Mon, 16 May 2016 07:29:52 +0000 (08:29 +0100)]
classes/oeqa: Update for print statements and file() -> open() for python3

Found some more syntax cleanups needed for python3.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa: Print function python3 fixes
Richard Purdie [Sun, 15 May 2016 09:23:25 +0000 (10:23 +0100)]
oeqa: Print function python3 fixes

Use print functions for comptibility with python3.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotcmode-default: Bump glibc,gdb
Khem Raj [Fri, 13 May 2016 16:46:52 +0000 (09:46 -0700)]
tcmode-default: Bump glibc,gdb

glibc 2.24, gdb 7.11

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosecurity_flags: Enable security flags on leafpad, ltp and libuser.
Aníbal Limón [Fri, 13 May 2016 19:49:28 +0000 (14:49 -0500)]
security_flags: Enable security flags on leafpad, ltp and libuser.

Now we have patches that solves the security formatting issues into
those packages.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoleafpad: Fix security formating issues.
Aníbal Limón [Fri, 13 May 2016 19:49:27 +0000 (14:49 -0500)]
leafpad: Fix security formating issues.

[YOCTO #9546]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibuser: Fix security string formatting issues.
Aníbal Limón [Fri, 13 May 2016 19:49:26 +0000 (14:49 -0500)]
libuser: Fix security string formatting issues.

[YOCTO #9547]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoltp: Fixes security string printf on testcases/network/nfsv4/acl/acl1.c
Aníbal Limón [Fri, 13 May 2016 19:49:24 +0000 (14:49 -0500)]
ltp: Fixes security string printf on testcases/network/nfsv4/acl/acl1.c

[YOCTO #9548]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.4: gcc6 build fixes (powerpc and mips)
Bruce Ashfield [Fri, 13 May 2016 16:46:53 +0000 (09:46 -0700)]
linux-yocto/4.4: gcc6 build fixes (powerpc and mips)

Khem provided fixes to fix gcc6 build issues, these are safe for
all gcc versions, so we integrate them directly.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglibc-initial.inc: fix py3 SyntaxError in cfgscript print()
Tim Orling [Sat, 14 May 2016 08:28:42 +0000 (09:28 +0100)]
glibc-initial.inc: fix py3 SyntaxError in cfgscript print()

Update so this works with python3.

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoautotools.bbclass: fix py3 SyntaxError in cfgscript print()
Tim Orling [Sat, 14 May 2016 08:28:39 +0000 (09:28 +0100)]
autotools.bbclass: fix py3 SyntaxError in cfgscript print()

Update so this works with python3.

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/decorators: Use wraps consistently
Richard Purdie [Sat, 14 May 2016 08:26:52 +0000 (09:26 +0100)]
oeqa/decorators: Use wraps consistently

We want the decorator to leave the function names of the test unchanged. Some
decorators are already using wraps for this but not all. Fix this to be consistent
allowing inspection of the test to give the wanted values.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest: add bmap test
Ed Bartosh [Mon, 2 May 2016 12:22:34 +0000 (15:22 +0300)]
selftest: add bmap test

Added test_bmap to imagefeatures tests.
It tests if bmap file is generated for the images and
if the image is sparse.

[YOCTO #9414]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage types: add bmap generation option
Alexander D. Kanevskiy [Mon, 2 May 2016 12:22:33 +0000 (15:22 +0300)]
image types: add bmap generation option

bmap image conversion type allows to create block map files
for sparse images. Bmap file can be used together with bmap-tools
for efficiently flash images to raw devices (hdd or usb drive)

[YOCTO #9414]

Signed-off-by: Alexander D. Kanevskiy <kad@kad.name>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobmap-tools: initial commit, version 3.2
Ed Bartosh [Mon, 2 May 2016 12:22:32 +0000 (15:22 +0300)]
bmap-tools: initial commit, version 3.2

Bmap-tools - tools to generate block map (AKA bmap) and flash images
using bmap. Bmaptool is a generic tool for creating the block map
(bmap) for a file and copying files using the block map.

The idea is that large file containing unused blocks, like raw system
image files, can be copied or flashed a lot faster with bmaptool than
with traditional tools like "dd" or "cp".

[YOCTO #9414]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage_types: add support for zip compression
Patrick Ohly [Fri, 6 May 2016 14:58:44 +0000 (17:58 +0300)]
image_types: add support for zip compression

Support for the other compression format is not always readily
available on all OSes. Using zip instead of, say, xz is less
efficient, but perhaps more user-friendly for users on such OSes.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: use next builtin instead of .next method
Ed Bartosh [Wed, 4 May 2016 13:06:27 +0000 (16:06 +0300)]
wic: use next builtin instead of .next method

Generators in Python 3 don't have .next method. It's recommended
to use 'next' builtin instead. As it also present in Python >= 2.6
it should make wic code compatible with both Python 2 and Python 3.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: don't encode unicode strings
Ed Bartosh [Wed, 4 May 2016 13:06:26 +0000 (16:06 +0300)]
wic: don't encode unicode strings

Removed check for unicode type as it doesn't work in Python 3.
This check is not needed for wic as all its output seem to be
strings. This allows to run code under both pythons.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: decode output of subprocess.communicate
Ed Bartosh [Wed, 4 May 2016 13:06:25 +0000 (16:06 +0300)]
wic: decode output of subprocess.communicate

stdeout and stderr content returned by communicate API has different
types in Python 3(bytes) and Python 2(string). Decoding it to 'utf-8'
makes it unicode on both pythons.

Decoded stdout and stderr output to utf-8 to make the code
working under both Python 2 and Python 3.

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