refpolicy_common: enable PARALLEL_MAKE
PATCH 1/1 refpolicy_common: enable PARALLEL_MAKE
From: Etienne Cordonnier <[email protected]>
Using parallel make threads speeds up the build.
This line was added in https://git.yoctoproject.org/meta-selinux/commit/?id=1139c40cb687deefddc31c5fbc8ab61f3d50402f in 2012.
The parallel build of refpolicy was fixed in 2014 in commit "Fix parallel build of the policy": https://github.com/SELinuxProject/refpolicy/commit/c1c11fa2f8ca03d47adaf31bca4b257459448c19
I've tested a build of core-image-full-cmdline with yocto master branch as well as a custom image and it seems to work without issues.
--- recipes-security/refpolicy/refpolicy_common.inc | 2 -- 1 file changed, 2 deletions(-)
recipes-security/refpolicy/refpolicy_common.inc +0 -2
@@ -103,8 +103,6 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" inherit python3native -PARALLEL_MAKE = "" - DEFAULT_ENFORCING ??= "enforcing" POLICY_NAME ?= "${POLICY_TYPE}"
Signature · 1 line
2.43.0
Hi,
now that this patch is in the master branch, can you please cherry-pick this patch to the scarthgap branch as well?
Thanks
Étienne
Quoted 38 lines · On Tue, Apr 14, 2026 at 9:39 AM <[email protected]> wrote:
From: Etienne Cordonnier <[email protected]>
Using parallel make threads speeds up the build.
This line was added in
https://git.yoctoproject.org/meta-selinux/commit/?id=1139c40cb687deefddc31c5fbc8ab61f3d50402f
in 2012.The parallel build of refpolicy was fixed in 2014 in commit "Fix parallel build of the policy":
https://github.com/SELinuxProject/refpolicy/commit/c1c11fa2f8ca03d47adaf31bca4b257459448c19I've tested a build of core-image-full-cmdline with yocto master branch as well as a custom image and it seems to work without issues.
Signed-off-by Etienne Cordonnier <[email protected]>--- recipes-security/refpolicy/refpolicy_common.inc | 2 -- 1 file changed, 2 deletions(-)recipes-security/refpolicy/refpolicy_common.inc +0
-3@@ -103,8 +103,6 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" inherit python3native -PARALLEL_MAKE = "" - DEFAULT_ENFORCING ??= "enforcing" POLICY_NAME ?= "${POLICY_TYPE}" --2.43.0