From deeefd2e53795500ebb2afcc0b4d97e84eb7f7e9 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 29 Jan 2011 19:58:11 -0800 Subject: Adding sample code for the romfs into the demo, and into the makefile. --- config/toolchain.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config/toolchain.mk') 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) -- cgit v1.2.3