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

4.104.114.84.95
Last change on this file since c2b12f2 was c2b12f2, checked in by Joel Sherrill <joel.sherrill@…>, on 12/18/01 at 14:11:02

2001-12-09 Ralf Corsepius <corsepiu@…>

  • custom/armulator.cfg: Remove make-target-options.
  • custom/erc32.cfg: Remove CONSOLE_USE_INTERRUPTS, SIMSPARC_FAST_IDLE (now in erc32/configure.ac).
  • custom/leon2.cfg: Remove CONSOLE_USE_INTERRUPTS, SIMSPARC_FAST_IDLE (now in leon2/configure.ac). Remove CONSOLE_USE_POLLED (Unused).
  • custom/mvme167.cfg: Remove CD2401_INT_LEVEL, CD2401_IO_MODE, CD2401_USE_TERMIOS (now in mvme167/configure.ac).
  • custom/mvme162.cfg: Remove references to mvme162lx. Abandon gcc272. Remove make-target-options.
  • custom/mvme162lx.cfg: Add portions formerly in mvme162.cfg.
  • Property mode set to 100644
File size: 2.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#  FPU_REVB (erc32_bsp)
42#     If defined, enables work-around for bug 3.14 in FPU rev.B or rev.C
43#
44#  CPU_U32_FIX (all) libchip/network/sonic.*
45#     Needed to align received TCP/IP packets since SPARC does not
46#     support unaligned memory access.
47#
48
49define make-target-options
50        @echo "#define NO_TABLE_MOVE 1"                            >>$@
51        @echo "/* #define FPU_REVB 1 */"                           >>$@
52        @echo "#define CPU_U32_FIX 1"                              >>$@
53endef
54
55# The following are definitions of make-exe which will work using ld as
56# is currently required.  It is expected that as of gcc 2.8, the end user
57# will be able to override parts of the compilers specs and link using gcc.
58
59ifeq ($(RTEMS_USE_GCC272),yes)
60define make-exe
61        $(LD) -u _sbrk $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
62            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
63        $(NM) -g -n $(basename $@).exe > $(basename $@).num
64        $(SIZE) $(basename $@).exe
65endef
66else
67define make-exe
68        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
69            $(LINK_OBJS) $(LINK_LIBS)
70        $(NM) -g -n $(basename $@).exe > $(basename $@).num
71        $(SIZE) $(basename $@).exe
72endef
73endif
74# Miscellaneous additions go here
75
Note: See TracBrowser for help on using the repository browser.