summaryrefslogtreecommitdiff
path: root/config/toolchain.mk
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-01-29 19:58:11 -0800
committerPixel <pixel@nobis-crew.org>2011-01-29 19:58:11 -0800
commitdeeefd2e53795500ebb2afcc0b4d97e84eb7f7e9 (patch)
tree6808dbdbf60b53f2febb14be522fd785ac18cadc /config/toolchain.mk
parentea49b5b3f435bce0a301111fad0738efb0b39e0d (diff)
Adding sample code for the romfs into the demo, and into the makefile.
Diffstat (limited to 'config/toolchain.mk')
-rw-r--r--config/toolchain.mk3
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)