Skip to content

Commit

Permalink
add menuconfig option for enabling debugfs support in the kernel
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17540 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information
juhosg committed Sep 8, 2009
1 parent f5f3233 commit 0ee891f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Config.in
Expand Up @@ -195,13 +195,23 @@ config KERNEL_KALLSYMS
default n
help
This will give you more information in stack traces from kernel oopses

config KERNEL_PROFILING
bool "Compile the kernel with profiling enabled"
default n
help
Enable the extended profiling support mechanisms used by profilers such
as OProfile.

config KERNEL_DEBUG_FS
bool "Compile the kernel with Debug Filesystem enabled"
depends LINUX_2_6
default y
help
debugfs is a virtual file system that kernel developers use to put
debugging files into. Enable this option to be able to read and
write to these files.

endmenu

menuconfig DEVEL
Expand Down
1 change: 1 addition & 0 deletions include/kernel-defaults.mk
Expand Up @@ -97,6 +97,7 @@ define Kernel/Configure/Default
$(LINUX_CONFCMD) > $(LINUX_DIR)/.config.target
echo "$(if $(CONFIG_KERNEL_KALLSYMS),CONFIG_KALLSYMS=y,# CONFIG_KALLSYMS is not set)" >> $(LINUX_DIR)/.config.target
echo "$(if $(CONFIG_KERNEL_PROFILING),CONFIG_PROFILING=y,# CONFIG_PROFILING is not set)" >> $(LINUX_DIR)/.config.target
echo "$(if $(CONFIG_KERNEL_DEBUG_FS),CONFIG_DEBUG_FS=y,# CONFIG_DEBUG_FS is not set)" >> $(LINUX_DIR)/.config.target
echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> $(LINUX_DIR)/.config.target
echo "# CONFIG_KALLSYMS_ALL is not set" >> $(LINUX_DIR)/.config.target
echo "# CONFIG_KPROBES is not set" >> $(LINUX_DIR)/.config.target
Expand Down

0 comments on commit 0ee891f

Please sign in to comment.