mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
selinux.bbclass: remove True option in getVar()
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>
This commit is contained in:
parent
03baa60e37
commit
83eac4de1a
|
|
@ -2,8 +2,8 @@ def target_selinux(d, truevar = 'selinux', falsevar = ''):
|
|||
if not bb.utils.contains("DISTRO_FEATURES", "selinux", True, False, d):
|
||||
return falsevar
|
||||
|
||||
pn = d.getVar("PN", True)
|
||||
type = pn.replace(d.getVar("BPN", True), "")
|
||||
pn = d.getVar("PN")
|
||||
type = pn.replace(d.getVar("BPN"), "")
|
||||
if type in ("-native", "nativesdk-", "-cross", "-crosssdk"):
|
||||
return falsevar
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user