]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
markers: Add samples subdir
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Fri, 19 Oct 2007 06:41:07 +0000 (23:41 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 19 Oct 2007 18:53:55 +0000 (11:53 -0700)
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>
Makefile
lib/Kconfig.debug
samples/Kconfig [new file with mode: 0644]

index 529b9048d97e950d2ea58948d2c5b93e67c0a563..68ef80b30340371e13ff8e38777d0bf9d715dc33 100644 (file)
--- 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__)
index 7d16e64333025db69440fe96b46beb229749e746..c567f219191d590116bcdd4498349d72e62ce612 100644 (file)
@@ -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 (file)
index 0000000..b46b4cf
--- /dev/null
@@ -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