Re: [OE-core] [PATCH 5/6] runqemu: try symlinks when kernel or rootfs can't be found

2016-09-18 Thread Robert Yang
On 09/16/2016 08:52 PM, Joshua Lock wrote: If the kernel or rootfs names written to the qemuboot.conf can't be found, try and find the symlinked variant of the filename. This will help usability of runqemu, for example where a user downloads an image and associated files as the symlinked names

[OE-core] [PATCH V2 1/8] runqemu: add guidance to resolve issues with missing files

2016-09-18 Thread Robert Yang
From: Joshua Lock When a required binary cannot be found print some guidance pointing to using a sourced OE build environment or a qemuboot.conf file, based on a similar message from the previous shell-based runqemu. Signed-off-by: Joshua Lock --- scripts/runqemu | 19 --- 1 fi

[OE-core] [PATCH V2 7/8] runqemu: use OECORE_NATIVE_SYSROOT from sdk

2016-09-18 Thread Robert Yang
There is no STAGING_DIR_NATIVE or bitbake in a extracted sdk, so check OECORE_NATIVE_SYSROOT and use it. Signed-off-by: Robert Yang --- scripts/runqemu | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/scripts/runqemu b/scripts/runqemu index 10122af..60e2093 10

[OE-core] [PATCH V2 6/8] runqemu: work even if a *.qemuboot.conf isn't found

2016-09-18 Thread Robert Yang
From: Joshua Lock A qemuboot conf file is a convenience but it should still be possible to invoke runqemu without them, especially for examples such as using the SDK with an extracted rootfs via NFS. As read_qemuboot() is always called we need to be sure that function can return cleanly, without

[OE-core] [PATCH V2 0/8] runqemu fixes

2016-09-18 Thread Robert Yang
The following changes since commit d77fe838ab7631a19e90ff4226f0712e54aa4e22: scripts: add tool to scan for bashisms recipe shell scripts (2016-09-16 15:19:31 +0100) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib rbt/rq http://cgit.openembedded

[OE-core] [PATCH V2 5/8] runqemu: try symlinks when kernel or rootfs can't be found

2016-09-18 Thread Robert Yang
From: Joshua Lock If the kernel or rootfs names written to the qemuboot.conf can't be found, try and find the symlinked variant of the filename. This will help usability of runqemu, for example where a user downloads an image and associated files as the symlinked names yet the qemuboot.conf vari

[OE-core] [PATCH V2 4/8] qemuboot: also write the kernel link name to the conf file

2016-09-18 Thread Robert Yang
From: Joshua Lock This will allow runqemu to fall back to trying the link name when a file matching the full name can't be found. Signed-off-by: Joshua Lock --- meta/classes/qemuboot.bbclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/classes/qemuboot.bbclass

[OE-core] [PATCH V2 2/8] qemuboot: write the full kernel filename, not the link name

2016-09-18 Thread Robert Yang
From: Joshua Lock KERNEL_IMAGETYPE gives the filename of a symlink to the kernel, which may not be available i.e. if the user downloads some build artefacts to run on a local machine. It's also possible that the link will point to a newer kernel than was intended for use with the rootfs in the qe

[OE-core] [PATCH V2 3/8] runqemu: clarify an INFO message

2016-09-18 Thread Robert Yang
From: Joshua Lock Make it clearer that we are looking for a file which ends with qemuboot.conf Signed-off-by: Joshua Lock --- scripts/runqemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/runqemu b/scripts/runqemu index c71a47c..6aaae44 100755 --- a/scripts/runqem

[OE-core] [PATCH V2 8/8] runqemu: improve finding of rootfs, kernel and dtb

2016-09-18 Thread Robert Yang
* Search rootfs in the following order: - IMAGE_NAME*.FSTYPE - IMAGE_LINK_NAME*.FSTYPE * Search kernel in the following order: - QB_DEFAULT_KERNEL - KERNEL_IMAGETYPE - KERNEL_IMAGETYPE* * Search dtb in the following order: - QB_DTB - QB_DTB* - *.dtb * Fix DTB, it should only w

[OE-core] [PATCH v2] build-appliance-image: Create image in correct location

2016-09-18 Thread Juro Bystricky
Due to the recipe now using variable IMGDEPLOYDIR instead of DEPLOY_DIR_IMAGE, the final Build Appliance image ended up being created in a wrong location. This patch assures the final ZIP image is created in identical location as before: tmp/deploy/images//Yocto_Build_Apliance.zip [YOCTO#102

