summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-01-24 08:07:27 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-01-24 08:07:27 -0600
commit39744a5c51a6e6cf6d263909ac75d31e4142debe (patch)
tree9b60522ba92fd56af283d73595cc5c253d0fe49b
parentf76ce54f00d5b638e1e847769fcb0252151cbd1c (diff)
downloadnuttx-39744a5c51a6e6cf6d263909ac75d31e4142debe.tar.gz
nuttx-39744a5c51a6e6cf6d263909ac75d31e4142debe.tar.bz2
nuttx-39744a5c51a6e6cf6d263909ac75d31e4142debe.zip
Suppress option to use custom optimization levels for architectures that do not support it
-rw-r--r--nuttx/Kconfig5
-rw-r--r--nuttx/arch/Kconfig3
2 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/Kconfig b/nuttx/Kconfig
index 12aa64e31..fb08f3289 100644
--- a/nuttx/Kconfig
+++ b/nuttx/Kconfig
@@ -574,6 +574,10 @@ config DEBUG_SYMBOLS
endmenu # Debug Options
+config ARCH_HAVE_CUSTOMOPT
+ bool
+ default n
+
choice
prompt "Optimization Level"
default DEBUG_NOOPT if DEBUG_SYMBOLS
@@ -586,6 +590,7 @@ config DEBUG_NOOPT
config DEBUG_CUSTOMOPT
bool "Custom Optimization"
+ depends on ARCH_HAVE_CUSTOMOPT
---help---
Select a custom debug level. This is often helpful if you suspect an
optimization level error and want to lower the level of optimization.
diff --git a/nuttx/arch/Kconfig b/nuttx/arch/Kconfig
index e4a09b308..36b04dc10 100644
--- a/nuttx/arch/Kconfig
+++ b/nuttx/arch/Kconfig
@@ -18,6 +18,7 @@ config ARCH_ARM
select ARCH_HAVE_INTERRUPTSTACK
select ARCH_HAVE_VFORK
select ARCH_HAVE_STACKCHECK
+ select ARCH_HAVE_CUSTOMOPT
---help---
The ARM architectures
@@ -25,6 +26,7 @@ config ARCH_AVR
bool "AVR"
select ARCH_NOINTC
select ARCH_HAVE_INTERRUPTSTACK
+ select ARCH_HAVE_CUSTOMOPT
---help---
Atmel 8-bit bit AVR and 32-bit AVR32 architectures
@@ -38,6 +40,7 @@ config ARCH_HC
config ARCH_MIPS
bool "MIPS"
select ARCH_HAVE_INTERRUPTSTACK
+ select ARCH_HAVE_CUSTOMOPT
---help---
MIPS architectures (PIC32)