]> code.ossystems Code Review - openembedded-core.git/commitdiff
blacklist: fix typo in name
authorMark Hatle <mark.hatle@windriver.com>
Wed, 9 May 2012 15:21:35 +0000 (10:21 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 May 2012 16:49:06 +0000 (17:49 +0100)
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>
meta/classes/blacklist.bbclass [new file with mode: 0644]

diff --git a/meta/classes/blacklist.bbclass b/meta/classes/blacklist.bbclass
new file mode 100644 (file)
index 0000000..7bf4a73
--- /dev/null
@@ -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))
+
+}
+