source: rtems/make/custom/psim.cfg @ 1504f71e

4.104.114.84.95
Last change on this file since 1504f71e was 1504f71e, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 14, 1998 at 9:33:20 PM

Stack checker on

  • Property mode set to 100644
File size: 4.0 KB
Line 
1#
2#  Config file for the PowerPC 60x simulator - psim
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=powerpc
10RTEMS_CPU_MODEL=ppc603e
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=psim
14
15# This target does NOT support the KA9Q TCP/IP stack so ignore requests
16# to enable it.
17HAS_KA9Q=no
18
19#  This section makes the target dependent options file.
20
21#  NDEBUG (C library)
22#     if defined asserts do not generate code.  This is commonly used
23#     as a command line option.
24#
25#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
26#     do not pause between screens of output in the rtems tests
27#
28#  STACK_CHECKER_ON (RTEMS support code)
29#     If defined, stack bounds checking is enabled.
30#
31#  RTEMS_DEBUG (RTEMS)
32#     If defined, debug checks in RTEMS and support library code are enabled.
33#
34#  CONSOLE_USE_POLLED     (psim_bsp)
35#  CONSOLE_USE_INTERRUPTS (psim_bsp)
36#     The psim console driver has the structure to operate in either
37#     polled or interrupt mode.  However both modes only trap to the
38#     monitor currently.
39#
40#  PSIM_FAST_IDLE (psim_bsp)
41#     If defined, speed up the clock ticks while the idle task is running so
42#     time spent in the idle task is minimized.  This significantly reduces
43#     the wall time required to execute the RTEMS test suites.
44#
45#  PPC_VECTOR_FILE_BASE (ppc)
46#     This defines the base address of the exception table.
47#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
48#
49#  PPC_ABI (ppc)
50#     This defines the calling convention (Application Binary Interface)
51#     used in this configuration.  EABI is the only one supported.
52#
53#  PPC_ASM (ppc)
54#     This defines the assembly language format used in this configuration.
55#     ELF is the only one supported.
56#
57#  PPC_USE_SPRG (RTEMS PowerPC port)
58#     If defined, then the PowerPC specific code in RTEMS will use some
59#     of the special purpose registers to slightly optimize interrupt
60#     response time.  The use of these registers can conflict with
61#     other tools like debuggers.
62
63
64
65define make-target-options
66        @echo "/* #define NDEBUG 1 */ "                            >>$@
67        @echo "#define RTEMS_TEST_NO_PAUSE 1"                      >>$@
68        @echo "#define STACK_CHECKER_ON  1"                        >>$@
69        @echo "/* #define RTEMS_DEBUG  1 */"                       >>$@
70        @echo "#define CONSOLE_USE_INTERRUPTS 0"                   >>$@
71        @echo "#define CONSOLE_USE_POLLED ~CONSOLE_USE_INTERRUPTS" >>$@
72        @echo "#define PSIM_FAST_IDLE 1"                           >>$@
73        @echo "#define PPC_VECTOR_FILE_BASE 0xFFF00100"            >>$@
74        @echo "#define PPC_ABI PPC_ABI_EABI"                       >>$@
75        @echo "#define PPC_ASM PPC_ASM_ELF"                        >>$@
76        @echo "#define PPC_USE_SPRG 1"                             >>$@
77endef
78
79#  This contains the compiler options necessary to select the CPU model
80#  and (hopefully) optimize for it.
81#
82CPU_CFLAGS = -mcpu=603
83
84# optimize flag: typically -0, could use -O4 or -fast
85# -O4 is ok for RTEMS
86# NOTE: some level of -O may be actually required by inline assembler
87CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
88
89# Define this to yes if this target supports multiprocessor environments.
90HAS_MP=no
91
92# This target does not support the ka9q tcp/ip stack so ignore requests
93# to enable it.
94HAS_KA9Q=no
95
96# The following is a linkcmds file which will work without using the
97# -specs system in gcc 2.8.
98#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
99#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
100#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
101#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
102
103#       $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \
104#           -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \
105#            $(START_FILE) $(LINK_OBJS) \
106#            $(LD_LIBS) \
107#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
108define make-exe
109        $(CC) $(CFLAGS) -o $(basename $@).exe $(LINK_OBJS)
110        $(NM) -g -n $@ > $(basename $@).num
111        $(SIZE) $@
112endef
113
114# Miscellaneous additions go here
115
116# No start file
117START_BASE=
Note: See TracBrowser for help on using the repository browser.