Commit bef7d803 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] selinux: Makefile cleanup

From: Stephen Smalley <sds@epoch.ncsc.mil>

Use obj-$(CONFIG_FOO) instead of `ifeq'.
parent 605303cc
...@@ -12,8 +12,6 @@ endif ...@@ -12,8 +12,6 @@ endif
# Object file lists # Object file lists
obj-$(CONFIG_SECURITY) += security.o dummy.o obj-$(CONFIG_SECURITY) += security.o dummy.o
# Must precede capability.o in order to stack properly. # Must precede capability.o in order to stack properly.
ifeq ($(CONFIG_SECURITY_SELINUX),y) obj-$(CONFIG_SECURITY_SELINUX) += selinux/built-in.o
obj-$(CONFIG_SECURITY_SELINUX) += selinux/built-in.o
endif
obj-$(CONFIG_SECURITY_CAPABILITIES) += commoncap.o capability.o obj-$(CONFIG_SECURITY_CAPABILITIES) += commoncap.o capability.o
obj-$(CONFIG_SECURITY_ROOTPLUG) += commoncap.o root_plug.o obj-$(CONFIG_SECURITY_ROOTPLUG) += commoncap.o root_plug.o
...@@ -4,11 +4,9 @@ ...@@ -4,11 +4,9 @@
obj-$(CONFIG_SECURITY_SELINUX) := selinux.o ss/ obj-$(CONFIG_SECURITY_SELINUX) := selinux.o ss/
selinux-objs := avc.o hooks.o selinuxfs.o selinux-y := avc.o hooks.o selinuxfs.o
ifeq ($(CONFIG_SECURITY_NETWORK),y) selinux-$(CONFIG_SECURITY_NETWORK) += netif.o
selinux-objs += netif.o
endif
EXTRA_CFLAGS += -Isecurity/selinux/include EXTRA_CFLAGS += -Isecurity/selinux/include
...@@ -5,9 +5,7 @@ ...@@ -5,9 +5,7 @@
EXTRA_CFLAGS += -Isecurity/selinux/include EXTRA_CFLAGS += -Isecurity/selinux/include
obj-y := ss.o obj-y := ss.o
ss-objs := ebitmap.o hashtab.o symtab.o sidtab.o avtab.o policydb.o services.o ss-y := ebitmap.o hashtab.o symtab.o sidtab.o avtab.o policydb.o services.o
ifeq ($(CONFIG_SECURITY_SELINUX_MLS),y) ss-$(CONFIG_SECURITY_SELINUX_MLS) += mls.o
ss-objs += mls.o
endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment