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

}