From 222e68ddd585b272db2f39fd34e47bafee29c88c Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Thu, 22 Jan 2015 13:36:22 +0100 Subject: [PATCH] fox: Add -mno-thumb-interwork. Cortex-M processors only support Thumb instructions (no ARM mode code). Signed-off-by: Joakim Gebart --- boards/fox/Makefile.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/fox/Makefile.include b/boards/fox/Makefile.include index 84176148a5..054c1e5008 100644 --- a/boards/fox/Makefile.include +++ b/boards/fox/Makefile.include @@ -31,7 +31,7 @@ export RESET = $(RIOTBOARD)/$(BOARD)/dist/reset.sh # define build specific options export CPU_USAGE = -mcpu=cortex-m3 export FPU_USAGE = -export CFLAGS += -ggdb -g3 -std=gnu99 -Os -Wall -Wstrict-prototypes $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -mthumb -mthumb-interwork -nostartfiles +export CFLAGS += -ggdb -g3 -std=gnu99 -Os -Wall -Wstrict-prototypes $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -mthumb -mno-thumb-interwork -nostartfiles export CFLAGS += -ffunction-sections -fdata-sections -fno-builtin # unwanted (CXXUWFLAGS) and extra (CXXEXFLAGS) flags for c++ @@ -39,7 +39,7 @@ export CXXUWFLAGS += export CXXEXFLAGS += export ASFLAGS += -ggdb -g3 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -export LINKFLAGS += -ggdb -g3 -std=gnu99 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -static -lgcc -mthumb -mthumb-interwork -nostartfiles +export LINKFLAGS += -ggdb -g3 -std=gnu99 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -static -lgcc -mthumb -mno-thumb-interwork -nostartfiles # $(LINKERSCRIPT) is specified in cpu/Makefile.include export LINKFLAGS += -T$(LINKERSCRIPT) export OFLAGS = -O ihex