blob: 13256d5b9b3d50790999899fef49bda710e42d49 [file] [log] [blame]
lh758261d2023-07-13 05:52:04 -07001def target_selinux(d, truevar = 'selinux', falsevar = ''):
2 if not bb.utils.contains("DISTRO_FEATURES", "selinux", True, False, d):
3 return falsevar
4
5 pn = d.getVar("PN")
6 type = pn.replace(d.getVar("BPN"), "")
7 if type in ("-native", "nativesdk-", "-cross", "-crosssdk"):
8 return falsevar
9
10 return truevar
11
12LIBSELINUX = "${@target_selinux(d, 'libselinux')}"