From: Seung-Woo Kim Date: Tue, 23 Apr 2024 02:15:26 +0000 (+0900) Subject: packaging: Check dev_wos macro and build as permissive mode for dev_wos 1 X-Git-Tag: accepted/tizen/unified/20240424.063528^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d69d1f6fb8dd89727e8b405bc1a150819fdd44c;p=platform%2Fkernel%2Flinux-rpi.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: I8d4ab45a58161f0f689ad374d5576b0998cccf03 Signed-off-by: Seung-Woo Kim --- diff --git a/packaging/linux-rpi4.spec b/packaging/linux-rpi4.spec index 360c33b..edc8a01 100644 --- a/packaging/linux-rpi4.spec +++ b/packaging/linux-rpi4.spec @@ -134,6 +134,12 @@ counter events as well as various kernel internal events. %{?asan:/usr/bin/gcc-unforce-options} %{?ubsan:/usr/bin/gcc-unforce-options} +%if "%{dev_wos}" == "1" +# build as permissive mode +./scripts/config --file arch/%{buildarch}/configs/%{config_name} -u CONFIG_SECURITY_SMACK -u CONFIG_SECURITY_SMACK_APPEND_SIGNALS -e CONFIG_NETLABEL -e CONFIG_SECURITY_NETWORK +./scripts/config --file arch/%{buildarch}/configs/%{config_name_rt} -u CONFIG_SECURITY_SMACK -u CONFIG_SECURITY_SMACK_APPEND_SIGNALS -e CONFIG_NETLABEL -e CONFIG_SECURITY_NETWORK +%endif + for target in %{variant} %{variant}-rt; do echo "-${target}" > localversion-tizen