diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-05-09 10:21:35 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-11 17:50:49 +0100 |
commit | 866424804ec70a269f5224147ff1449f9993e0ac (patch) | |
tree | c2d3f6ad633f89495843227e9080e5857878ac0e /meta/classes | |
parent | 710f12e1cdba3cddf2e22660f9be7d669d50f0f8 (diff) | |
download | poky-866424804ec70a269f5224147ff1449f9993e0ac.tar.gz |
blacklist: fix typo in name
(From OE-Core rev: 02a5fe21cad2ec29268de7f3a556bb827f726998)
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Import directly from meta-openembedded commit: a63c374cdc785ade69d2998978d08280e671dc1f
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/blacklist.bbclass | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/classes/blacklist.bbclass b/meta/classes/blacklist.bbclass new file mode 100644 index 0000000000..7bf4a73a9a --- /dev/null +++ b/meta/classes/blacklist.bbclass | |||
@@ -0,0 +1,20 @@ | |||
1 | # anonymous support class from angstrom | ||
2 | # | ||
3 | # Features: | ||
4 | # | ||
5 | # * blacklist handling, set ANGSTROM_BLACKLIST_pn-blah = "message" | ||
6 | # | ||
7 | |||
8 | python () { | ||
9 | import bb | ||
10 | |||
11 | blacklist = bb.data.getVar("ANGSTROM_BLACKLIST", d, 1) | ||
12 | pkgnm = bb.data.getVar("PN", d, 1) | ||
13 | distro = bb.data.getVar("DISTRO", d, 1) | ||
14 | |||
15 | if blacklist: | ||
16 | bb.note("%s DOES NOT support %s because %s" % (distro,pkgnm, blacklist)) | ||
17 | raise bb.parse.SkipPackage("%s DOES NOT support %s because %s" % (distro,pkgnm, blacklist)) | ||
18 | |||
19 | } | ||
20 | |||