summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorGraeme Gregory <dp@xora.org.uk>2009-07-16 14:31:43 +0100
committerGraeme Gregory <dp@xora.org.uk>2009-07-16 14:31:43 +0100
commita254c83d5b2d128a6472f54a57ee0f5a22ae6f18 (patch)
tree634a6e98a27e94c10c7274ae1f6d98d7ab735ca6 /classes
parent947971794669edb52fc9ae3135ca39592c8c43f2 (diff)
angstrom.bbclass : a utility bbclass for angstrom, currently implements
a recipe blacklister
Diffstat (limited to 'classes')
-rw-r--r--classes/angstrom.bbclass19
1 files changed, 19 insertions, 0 deletions
diff --git a/classes/angstrom.bbclass b/classes/angstrom.bbclass
new file mode 100644
index 0000000000..4a810a638a
--- /dev/null
+++ b/classes/angstrom.bbclass
@@ -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))
+
+}
+