[OE-core] [PATCH v2] cmake bbclass: fix support for native builds

2015-06-30 Thread Koen Kooi
For native builds of recipes (e.g. mariadb-native) cmake *must* look outside of its sysroot to find the compiler, so instruct it to do so. Signed-off-by: Koen Kooi --- meta/classes/cmake.bbclass | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/classes/cmake.bbclass

Re: [OE-core] [PATCH] cmake bbclass: fix support for native builds

2015-06-30 Thread Koen Kooi
> Op 30 jun. 2015, om 15:28 heeft Stefan Herbrechtsmeier > het volgende geschreven: > > Am 30.06.2015 um 15:18 schrieb Koen Kooi: >> For native builds of recipes (e.g. mariadb-native) cmake *must* look >> outside of its sysroot to find the compiler, so instruct it to do so. >> >> Signed-off-

[OE-core] [PATCH] kernel-devsrc: missing tools for building modules

2015-06-30 Thread Jian Liu
Some tools under scripts are missed and this can cause error during building modules on the target Build these tools by "make script". Also handle the .debug directories. Signed-off-by: Jian Liu --- meta/recipes-kernel/linux/kernel-devsrc.bb | 6 +- 1 file changed, 5 insertions(+), 1 deleti

Re: [OE-core] [PATCH] buildhistory.bbclass: Check output folder is present before creating files-in-$pkg.txt

2015-06-30 Thread Andre McCurdy
Hi Leonardo, On Tue, Jun 30, 2015 at 4:19 AM, wrote: > From: Leonardo Sandoval > > This is just a safe check to make sure the output folder is present, before > creating the files-in-$pkg.txt file. > > Signed-off-by: Leonardo Sandoval This patch fixes the build issues I was seeing previously.

[OE-core] [PATCH 1/1] expect: replace the STAGING_INCDIR with includedir

2015-06-30 Thread Kai Kang
From: Yue Tao The build path is included in expect-dev rpm package. It should not set the STAGING_INCDIR statically. The includedir will be replaced with appropriate value in different stage. Signed-off-by: Yue Tao Signed-off-by: Kai Kang --- meta/recipes-devtools/expect/expect_5.45.bb | 11 +

[OE-core] [PATCH 0/1] Fix build path in expect-dev pkg

2015-06-30 Thread Kai Kang
The following changes since commit 410a6377493ebf3fa21045c390693f021149c241: bitbake: tests/data: Add new data tests (2015-06-30 09:06:35 +0100) are available in the git repository at: git://git.yoctoproject.org/poky-contrib kangkai/expect http://git.yoctoproject.org/cgit.cgi/poky-contrib/

Re: [OE-core] [PATCH 1/1] ldconfig-native: Add 64-bit flag for ELF64 entries

2015-06-30 Thread wenzong fan
Hi Yuanjie, Could you resend your patch with "Upstream-status:xxx"? Please send the V2 patch directly w/o attachment. Thanks Wenzong On 04/28/2015 03:46 PM, Yuanjie Huang wrote: From: Yuanjie Huang ldconfig-native was grepped from an old version of glibc, and its output lacks neccessary 64b

Re: [OE-core] [PATCH] boost & libxslt: nativesdk is missed in bb file and break

2015-06-30 Thread wenzong fan
Ping ... On 04/30/2015 05:34 PM, Li Zhou wrote: When run , the make will be broken because nativesdk-boost and nativesdk-libxslt don't exist. nativesdk-boost is depended by nativesdk-curlpp. nativesdk-libxslt is depended by nativesdk-python-lxml. In condition that meta-openembedded is compiled i

Re: [OE-core] [PATCH 0/1] util-linux: add runuser PAM config files

2015-06-30 Thread wenzong fan
Ping ... On 05/15/2015 01:29 PM, Shan Hai wrote: Add PAM config files for util-linux to fix a runtime failure of the runuser command. meta/recipes-core/util-linux/util-linux.inc| 8 meta/recipes-core/util-linux/util-linux/runuser-l.pamd | 4 meta/recipes-core/util-l

