summaryrefslogtreecommitdiff
path: root/classes/angstrom.bbclass
blob: 4a810a638a131e530c500b5b6fc92b1386a4599c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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))

}