diff options
author | Richard Wiley <rwiley@nvidia.com> | 2012-08-07 10:42:51 -0700 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2012-08-14 14:43:19 -0700 |
commit | 8024122d227e2ae4adef0925039b7dc329564571 (patch) | |
tree | f47a66508a80c27cb2ce5cac0918cd3ca33185be /lib | |
parent | 1b4b3c6b74295ac8971129b0909d6a0b6279aa86 (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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 097d70fa02d1..1c1dd5e4f679 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -149,6 +149,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 |