source: rtems/make/custom/gba.cfg @ 11853d0

4.104.114.84.95
Last change on this file since 11853d0 was 89b1106, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/18/05 at 13:54:42

2005-09-18 Ralf Corsepius <ralf.corsepius@…>

  • custom/gba.cfg: Remove PROFILE* (abandoned). Remove -static (bogus).
  • Property mode set to 100644
File size: 1.7 KB
Line 
1#
2#  Config file for Gameboy Advance ARM --
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=arm
10RTEMS_CPU_MODEL=arm7tdmi
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=gba
14
15#  This contains the compiler options necessary to select the CPU model
16#  and (hopefully) optimize for it.
17#
18#CPU_CFLAGS = -mcpu=$(RTEMS_CPU_MODEL) -mthumb -mthumb-interwork -msoft-float -mstructure-size-boundary=8
19CPU_CFLAGS = -mcpu=$(RTEMS_CPU_MODEL) -msoft-float -mstructure-size-boundary=8
20
21# optimize flag: typically -0, could use -O4 or -fast
22# -O4 is ok for RTEMS
23# NOTE2: some level of -O may be actually required by inline assembler
24CFLAGS_OPTIMIZE_V=-O3
25CXXFLAGS_OPTIMIZE_V=-O3
26
27# debug flags: typically none, but at least -O1 is required due to
28# this BSP using inlined code
29CFLAGS_DEBUG_V=-O1 -ggdb
30CXXFLAGS_DEBUG_V=-O1 -ggdb
31
32define make-exe
33        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
34            -Wl,-Map,$(basename $@).map -o $(basename $@).obj \
35            $(LINK_OBJS) $(LINK_LIBS)
36        $(OBJCOPY) -O binary  $(basename $@).obj $@
37        $(OBJCOPY) -O binary --remove-section=.comment \
38            --remove-section=.note --strip-unneeded \
39            $(basename $@).obj $(basename $@).gba
40        $(NM) -g -n $(basename $@).obj > $(basename $@).num
41        $(SIZE) $(basename $@).obj
42endef
43
44define make-cxx-exe
45        $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \
46            -Wl,-Map,$(basename $@).map -o $(basename $@).obj \
47            $(LINK_OBJS) $(LINK_LIBS)
48        $(OBJCOPY) -O binary  $(basename $@).obj $@
49        $(OBJCOPY) -O binary --remove-section=.comment \
50            --remove-section=.note --strip-unneeded  \
51            $(basename $@).obj $(basename $@).gba
52        $(NM) -g -n $(basename $@).obj > $(basename $@).num
53        $(SIZE) $(basename $@).obj
54endef
55
56# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.