diff options
Diffstat (limited to 'nuttx-configs')
-rw-r--r-- | nuttx-configs/trifle/nsh/Make.defs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nuttx-configs/trifle/nsh/Make.defs b/nuttx-configs/trifle/nsh/Make.defs index 6715f309a..f74420de3 100644 --- a/nuttx-configs/trifle/nsh/Make.defs +++ b/nuttx-configs/trifle/nsh/Make.defs @@ -69,8 +69,15 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y) ARCHOPTIMIZATION = -g endif + +# XXX WARNING +# +# The below optimization level, -Os, is very important. If this level +# is not used, the clock configuration funtion in NuttX will never return! +# See kinesis_setdividers in NuttX/nuttx/arch/arm/src/kinetis/kinetis_clockconfig.c +# ifneq ($(CONFIG_DEBUG_NOOPT),y) - ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer + ARCHOPTIMIZATION += -Os -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer endif ARCHCFLAGS = -fno-builtin |