summaryrefslogtreecommitdiffstats
path: root/security/tomoyo/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-01-07 16:47:42 +0900
committerTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2023-01-07 21:31:35 +0900
commitdf4840c1b880136fea97a1d64724995778c2475f (patch)
tree815483eaf02bdfa8a6a1d36c608c351a107f66e8 /security/tomoyo/Makefile
parenteaf2213ba563b2d74a1f2c13a6b258273f689802 (diff)
downloadlinux-stable-df4840c1b880136fea97a1d64724995778c2475f.tar.gz
linux-stable-df4840c1b880136fea97a1d64724995778c2475f.tar.bz2
linux-stable-df4840c1b880136fea97a1d64724995778c2475f.zip
tomoyo: avoid unneeded creation of builtin-policy.h
When CONFIG_SECURITY_TOMOYO_INSECURE_BUILTIN_SETTING=y, builtin-policy.h is unneeded. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Diffstat (limited to 'security/tomoyo/Makefile')
-rw-r--r--security/tomoyo/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/tomoyo/Makefile b/security/tomoyo/Makefile
index 221eaadffb09..1b18a02ccd2e 100644
--- a/security/tomoyo/Makefile
+++ b/security/tomoyo/Makefile
@@ -13,4 +13,6 @@ quiet_cmd_policy = POLICY $@
$(obj)/builtin-policy.h: $(wildcard $(obj)/policy/*.conf $(srctree)/$(src)/policy/*.conf.default) FORCE
$(call if_changed,policy)
+ifndef CONFIG_SECURITY_TOMOYO_INSECURE_BUILTIN_SETTING
$(obj)/common.o: $(obj)/builtin-policy.h
+endif