From 3e61a141fffa4135948896ad5996e6a30c1eccd9 Mon Sep 17 00:00:00 2001 From: "bk0121.shin" Date: Fri, 24 Jul 2015 21:16:30 +0900 Subject: [PATCH] security: support extension build Change-Id: I0f05f0d6f0a74c97d6703185297201b931b97cea Signed-off-by: bk0121.shin --- security/Makefile | 4 +++- security/smack/Makefile | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/security/Makefile b/security/Makefile index a5918e0..a60d14b 100644 --- a/security/Makefile +++ b/security/Makefile @@ -14,10 +14,12 @@ obj-y += commoncap.o obj-$(CONFIG_MMU) += min_addr.o # Object file lists +ifndef CONFIG_MARU_EXTENSION_SOURCE obj-$(CONFIG_SECURITY) += security.o capability.o +obj-$(CONFIG_SECURITY_SMACK) += smack/built-in.o +endif obj-$(CONFIG_SECURITYFS) += inode.o obj-$(CONFIG_SECURITY_SELINUX) += selinux/built-in.o -obj-$(CONFIG_SECURITY_SMACK) += smack/built-in.o obj-$(CONFIG_AUDIT) += lsm_audit.o obj-$(CONFIG_SECURITY_TOMOYO) += tomoyo/built-in.o obj-$(CONFIG_SECURITY_APPARMOR) += apparmor/built-in.o diff --git a/security/smack/Makefile b/security/smack/Makefile index 67a63aa..6a1931e 100644 --- a/security/smack/Makefile +++ b/security/smack/Makefile @@ -2,6 +2,8 @@ # Makefile for the SMACK LSM # +ifndef CONFIG_MARU_EXTENSION_SOURCE obj-$(CONFIG_SECURITY_SMACK) := smack.o smack-y := smack_lsm.o smack_access.o smackfs.o +endif -- 2.7.4