summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorSaul Wold <Saul.Wold@windriver.com>2022-02-04 09:01:40 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-21 23:37:27 +0000
commit297def3be506ad974bde896768c2abb7c5264749 (patch)
tree3ca7e025790687b0d13e1cab9596b87f793330cc /meta/classes/base.bbclass
parented198efba4832f96e6835d0d6700b0408b0c2d43 (diff)
downloadpoky-297def3be506ad974bde896768c2abb7c5264749.tar.gz
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>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index de5135cf6b..87a4cb5fc7 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -438,6 +438,14 @@ python () {
438 if os.path.normpath(d.getVar("WORKDIR")) != os.path.normpath(d.getVar("B")): 438 if os.path.normpath(d.getVar("WORKDIR")) != os.path.normpath(d.getVar("B")):
439 d.appendVar("PSEUDO_IGNORE_PATHS", ",${B}") 439 d.appendVar("PSEUDO_IGNORE_PATHS", ",${B}")
440 440
441 # To add a recipe to the skip list , set:
442 # SKIP_RECIPE[pn] = "message"
443 pn = d.getVar('PN')
444 skip_msg = d.getVarFlag('SKIP_RECIPE', pn)
445 if skip_msg:
446 bb.debug(1, "Skipping %s %s" % (pn, skip_msg))
447 raise bb.parse.SkipRecipe("Recipe will be skipped because: %s" % (skip_msg))
448
441 # Handle PACKAGECONFIG 449 # Handle PACKAGECONFIG
442 # 450 #
443 # These take the form: 451 # These take the form: