[OPW,kernel,v2] Stop build recurse into not-compiled directories
diff mbox

Message ID 20150107143122.GA24205@winterfell
State New, archived
Headers show

Commit Message

Iulia Manda Jan. 7, 2015, 2:31 p.m. UTC
This patch stops the build from recursing into four directories (acpi, kprobes,
quota, vmw_vsock) where no file gets compiled in a tinyconfig build. This is
speeding up the compilation process.

Signed-off-by: Iulia Manda <iulia.manda21@gmail.com>
---
Changes since v1:
	- add missing CONFIG_ prefix

 arch/x86/kernel/Makefile |    4 ++--
 fs/Makefile              |    2 +-
 net/Makefile             |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

Patch
diff mbox

diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile
index 5d4502c..cb22548 100644
--- a/arch/x86/kernel/Makefile
+++ b/arch/x86/kernel/Makefile
@@ -48,7 +48,7 @@  obj-$(CONFIG_INTEL_TXT)		+= tboot.o
 obj-$(CONFIG_ISA_DMA_API)	+= i8237.o
 obj-$(CONFIG_STACKTRACE)	+= stacktrace.o
 obj-y				+= cpu/
-obj-y				+= acpi/
+obj-$(CONFIG_ACPI)		+= acpi/
 obj-y				+= reboot.o
 obj-$(CONFIG_X86_MSR)		+= msr.o
 obj-$(CONFIG_X86_CPUID)		+= cpuid.o
@@ -70,7 +70,7 @@  obj-$(CONFIG_KEXEC)		+= machine_kexec_$(BITS).o
 obj-$(CONFIG_KEXEC)		+= relocate_kernel_$(BITS).o crash.o
 obj-$(CONFIG_KEXEC_FILE)	+= kexec-bzimage64.o
 obj-$(CONFIG_CRASH_DUMP)	+= crash_dump_$(BITS).o
-obj-y				+= kprobes/
+obj-$(CONFIG_KPROBES)		+= kprobes/
 obj-$(CONFIG_MODULES)		+= module.o
 obj-$(CONFIG_DOUBLEFAULT)	+= doublefault.o
 obj-$(CONFIG_KGDB)		+= kgdb.o
diff --git a/fs/Makefile b/fs/Makefile
index bedff48..fcd62c0 100644
--- a/fs/Makefile
+++ b/fs/Makefile
@@ -48,7 +48,7 @@  obj-$(CONFIG_SYSCTL)		+= drop_caches.o
 
 obj-$(CONFIG_FHANDLE)		+= fhandle.o
 
-obj-y				+= quota/
+obj-$(CONFIG_QUOTA)		+= quota/
 
 obj-$(CONFIG_PROC_FS)		+= proc/
 obj-$(CONFIG_KERNFS)		+= kernfs/
diff --git a/net/Makefile b/net/Makefile
index 38704bd..69eb208 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -68,7 +68,7 @@  obj-$(CONFIG_CEPH_LIB)		+= ceph/
 obj-$(CONFIG_BATMAN_ADV)	+= batman-adv/
 obj-$(CONFIG_NFC)		+= nfc/
 obj-$(CONFIG_OPENVSWITCH)	+= openvswitch/
-obj-$(CONFIG_VSOCKETS)	+= vmw_vsock/
+obj-$(CONFIG_VSOCKETS)		+= vmw_vsock/
 obj-$(CONFIG_NET_MPLS_GSO)	+= mpls/
 obj-$(CONFIG_HSR)		+= hsr/
 ifneq ($(CONFIG_NET_SWITCHDEV),)