mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
blacklist: Replace class with SKIP_RECIPE variable
Remove the old class and rename VarFlag to SKIP_RECIPE, handling this in base.bbclass for efficiency. This means a separate inherit is no longer needed. This change better describes what the VarFlag is doing since it is implemeted with the SkipRecipe() function. By moving this into base.bbclass we simplify the distro inherit. (From OE-Core rev: a5f735746cba6af41a25aa2aa121453a8bc363b4) Signed-off-by: Saul Wold <saul.wold@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ed198efba4
commit
297def3be5
@@ -438,6 +438,14 @@ python () {
|
||||
if os.path.normpath(d.getVar("WORKDIR")) != os.path.normpath(d.getVar("B")):
|
||||
d.appendVar("PSEUDO_IGNORE_PATHS", ",${B}")
|
||||
|
||||
# To add a recipe to the skip list , set:
|
||||
# SKIP_RECIPE[pn] = "message"
|
||||
pn = d.getVar('PN')
|
||||
skip_msg = d.getVarFlag('SKIP_RECIPE', pn)
|
||||
if skip_msg:
|
||||
bb.debug(1, "Skipping %s %s" % (pn, skip_msg))
|
||||
raise bb.parse.SkipRecipe("Recipe will be skipped because: %s" % (skip_msg))
|
||||
|
||||
# Handle PACKAGECONFIG
|
||||
#
|
||||
# These take the form:
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
# anonymous support class from originally from angstrom
|
||||
#
|
||||
# To use the blacklist, a distribution should include this
|
||||
# class in the INHERIT_DISTRO
|
||||
#
|
||||
# No longer use ANGSTROM_BLACKLIST, instead use a table of
|
||||
# recipes in PNBLACKLIST
|
||||
#
|
||||
# Features:
|
||||
#
|
||||
# * To add a package to the blacklist, set:
|
||||
# PNBLACKLIST[pn] = "message"
|
||||
#
|
||||
|
||||
python () {
|
||||
blacklist = d.getVarFlag('PNBLACKLIST', d.getVar('PN'))
|
||||
|
||||
if blacklist:
|
||||
raise bb.parse.SkipRecipe("Recipe is blacklisted: %s" % (blacklist))
|
||||
}
|
||||
Reference in New Issue
Block a user