[OE-core] [PATCH 01/10] recipetool: create: fix picking up name from local python source tree

2016-09-18 Thread Paul Eggleton
Make use of the extravalues dict to send back other variable values from the python handling plugin, and enable passing back PV and PN. This not only places variable values in the final recipe a bit more consistently with other types of source, it also allows the name and version to be picked up fr

[OE-core] [PATCH 00/10] devtool add / recipetool create fixes

2016-09-18 Thread Paul Eggleton
The following changes since commit d77fe838ab7631a19e90ff4226f0712e54aa4e22: scripts: add tool to scan for bashisms recipe shell scripts (2016-09-16 15:19:31 +0100) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib paule/recipetool-fixes6 http:/

[OE-core] [PATCH 02/10] recipetool: create: improve python recipe license handling

2016-09-18 Thread Paul Eggleton
Try to ensure that for Apache, GPL and LGPL where the values extracted from the "Classifiers" field may not be version-specific, if there is a versioned license in the free-form license field then use that instead. Also insert the free-form license field as a comment in the recipe for the user's re

[OE-core] [PATCH 04/10] recipetool: create: fix error with git tree and no network

2016-09-18 Thread Paul Eggleton
When creating a recipe for an existing local git clone, we attempt to use the fetcher to determine if it supports the SRCREV variable. Unfortunately running this code does a network check to get the latest revision as a direct result of us using '${AUTOREV}' as a default value. If you don't have a

[OE-core] [PATCH 05/10] recipetool: create: detect python autoconf macros

2016-09-18 Thread Paul Eggleton
If python is required then we need to inherit pythonnative (or python3native) otherwise do_configure will probably fail since it won't be able to find python. Signed-off-by: Paul Eggleton --- scripts/lib/recipetool/create_buildsys.py | 16 1 file changed, 16 insertions(+) diff

[OE-core] [PATCH 03/10] recipetool: create: fix name/version extraction from filename

2016-09-18 Thread Paul Eggleton
I ran into an example where recipetool was getting the name/version completely wrong: https://bitbucket.org/sortsmill/libunicodenames/downloads/libunicodenames-1.1.0_beta1.tar.xz >From this it would create a libunicodenames-1.1.0-beta1_1.1.0-beta1.bb file (likely because it couldn't split the fil

[OE-core] [PATCH 08/10] recipetool: create: support git short form URLs

