lh | 758261d | 2023-07-13 05:52:04 -0700 | [diff] [blame^] | 1 | def 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 | |||||
12 | LIBSELINUX = "${@target_selinux(d, 'libselinux')}" |