24 lines
877 B
Plaintext
24 lines
877 B
Plaintext
# transfer "SECURITY_CFLAGS:pn-recipe = ..." to
|
|
# "SECURITY_CFLAGS:pn-mlib-recipe = ..." and
|
|
# transfer "SECURITY_CFLAGS:pn-recipe:powerpc = ..."
|
|
# to "SECURITY_CFLAGS:pn-mlib-recipe:powerpc = ..."
|
|
|
|
python transfer_security_cflags () {
|
|
mlprefix = e.data.getVar('MLPREFIX', True)
|
|
|
|
if mlprefix:
|
|
pn = e.data.getVar('PN', True)
|
|
bpn = e.data.getVar('BPN', True)
|
|
cflags = e.data.getVar("SECURITY_CFLAGS:pn-%s" % bpn, True)
|
|
if cflags is not None:
|
|
e.data.setVar("SECURITY_CFLAGS:pn-%s" % pn, cflags)
|
|
|
|
arch = e.data.getVar('HOST_ARCH', True)
|
|
cflags = e.data.getVar("SECURITY_CFLAGS:pn-%s:%s" %(bpn, arch), True)
|
|
if cflags is not None:
|
|
e.data.setVar("SECURITY_CFLAGS:pn-%s:%s" %(pn, arch), cflags)
|
|
}
|
|
|
|
addhandler transfer_security_cflags
|
|
transfer_security_cflags[eventmask] = "bb.event.RecipeParsed"
|