OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [make/] [custom/] [erc32.cfg] - Blame information for rev 433

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
#
2
#  Config file for the European Space Agency ERC32
3
#  a V7 SPARC processor derived from the Cypress 601/602 set.
4
#
5
#  $Id: erc32.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $
6
#
7
 
8
include $(RTEMS_ROOT)/make/custom/default.cfg
9
 
10
RTEMS_CPU=sparc
11
RTEMS_CPU_MODEL=erc32
12
 
13
# This is the actual bsp directory used during the build process.
14
RTEMS_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
 
19
ifeq ($(RTEMS_USE_GCC272),yes)
20
#     -mno-v8 says not to use v8 level instructions.  i.e. use v7 only
21
CPU_CFLAGS = -mno-v8 -mcypress
22
else
23
#     -mcpu=cypress says to optimize for a Cypress 60x chipset
24
CPU_CFLAGS = -mcpu=cypress
25
endif
26
 
27
# optimize flag: typically -0, could use -O4 or -fast
28
# -O4 is ok for RTEMS
29
CFLAGS_OPTIMIZE_V=-O4
30
 
31
#  This makes the target dependent options file
32
 
33
#  NDEBUG (C library)
34
#     if defined asserts do not generate code.  This is commonly used
35
#     as a command line option.
36
#
37
#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
38
#     do not pause between screens of output in the rtems tests
39
#
40
#  NO_TABLE_MOVE (SPARC PORT)
41
#     do not have a second trap table -- use the BSP's
42
#
43
#  RTEMS_DEBUG (RTEMS)
44
#     If defined, debug checks in RTEMS and support library code are enabled.
45
#
46
#  CONSOLE_USE_POLLED     (erc32_bsp)
47
#  CONSOLE_USE_INTERRUPTS (erc32_bsp)
48
#     The erc32 console driver can operate in either polled or interrupt mode.
49
#     Under the simulator (especially when FAST_UART is defined), polled seems
50
#     to operate better.  It is common for a task to print a line (like the
51
#     end of test message) and then exit.  In this case, the program returns
52
#     control to the simulator command line before the program has even queued
53
#     the output to the uart.  Thus sis has no chance of getting the data out.
54
#
55
#  SIMSPARC_FAST_IDLE (erc32_bsp)
56
#     If defined, speed up the clock ticks while the idle task is running so
57
#     time spent in the idle task is minimized.  This significantly reduces
58
#     the wall time required to execute the RTEMS test suites.
59
#
60
#  FPU_REVB (erc32_bsp)
61
#     If defined, enables work-around for bug 3.14 in FPU rev.B or rev.C
62
#
63
 
64
define make-target-options
65
        @echo "/* #define NDEBUG 1 */ "                            >>$@
66
        @echo "#define RTEMS_TEST_NO_PAUSE 1"                      >>$@
67
        @echo "/* #define RTEMS_DEBUG  1 */"                       >>$@
68
        @echo "#define NO_TABLE_MOVE 1"                            >>$@
69
        @echo "#define CONSOLE_USE_INTERRUPTS 0"                   >>$@
70
        @echo "#define CONSOLE_USE_POLLED !CONSOLE_USE_INTERRUPTS" >>$@
71
        @echo "/* #define SIMSPARC_FAST_IDLE 1 */"                 >>$@
72
        @echo "#define FPU_REVB 1"                                 >>$@
73
endef
74
 
75
 
76
 
77
# The following are definitions of make-exe which will work using ld as
78
# is currently required.  It is expected that as of gcc 2.8, the end user
79
# will be able to override parts of the compilers specs and link using gcc.
80
 
81
ifeq ($(RTEMS_USE_GCC272),yes)
82
define make-exe
83
        $(LD) -u _sbrk $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
84
            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
85
        $(NM) -g -n $(basename $@).exe > $(basename $@).num
86
        $(SIZE) $(basename $@).exe
87
endef
88
else
89
define make-exe
90
        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
91
            $(LINK_OBJS) $(LINK_LIBS)
92
        $(NM) -g -n $(basename $@).exe > $(basename $@).num
93
        $(SIZE) $(basename $@).exe
94
endef
95
endif
96
# Miscellaneous additions go here
97
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.