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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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