diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-15 09:07:55 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-15 09:07:55 +0000 |
commit | 229b5aacb9c8746143e329545aa7f6b930b48242 (patch) | |
tree | a9116f9250661ea7ff7c26b0aa89aaf201e6ca4b /c/src/lib/libbsp/arm/gba/make/custom/gba.cfg | |
parent | 2009-10-15 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-229b5aacb9c8746143e329545aa7f6b930b48242.tar.bz2 |
2009-10-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* make/custom/gba.cfg: New (relocated from /make/custom).
Diffstat (limited to 'c/src/lib/libbsp/arm/gba/make/custom/gba.cfg')
-rw-r--r-- | c/src/lib/libbsp/arm/gba/make/custom/gba.cfg | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/gba/make/custom/gba.cfg b/c/src/lib/libbsp/arm/gba/make/custom/gba.cfg new file mode 100644 index 0000000000..88a439d5cf --- /dev/null +++ b/c/src/lib/libbsp/arm/gba/make/custom/gba.cfg @@ -0,0 +1,30 @@ +# +# Config file for Gameboy Advance ARM -- +# +# $Id$ +# + +include $(RTEMS_ROOT)/make/custom/default.cfg + +RTEMS_CPU=arm +RTEMS_CPU_MODEL=arm7tdmi + +# This is the actual bsp directory used during the build process. +RTEMS_BSP_FAMILY=gba + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +# +#CPU_CFLAGS = -mcpu=$(RTEMS_CPU_MODEL) -mthumb -mthumb-interwork -msoft-float -mstructure-size-boundary=8 +CPU_CFLAGS = -mcpu=$(RTEMS_CPU_MODEL) -msoft-float -mstructure-size-boundary=8 + +# optimize flag: typically -O2 +CFLAGS_OPTIMIZE_V = -O2 -g + +# Some GBA simulators want a .gba extension. +define bsp-post-link + $(OBJCOPY) -O binary --remove-section=.comment \ + --remove-section=.note --strip-unneeded \ + $(basename $@).exe $(basename $@)$(DOWNEXT) + $(default-bsp-post-link) +endef |