[OE-core] [PATCH][v2] bootchart2: add runtime dependency

2015-06-30 Thread rongqing.li
From: Roy Li Bootchartd needs the command lsb_release and pidof to run, pidof maybe provided by sysvinit or procpus; To native bootchart2, only pybootchartgui is used, and which is not needed both pidof and lsb_release Signed-off-by: Roy Li --- meta/recipes-devtools/bootchart2/bootchart2_git.b

[OE-core] [PATCH][v2] unzip: drop unzip-6.0_overflow3.diff

2015-06-30 Thread rongqing.li
From: Roy Li 12-cve-2014-9636-test-compr-eb.patch is same as unzip-6.0_overflow3.diff, is to fix CVE-2014-9636, so drop unzip-6.0_overflow3.diff; and update 12-cve-2014-9636-test-compr-eb.patch to fix the patch conflict Signed-off-by: Roy Li --- .../unzip/12-cve-2014-9636-test-compr-eb.patch

Re: [OE-core] [PATCH] image_types.bbclass: add support for multiple ubi sizes

2015-06-30 Thread Pushpal Sidhu
ping - Pushpal On Mon, May 18, 2015 at 4:05 PM, Pushpal Sidhu wrote: > Richard, > > Can I get some feedback/consumption on this? > > - Pushpal > > On Fri, Apr 24, 2015 at 5:23 PM, Pushpal Sidhu wrote: >> Add new FSTYPE called 'multiubi'. This new type has the ability to >> create multple ubi's,

[OE-core] [PATCH] core-image-kernel-dev: Define a correct subset of TEST_SUITES to run for this image

2015-06-30 Thread Saul Wold
Since this is image can be built with both poky and poky-lsb, ensure the correct tests are run in both cases, the auto detection does not quite work right in the poky-lsb case since not all the Posix cmdline utilites are added. Add connman and connman test for network sanity Signed-off-by: Saul W

[OE-core] [PATCH 2/3] lsb: update i586 TARGET_ARCH tests to also handle i686

2015-06-30 Thread Andre McCurdy
Signed-off-by: Andre McCurdy --- meta/recipes-extended/lsb/lsb_4.1.bb | 6 +++--- meta/recipes-extended/lsb/lsbtest_1.0.bb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/recipes-extended/lsb/lsb_4.1.bb b/meta/recipes-extended/lsb/lsb_4.1.bb index 7b2ee78..6215b62

[OE-core] [PATCH 3/3] libav: update i586 TARGET_ARCH test to also handle i686

2015-06-30 Thread Andre McCurdy
Signed-off-by: Andre McCurdy --- meta/recipes-multimedia/libav/libav.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-multimedia/libav/libav.inc b/meta/recipes-multimedia/libav/libav.inc index 6ef273b..d3f4b1b 100644 --- a/meta/recipes-multimedia/libav/libav.i

[OE-core] [PATCH 1/3] gcc: update i586 TARGET_ARCH tests to also handle i686

2015-06-30 Thread Andre McCurdy
Signed-off-by: Andre McCurdy --- meta/recipes-devtools/gcc/gcc-common.inc | 1 + meta/recipes-devtools/gcc/gcc-multilib-config.inc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc index 04c701a..d6

Re: [OE-core] [PATCH v3 2/6] adwaita-icon-theme: Add new icon theme for GTK+

2015-06-30 Thread Burton, Ross
On 30 June 2015 at 16:47, Burton, Ross wrote: > Would it be sensible to split out the high-resolution icons (the 256x256) > into a sub-package so systems that don't have very high resolution screens > don't need to ship them? I guess it comes down to how big they are. > Answering my own questio

Re: [OE-core] cmake update broke mariadb

