kbuild: build sample modules along with the rest of the kernel
authorNicolas Pitre <nicolas.pitre@linaro.org>
Mon, 29 Feb 2016 03:00:00 +0000 (22:00 -0500)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Tue, 29 Mar 2016 20:30:57 +0000 (16:30 -0400)
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>
Makefile

index 9f93d2595d2507d762b9670d90bd77682d138604..cec9539d30824f084cedcae2fc64ba17fab83eca 100644 (file)
--- 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) ;
This page took 0.025265 seconds and 5 git commands to generate.