|
@@ -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) ;
|