From: Seung-Woo Kim Date: Wed, 4 Dec 2024 04:43:07 +0000 (+0900) Subject: packaging: Check dev_wos macro and build as permissive mode for dev_wos 1 X-Git-Tag: accepted/tizen/unified/20241204.183322^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_unified_x_asan;p=sdk%2Femulator%2Femulator-kernel.git 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 --- 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}