security: support extension build
authorbk0121.shin <bk0121.shin@samsung.com>
Fri, 24 Jul 2015 12:16:30 +0000 (21:16 +0900)
committerbk0121.shin <bk0121.shin@samsung.com>
Fri, 24 Jul 2015 12:16:30 +0000 (21:16 +0900)
Change-Id: I0f05f0d6f0a74c97d6703185297201b931b97cea
Signed-off-by: bk0121.shin <bk0121.shin@samsung.com>
security/Makefile
security/smack/Makefile

index a5918e01a4f71a6e97abc664682bd23f75bc544f..a60d14b05d151dcea89b5226080504d0a8e75bff 100644 (file)
@@ -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
index 67a63aaec827bedbb692ec61c44782d5c51f6f3e..6a1931efd46aed7186bdd9942f9ef3c2aed72f3b 100644 (file)
@@ -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