summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2016-02-28 22:00:00 -0500
committerNicolas Pitre <nicolas.pitre@linaro.org>2016-03-29 16:30:57 -0400
commitdd92478a15fa3bfd746ee08b4ef59401c1537804 (patch)
tree3577bd3662eb7077ae82878f200e81afabe8c3fc /Makefile
parent23121ca2b56b583c43512e4d7a926343be937714 (diff)
downloadop-kernel-dev-dd92478a15fa3bfd746ee08b4ef59401c1537804.zip
op-kernel-dev-dd92478a15fa3bfd746ee08b4ef59401c1537804.tar.gz
kbuild: build sample modules along with the rest of the kernel
Make sample modules in parallel with the rest of the kernel rather than having them built from the vmlinux target. This makes the build slightly faster, and those modules are properly considered when adjust_autoksyms.sh is executed. Signed-off-by: Nicolas Pitre <nico@linaro.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9f93d25..cec9539 100644
--- a/Makefile
+++ b/Makefile
@@ -940,9 +940,6 @@ endif
ifdef CONFIG_HEADERS_CHECK
$(Q)$(MAKE) -f $(srctree)/Makefile headers_check
endif
-ifdef CONFIG_SAMPLES
- $(Q)$(MAKE) $(build)=samples
-endif
ifdef CONFIG_BUILD_DOCSRC
$(Q)$(MAKE) $(build)=Documentation
endif
@@ -960,6 +957,11 @@ PHONY += autoksyms_recursive
include/generated/autoksyms.h: FORCE
$(Q)$(CONFIG_SHELL) scripts/adjust_autoksyms.sh true
+# Build samples along the rest of the kernel
+ifdef CONFIG_SAMPLES
+vmlinux-dirs += samples
+endif
+
# The actual objects are generated when descending,
# make sure no implicit rule kicks in
$(sort $(vmlinux-deps)): $(vmlinux-dirs) ;
OpenPOWER on IntegriCloud