2016-09-18 Thread Paul Eggleton
In keeping with making recipetool create / devtool add as easy to use as possible, users shouldn't have to know how to reformat git short form ssh URLs for consumption by BitBake's fetcher (for example u...@git.example.com:repo.git should be expressed as git://u...@git.example.com/repo.git;protocol

[OE-core] [PATCH 07/10] recipetool: create: tweak license crunching

2016-09-18 Thread Paul Eggleton
Filter out a plain "Licensed under the license" statement, as seen in the capnproto project (and no doubt others). Signed-off-by: Paul Eggleton --- scripts/lib/recipetool/create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/recipetool/create.py b/scripts

[OE-core] [PATCH 10/10] devtool: add: drop superfluous validation for recipe name

2016-09-18 Thread Paul Eggleton
Now that recipeutils.validate_pn() properly validates characters used in the name, we can drop this bit checking for '/' since that's not permitted by validate_pn(). (The FIXME comment here - that I myself apparently wrote - is questionable since that function was clearly never intended to allow '/

[OE-core] [PATCH 09/10] lib/oe/recipeutils: fix invalid character detection in validate_pn()

2016-09-18 Thread Paul Eggleton
* validate_pn() is supposed to protect against invalid characters, fix the function so that it actually does (unanchored regex strikes again...) * However, now that the function is enforcing the restrictions, we do still want to allow + in recipe names (e.g. "gtk+") Signed-off-by: Paul Eggle

[OE-core] [PATCH 06/10] recipetool: create: pick up AC_PROG_SWIG

2016-09-18 Thread Paul Eggleton
AX_PKG_SWIG is not the only commonly-used macro for detecting swig - there's also AC_PROG_SWIG. As per AX_PKG_SWIG, add swig-native to DEPENDS if AC_PROG_SWIG is found in configure.ac. Signed-off-by: Paul Eggleton --- scripts/lib/recipetool/create_buildsys.py | 3 ++- 1 file changed, 2 insertion

[OE-core] [PATCH 00/13] Jethro-next pull request

2016-09-18 Thread Armin Kuster
From: Armin Kuster please consider these security and bug fixes for Jethro. My krogoth-next stagging branch has a complimentary set for the security fixes. http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=akuster/krogoth-next: 7a24bd8a38a2819965b8c1926d33042bd61d1f0b The followin

Re: [OE-core] [PATCH] boost: add support for additional boost libs

2016-09-18 Thread Huang, Jie (Jackie)
No, they were skipped unexpectedly: warning: Graph library does not contain MPI-based parallel components. warning: skipping optional Message Passing Interface (MPI) library. Sorry that I didn’t notice these warnings, I will fix them in v2 so these packages should be created. Thanks, Jackie Fr

Re: [OE-core] [PATCH] e2fsprogs: add packageconfig for -file-

2016-09-18 Thread Randy MacLeod
On 2016-09-17 01:09 AM, Christopher Larson wrote: On Fri, Sep 16, 2016 at 6:37 PM, Randy MacLeod mailto:randy.macl...@windriver.com>> wrote: Without a packageconfig dependency for the file utility, there's a very rare compile faiure caused by a race where the magic.h header file is

Re: [OE-core] [PATCH] e2fsprogs: add packageconfig for -file-

2016-09-18 Thread Christopher Larson
On Sun, Sep 18, 2016 at 7:32 PM, Randy MacLeod wrote: > On 2016-09-17 01:09 AM, Christopher Larson wrote: > >> >> On Fri, Sep 16, 2016 at 6:37 PM, Randy MacLeod >> mailto:randy.macl...@windriver.com>> wrote: >> >> Without a packageconfig dependency for the file utility, there's >> a very

Re: [OE-core] [PATCH] e2fsprogs: add packageconfig for -file-

2016-09-18 Thread Randy MacLeod
On 2016-09-18 10:37 PM, Christopher Larson wrote: On Sun, Sep 18, 2016 at 7:32 PM, Randy MacLeod mailto:randy.macl...@windriver.com>> wrote: On 2016-09-17 01:09 AM, Christopher Larson wrote: On Fri, Sep 16, 2016 at 6:37 PM, Randy MacLeod mailto:randy.macl...@windriver.com>

Re: [OE-core] [PATCH] e2fsprogs: add packageconfig for -file-

2016-09-18 Thread Robert Yang
On 09/19/2016 11:32 AM, Randy MacLeod wrote: On 2016-09-18 10:37 PM, Christopher Larson wrote: On Sun, Sep 18, 2016 at 7:32 PM, Randy MacLeod mailto:randy.macl...@windriver.com>> wrote: On 2016-09-17 01:09 AM, Christopher Larson wrote: On Fri, Sep 16, 2016 at 6:37 PM, Randy Mac

Re: [OE-core] [PATCH] e2fsprogs: add packageconfig for -file-

2016-09-18 Thread Ulf Magnusson
On Mon, Sep 19, 2016 at 5:42 AM, Robert Yang wrote: > > > On 09/19/2016 11:32 AM, Randy MacLeod wrote: >> >> On 2016-09-18 10:37 PM, Christopher Larson wrote: >>> >>> >>> On Sun, Sep 18, 2016 at 7:32 PM, Randy MacLeod >>> mailto:randy.macl...@windriver.com>> wrote: >>> >>> On 2016-09-17 01:09

[OE-core] [PATCH 0/1] qemuppc.conf: adjust kernel console

2016-09-18 Thread Robert Yang
The following changes since commit d77fe838ab7631a19e90ff4226f0712e54aa4e22: scripts: add tool to scan for bashisms recipe shell scripts (2016-09-16 15:19:31 +0100) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib rbt/qemuppc http://cgit.openem

[OE-core] [PATCH 1/1] qemuppc.conf: adjust kernel console

2016-09-18 Thread Robert Yang
Fixed kernel trace when booting: [ 12.825809] random: crng init done [ 13.918323] irq 36: nobody cared (try booting with the "irqpoll" option) [ 13.924821] CPU: 0 PID: 335 Comm: getty Not tainted 4.8.0-rc5-yocto-standard #1 [ 13.930492] Call Trace: [ 13.936214] [cff73f20] [c00790f0] __re

[OE-core] [PATCH v2] ltp: 20160126 -> 20160510

2016-09-18 Thread Wang Xin
1) Upgrade ltp from 20160126 to 20160510. 2) Modify some patches, since the data has been changed. 0011-Rename-sigset-variable-to-sigset1.patch 0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch 3) Delete some patches, since they are no use. 0001-ltp-Don-t-link-against-libf