From: Mathieu Desnoyers Date: Fri, 19 Oct 2007 06:41:07 +0000 (-0700) Subject: markers: Add samples subdir X-Git-Tag: v2.6.24-rc1~147 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=267c4025f2e198a4e551556a6db31a554ca51814;p=linux-2.6 markers: Add samples subdir Begin infrastructure for kernel code samples in the samples/ directory. Add its Kconfig and Kbuild files. Source its Kconfig file in all arch/ Kconfigs. Signed-off-by: Randy Dunlap Signed-off-by: Mathieu Desnoyers Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/Makefile b/Makefile index 529b9048d9..68ef80b303 100644 --- a/Makefile +++ b/Makefile @@ -773,6 +773,9 @@ endef vmlinux: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) $(kallsyms.o) vmlinux.o FORCE ifdef CONFIG_HEADERS_CHECK $(Q)$(MAKE) -f $(srctree)/Makefile headers_check +endif +ifdef CONFIG_SAMPLES + $(Q)$(MAKE) $(build)=samples endif $(call vmlinux-modpost) $(call if_changed_rule,vmlinux__) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 7d16e64333..c567f21919 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -498,3 +498,5 @@ config FAULT_INJECTION_STACKTRACE_FILTER select FRAME_POINTER help Provide stacktrace filter for fault-injection capabilities + +source "samples/Kconfig" diff --git a/samples/Kconfig b/samples/Kconfig new file mode 100644 index 0000000000..b46b4cf438 --- /dev/null +++ b/samples/Kconfig @@ -0,0 +1,11 @@ +# samples/Kconfig + +menuconfig SAMPLES + bool "Sample kernel code" + help + You can build and test sample kernel code here. + +if SAMPLES + + +endif # SAMPLES