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:
Yi Zhao 2020-04-02 17:12:44 +08:00 committed by Joe MacDonald
parent 03baa60e37
commit 83eac4de1a

View File

@ -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