summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-06-30 10:52:20 -0600
committerTom Rini <trini@konsulko.com>2016-07-14 18:22:31 -0400
commit022885cb9ce9b22fb62225a21b4eb017a2e8dab5 (patch)
tree1b53ea00945649b60d97c6808eccb36ba212839c /Kconfig
parent51f03e6a7596d61a9ae9b1aee030112cc6a795ff (diff)
tools: Allow building with debug enabled
Sometimes it is useful to build tools with debugging information included so that line-number information is available when run under gdb. Add a Kconfig option to support this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'Kconfig')
-rw-r--r--Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/Kconfig b/Kconfig
index 2afbaaf801..ef12f9fbee 100644
--- a/Kconfig
+++ b/Kconfig
@@ -114,6 +114,15 @@ if EXPERT
Warning:
When disabling this, please check if malloc calls, maybe
should be replaced by calloc - if one expects zeroed memory.
+
+config TOOLS_DEBUG
+ bool "Enable debug information for tools"
+ help
+ Enable generation of debug information for tools such as mkimage.
+ This can be used for debugging purposes. With debug information
+ it is possible to set breakpoints on particular lines, single-step
+ debug through the source code, etc.
+
endif
endmenu # General setup