angstrom.bbclass : a utility bbclass for angstrom, currently implements
authorGraeme Gregory <dp@xora.org.uk>
Thu, 16 Jul 2009 13:31:43 +0000 (14:31 +0100)
committerGraeme Gregory <dp@xora.org.uk>
Thu, 16 Jul 2009 13:31:43 +0000 (14:31 +0100)
a recipe blacklister

classes/angstrom.bbclass [new file with mode: 0644]

diff --git a/classes/angstrom.bbclass b/classes/angstrom.bbclass
new file mode 100644 (file)
index 0000000..4a810a6
--- /dev/null
@@ -0,0 +1,19 @@
+# anonymous support class for 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)
+
+    if blacklist:
+       bb.note("Angstrom DOES NOT support %s because %s" % (pkgnm, blacklist))
+        raise bb.parse.SkipPackage("Angstrom DOES NOT support %s because %s" % (pkgnm, blacklist))
+
+}
+