diff options
Diffstat (limited to 'config/toolchain.mk')
-rw-r--r-- | config/toolchain.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/toolchain.mk b/config/toolchain.mk index 4e58227..ee9d5b5 100644 --- a/config/toolchain.mk +++ b/config/toolchain.mk @@ -1,5 +1,6 @@ ifeq ($(CPU),arm) TOOLCHAIN = arm-none-eabi +TARGET_FORMAT = elf32-littlearm ifeq ($(CPU_FLAVOR),lpc1768) TARGET_CPPFLAGS += -mcpu=cortex-m3 -mtune=cortex-m3 -D__thumb2__=1 -march=armv7-m -mfix-cortex-m3-ldrd endif @@ -14,3 +15,5 @@ TARGET_RANLIB = $(TOOLCHAIN)-ranlib TARGET_AR = $(TOOLCHAIN)-ar TARGET_AS = $(TOOLCHAIN)-gcc TARGET_OBJCOPY = $(TOOLCHAIN)-objcopy + +TARGET_OBJCOPY_BIN = $(TARGET_OBJCOPY) -I binary -O $(TARGET_FORMAT) --binary-architecture $(CPU) |