aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2003-06-21 02:03:16 +0200
committerSam Ravnborg <sam@mars.ravnborg.org>2003-06-21 02:03:16 +0200
commita06f9f6db280946d9aa9dc33beaeca74523c3721 (patch)
tree84a224b47c671b9cc42e34913f87e04cb1c5a0a9 /Makefile
parent30d35a76bea1b9115c4052495fad675c5df35812 (diff)
downloadhistory-a06f9f6db280946d9aa9dc33beaeca74523c3721.tar.gz
kbuild: Added CONFIG_DEBUG_INFO
When CONFIG_DEBUG_INFO is set to Y, -g will be added to CFLAGS. Several architectures already put -g in CFLAGS, often via a patch to the top-level makefile. This option is put in the kernel hacking menu, guarded by CONFIG_DEBUG_KERNEL. Added CONFIG_DEBUG_INFO in Kconfig for the architectures that already had CONFIG_DEBUG_KERNEL
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 38ac2b2843658..a22f6ebe21e2a 100644
--- a/Makefile
+++ b/Makefile
@@ -308,6 +308,10 @@ ifndef CONFIG_FRAME_POINTER
CFLAGS += -fomit-frame-pointer
endif
+ifdef CONFIG_DEBUG_INFO
+CFLAGS += -g
+endif
+
#
# INSTALL_PATH specifies where to place the updated kernel and system map
# images. Uncomment if you want to place them anywhere other than root.