refpolicy: switch to python3

* Switch to python3
* Update policy-version to 31 to match selinux 2.9

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 2019-12-23 16:21:52 +08:00 committed by Joe MacDonald
parent c966bce553
commit 555cbd0243

View File

@ -72,12 +72,12 @@ EXTRANATIVEPATH += "bzip2-native"
DEPENDS += "bzip2-replacement-native checkpolicy-native policycoreutils-native semodule-utils-native m4-native"
RDEPENDS_${PN}-dev =+ " \
python \
python3-core \
"
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit pythonnative
inherit python3native
PARALLEL_MAKE = ""
@ -181,7 +181,7 @@ path = ${STAGING_DIR_NATIVE}${sbindir_native}/sefcontext_compile
args = \$@
[end]
policy-version = 30
policy-version = 31
EOF
# Create policy store and build the policy