2015-06-30 Thread akuster808
On 06/30/2015 02:44 AM, Burton, Ross wrote: On 30 June 2015 at 01:39, akuster808 mailto:akuster...@gmail.com>> wrote: eo-core commit f8661aa "cmake: Upgrade 2.8.12.2 -> 3.2.2" broke mariadb in meta-oe. DOes the person who updated cmake need to fix this or the person who is f

[OE-core] [PATCH] buildhistory.bbclass: Check output folder is present before creating files-in-$pkg.txt

2015-06-30 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval This is just a safe check to make sure the output folder is present, before creating the files-in-$pkg.txt file. Signed-off-by: Leonardo Sandoval --- meta/classes/buildhistory.bbclass | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meta/classe

Re: [OE-core] [PATCH] buildhistory.bbclass: Create a files-in-.txt containg recipe's pkg files

2015-06-30 Thread Burton, Ross
On 30 June 2015 at 18:45, Leonardo Sandoval < leonardo.sandoval.gonza...@linux.intel.com> wrote: > Anyway, please remove this patch and try with the one I will send today. > As this is already in master it can't be removed, just send a suitable fix. Ross -- _

Re: [OE-core] fido status

2015-06-30 Thread Andre McCurdy
Hi Joshua, On Tue, Jun 30, 2015 at 8:07 AM, Joshua Lock wrote: > On Mon, 2015-06-29 at 13:25 -0700, Andre McCurdy wrote: >> >> One minor comment on the patches already merged. This change: >> >> http://git.openembedded.org/openembedded >> -core/commit/?h=fido&id=f46c2ac0fd05f0e10258d8f03bfb2ebd

Re: [OE-core] [PATCH] buildhistory.bbclass: Create a files-in-.txt containg recipe's pkg files

2015-06-30 Thread Leonardo Sandoval
Hi Andre On 06/29/2015 08:57 PM, Andre McCurdy wrote: Hi Leonardo, On Thu, Jun 25, 2015 at 6:46 AM, wrote: From: Leonardo Sandoval A file similar (in format) to files-in-image.txt is created for each recipe's build package. This would allow to easily see what the recipe's package may instal

Re: [OE-core] [PATCH] qemu: OpenSUSE 13.2 configure error

2015-06-30 Thread Saul Wold
On 06/30/2015 03:38 AM, Richard Purdie wrote: On Tue, 2015-06-30 at 11:32 +0100, Burton, Ross wrote: On 30 June 2015 at 01:16, Juro Bystricky wrote: Qemu configure tests for the presence/existance of SDL by trying to link against libSDL. libSDL in turn attempts to load

Re: [OE-core] [PATCH v3 3/6] gtk+3: Upgrade to 3.16.3

2015-06-30 Thread Burton, Ross
On 16 June 2015 at 15:22, Jussi Kukkonen wrote: > * Package new binaries gtk3-icon-browser and gtk-encode-symbolic-svg > Should encode-symbolic-svg be in the -dev package? Ross -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedde

Re: [OE-core] [PATCH v3 1/6] gtk-update-icon-cache-native: Upgrade, add binary

2015-06-30 Thread Burton, Ross
On 16 June 2015 at 15:22, Jussi Kukkonen wrote: > * Upgrade to GTK+ 3.16.3 > * Add gtk-encode-symbolic-svg binary: it is used by icon themes > (e.g. Adwaita) to generate png versions of svg icons. > * Depend on librsvg-native for gtk-encode-symbolic-svg > * Add a patch that removes Gdk dependen

Re: [OE-core] [PATCH v3 2/6] adwaita-icon-theme: Add new icon theme for GTK+

2015-06-30 Thread Burton, Ross
On 16 June 2015 at 15:22, Jussi Kukkonen wrote: > +inherit autotools pkgconfig gettext gtk-icon-cache Does this recipe build with allarch? Would it be sensible to split out the high-resolution icons (the 256x256) into a sub-package so systems that don't have very high resolution screens don't ne

Re: [OE-core] [PATCH v3 5/6] sato-icon-theme: Inherit Adwaita, not gnome-icon-theme

