Skip to content

Commit

Permalink
markers: Add samples subdir
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Mathieu Desnoyers <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Mathieu Desnoyers authored and Linus Torvalds committed Oct 19, 2007
1 parent 8256e47 commit 267c402
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down
2 changes: 2 additions & 0 deletions lib/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -498,3 +498,5 @@ config FAULT_INJECTION_STACKTRACE_FILTER
select FRAME_POINTER
help
Provide stacktrace filter for fault-injection capabilities

source "samples/Kconfig"
11 changes: 11 additions & 0 deletions samples/Kconfig
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 267c402

Please sign in to comment.