[OE-core] [PATCH] buildstats: check IMAGE_ROOTFS exists before checking its size

2016-10-18 Thread Mikko Ylinen
). Because of that, check IMAGE_ROOTFS exists before trying to get the size of it. Also, in case of any error catched as err, simply print out a warning. Signed-off-by: Mikko Ylinen --- meta/classes/buildstats.bbclass | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git

[OE-core] [PATCH] useradd-staticids.bbclass: catch missing uid/gid exceptions

2016-10-21 Thread Mikko Ylinen
e UID/GIDs defined. The problem triggers when parsing all recipes (e.g., oe-selftest runs bitbake -p). The right way to handle this is to raise bb.parse.SkipPackage(). This will error correctly once the recipe is needed. Signed-off-by: Mikko Ylinen --- meta/classes/useradd-staticids.bbclass | 5 ++-

[OE-core] [PATCH] gcc-runtime: Enable libmpx for x86-64

2017-03-08 Thread Mikko Ylinen
Intel MPX was recently enabled on x86 (_append_x86) but that didn't enable it on x86-64. Explicitly enable libmpx on x86-64 too. Signed-off-by: Mikko Ylinen --- meta/recipes-devtools/gcc/gcc-runtime.inc | 7 +++ 1 file changed, 7 insertions(+) diff --git a/meta/recipes-devtools/gc

[OE-core] [PATCH] bitbake.conf: whitelist socat as non-fatal host tool

2017-03-13 Thread Mikko Ylinen
oe-git-proxy depends on socat host tool but it's not whitelisted and triggers a 'binary not in PATH' error. Whitelist socat but make it a HOSTTOOLS_NONFATAL since it's not a hard dependency. Signed-off-by: Mikko Ylinen --- meta/conf/bitbake.conf | 2 +- 1 file change

[OE-core] [PATCH v2] bitbake.conf: whitelist socat as non-fatal host tool

2017-03-14 Thread Mikko Ylinen
oe-git-proxy depends on socat host tool but it's not whitelisted and triggers a 'binary not in PATH' error. Whitelist socat but make it a HOSTTOOLS_NONFATAL since it's not a hard dependency. Signed-off-by: Mikko Ylinen --- meta/conf/bitbake.conf | 2 +- 1 file change

[OE-core] [PATCH] systemd: check 'efi' in MACHINE_FEATURES

2017-03-29 Thread Mikko Ylinen
The recipe checks 'efi' in DISTRO_FEATURES but it's a machine feature. Fix the check to use MACHINE_FEATURES to determine whether to enable/disable 'efi' PACKAGECONFIG. Signed-off-by: Mikko Ylinen --- meta/recipes-core/systemd/systemd_232.bb | 3 ++- 1 file changed, 2

Re: [OE-core] [PATCH] systemd: check 'efi' in MACHINE_FEATURES

2017-03-29 Thread Mikko Ylinen
On 30/03/17 02:36, Peter Kjellerstedt wrote: For the record, this is just correcting a regression that was introduced with my change to use bb.utils.filter() where I apparently missed that not all the features were DISTRO_FEATURES… Yes, this was the case. I got a report that 'bootctl' is

Re: [OE-core] [PATCH] systemd: check 'efi' in MACHINE_FEATURES

2017-03-31 Thread Mikko Ylinen
On 30/03/17 19:15, Burton, Ross wrote: On 30 March 2017 at 07:59, Mikko Ylinen <mailto:mikko.yli...@linux.intel.com>> wrote: I'm fine. Perhaps 'efi' should not be a PACKAGECONFIG at all (and unconditionally disabled here) and the functionality (just bootc

[OE-core] [PATCH] classes/populate_sdk_ext: reset TCLIBCAPPEND to get consistent TMPDIR

2017-04-13 Thread Mikko Ylinen
DIR = /tmp-${TCLIBCAPPEND} via defaultsetup.conf and that breaks the functionality in eSDK that expects everything is in /tmp. To get TMPDIR consistent, we also need to reset TCLIBCAPPEND in populate_sdk_ext.bbclass. Fixes: [YOCTO #11298] Signed-off-by: Mikko Ylinen --- meta/classes/populate_sdk_ext.b

Re: [OE-core] [PATCH v2 2/5] image_types_wic: add do_populate_bootfs task

2017-05-12 Thread Mikko Ylinen
Hi Ed, On 11/05/17 15:21, Ed Bartosh wrote: +d.setVar("APPEND", "root=PARTUUID=%s" % partuuid) +bb.build.exec_func('build_efi_cfg', d) The rootfs wic allows you to build multiple rootfs'es in the image. With that, it'd be good to be able to set PARTUUIDs for each of the rootfs

[OE-core] [PATCH] image_types: check COMPRESS_DEPENDS for backwards compatibility

2016-08-29 Thread Mikko Ylinen
To complete the transition/renaming to chained image type CONVERSION while maintaining bacwards compatibility to COMPRESS(ION), make sure also COMPRESS_DEPENDS is checked. Without this, the dependencies for legacy COMPRESSIONTYPES do not get built. Signed-off-by: Mikko Ylinen --- meta/classes

[OE-core] [PATCH] archiver.bbclass: adapt do_unpack_and_patch to RSS

2017-06-05 Thread Mikko Ylinen
nd_patch to RSS by restoring the original STAGING_DIR_NATIVE after WORKDIR is changed to ARCHIVER_WORKDIR. Signed-off-by: Mikko Ylinen --- meta/classes/archiver.bbclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass i

Re: [OE-core] [PATCH] archiver: preserve sysroot paths in configured mode

2017-06-06 Thread Mikko Ylinen
On 06/06/17 18:03, Ross Burton wrote: do_ar_configured alters WORKDIR but also expects to be able to run do_configure, so forcibly expand the paths to the sysroots as otherwise they'll point to a non-existant directory in the temporary WORKDIR. [ YOCTO #11584 ] This patch is not enough beca

[OE-core] [PATCH] runqemu: change terminal settings for valid tty's

2017-06-13 Thread Mikko Ylinen
stty subprocess operations. Signed-off-by: Mikko Ylinen --- scripts/runqemu | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/runqemu b/scripts/runqemu index 311fbebdf4..26328e5b51 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -955,8 +955,8 @@ class Ba

[OE-core] [PATCH] sanity.bbclass: fix AttributeError in mirror format checks

2017-06-30 Thread Mikko Ylinen
mirrors is a list after split() and results in: AttributeError: 'list' object has no attribute 'strip' when the 'mirror values are pairs' check fails. Signed-off-by: Mikko Ylinen --- meta/classes/sanity.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[OE-core] [PATCH v2] sanity.bbclass: fix AttributeError in mirror format checks

2017-07-03 Thread Mikko Ylinen
mirrors is a list after split() and results in: AttributeError: 'list' object has no attribute 'strip' when the 'mirror values are pairs' check fails. Signed-off-by: Mikko Ylinen --- v2: drop redundant .strip() because it's guaranteed str(mirrors) does

[OE-core] [PATCH] package_manager: rpm: remove update-alternatives correctly

2017-09-26 Thread Mikko Ylinen
logging more verbose to better see what's happening (and to get it consistent with opkg's remove() logging). Signed-off-by: Mikko Ylinen --- meta/lib/oe/package_manager.py | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/meta/lib/oe/package_manager.py b

[OE-core] [PATCH v2 0/2] remove update-alternatives correctly

2017-09-27 Thread Mikko Ylinen
v2: move the fix to rootfs.py and implement 2-stage removal based on the feedback. split the fix and the logging improvements in two commits. Mikko Ylinen (2): rootfs.py: remove update-alternatives correctly package_manager: rpm: improve logging meta/lib/oe/package_manager.py | 4

[OE-core] [PATCH 1/2] rootfs.py: remove update-alternatives correctly

2017-09-27 Thread Mikko Ylinen
e symlinks in rootfs. The fix is to first remove all but update-alternatives provider and after that update-alternatives provider in its own remove() call. Signed-off-by: Mikko Ylinen --- meta/lib/oe/rootfs.py | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/m

[OE-core] [PATCH 2/2] package_manager: rpm: improve logging

2017-09-27 Thread Mikko Ylinen
To be able to better debug remove() behaviour, add more logging to rpm calls via bb.note(). The change also makes remove() logging more consistent with other package managers' remove() (e.g., opkg). Signed-off-by: Mikko Ylinen --- meta/lib/oe/package_manager.py | 4 +++- 1 file chang

[OE-core] [PATCH] staging.bbclass: handle postinst-useradd-* fixmes

2017-10-03 Thread Mikko Ylinen
-*. Signed-off-by: Mikko Ylinen --- meta/classes/staging.bbclass | 2 +- meta/classes/useradd.bbclass | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass index d21e198ae8..c479bd93ea 100644 --- a/meta/classes

[OE-core] [PATCH] linux-firmware: make i.MX SDMA split complete

2017-10-10 Thread Mikko Ylinen
:0.0+git0+a61ac5cf83-r0.all * * Solution 1: * - do not ask to install a package providing linux-firmware Make the split complete by installing the license in ${PN}-imx-sdma-license and have the blob packages depend on it. Signed-off-by: Mikko Ylinen --- meta/recipes-kernel/linux-firmware/linux

Re: [OE-core] [PATCH] linux-firmware: make i.MX SDMA split complete

2017-10-11 Thread Mikko Ylinen
Hi, On 11/10/17 17:29, Otavio Salvador wrote: Hello Mikko, On Tue, Oct 10, 2017 at 9:27 AM, Mikko Ylinen wrote: The commit to split i.MX SDMA firmware blobs in their own packages was not complete and results in a failure when trying to install full linux-firmware: * Solver encountered 1