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 <sw0312.kim@samsung.com>
# 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}