source: rtems/make/custom/leon2.cfg @ 39cdc26

4.104.114.84.95
Last change on this file since 39cdc26 was 8c47d509, checked in by Joel Sherrill <joel.sherrill@…>, on 11/15/00 at 21:48:40

2000-11-13 Ralf Corsepius <corsepiu@…>

  • custom/leon2.cfg: Removed defines that are now generated in a non-BSP specific manner.
  • Property mode set to 100644
File size: 2.9 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#  NO_TABLE_MOVE (SPARC PORT)
37#     do not have a second trap table -- use the BSP's
38#
39#  CONSOLE_USE_POLLED     (leon_bsp)
40#  CONSOLE_USE_INTERRUPTS (leon_bsp)
41#     The erc32 console driver can operate in either polled or interrupt mode.
42#     Under the simulator (especially when FAST_UART is defined), polled seems
43#     to operate better.  It is common for a task to print a line (like the
44#     end of test message) and then exit.  In this case, the program returns
45#     control to the simulator command line before the program has even queued
46#     the output to the uart.  Thus sis has no chance of getting the data out.
47#
48#  SIMSPARC_FAST_IDLE (leon_bsp)
49#     If defined, speed up the clock ticks while the idle task is running so
50#     time spent in the idle task is minimized.  This significantly reduces
51#     the wall time required to execute the RTEMS test suites.
52#
53#  CPU_U32_FIX (all)
54#     Needed to align received TCP/IP packets since SPARC does not
55#     support unaligned memory access.
56#
57
58define make-target-options
59        @echo "#define NO_TABLE_MOVE 1"                            >>$@
60        @echo "#define CONSOLE_USE_INTERRUPTS 0"                   >>$@
61        @echo "#define CONSOLE_USE_POLLED !CONSOLE_USE_INTERRUPTS" >>$@
62        @echo "/* #define SIMSPARC_FAST_IDLE 1 */"                 >>$@
63        @echo "#define CPU_U32_FIX 1"                              >>$@
64endef
65
66
67
68# The following are definitions of make-exe which will work using ld as
69# is currently required.  It is expected that as of gcc 2.8, the end user
70# will be able to override parts of the compilers specs and link using gcc.
71
72ifeq ($(RTEMS_USE_GCC272),yes)
73define make-exe
74        $(LD) -u _sbrk $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
75            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
76        $(NM) -g -n $(basename $@).exe > $(basename $@).num
77        $(SIZE) $(basename $@).exe
78endef
79else
80define make-exe
81        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
82            $(LINK_OBJS) $(LINK_LIBS)
83        $(NM) -g -n $(basename $@).exe > $(basename $@).num
84        $(SIZE) $(basename $@).exe
85endef
86endif
87# Miscellaneous additions go here
88
Note: See TracBrowser for help on using the repository browser.