source: rtems/make/custom/p4650.cfg @ 4d20133

4.104.114.84.95
Last change on this file since 4d20133 was 28e7d7fa, checked in by Joel Sherrill <joel.sherrill@…>, on 08/20/98 at 22:04:22

Patches from Eric Norum

  • Property mode set to 100644
File size: 2.8 KB
Line 
1#
2#  Config file for the algorithmics p4000 evaluation board with R4650 cpu
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=mips64orion
10RTEMS_CPU_MODEL=R4650
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=p4000
14
15CPU_CFLAGS=-m4650 -G0
16CCMIPS_CFLAGS_CPU=-cpu=r4650
17
18# Override default start file
19START_BASE=idt_csu
20
21CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3
22
23# The p4600 and p4600 share the p4000 bsp.
24TARGET_ARCH=o-p4650
25RTEMS_BSP=p4000
26
27# This target does NOT support the TCP/IP stack so ignore requests
28# to enable it.
29HAS_NETWORKING=no
30
31#  This section makes the target dependent options file.
32
33#  NDEBUG (C library)
34#     if defined asserts do not generate code.  This is commonly used
35#     as a command line option.
36#
37#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
38#     do not pause between screens of output in the rtems tests
39#
40#  RTEMS_DEBUG (RTEMS)
41#     If defined, debug checks in RTEMS and support library code are enabled.
42#
43#  WORKSPACE_MB (p4000)
44#     Defines the size in Megabytes of the RTEMS Workspace.
45#
46#  HEAPSPACE_MB (p4000)
47#     Defines the size in Megabytes of the C Program Heap.
48
49define make-target-options
50        @echo "/* #define NDEBUG 1 */ "                     >>$@
51        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
52        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
53        @echo "#define WORKSPACE_MB 2"                      >>$@
54        @echo "#define HEAPSPACE_MB 1"                      >>$@
55endef
56
57
58# optimize flag: typically -0, could use -O4 or -fast
59# -O4 is ok for RTEMS
60CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
61
62# The following are definitions of make-exe which will work using ld as
63# is currently required.  It is expected that as of gcc 2.8, the end user
64# will be able to override parts of the compilers specs and link using gcc.
65
66ifeq ($(RTEMS_USE_GCC272),yes)
67# This rule was used in 3.6.0
68#       $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \
69#           -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_FILES) $(LD_PATHS:%=-L %)
70
71define make-exe
72        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
73            $(START_FILE) $(LINK_OBJS) \
74            --start-group $(LINK_LIBS) --end-group $(LD_LIBS)
75        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
76        $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
77        $(RM) $(basename $@).srec1
78        $(NM) -n $(basename $@).exe > $(basename $@).num
79        $(SIZE) $(basename $@).exe
80endef
81else
82define make-exe
83        $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
84            $(LINK_OBJS) $(LINK_LIBS) $(LD_LIBS)
85        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
86        $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
87        $(RM) $(basename $@).srec1
88        $(NM) -n $(basename $@).exe > $(basename $@).num
89        $(SIZE) $(basename $@).exe
90endef
91endif
92
93# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.