diff options
Diffstat (limited to 'nuttx/arch/arm/src/Makefile')
-rw-r--r-- | nuttx/arch/arm/src/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/Makefile b/nuttx/arch/arm/src/Makefile index 0875ad95c..093ec0433 100644 --- a/nuttx/arch/arm/src/Makefile +++ b/nuttx/arch/arm/src/Makefile @@ -37,11 +37,15 @@ -include chip/Make.defs ARCH_SRCDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src -ifeq ($(CONFIG_ARCH_CORTEXM3),y) -ARCH_SUBDIR = cortexm3 +ifeq ($(CONFIG_ARCH_CORTEXM3),y) /* Cortex-M3 is ARMv7-M */ +ARCH_SUBDIR = armv7-m +else +ifeq ($(CONFIG_ARCH_CORTEXM4),y) /* Cortex-M4 is ARMv7E-M */ +ARCH_SUBDIR = armv7-m else ARCH_SUBDIR = arm endif +endif ifeq ($(WINTOOL),y) NUTTX = "${shell cygpath -w $(TOPDIR)/nuttx}" |