OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [make/] [custom/] [p4600.cfg] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
#
2
#  Config file for the algorithmics p4000 evaluation board with R4600 cpu
3
#
4
#  $Id: p4600.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $
5
#
6
 
7
 
8
include $(RTEMS_ROOT)/make/custom/default.cfg
9
 
10
RTEMS_CPU=mips64orion
11
RTEMS_CPU_MODEL=R4600
12
 
13
# This is the actual bsp directory used during the build process.
14
RTEMS_BSP_FAMILY=p4000
15
 
16
CPU_CFLAGS=-mcpu=4600 -G0
17
CCMIPS_CFLAGS_CPU=-cpu=r4600
18
 
19
CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3
20
 
21
#  This section makes the target dependent options file.
22
 
23
#  NDEBUG (C library)
24
#     if defined asserts do not generate code.  This is commonly used
25
#     as a command line option.
26
#
27
#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
28
#     do not pause between screens of output in the rtems tests
29
#
30
#  RTEMS_DEBUG (RTEMS)
31
#     If defined, debug checks in RTEMS and support library code are enabled.
32
#
33
 
34
define make-target-options
35
        @echo "/* #define NDEBUG 1 */ "                     >>$@
36
        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
37
        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
38
endef
39
 
40
 
41
# optimize flag: typically -0, could use -O4 or -fast
42
# -O4 is ok for RTEMS
43
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
44
 
45
# The following are definitions of make-exe which will work using ld as
46
# is currently required.  It is expected that as of gcc 2.8, the end user
47
# will be able to override parts of the compilers specs and link using gcc.
48
 
49
ifeq ($(RTEMS_USE_GCC272),yes)
50
# This rule was used in 3.6.0
51
#       $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \
52
#           -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_FILES) $(LD_PATHS:%=-L %)
53
 
54
define make-exe
55
        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
56
            $(START_FILE) $(LINK_OBJS) \
57
            --start-group $(LINK_LIBS) --end-group
58
        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
59
        $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
60
        $(RM) $(basename $@).srec1
61
        $(NM) -n $(basename $@).exe > $(basename $@).num
62
        $(SIZE) $(basename $@).exe
63
endef
64
else
65
define make-exe
66
        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
67
            -o $@ $(LINK_OBJS) $(LINK_LIBS)
68
        $(OBJCOPY) -O srec $@ $(basename $@).srec1
69
        $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
70
        $(RM) $(basename $@).srec1
71
        $(NM) -n $@ > $(basename $@).num
72
        $(SIZE) $@
73
endef
74
endif
75
 
76
# Miscellaneous additions go here
77
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.