summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRichard Wiley <rwiley@nvidia.com>2012-08-07 10:42:51 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:31:30 -0700
commita50964d036333a9bbd91b6ba439778fbe06859f1 (patch)
tree02e174cadf3d93f459fbb79e411f49bb2fc8a8fb /lib
parent17ebeef6e03a86f10c7cc643f7de8a9cb8803927 (diff)
kernel: add Kbuild option for kernel optimization level
Adds a kernel config option to lower the kernel compile optimization level from O2 to O1 for clearer GDB debugging. Default on for simulation builds, default off for others. Change-Id: I17fd63b5b391984d28b275e516df89d6a223021c Reviewed-on: http://git-master/r/121822 Reviewed-by: Chao Xu <cxu@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Ken Adams <kadams@nvidia.com> Tested-by: Richard Wiley <rwiley@nvidia.com> Reviewed-by: Mark Stadler <mastadler@nvidia.com> Reviewed-by: Bo Yan <byan@nvidia.com> Rebase-Id: Ra7c14ac91b0cfbe441dbfea33f0d5b1a6fd44d5f
Diffstat (limited to 'lib')
-rw-r--r--lib/Kconfig.debug6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index d317c1ad62ab..8c1ea1388644 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -162,6 +162,12 @@ config DEBUG_KERNEL
Say Y here if you are developing drivers or trying to debug and
identify kernel problems.
+config LESS_GCC_OPT
+ bool "Compile with -O1 for debugging
+ depends on DEBUG_KERNEL
+ default y if TEGRA_SIMULATION_PLATFORM
+ default n if !TEGRA_SIMULATION_PLATFORM
+
config DEBUG_SHIRQ
bool "Debug shared IRQ handlers"
depends on DEBUG_KERNEL && GENERIC_HARDIRQS