2015-06-30 Thread Burton, Ross
On 16 June 2015 at 15:22, Jussi Kukkonen wrote: > -+Inherits=gnome > ++Inherits=Adwaita > Doesn't this also need a RDEPENDS on adwaita-icon-theme? Ross -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openem

Re: [OE-core] [fido][PATCH] gst-plugins-bad: fix CVE-2015-0797

2015-06-30 Thread Joshua Lock
On Mon, 2015-06-29 at 23:06 -0700, Andre McCurdy wrote: > From: Kang Kai > > Backport patch from debian to fix CVE-2015-0797. > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784220 > https://sources.debian.net/data/main/g/gst-plugins-bad0.10/0.10.23 > -7.1+deb7u2/debian/patches/buffer-over

Re: [OE-core] fido status

2015-06-30 Thread Joshua Lock
On Mon, 2015-06-29 at 13:25 -0700, Andre McCurdy wrote: > On Mon, Jun 29, 2015 at 3:19 AM, Joshua Lock > wrote: > > On Sun, 2015-06-28 at 11:14 +0100, Richard Purdie wrote: > > > I just wanted to let people know what is going on with Fido. > > > > > > Joshua has had a branch in testing for a whil

[OE-core] [PATCH] feature-arm-thumb.inc: Fix ARMPKGSFX_THUMB value

2015-06-30 Thread Martin Jansa
* my previous thumb related commit: commit 3e760031f91fb87c3e2f62b77a117eb41164f259 Author: Martin Jansa Date: Wed Feb 18 15:40:35 2015 +0100 feature-arm-thumb.inc: respect ARM_INSTRUCTION_SET when adding thumb suffix unfortunately removed conditional on "thumb" in TUNE_FEATURE

Re: [OE-core] [PATCH] cmake bbclass: fix support for native builds

2015-06-30 Thread Stefan Herbrechtsmeier
Am 30.06.2015 um 15:18 schrieb Koen Kooi: For native builds of recipes (e.g. mariadb-native) cmake *must* look outside of its sysroot to find the compiler, so instruct it to do so. Signed-off-by: Koen Kooi --- meta/classes/cmake.bbclass | 5 + 1 file changed, 5 insertions(+) diff --gi

[OE-core] [PATCH] cmake bbclass: fix support for native builds

2015-06-30 Thread Koen Kooi
For native builds of recipes (e.g. mariadb-native) cmake *must* look outside of its sysroot to find the compiler, so instruct it to do so. Signed-off-by: Koen Kooi --- meta/classes/cmake.bbclass | 5 + 1 file changed, 5 insertions(+) diff --git a/meta/classes/cmake.bbclass b/meta/classes/

Re: [OE-core] [oe] cmake update broke mariadb

2015-06-30 Thread Koen Kooi
> Op 30 jun. 2015, om 12:32 heeft Stefan Herbrechtsmeier > het volgende geschreven: > > Am 30.06.2015 um 11:59 schrieb Koen Kooi: >> Burton, Ross schreef op 30-06-15 om 11:44: >>> On 30 June 2015 at 01:39, akuster808 wrote: >>> eo-core commit f8661aa "cmake: Upgrade 2.8.12.2 -> 3.2.2" br

Re: [OE-core] [PATCH 1/1] sanity.bbclass: Check if /tmp is writable

2015-06-30 Thread Burton, Ross
On 29 June 2015 at 08:20, wrote: > +# Check if /tmp is writable > +from string import ascii_letters > +from random import choice > +filename = "bb_writetest.%s" % os.getpid() > +testfile = os.path.join("/tmp", filename) > Use tempfile.mkstemp() here, we'll get proper unique n

Re: [OE-core] [PATCH] qemu: OpenSUSE 13.2 configure error

2015-06-30 Thread Burton, Ross
On 30 June 2015 at 11:32, Burton, Ross wrote: > The patch should probably only be applied for native and nativesdk builds, > as I suspect that's going to break a target build quite badly. Also, it > needs signed-of-by and upstream-status (inappropriate, I imagine) tags in > the patch header > R

