From 02a5fe21cad2ec29268de7f3a556bb827f726998 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Wed, 9 May 2012 10:21:35 -0500 Subject: blacklist: fix typo in name Signed-off-by: Koen Kooi Import directly from meta-openembedded commit: a63c374cdc785ade69d2998978d08280e671dc1f Signed-off-by: Mark Hatle --- meta/classes/blacklist.bbclass | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 meta/classes/blacklist.bbclass diff --git a/meta/classes/blacklist.bbclass b/meta/classes/blacklist.bbclass new file mode 100644 index 000000000..7bf4a73a9 --- /dev/null +++ b/meta/classes/blacklist.bbclass @@ -0,0 +1,20 @@ +# anonymous support class from angstrom +# +# Features: +# +# * blacklist handling, set ANGSTROM_BLACKLIST_pn-blah = "message" +# + +python () { + import bb + + blacklist = bb.data.getVar("ANGSTROM_BLACKLIST", d, 1) + pkgnm = bb.data.getVar("PN", d, 1) + distro = bb.data.getVar("DISTRO", d, 1) + + if blacklist: + bb.note("%s DOES NOT support %s because %s" % (distro,pkgnm, blacklist)) + raise bb.parse.SkipPackage("%s DOES NOT support %s because %s" % (distro,pkgnm, blacklist)) + +} + -- cgit v1.2.3