URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
1026 |
ivang |
#
|
2 |
|
|
# Config file for the algorithmics p4000 evaluation board
|
3 |
|
|
#
|
4 |
|
|
# p4000.cfg,v 1.18 2002/03/28 13:51:54 joel Exp
|
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 |
|
|
define make-exe
|
30 |
|
|
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
|
31 |
|
|
$(LINK_OBJS) $(LINK_LIBS)
|
32 |
|
|
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
|
33 |
|
|
$(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
|
34 |
|
|
$(RM) $(basename $@).srec1
|
35 |
|
|
$(NM) -n $(basename $@).exe > $(basename $@).num
|
36 |
|
|
$(SIZE) $(basename $@).exe
|
37 |
|
|
endef
|
38 |
|
|
|
39 |
|
|
# Miscellaneous additions go here
|
40 |
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.