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. |
---|
10 | ifeq ($(RTEMS_CPU),mips64orion) |
---|
11 | CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3 |
---|
12 | endif |
---|
13 | |
---|
14 | # This is the actual bsp directory used during the build process. |
---|
15 | RTEMS_BSP_FAMILY=p4000 |
---|
16 | |
---|
17 | # This contains the compiler options necessary to select the CPU model |
---|
18 | # and (hopefully) optimize for it. |
---|
19 | CPU_CFLAGS = -mips3 -G0 |
---|
20 | |
---|
21 | # optimize flag: typically -0, could use -O4 or -fast |
---|
22 | # -O4 is ok for RTEMS |
---|
23 | CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
---|
24 | |
---|
25 | # The following are definitions of make-exe which will work using ld as |
---|
26 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
27 | # will be able to override parts of the compilers specs and link using gcc. |
---|
28 | |
---|
29 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
30 | define make-exe |
---|
31 | $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \ |
---|
32 | -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_OBJS) $(LINK_LIBS) $(LD_PATHS:%=-L %) |
---|
33 | $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1 |
---|
34 | $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec |
---|
35 | $(RM) $(basename $@).srec1 |
---|
36 | $(NM) -n $(basename $@).exe > $(basename $@).num |
---|
37 | $(SIZE) $(basename $@).exe |
---|
38 | endef |
---|
39 | else |
---|
40 | define make-exe |
---|
41 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \ |
---|
42 | $(LINK_OBJS) $(LINK_LIBS) |
---|
43 | $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1 |
---|
44 | $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec |
---|
45 | $(RM) $(basename $@).srec1 |
---|
46 | $(NM) -n $(basename $@).exe > $(basename $@).num |
---|
47 | $(SIZE) $(basename $@).exe |
---|
48 | endef |
---|
49 | endif |
---|
50 | |
---|
51 | # Miscellaneous additions go here |
---|
52 | |
---|