OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

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

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

Line No. Rev Author Line
1 30 unneback
#
2
#  Config file for the PowerPC 60x simulator - psim
3
#
4
#  $Id: psim.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $
5
#
6
 
7
include $(RTEMS_ROOT)/make/custom/default.cfg
8
 
9
RTEMS_CPU=powerpc
10
RTEMS_CPU_MODEL=ppc603e
11
 
12
# This is the actual bsp directory used during the build process.
13
RTEMS_BSP_FAMILY=psim
14
 
15
#  This section makes the target dependent options file.
16
 
17
#  NDEBUG (C library)
18
#     if defined asserts do not generate code.  This is commonly used
19
#     as a command line option.
20
#
21
#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
22
#     do not pause between screens of output in the rtems tests
23
#
24
#  RTEMS_DEBUG (RTEMS)
25
#     If defined, debug checks in RTEMS and support library code are enabled.
26
#
27
#  CONSOLE_USE_POLLED     (psim_bsp)
28
#  CONSOLE_USE_INTERRUPTS (psim_bsp)
29
#     The psim console driver has the structure to operate in either
30
#     polled or interrupt mode.  However both modes only trap to the
31
#     monitor currently.
32
#
33
#  PSIM_FAST_IDLE (psim_bsp)
34
#     If defined, speed up the clock ticks while the idle task is running so
35
#     time spent in the idle task is minimized.  This significantly reduces
36
#     the wall time required to execute the RTEMS test suites.
37
#
38
#  PPC_VECTOR_FILE_BASE (PowerPC)
39
#     This defines the base address of the exception table.
40
#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
41
#
42
#  PPC_USE_SPRG (RTEMS PowerPC port)
43
#     If defined, then the PowerPC specific code in RTEMS will use some
44
#     of the special purpose registers to slightly optimize interrupt
45
#     response time.  The use of these registers can conflict with
46
#     other tools like debuggers.
47
 
48
 
49
 
50
define make-target-options
51
        @echo "/* #define NDEBUG 1 */ "                            >>$@
52
        @echo "#define RTEMS_TEST_NO_PAUSE 1"                      >>$@
53
        @echo "/* #define RTEMS_DEBUG  1 */"                       >>$@
54
        @echo "#define CONSOLE_USE_INTERRUPTS 0"                   >>$@
55
        @echo "#define CONSOLE_USE_POLLED !CONSOLE_USE_INTERRUPTS" >>$@
56
        @echo "#define PSIM_FAST_IDLE 1"                           >>$@
57
        @echo "#define PPC_VECTOR_FILE_BASE 0xFFF00100"            >>$@
58
        @echo "#define PPC_USE_SPRG 1"                             >>$@
59
endef
60
 
61
#  This contains the compiler options necessary to select the CPU model
62
#  and (hopefully) optimize for it.
63
#
64
CPU_CFLAGS = -mcpu=603
65
#-ffunction-sections
66
 
67
# optimize flag: typically -0, could use -O4 or -fast
68
# -O4 is ok for RTEMS
69
# NOTE: some level of -O may be actually required by inline assembler
70
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
71
 
72
# The following is a linkcmds file which will work without using the
73
# -specs system in gcc 2.8.
74
#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
75
#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
76
#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
77
#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
78
 
79
#       $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \
80
#           -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \
81
#            $(START_FILE) $(LINK_OBJS) \
82
#            $(LD_LIBS) \
83
#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
84
ifeq ($(RTEMS_USE_GCC272),yes)
85
define make-exe
86
        $(CC) $(CFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
87
        $(NM) -g -n $@ > $(basename $@).num
88
        $(SIZE) $@
89
endef
90
else
91
# -Wl,--gc-sections
92
define make-exe
93
        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
94
            $(LINK_OBJS) $(LINK_LIBS)
95
        $(NM) -g -n $@ > $(basename $@).num
96
        $(SIZE) $@
97
endef
98
endif
99
 
100
# Miscellaneous additions go here

powered by: WebSVN 2.1.0

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