summaryrefslogtreecommitdiff
path: root/nuttx/configs/shenzhou/nsh/Make.defs
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/shenzhou/nsh/Make.defs')
-rw-r--r--nuttx/configs/shenzhou/nsh/Make.defs3
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/configs/shenzhou/nsh/Make.defs b/nuttx/configs/shenzhou/nsh/Make.defs
index 317a95cda..555b0069f 100644
--- a/nuttx/configs/shenzhou/nsh/Make.defs
+++ b/nuttx/configs/shenzhou/nsh/Make.defs
@@ -84,7 +84,8 @@ ifeq ($(CONFIG_STM32_BUILDROOT),y)
# NuttX buildroot under Linux or Cygwin
CROSSDEV = arm-nuttx-eabi-
ARCROSSDEV = arm-nuttx-eabi-
- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft
+# ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft
+ ARCHCPUFLAGS = -mcpu=cortex-m3 -mthumb -mfloat-abi=soft
MAXOPTIMIZATION = -Os
endif