Re: [OE-core] [PATCH] qemu: OpenSUSE 13.2 configure error

2015-06-30 Thread Richard Purdie
On Tue, 2015-06-30 at 11:32 +0100, Burton, Ross wrote: > > On 30 June 2015 at 01:16, Juro Bystricky > wrote: > Qemu configure tests for the presence/existance of SDL by > trying to link against libSDL. libSDL in turn attempts to load > libcrypt which will then attempt to l

Re: [OE-core] [oe] cmake update broke mariadb

2015-06-30 Thread Stefan Herbrechtsmeier
Am 30.06.2015 um 11:59 schrieb Koen Kooi: Burton, Ross schreef op 30-06-15 om 11:44: On 30 June 2015 at 01:39, akuster808 wrote: eo-core commit f8661aa "cmake: Upgrade 2.8.12.2 -> 3.2.2" broke mariadb in meta-oe. DOes the person who updated cmake need to fix this or the person who is feelin

Re: [OE-core] [PATCH] qemu: OpenSUSE 13.2 configure error

2015-06-30 Thread Burton, Ross
On 30 June 2015 at 01:16, Juro Bystricky wrote: > Qemu configure tests for the presence/existance of SDL by > trying to link against libSDL. libSDL in turn attempts to load > libcrypt which will then attempt to load libgpg-error. > The bitbaked libgpg-error will be built with ABI incompatible > w

Re: [OE-core] cmake update broke mariadb

2015-06-30 Thread Koen Kooi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 akuster808 schreef op 30-06-15 om 02:39: > > Hello, > > eo-core commit f8661aa "cmake: Upgrade 2.8.12.2 -> 3.2.2" broke mariadb > in meta-oe. > > DOes the person who updated cmake need to fix this or the person who is > feeling the pain will be fi

Re: [OE-core] [oe] cmake update broke mariadb

2015-06-30 Thread Burton, Ross
On 30 June 2015 at 10:59, Koen Kooi wrote: > CMake Error at CMakeLists.txt:86 (PROJECT): > | The CMAKE_C_COMPILER: > | > | gcc > | > | is not a full path and was not found in the PATH. > I'm definitely not the cmake maintainer and barely understand cmake files, but the new release needs

Re: [OE-core] cmake update broke mariadb

2015-06-30 Thread Burton, Ross
On 30 June 2015 at 01:39, akuster808 wrote: > eo-core commit f8661aa "cmake: Upgrade 2.8.12.2 -> 3.2.2" broke mariadb in > meta-oe. > > DOes the person who updated cmake need to fix this or the person who is > feeling the pain will be fixing it ? > Depends on what the breakage is really. Can y

Re: [OE-core] ltp: vma03 fix the alginment of page size

2015-06-30 Thread wenzong fan
Hi guys, I have updated the patch format and sent V2 for reviewing... Thanks Wenzong On 06/26/2015 02:39 PM, Robert Yang wrote: Hi Dong, Please don't send the patch as attachment, you can use git send-email to send the patch. And please add the "Upstream-Status: Submitted" inside the patch 0

[OE-core] [PATCH v2] ltp: vma03 fix the alginment of page size

2015-06-30 Thread wenzong.fan
From: Chuang Dong the offset the param of mmap2() doesn't align the page size, but, this param allow must be a multiple of the page size as returned by sysconf(_SC_PAGE_SIZE).meanwhile offset * 4096 must be a multiple of the system page size, so modify the input param of offset pgoff = (ULONG_MAX

[OE-core] [wic][PATCH v2 12/20] wic: Refactor prepare_empty_partition API

2015-06-30 Thread Ed Bartosh
Moved code out of prepare_empty_partition* methods to avoid code duplication. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index 0741bb2..4e8a6a8 100644 --- a/scripts/lib/wic/kickstart/cust

[OE-core] [wic][PATCH v2 11/20] wic: Call methods better way

2015-06-30 Thread Ed Bartosh
Shortened code by using getattr to obtain a method to call for prepare_empty_partition_* and prepare_rootfs_* methods. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index e3ae3ce..0741bb2 10

[OE-core] [wic][PATCH v2 17/20] wic: Remove __write_partition method

2015-06-30 Thread Ed Bartosh
Moved code of __write_partition to 'assemble' method. This way it should be more readable. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index d61087a..ca4b1f0 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scri

[OE-core] [wic][PATCH v2 18/20] wic: Fix confusing error message

2015-06-30 Thread Ed Bartosh
Wic throws this message when any of the build artifacts are not provided: Build artifacts not completely specified, exiting. (Use 'wic -e' or 'wic -r -b -k -n' to specify artifacts) It was not clear which artifact was not specified. Reworked the code to specify list of missed artifacts. Now

[OE-core] [wic][PATCH v2 16/20] wic: Refactor fstab update code

2015-06-30 Thread Ed Bartosh
Made the code to backup and restore fstab only if it's modified. Cleaned up the code. Made it more pythonic. Improved code readability by moving code from several tiny methods into one place. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/imager/direct.py b/scripts/lib/wic/imager/direc

[OE-core] [wic][PATCH v2 15/20] wic: Add --uuid partition option

2015-06-30 Thread Ed Bartosh
Added --uuid option to the configuration of wks parser. This option specifies partition UUID. The code to process it is already in place. It was implemented for --use-uuid option. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/image/help.py b/scripts/lib/image/help.py index c8b2fab..0666d80

[OE-core] [wic][PATCH v2 13/20] wic: Remove duplicated code

2015-06-30 Thread Ed Bartosh
Moved duplicated code of geting rootfs size out of prepare_rootfs* methods. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index 4e8a6a8..72f617a 100644 --- a/scripts/lib/wic/kickstart/custom

[OE-core] [wic][PATCH v2 14/20] wic: Fix naming conflict

2015-06-30 Thread Ed Bartosh
Image file name is not unique for the partitions without label. This causes image being rewritten and used as a source for all partitions without label. Wic produces broken or incorrect result images because of that. Added wks line number to the image name to make it unique. Signed-off-by: Ed Bar

[OE-core] [wic][PATCH v2 19/20] wic: Code cleanup: long lines, identation and whitespaces

2015-06-30 Thread Ed Bartosh
Fixed pylint warnings bad-continuation, bad-continuation and line-too-long. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/image/engine.py b/scripts/lib/image/engine.py index 92dcc5a..0dc7920 100644 --- a/scripts/lib/image/engine.py +++ b/scripts/lib/image/engine.py @@ -236,7 +236,10 @@ def

[OE-core] [wic][PATCH v2 20/20] wic: Code cleanup: unused imports

2015-06-30 Thread Ed Bartosh
Fixed pylint warning unused-import Signed-off-by: Ed Bartosh diff --git a/scripts/lib/image/engine.py b/scripts/lib/image/engine.py index 0dc7920..73e8f8b 100644 --- a/scripts/lib/image/engine.py +++ b/scripts/lib/image/engine.py @@ -30,18 +30,10 @@ import os import sys -from abc import ABCM

[OE-core] [wic][PATCH v2 00/20] miscellaneous fixes. poky-conrib:ed/wic/misc

2015-06-30 Thread Ed Bartosh
Hi, This patchset includes usability fixes, new functionality, code cleanup, refactoring and 2 new test cases for wic. The work was done during verification of multi-rootfs EFI images. Fixes YOCTO #7854 and #7912 Changes in v2: - removed global statement in get_bitbake_var. Thanks to Christoph

[OE-core] [wic][PATCH v2 07/20] wic: Turn off debug output for 'bitbake -e'

2015-06-30 Thread Ed Bartosh
Switched debug level to 'normal' to prevent huge 'bitbake -e' output to go into wic debug output. This should help to make wic debug info much more clean and easier to read. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py index 1de6f46..

