From 297def3be506ad974bde896768c2abb7c5264749 Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Fri, 4 Feb 2022 09:01:40 -0800 Subject: 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 Signed-off-by: Richard Purdie --- meta/classes/blacklist.bbclass | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 meta/classes/blacklist.bbclass (limited to 'meta/classes/blacklist.bbclass') 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 @@ -# 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)) -} -- cgit v1.2.3-54-g00ecf