source: rtems/make/custom/mvme3100.cfg @ 34088069

4.104.114.95
Last change on this file since 34088069 was 34088069, checked in by Joel Sherrill <joel.sherrill@…>, on 01/09/08 at 20:37:14

2008-01-09 Eric Norum <norume@…>

  • custom/mvme3100.cfg: Add make-cxx-exe rule.
  • Property mode set to 100644
File size: 1.7 KB
Line 
1#
2#  Config file for the PowerPC 8540 based mvme3100
3#
4#
5
6include $(RTEMS_ROOT)/make/custom/default.cfg
7
8RTEMS_CPU=powerpc
9RTEMS_CPU_MODEL=e500
10RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=mvme3100
14
15#  This contains the compiler options necessary to select the CPU model
16#  and (hopefully) optimize for it.
17#
18# NOTE: NO application code should use the -D symbols
19CPU_CFLAGS = -mcpu=powerpc -msoft-float -D__ppc_generic
20
21# optimize flag: typically -0, could use -O4 or -fast
22# -O4 is ok for RTEMS
23# NOTE: some level of -O may be actually required by inline assembler
24#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
25CFLAGS_OPTIMIZE_V = -O4
26
27# debug flags: typically none, but at least -O1 is required due to this
28# BSP using inlined code
29CFLAGS_DEBUG_V = -O1
30
31# profile flags: typically none, but at least -O1 is required due to this
32# BSP using inlined code
33CFLAGS_PROFILE_V = -O1   
34
35define make-exe
36        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(@:%.exe=%.nxe) $(LINK_OBJS) $(LINK_LIBS)
37        $(NM) -g -n $(@:%.exe=%.nxe) > $(basename $(@:%.exe=%.nxe)).num
38        $(SIZE) $(@:%.exe=%.nxe)
39#       test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin
40        $(OBJCOPY) -Obinary $(@:%.exe=%.nxe) $(@:%.exe=%)$(LIB_VARIANT).exe
41endef
42
43define make-cxx-exe
44        $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(@:%.exe=%.nxe) $(LINK_OBJS) $(LINK_LIBS)
45        $(NM) -g -n $(@:%.exe=%.nxe) > $(basename $(@:%.exe=%.nxe)).num
46        $(SIZE) $(@:%.exe=%.nxe)
47#       test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin
48        $(OBJCOPY) -Obinary $(@:%.exe=%.nxe) $(@:%.exe=%)$(LIB_VARIANT).exe
49endef
50
51# Miscellaneous additions go here
52START_BASE = motld_start
Note: See TracBrowser for help on using the repository browser.