[OE-core] [wic][PATCH v2 03/20] wic: Test rootfs plugin using rootfs paths

2015-06-30 Thread Ed Bartosh
Added testcase to create multi-rootfs images using rootfs plugin with paths to rootfs directories in wic command line. Signed-off-by: Ed Bartosh diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index 3cfc2ff..0c503ef 100644 --- a/meta/lib/oeqa/selftest/wic.py +++ b/meta

[OE-core] [wic][PATCH v2 08/20] wic: Refactor prepare_rootfs API

2015-06-30 Thread Ed Bartosh
Moved code out of prepare_roots* methods to avoid code duplication. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index 324ea69..489ebe3 100644 --- a/scripts/lib/wic/kickstart/custom_command

[OE-core] [wic][PATCH v2 01/20] wic: Fix misleading message

2015-06-30 Thread Ed Bartosh
Due to usage of incorrect variable wic produces strange message "No image named None found, exiting." when specified canned .wks doesn't exist. Fixed by replacing wks_file -> argv[0] Signed-off-by: Ed Bartosh diff --git a/scripts/wic b/scripts/wic index f9be972..a39ec95 100755 --- a/scripts/wic

[OE-core] [wic][PATCH v2 06/20] wic: Remove annoing debug message

2015-06-30 Thread Ed Bartosh
Wic tries to find plugins in every layer and prints a message 'Plugin dir is not a directory or does not exist' if layer doesn't have plugin dir. It causes a lot of duplicated messages in the debug output, which makes it hard to find useful info there. Signed-off-by: Ed Bartosh diff --git a/scri

[OE-core] [wic][PATCH v2 10/20] wic: Get rid of useless variable 'image_rootfs'

2015-06-30 Thread Ed Bartosh
Removed useless variable 'image_rootfs' from 4 prepare_rootfs_* methods. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index 489ebe3..e3ae3ce 100644 --- a/scripts/lib/wic/kickstart/custom_co

[OE-core] [wic][PATCH v2 09/20] wic: Rename partition images

2015-06-30 Thread Ed Bartosh
Renamed partition images into .p This should make output directory look more organized and easier to understand. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index e093ec5..d61087a 100644 --- a/scripts/lib/wic/utils/parti

[OE-core] [wic][PATCH v2 04/20] wic: Refactor getting bitbake variables

2015-06-30 Thread Ed Bartosh
Wic gets bitbake variables by parsing output of 'bitbake -e' command. This implementation improves this procedure as it runs 'bitbake -e' only when API is called and does it only once, i.e. in a "lazy" way. As parsing results are cached 'bitbake -e' is run only once and results are parsed only onc

[OE-core] [wic][PATCH v2 05/20] wic: Include mount point into image report

2015-06-30 Thread Ed Bartosh
Wic doesn't show any information for the partition if label is not set. Fixed this by adding mount point to the report. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/imager/direct.py b/scripts/lib/wic/imager/direct.py index 2ea7e4e..58a9e9d 100644 --- a/scripts/lib/wic/imager/direct.py

[OE-core] [wic][PATCH v2 02/20] wic: Test rootfs plugin using image recipes

2015-06-30 Thread Ed Bartosh
Added canned wks and testcase to create multi-rootfs images referring bitbake image recipes. Signed-off-by: Ed Bartosh create mode 100644 scripts/lib/image/canned-wks/directdisk-multi-rootfs.wks diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index 5385562..3cfc2ff 1

Re: [OE-core] [wic][PATCH 04/20] wic: Refactor getting bitbake variables

2015-06-30 Thread Ed Bartosh
Hi Cristopher, On Mon, Jun 29, 2015 at 02:48:30PM -0700, Christopher Larson wrote: > On Mon, Jun 29, 2015 at 12:10 PM, Ed Bartosh > wrote: > > > +global _BITBAKE_VARS > > + > > +if image not in _BITBAKE_VARS: > > > > In general, I’d suggest using a cache class/object rather than globals