mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
bitbake: bitbake: tests: Add tests for BBMASK in multiconfig
Adds a test to validate that multiconfigs can independently mask off recipes by setting BBMASK. See the test description for further information about how the test works. (Bitbake rev: 513fc2dddf13d5e344162c26d89d2dde2fe85634) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
59fb65f742
commit
c90dd50939
@@ -1,7 +1,8 @@
|
||||
CACHE = "${TOPDIR}/cache"
|
||||
THISDIR = "${@os.path.dirname(d.getVar('FILE'))}"
|
||||
COREBASE := "${@os.path.normpath(os.path.dirname(d.getVar('FILE')+'/../../'))}"
|
||||
BBFILES = "${COREBASE}/recipes/*.bb"
|
||||
EXTRA_BBFILES ?= ""
|
||||
BBFILES = "${COREBASE}/recipes/*.bb ${EXTRA_BBFILES}"
|
||||
PROVIDES = "${PN}"
|
||||
PN = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[0]}"
|
||||
PF = "${BB_CURRENT_MC}:${PN}"
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
TMPDIR = "${TOPDIR}/mc1/"
|
||||
BBMASK += "recipes/fails-mc/fails-mc1.bb"
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
TMPDIR = "${TOPDIR}/mc2/"
|
||||
BBMASK += "recipes/fails-mc/fails-mc2.bb"
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
python () {
|
||||
if d.getVar("BB_CURRENT_MC") == "mc1":
|
||||
bb.fatal("Multiconfig is mc1")
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
python () {
|
||||
if d.getVar("BB_CURRENT_MC") == "mc2":
|
||||
bb.fatal("Multiconfig is mc2")
|
||||
}
|
||||
Reference in New Issue
Block a user