source: rtems/make/custom/p4600.cfg @ df49c60

4.104.114.84.95
Last change on this file since df49c60 was df49c60, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 12, 2000 at 3:00:15 PM

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 R4600 cpu
3#
4#  $Id$
5#
6
7
8include $(RTEMS_ROOT)/make/custom/default.cfg
9
10RTEMS_CPU=mips64orion
11RTEMS_CPU_MODEL=R4600
12
13# This is the actual bsp directory used during the build process.
14RTEMS_BSP_FAMILY=p4000
15
16CPU_CFLAGS=-mcpu=4600 -G0
17CCMIPS_CFLAGS_CPU=-cpu=r4600
18
19CPU_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#  WORKSPACE_MB (p4000)
34#     Defines the size in Megabytes of the RTEMS Workspace.
35#
36#  HEAPSPACE_MB (p4000)
37#     Defines the size in Megabytes of the C Program Heap.
38
39define make-target-options
40        @echo "/* #define NDEBUG 1 */ "                     >>$@
41        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
42        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
43        @echo "#define WORKSPACE_MB 2"                      >>$@
44        @echo "#define HEAPSPACE_MB 1"                      >>$@
45endef
46
47
48# optimize flag: typically -0, could use -O4 or -fast
49# -O4 is ok for RTEMS
50CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
51
52# The following are definitions of make-exe which will work using ld as
53# is currently required.  It is expected that as of gcc 2.8, the end user
54# will be able to override parts of the compilers specs and link using gcc.
55
56ifeq ($(RTEMS_USE_GCC272),yes)
57# This rule was used in 3.6.0
58#       $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \
59#           -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_FILES) $(LD_PATHS:%=-L %)
60
61define make-exe
62        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
63            $(START_FILE) $(LINK_OBJS) \
64            --start-group $(LINK_LIBS) --end-group
65        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
66        $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
67        $(RM) $(basename $@).srec1
68        $(NM) -n $(basename $@).exe > $(basename $@).num
69        $(SIZE) $(basename $@).exe
70endef
71else
72define make-exe
73        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
74            -o $@ $(LINK_OBJS) $(LINK_LIBS)
75        $(OBJCOPY) -O srec $@ $(basename $@).srec1
76        $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
77        $(RM) $(basename $@).srec1
78        $(NM) -n $@ > $(basename $@).num
79        $(SIZE) $@
80endef
81endif
82
83# Miscellaneous additions go here
84
Note: See TracBrowser for help on using the repository browser.