From 99682807050ee9e291ebb574a7aaedc6461bffa5 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Thu, 22 Jan 2015 13:36:23 +0100 Subject: [PATCH] udoo: Add -mno-thumb-interwork. Cortex-M processors only support Thumb instructions (no ARM mode code). Signed-off-by: Joakim Gebart --- boards/udoo/Makefile.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/udoo/Makefile.include b/boards/udoo/Makefile.include index 224e5ee13e..3dc6a7e73c 100644 --- a/boards/udoo/Makefile.include +++ b/boards/udoo/Makefile.include @@ -29,10 +29,10 @@ export PORT # define build specific options export CPU_USAGE = -mcpu=cortex-m3 -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 export ASFLAGS += -ggdb -g3 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -export LINKFLAGS += -g3 -ggdb -std=gnu99 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -static -lgcc -mthumb -mthumb-interwork -nostartfiles +export LINKFLAGS += -g3 -ggdb -std=gnu99 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -static -lgcc -mthumb -mno-thumb-interwork -nostartfiles # linkerscript specified in cpu/Makefile.include export LINKFLAGS += -T$(LINKERSCRIPT) export OFLAGS += -O binary