summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/base.bbclass8
-rw-r--r--meta/classes/blacklist.bbclass20
2 files changed, 8 insertions, 20 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:
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
15python () {
16 blacklist = d.getVarFlag('PNBLACKLIST', d.getVar('PN'))
17
18 if blacklist:
19 raise bb.parse.SkipRecipe("Recipe is blacklisted: %s" % (blacklist))
20}