source: rtems/make/custom/p4000.cfg @ f8b891d

4.104.114.84.95
Last change on this file since f8b891d was f8b891d, checked in by Joel Sherrill <joel.sherrill@…>, on 01/08/01 at 18:14:01

2001-01-08 Joel Sherrill <joel@…>

  • custom/p4000.cfg, custom/p4600.cfg, custom/p4650.cfg: Remove unneeded definitions when compiled for "mips" rather than "mips64orion." Correct CPU_CFLAGS.
  • Property mode set to 100644
File size: 1.8 KB
Line 
1#
2#  Config file for the algorithmics p4000 evaluation board
3#
4#  $Id$
5#
6
7# NOTE: This file is shared between the mips and mips64orion
8#       "ports".  The following defines are needed by the mips64orion
9#       but not the mips.
10ifeq ($(RTEMS_CPU),mips64orion)
11CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3
12endif
13
14# This is the actual bsp directory used during the build process.
15RTEMS_BSP_FAMILY=p4000
16
17#  This contains the compiler options necessary to select the CPU model
18#  and (hopefully) optimize for it.
19CPU_CFLAGS = -mips3 -G0
20
21#  This section makes the target dependent options file.
22define make-target-options
23endef
24
25# optimize flag: typically -0, could use -O4 or -fast
26# -O4 is ok for RTEMS
27CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
28
29# The following are definitions of make-exe which will work using ld as
30# is currently required.  It is expected that as of gcc 2.8, the end user
31# will be able to override parts of the compilers specs and link using gcc.
32
33ifeq ($(RTEMS_USE_GCC272),yes)
34define make-exe
35        $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \
36            -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_OBJS) $(LINK_LIBS) $(LD_PATHS:%=-L %)
37        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
38        $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
39        $(RM) $(basename $@).srec1
40        $(NM) -n $(basename $@).exe > $(basename $@).num
41        $(SIZE) $(basename $@).exe
42endef
43else
44define make-exe
45        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
46            $(LINK_OBJS) $(LINK_LIBS)
47        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
48        $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
49        $(RM) $(basename $@).srec1
50        $(NM) -n $(basename $@).exe > $(basename $@).num
51        $(SIZE) $(basename $@).exe
52endef
53endif
54
55# Miscellaneous additions go here
56
Note: See TracBrowser for help on using the repository browser.