Patchwork [1/2] blacklist: fix typo in name

login
register
mail settings
Submitter Mark Hatle
Date May 9, 2012, 8 p.m.
Message ID <2fda0d691f53c8613a1510e16bcb81b999d12331.1336593352.git.mark.hatle@windriver.com>
Download mbox | patch
Permalink /patch/27387/
State New
Headers show

Comments

Mark Hatle - May 9, 2012, 8 p.m.
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 |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 meta/classes/blacklist.bbclass

Patch

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