source: rtems/make/custom/erc32.cfg @ b3d3a34

4.104.114.84.95
Last change on this file since b3d3a34 was b3d3a34, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 15, 1998 at 3:10:47 PM

Stack checker now enabled via initial set of user extensions. This
eliminates the need to build the entire application with the
STACK_CHECKER_ON macro defined.

  • Property mode set to 100644
File size: 3.3 KB
Line 
1#
2#  Config file for the European Space Agency ERC32
3#  a V7 SPARC processor derived from the Cypress 601/602 set.
4#
5#  $Id$
6#
7
8include $(RTEMS_ROOT)/make/custom/default.cfg
9
10RTEMS_CPU=sparc
11RTEMS_CPU_MODEL=erc32
12
13# This is the actual bsp directory used during the build process.
14RTEMS_BSP_FAMILY=erc32
15
16#   The -mflat avoids the use of save/restore instructions.  It has
17#   a negative impact on the performance of RTEMS and should not be used.
18
19ifeq ($(RTEMS_USE_GCC272),yes)
20#     -mno-v8 says not to use v8 level instructions.  i.e. use v7 only
21CPU_CFLAGS = -mno-v8 -mcypress
22else
23#     -mcpu=cypress says to optimize for a Cypress 60x chipset
24CPU_CFLAGS = -mcpu=cypress
25endif
26
27# optimize flag: typically -0, could use -O4 or -fast
28# -O4 is ok for RTEMS
29CFLAGS_OPTIMIZE_V=-O4
30
31# This target does NOT support the KA9Q TCP/IP stack so ignore requests
32# to enable it.
33HAS_KA9Q=no
34
35# Override default start file
36START_BASE=startsis
37
38#  This makes the target dependent options file
39
40#  NDEBUG (C library)
41#     if defined asserts do not generate code.  This is commonly used
42#     as a command line option.
43#
44#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
45#     do not pause between screens of output in the rtems tests
46#
47#  NO_TABLE_MOVE (SPARC PORT)
48#     do not have a second trap table -- use the BSP's
49#
50#  RTEMS_DEBUG (RTEMS)
51#     If defined, debug checks in RTEMS and support library code are enabled.
52#
53#  CONSOLE_USE_POLLED     (erc32_bsp)
54#  CONSOLE_USE_INTERRUPTS (erc32_bsp)
55#     The erc32 console driver can operate in either polled or interrupt mode.
56#     Under the simulator (especially when FAST_UART is defined), polled seems
57#     to operate better.  It is common for a task to print a line (like the
58#     end of test message) and then exit.  In this case, the program returns
59#     control to the simulator command line before the program has even queued
60#     the output to the uart.  Thus sis has no chance of getting the data out.
61#
62#  SIMSPARC_FAST_IDLE (erc32_bsp)
63#     If defined, speed up the clock ticks while the idle task is running so
64#     time spent in the idle task is minimized.  This significantly reduces
65#     the wall time required to execute the RTEMS test suites.
66#
67
68define make-target-options
69        @echo "/* #define NDEBUG 1 */ "                            >>$@
70        @echo "#define RTEMS_TEST_NO_PAUSE 1"                      >>$@
71        @echo "/* #define RTEMS_DEBUG  1 */"                       >>$@
72        @echo "#define NO_TABLE_MOVE 1"                            >>$@
73        @echo "#define CONSOLE_USE_INTERRUPTS 0"                   >>$@
74        @echo "#define CONSOLE_USE_POLLED ~CONSOLE_USE_INTERRUPTS" >>$@
75        @echo "/* #define SIMSPARC_FAST_IDLE 1 */"                 >>$@
76endef
77
78
79
80# The following are definitions of make-exe which will work using ld as
81# is currently required.  It is expected that as of gcc 2.8, the end user
82# will be able to override parts of the compilers specs and link using gcc.
83
84ifeq ($(RTEMS_USE_GCC272),yes)
85define make-exe
86        $(LD) -u _sbrk $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
87            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
88        $(NM) -g -n $(basename $@).exe > $(basename $@).num
89        $(SIZE) $(basename $@).exe
90endef
91else
92define make-exe
93        $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe $(LINK_OBJS)
94        $(NM) -g -n $(basename $@).exe > $(basename $@).num
95        $(SIZE) $(basename $@).exe
96endef
97endif
98# Miscellaneous additions go here
99
100
101
Note: See TracBrowser for help on using the repository browser.