source: rtems/make/custom/psim.cfg @ ca0bafa7

4.104.114.84.95
Last change on this file since ca0bafa7 was b3d3a34e, checked in by Joel Sherrill <joel.sherrill@…>, on 04/15/98 at 15:10:47

Stack checker now enabled via initial set of user extensions. This
eliminates the need to build the entire application with the
STACK_CHECKER_ON macro defined.

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