source: rtems/make/custom/gba.cfg @ 7d12e020

4.104.114.84.9
Last change on this file since 7d12e020 was 7d12e020, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 18, 2007 at 11:24:48 AM

Add -g to CFLAGS_OPTIMIZE_V.

  • Property mode set to 100644
File size: 1.4 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 -O2
22CFLAGS_OPTIMIZE_V = -O2 -g
23
24define make-exe
25        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
26            -Wl,-Map,$(basename $@).map -o $(basename $@).elf \
27            $(LINK_OBJS) $(LINK_LIBS)
28        $(OBJCOPY) -O binary  $(basename $@).elf $@
29        $(OBJCOPY) -O binary --remove-section=.comment \
30            --remove-section=.note --strip-unneeded \
31            $(basename $@).elf $(basename $@).gba
32        $(NM) -g -n $(basename $@).elf > $(basename $@).num
33        $(SIZE) $(basename $@).elf
34endef
35
36define make-cxx-exe
37        $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \
38            -Wl,-Map,$(basename $@).map -o $(basename $@).elf \
39            $(LINK_OBJS) $(LINK_LIBS)
40        $(OBJCOPY) -O binary  $(basename $@).elf $@
41        $(OBJCOPY) -O binary --remove-section=.comment \
42            --remove-section=.note --strip-unneeded  \
43            $(basename $@).elf $(basename $@).gba
44        $(NM) -g -n $(basename $@).elf > $(basename $@).num
45        $(SIZE) $(basename $@).elf
46endef
47
48# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.