source: rtems/make/custom/gen405.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.3 KB
Line 
1#
2#  Config file for a generic PowerPC 405 based card
3#
4#  $Id$
5#
6#  this is derived from:
7#
8#  Config file for a PowerPC 403 based helas403 card
9#
10#  Id: helas403.cfg,v 1.8 2000/07/13 15:05:38 joel Exp
11#
12#
13
14include $(RTEMS_ROOT)/make/custom/default.cfg
15
16RTEMS_CPU=powerpc
17RTEMS_CPU_MODEL=ppc405
18
19# This is the actual bsp directory used during the build process.
20RTEMS_BSP_FAMILY=gen405
21
22#  This contains the compiler options necessary to select the CPU model
23#  and (hopefully) optimize for it.
24#
25CPU_CFLAGS = -mcpu=403 -D_OLD_EXCEPTIONS -Dppc405
26
27# optimize flag: typically -O2
28CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
29
30
31# No start file
32START_BASE=
33
34# The following are definitions of make-exe which will work using ld as
35# is currently required.
36
37define make-exe
38        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
39        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
40        $(NM) -g -n $@ > $(basename $@).num
41        $(SIZE) $@
42endef
43
44#       $(OBJCOPY) -O srec --srec-len 120 $(basename $@).exe $(basename $@).srec
45define make-cxx-exe
46        $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \
47            -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
48        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
49        $(NM) -g -n $@ > $(basename $@).num
50        $(SIZE) $@
51endef
52
53# Miscellaneous additions go here
54
Note: See TracBrowser for help on using the repository browser.