source: rtems/make/custom/erc32.cfg @ 969de1f3

4.104.114.84.95
Last change on this file since 969de1f3 was cd0324cf, checked in by Joel Sherrill <joel.sherrill@…>, on 11/13/00 at 22:48:24

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.2 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
11
12ifeq ($(RTEMS_CPU_MODEL),erc32nfp)
13MSOFT_FLOAT = -msoft-float
14else
15RTEMS_CPU_MODEL=erc32
16endif
17# This is the actual bsp directory used during the build process.
18RTEMS_BSP_FAMILY=erc32
19
20#   The -mflat avoids the use of save/restore instructions.  It has
21#   a negative impact on the performance of RTEMS and should not be used.
22
23ifeq ($(RTEMS_USE_GCC272),yes)
24#     -mno-v8 says not to use v8 level instructions.  i.e. use v7 only
25# FIXME: This known not to work with gcc's >= gcc-2.95
26CPU_CFLAGS = -mno-v8 -mcypress $(MSOFT_FLOAT)
27else
28#     -mcpu=cypress says to optimize for a Cypress 60x chipset
29CPU_CFLAGS = -mcpu=cypress $(MSOFT_FLOAT)
30endif
31
32# optimize flag: typically -0, could use -O4 or -fast
33# -O4 is ok for RTEMS
34CFLAGS_OPTIMIZE_V=-O4
35
36#  This makes the target dependent options file
37
38#  NO_TABLE_MOVE (SPARC PORT)
39#     do not have a second trap table -- use the BSP's
40#
41#  CONSOLE_USE_POLLED     (erc32_bsp)
42#  CONSOLE_USE_INTERRUPTS (erc32_bsp)
43#     The erc32 console driver can operate in either polled or interrupt mode.
44#     Under the simulator (especially when FAST_UART is defined), polled seems
45#     to operate better.  It is common for a task to print a line (like the
46#     end of test message) and then exit.  In this case, the program returns
47#     control to the simulator command line before the program has even queued
48#     the output to the uart.  Thus sis has no chance of getting the data out.
49#
50#  SIMSPARC_FAST_IDLE (erc32_bsp)
51#     If defined, speed up the clock ticks while the idle task is running so
52#     time spent in the idle task is minimized.  This significantly reduces
53#     the wall time required to execute the RTEMS test suites.
54#
55#  FPU_REVB (erc32_bsp)
56#     If defined, enables work-around for bug 3.14 in FPU rev.B or rev.C
57#
58#  CPU_U32_FIX (all)
59#     Needed to align received TCP/IP packets since SPARC does not
60#     support unaligned memory access.
61#
62
63define make-target-options
64        @echo "#define NO_TABLE_MOVE 1"                            >>$@
65        @echo "#define CONSOLE_USE_INTERRUPTS 0"                   >>$@
66        @echo "#define CONSOLE_USE_POLLED !CONSOLE_USE_INTERRUPTS" >>$@
67        @echo "/* #define SIMSPARC_FAST_IDLE 1 */"                 >>$@
68        @echo "/* #define FPU_REVB 1 */"                           >>$@
69        @echo "#define CPU_U32_FIX 1"                              >>$@
70endef
71
72# The following are definitions of make-exe which will work using ld as
73# is currently required.  It is expected that as of gcc 2.8, the end user
74# will be able to override parts of the compilers specs and link using gcc.
75
76ifeq ($(RTEMS_USE_GCC272),yes)
77define make-exe
78        $(LD) -u _sbrk $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
79            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
80        $(NM) -g -n $(basename $@).exe > $(basename $@).num
81        $(SIZE) $(basename $@).exe
82endef
83else
84define make-exe
85        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
86            $(LINK_OBJS) $(LINK_LIBS)
87        $(NM) -g -n $(basename $@).exe > $(basename $@).num
88        $(SIZE) $(basename $@).exe
89endef
90endif
91# Miscellaneous additions go here
92
Note: See TracBrowser for help on using the repository browser.