source: rtems/make/custom/p4650.cfg @ edeed26

4.104.114.84.95
Last change on this file since edeed26 was df49c60, checked in by Joel Sherrill <joel.sherrill@…>, on 06/12/00 at 15:00:15

Merged from 4.5.0-beta3a

  • Property mode set to 100644
File size: 2.5 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
18CPU_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#  WORKSPACE_MB (p4000)
33#     Defines the size in Megabytes of the RTEMS Workspace.
34#
35#  HEAPSPACE_MB (p4000)
36#     Defines the size in Megabytes of the C Program Heap.
37
38define make-target-options
39        @echo "/* #define NDEBUG 1 */ "                     >>$@
40        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
41        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
42        @echo "#define WORKSPACE_MB 2"                      >>$@
43        @echo "#define HEAPSPACE_MB 1"                      >>$@
44endef
45
46
47# optimize flag: typically -0, could use -O4 or -fast
48# -O4 is ok for RTEMS
49CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
50
51# The following are definitions of make-exe which will work using ld as
52# is currently required.  It is expected that as of gcc 2.8, the end user
53# will be able to override parts of the compilers specs and link using gcc.
54
55ifeq ($(RTEMS_USE_GCC272),yes)
56# This rule was used in 3.6.0
57#       $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \
58#           -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_FILES) $(LD_PATHS:%=-L %)
59
60define make-exe
61        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
62            $(START_FILE) $(LINK_OBJS) \
63            --start-group $(LINK_LIBS) --end-group $(LD_LIBS)
64        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
65        $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
66        $(RM) $(basename $@).srec1
67        $(NM) -n $(basename $@).exe > $(basename $@).num
68        $(SIZE) $(basename $@).exe
69endef
70else
71define make-exe
72        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
73            $(LINK_OBJS) $(LINK_LIBS) $(LD_LIBS)
74        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
75        $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
76        $(RM) $(basename $@).srec1
77        $(NM) -n $(basename $@).exe > $(basename $@).num
78        $(SIZE) $(basename $@).exe
79endef
80endif
81
82# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.