aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>2007-10-19 02:41:07 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-19 14:53:55 -0400
commit267c4025f2e198a4e551556a6db31a554ca51814 (patch)
tree3ef12bb271cb2114fd857530e356ae96f2e98f01
parent8256e47cdc8923e9959eb1d7f95d80da538add80 (diff)
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 <randy.dunlap@oracle.com> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--Makefile3
-rw-r--r--lib/Kconfig.debug2
-rw-r--r--samples/Kconfig11
3 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 529b9048d97e..68ef80b30340 100644
--- a/Makefile
+++ b/Makefile
@@ -774,6 +774,9 @@ vmlinux: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) $(kallsyms.o) vmlinux.o
774ifdef CONFIG_HEADERS_CHECK 774ifdef CONFIG_HEADERS_CHECK
775 $(Q)$(MAKE) -f $(srctree)/Makefile headers_check 775 $(Q)$(MAKE) -f $(srctree)/Makefile headers_check
776endif 776endif
777ifdef CONFIG_SAMPLES
778 $(Q)$(MAKE) $(build)=samples
779endif
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
502source "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
3menuconfig SAMPLES
4 bool "Sample kernel code"
5 help
6 You can build and test sample kernel code here.
7
8if SAMPLES
9
10
11endif # SAMPLES