diff options
author | Saul Wold <Saul.Wold@windriver.com> | 2022-02-04 09:01:40 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-21 23:37:27 +0000 |
commit | 297def3be506ad974bde896768c2abb7c5264749 (patch) | |
tree | 3ca7e025790687b0d13e1cab9596b87f793330cc /meta/classes/blacklist.bbclass | |
parent | ed198efba4832f96e6835d0d6700b0408b0c2d43 (diff) | |
download | poky-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/blacklist.bbclass')
-rw-r--r-- | meta/classes/blacklist.bbclass | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/meta/classes/blacklist.bbclass b/meta/classes/blacklist.bbclass deleted file mode 100644 index dc794228ff..0000000000 --- a/meta/classes/blacklist.bbclass +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | # anonymous support class from originally from angstrom | ||
2 | # | ||
3 | # To use the blacklist, a distribution should include this | ||
4 | # class in the INHERIT_DISTRO | ||
5 | # | ||
6 | # No longer use ANGSTROM_BLACKLIST, instead use a table of | ||
7 | # recipes in PNBLACKLIST | ||
8 | # | ||
9 | # Features: | ||
10 | # | ||
11 | # * To add a package to the blacklist, set: | ||
12 | # PNBLACKLIST[pn] = "message" | ||
13 | # | ||
14 | |||
15 | python () { | ||
16 | blacklist = d.getVarFlag('PNBLACKLIST', d.getVar('PN')) | ||
17 | |||
18 | if blacklist: | ||
19 | raise bb.parse.SkipRecipe("Recipe is blacklisted: %s" % (blacklist)) | ||
20 | } | ||