[OE-core] [meta-oe][PATCH] package.bbclass: provide debug sources in externalsrc -dbg packages

2018-05-06 Thread Vignesh Rajendran
The recipes which are using externalsrc method doesn't contain the debug sources in their -dbg packages. Add a handling in copydebugsources function to copy the debugsources for externalsrc -dbg packages. Signed-off-by: Vignesh Rajendran --- meta/classes/externalsrc.bbclass | 3 +++ meta/class

[OE-core] [PATCH] kernel: fix the modules tarball when using usrmerge

2018-05-06 Thread Allen Wild
kernel_do_deploy only uses /lib when creating the modules tarball, creating an empty archive if usrmerge is in distro features because the modules are in /usr/lib. Create the modules tarball from ${D}${root_prefix}/lib instead of ${D}/lib so that it's not empty when usrmerge is enabled. Signed-of

[OE-core] [PATCH] xz: use update-alternatives

2018-05-06 Thread Allen Wild
Installing xz and busybox together may cause conflicts for xz, xzcat, unxz, and their lzma variants. In the default configuration, xzcat is silently replaced with a symlink to busybox. If busybox is compiled with CONFIG_XZ=y, its postinst fails during do_rootfs. Using update-alternatives to xz han