source: rtems/make/custom/gba.cfg @ c6eba79

4.104.114.84.95
Last change on this file since c6eba79 was c6eba79, checked in by Joel Sherrill <joel.sherrill@…>, on 05/10/07 at 17:36:19

2007-05-10 Joel Sherrill <joel.sherrill@…>

  • custom/gba.cfg, custom/gp32.cfg, custom/i386ex.cfg, custom/pc386.cfg, custom/sim68000.cfg, custom/ts_386ex.cfg: Clean up to use .nxe extension instead of BSP unique ones.
  • 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 $@).nxe \
27            $(LINK_OBJS) $(LINK_LIBS)
28        $(OBJCOPY) -O binary  $(basename $@).nxe $@
29        $(OBJCOPY) -O binary --remove-section=.comment \
30            --remove-section=.note --strip-unneeded \
31            $(basename $@).nxe $(basename $@).gba
32        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
33        $(SIZE) $(basename $@).nxe
34endef
35
36define make-cxx-exe
37        $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \
38            -Wl,-Map,$(basename $@).map -o $(basename $@).nxe \
39            $(LINK_OBJS) $(LINK_LIBS)
40        $(OBJCOPY) -O binary  $(basename $@).nxe $@
41        $(OBJCOPY) -O binary --remove-section=.comment \
42            --remove-section=.note --strip-unneeded  \
43            $(basename $@).nxe $(basename $@).gba
44        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
45        $(SIZE) $(basename $@).nxe
46endef
47
48# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.