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>
%{?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