mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
The getVar() defaults to expanding by default, thus remove the True option from all getVar() calls. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
13 lines
389 B
Plaintext
13 lines
389 B
Plaintext
def target_selinux(d, truevar = 'selinux', falsevar = ''):
|
|
if not bb.utils.contains("DISTRO_FEATURES", "selinux", True, False, d):
|
|
return falsevar
|
|
|
|
pn = d.getVar("PN")
|
|
type = pn.replace(d.getVar("BPN"), "")
|
|
if type in ("-native", "nativesdk-", "-cross", "-crosssdk"):
|
|
return falsevar
|
|
|
|
return truevar
|
|
|
|
LIBSELINUX = "${@target_selinux(d, 'libselinux')}"
|