source: rtems/make/custom/leon2.cfg @ cd0324cf

4.104.114.84.95
Last change on this file since cd0324cf was cd0324cf, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 13, 2000 at 10:48:24 PM

2000-11-13 Jiri Gaisler <jgais@…>

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