From 10be22f81067c55c836f214a4832942d2f9ab8a8 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Wed, 4 Dec 2024 13:43:07 +0900 Subject: [PATCH] packaging: Check dev_wos macro and build as permissive mode for dev_wos 1 To build permissive mode, macro dev_wos is set to 1. So, check the dev_wos macro and if it is set, build without smack config option. Change-Id: I7da77cf348821d6c66fb2259e5ad20f99012f1c5 Signed-off-by: Seung-Woo Kim --- packaging/emulator-kernel.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packaging/emulator-kernel.spec b/packaging/emulator-kernel.spec index 006befd482ab..4a28ce1ff87d 100644 --- a/packaging/emulator-kernel.spec +++ b/packaging/emulator-kernel.spec @@ -132,6 +132,12 @@ sed -i "s/^EXTRAVERSION.*/EXTRAVERSION = -%{buildarch}/" Makefile # 1.1 build: set config file %ifarch x86_64 %{ix86} + +%if "%{dev_wos}" == "1" +# build as permissive mode +./scripts/config --file arch/x86/configs/%{config_name} -u CONFIG_SECURITY_SMACK -u CONFIG_SECURITY_SMACK_BRINGUP -u CONFIG_SECURITY_SMACK_APPEND_SIGNALS -u CONFIG_DEFAULT_SECURITY_SMACK -e CONFIG_DEFAULT_SECURITY_DAC --set-str CONFIG_DEFAULT_SECURITY "" +%endif + make %{?_smp_mflags} ARCH=%{buildarch} %{config_name} %else make %{?_smp_mflags} %{config_name} -- 2.34.1