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

4.104.114.84.95
Last change on this file since d07d3eec was 1ea9c3f, checked in by Joel Sherrill <joel.sherrill@…>, on 04/06/98 at 16:33:48

Purged references to STACK_CHECKER_REPORT_USAGE

  • Property mode set to 100644
File size: 3.5 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#  STACK_CHECKER_ON (RTEMS support code)
51#     If defined, stack bounds checking is enabled.
52#
53#  RTEMS_DEBUG (RTEMS)
54#     If defined, debug checks in RTEMS and support library code are enabled.
55#
56#  CONSOLE_USE_POLLED     (erc32_bsp)
57#  CONSOLE_USE_INTERRUPTS (erc32_bsp)
58#     The erc32 console driver can operate in either polled or interrupt mode.
59#     Under the simulator (especially when FAST_UART is defined), polled seems
60#     to operate better.  It is common for a task to print a line (like the
61#     end of test message) and then exit.  In this case, the program returns
62#     control to the simulator command line before the program has even queued
63#     the output to the uart.  Thus sis has no chance of getting the data out.
64#
65#  SIMSPARC_FAST_IDLE (erc32_bsp)
66#     If defined, speed up the clock ticks while the idle task is running so
67#     time spent in the idle task is minimized.  This significantly reduces
68#     the wall time required to execute the RTEMS test suites.
69#
70
71define make-target-options
72        @echo "/* #define NDEBUG 1 */ "                            >>$@
73        @echo "#define RTEMS_TEST_NO_PAUSE 1"                      >>$@
74        @echo "/* #define STACK_CHECKER_ON  1 */"                  >>$@
75        @echo "/* #define RTEMS_DEBUG  1 */"                       >>$@
76        @echo "#define NO_TABLE_MOVE 1"                            >>$@
77        @echo "#define CONSOLE_USE_INTERRUPTS 0"                   >>$@
78        @echo "#define CONSOLE_USE_POLLED ~CONSOLE_USE_INTERRUPTS" >>$@
79        @echo "/* #define SIMSPARC_FAST_IDLE 1 */"                 >>$@
80endef
81
82
83
84# The following are definitions of make-exe which will work using ld as
85# is currently required.  It is expected that as of gcc 2.8, the end user
86# will be able to override parts of the compilers specs and link using gcc.
87
88ifeq ($(RTEMS_USE_GCC272),yes)
89define make-exe
90        $(LD) -u _sbrk $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
91            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
92        $(NM) -g -n $(basename $@).exe > $(basename $@).num
93        $(SIZE) $(basename $@).exe
94endef
95else
96define make-exe
97        $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe $(LINK_OBJS)
98        $(NM) -g -n $(basename $@).exe > $(basename $@).num
99        $(SIZE) $(basename $@).exe
100endef
101endif
102# Miscellaneous additions go here
103
104
105
Note: See TracBrowser for help on using the repository browser.