1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 16:43:09 +02:00

add a menuconfig option for enabling KALLSYMS for the kernel

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14122 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2009-01-20 21:09:04 +00:00
parent 5f74391431
commit 6d9af11c8c
2 changed files with 11 additions and 0 deletions

View File

@ -117,6 +117,14 @@ config NO_STRIP
bool "Install unstripped binary on the target (useful for native compiling/debugging)" bool "Install unstripped binary on the target (useful for native compiling/debugging)"
default n default n
comment "Kernel build options"
config KERNEL_KALLSYMS
bool "Compile the kernel with symbol table information"
default n
help
This will give you more information in stack traces from kernel oopses
endmenu endmenu
menuconfig DEVEL menuconfig DEVEL

View File

@ -86,6 +86,9 @@ define Kernel/Configure/2.6
endef endef
define Kernel/Configure/Default define Kernel/Configure/Default
$(LINUX_CONFCMD) > $(LINUX_DIR)/.config.target $(LINUX_CONFCMD) > $(LINUX_DIR)/.config.target
echo "$(if $(CONFIG_KERNEL_KALLSYMS),CONFIG_KALLSYMS=y,# CONFIG_KALLSYMS is not set)" >> $(LINUX_DIR)/.config.target
echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> $(LINUX_DIR)/.config.target
echo "# CONFIG_KPROBES is not set" >> $(LINUX_DIR)/.config.target
$(SCRIPT_DIR)/metadata.pl kconfig $(TMP_DIR)/.packageinfo $(TOPDIR)/.config > $(LINUX_DIR)/.config.override $(SCRIPT_DIR)/metadata.pl kconfig $(TMP_DIR)/.packageinfo $(TOPDIR)/.config > $(LINUX_DIR)/.config.override
$(SCRIPT_DIR)/kconfig.pl 'm+' $(LINUX_DIR)/.config.target $(LINUX_DIR)/.config.override > $(LINUX_DIR)/.config $(SCRIPT_DIR)/kconfig.pl 'm+' $(LINUX_DIR)/.config.target $(LINUX_DIR)/.config.override > $(LINUX_DIR)/.config
$(call Kernel/SetInitramfs) $(call Kernel/SetInitramfs)