source: rtems/make/custom/virtex.cfg @ 74cde4d

4.104.114.84.95
Last change on this file since 74cde4d was 74cde4d, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/28/07 at 04:37:28

2007-07-28 Ralf Corsépius <ralf.corsepius@…>

  • custom/virtex.cfg: Use -O2.
  • Property mode set to 100644
File size: 1.5 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=virtex
21
22#  This contains the compiler options necessary to select the CPU model
23#  and (hopefully) optimize for it.
24#
25CPU_CFLAGS = -mcpu=403 -Dppc405 -Dvirtex
26
27# optimize flag: typically -0, could use -O4 or -fast
28# -O4 is ok for RTEMS
29# NOTE: some level of -O may be actually required by inline assembler
30CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
31
32
33# No start file
34START_BASE=
35
36# The following are definitions of make-exe which will work using ld as
37# is currently required.  It is expected that as of gcc 2.8, the end user
38# will be able to override parts of the compilers specs and link using gcc.
39
40define make-exe
41        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
42        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
43        $(NM) -g -n $@ > $(basename $@).num
44        $(SIZE) $@
45endef
46
47#       $(OBJCOPY) -O srec --srec-len 120 $(basename $@).exe $(basename $@).srec
48define make-cxx-exe
49        $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \
50            -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
51        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
52        $(NM) -g -n $@ > $(basename $@).num
53        $(SIZE) $@
54endef
55
56# Miscellaneous additions go here
57
Note: See TracBrowser for help on using the repository browser.