]> code.ossystems Code Review - openembedded-core.git/commit
multiconfig: Enable multiconfig dependencies on oe-core
authorAlejandro Enedino Hernandez Samaniego <alejandro.enedino.hernandez-samaniego@xilinx.com>
Wed, 25 Jul 2018 16:05:51 +0000 (09:05 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Aug 2018 09:06:46 +0000 (10:06 +0100)
commitf71bfe833c657244d2fd07b3b71e86081d7d1c04
treeb3c8067ca18315fad64f29332471ea440daee881
parent51a09ba2729a840a9f2f87b68c7f50a3e6ac0d04
multiconfig: Enable multiconfig dependencies on oe-core

This patch enables multiconfig dependencies (mcdepends) to be used on
recipes using the following format:

task[mcdepends] = "multiconfig:FROM-MC:TO-MC:PN:task-to-depend-on"

For the sake of simplicity consider the following example:

Assuming we have set up multiconfig builds, one for qemux86 and one for
qemuarm, named x86 and arm respectively.

Adding the following line to an image recipe (core-image-sato):
do_image[mcdepends] = "multiconfig:x86:arm:core-image-minimal:do_rootfs"

Would state that core-image-sato:do_image from x86 will depend on
core-image-minimal:do_rootfs from arm so it can be executed.

This patch makes modifications to bitbake.conf to enable mcdepends, and
to sstatesig and staging.bbclass to avoid conflicts between packages from
different multiconfigs.

[YOCTO #10681]

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/staging.bbclass
meta/conf/bitbake.conf
meta/lib/oe/sstatesig.py