source: rtems/make/custom/gen83xx.cfg @ 59aea5d

4.104.114.84.95
Last change on this file since 59aea5d was 55a1cc9c, checked in by Joel Sherrill <joel.sherrill@…>, on 07/11/07 at 14:13:03

2007-07-11 Joel Sherrill <joel.sherrill@…>

  • custom/gen83xx.cfg: Add make-cxx-exe rule.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1#
2#  Shared base config file for GEN83xx BSPs
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8#
9# FIXME: we might want to use the e300 CPU model explicitely,
10# using RTEMS_CPU_MODEL=e300 and -me300
11# but I doubt the compiler actually generates different code
12#
13RTEMS_CPU=powerpc
14RTEMS_CPU_MODEL=mpc83xx
15
16# This is the actual bsp directory used during the build process.
17RTEMS_BSP_FAMILY=gen83xx
18
19#  This contains the compiler options necessary to select the CPU model
20#  and (hopefully) optimize for it.
21#
22CPU_CFLAGS = -mcpu=603e -mstrict-align -fno-strict-aliasing\
23             -D$(RTEMS_BOARD_MODEL) -D$(RTEMS_83XX_DERIVATE)
24
25# optimize flag: typically -O2
26CFLAGS_OPTIMIZE_V = -O4 -g -fno-keep-inline-functions
27
28# The following are definitions of make-exe which will work using ld as
29# is currently required.
30
31define make-exe
32        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
33        -qnolinkcmds -T $(RTEMS_LINKCMDS) -o $(basename $@).exe \
34            $(LINK_OBJS) $(LINK_LIBS)
35        $(NM) -g -n $(basename $@).exe > $(basename $@).num
36        $(SIZE) $(basename $@).exe
37endef
38
39define make-cxx-exe
40        $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) \
41        -qnolinkcmds -T $(RTEMS_LINKCMDS) -o $(basename $@).exe \
42            $(LINK_OBJS) $(LINK_LIBS)
43        $(NM) -g -n $(basename $@).exe > $(basename $@).num
44        $(SIZE) $(basename $@).exe
45endef
46
47# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.