packaging: Check dev_wos macro and build as permissive mode for dev_wos 1 37/310137/3 accepted/tizen/unified/20240424.063528
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 23 Apr 2024 02:15:26 +0000 (11:15 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 23 Apr 2024 05:47:26 +0000 (14:47 +0900)
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 <sw0312.kim@samsung.com>
packaging/linux-rpi4.spec

index 360c33b..edc8a01 100644 (file)
@@ -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