source: rtems/make/custom/p4000.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.2 KB
Line 
1#
2#  Config file for the algorithmics p4000 evaluation board
3#
4#  $Id$
5#
6
7# NOTE: this file is broken !
8
9CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3
10
11# This is the actual bsp directory used during the build process.
12RTEMS_BSP_FAMILY=p4000
13
14#  This section makes the target dependent options file.
15
16#  NDEBUG (C library)
17#     if defined asserts do not generate code.  This is commonly used
18#     as a command line option.
19#
20#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
21#     do not pause between screens of output in the rtems tests
22#
23#  RTEMS_DEBUG (RTEMS)
24#     If defined, debug checks in RTEMS and support library code are enabled.
25#
26#  WORKSPACE_MB (p4000)
27#     Defines the size in Megabytes of the RTEMS Workspace.
28#
29#  HEAPSPACE_MB (p4000)
30#     Defines the size in Megabytes of the C Program Heap.
31
32define make-target-options
33        @echo "/* #define NDEBUG 1 */ "                     >>$@
34        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
35        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
36        @echo "#define WORKSPACE_MB 2"                      >>$@
37        @echo "#define HEAPSPACE_MB 1"                      >>$@
38endef
39
40
41# optimize flag: typically -0, could use -O4 or -fast
42# -O4 is ok for RTEMS
43CFLAGS_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
49ifeq ($(RTEMS_USE_GCC272),yes)
50define make-exe
51        $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \
52            -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_OBJS) $(LINK_LIBS) $(LD_PATHS:%=-L %)
53        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
54        $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
55        $(RM) $(basename $@).srec1
56        $(NM) -n $(basename $@).exe > $(basename $@).num
57        $(SIZE) $(basename $@).exe
58endef
59else
60define make-exe
61        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
62            $(LINK_OBJS) $(LINK_LIBS)
63        $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
64        $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
65        $(RM) $(basename $@).srec1
66        $(NM) -n $(basename $@).exe > $(basename $@).num
67        $(SIZE) $(basename $@).exe
68endef
69endif
70
71# Miscellaneous additions go here
72
Note: See TracBrowser for help on using the repository browser.