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

4.104.114.84.95
Last change on this file since 7d12e020 was 7d12e020, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/18/07 at 11:24:48

Add -g to CFLAGS_OPTIMIZE_V.

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