diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | lib/Kconfig.debug | 2 | ||||
-rw-r--r-- | samples/Kconfig | 11 |
3 files changed, 16 insertions, 0 deletions
@@ -774,6 +774,9 @@ vmlinux: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) $(kallsyms.o) vmlinux.o | |||
774 | ifdef CONFIG_HEADERS_CHECK | 774 | ifdef CONFIG_HEADERS_CHECK |
775 | $(Q)$(MAKE) -f $(srctree)/Makefile headers_check | 775 | $(Q)$(MAKE) -f $(srctree)/Makefile headers_check |
776 | endif | 776 | endif |
777 | ifdef CONFIG_SAMPLES | ||
778 | $(Q)$(MAKE) $(build)=samples | ||
779 | endif | ||
777 | $(call vmlinux-modpost) | 780 | $(call vmlinux-modpost) |
778 | $(call if_changed_rule,vmlinux__) | 781 | $(call if_changed_rule,vmlinux__) |
779 | $(Q)rm -f .old_version | 782 | $(Q)rm -f .old_version |
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 7d16e6433302..c567f219191d 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -498,3 +498,5 @@ config FAULT_INJECTION_STACKTRACE_FILTER | |||
498 | select FRAME_POINTER | 498 | select FRAME_POINTER |
499 | help | 499 | help |
500 | Provide stacktrace filter for fault-injection capabilities | 500 | Provide stacktrace filter for fault-injection capabilities |
501 | |||
502 | source "samples/Kconfig" | ||
diff --git a/samples/Kconfig b/samples/Kconfig new file mode 100644 index 000000000000..b46b4cf4382f --- /dev/null +++ b/samples/Kconfig | |||
@@ -0,0 +1,11 @@ | |||
1 | # samples/Kconfig | ||
2 | |||
3 | menuconfig SAMPLES | ||
4 | bool "Sample kernel code" | ||
5 | help | ||
6 | You can build and test sample kernel code here. | ||
7 | |||
8 | if SAMPLES | ||
9 | |||
10 | |||
11 | endif # SAMPLES | ||