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

4.104.114.84.95
Last change on this file since 39607984 was 39607984, checked in by Joel Sherrill <joel.sherrill@…>, on 07/12/00 at 19:23:14

Patch rtems-rc-20000712-1-cvs.diff from Ralf Corsepius <corsepiu@…>
that is yet another multilib-related structual cleanup patch:

Changes:

  • Make RTEMS_DEBUG a global per-cpu configuration option
  • Remove RTEMS_DEBUG from targopts.h
  • Add a global --enable-rtems-debug option disabled by default.
  • Add RTEMS_DEBUG to cpuopts.h
  • Remove all references to RTEMS_DEBUG from custom/*.cfg

Notes:

  • RTEMS_DEBUG is set in c/src/exec/configure.in only (RTEMS_CHECK_RTEMS_DEBUG) and should be defined in cpuopts.h only. BSPs should not redefine it, but use the value being provided by cpuopts.h. => With multilibs, users have to choose: Either enable RTEMS_DEBUG

for all BSPs and CPU_MODELs of a cpu or not.

  • Only few BSPs had RTEMS_DEBUG enabled, therefore I set the default to disabled.
  • This patch influences the per-BSP building scheme. Existing BSPs which set RTEMS_DEBUG in their make-target-options rule might have problems at runtime.
  • Property mode set to 100644
File size: 3.2 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 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#  CONSOLE_USE_POLLED     (psim_bsp)
25#  CONSOLE_USE_INTERRUPTS (psim_bsp)
26#     The psim console driver has the structure to operate in either
27#     polled or interrupt mode.  However both modes only trap to the
28#     monitor currently.
29#
30#  PSIM_FAST_IDLE (psim_bsp)
31#     If defined, speed up the clock ticks while the idle task is running so
32#     time spent in the idle task is minimized.  This significantly reduces
33#     the wall time required to execute the RTEMS test suites.
34#
35#  PPC_VECTOR_FILE_BASE (PowerPC)
36#     This defines the base address of the exception table.
37#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
38#
39#  PPC_USE_SPRG (RTEMS PowerPC port)
40#     If defined, then the PowerPC specific code in RTEMS will use some
41#     of the special purpose registers to slightly optimize interrupt
42#     response time.  The use of these registers can conflict with
43#     other tools like debuggers.
44
45
46
47define make-target-options
48        @echo "/* #define NDEBUG 1 */ "                            >>$@
49        @echo "#define RTEMS_TEST_NO_PAUSE 1"                      >>$@
50        @echo "#define CONSOLE_USE_INTERRUPTS 0"                   >>$@
51        @echo "#define CONSOLE_USE_POLLED !CONSOLE_USE_INTERRUPTS" >>$@
52        @echo "#define PSIM_FAST_IDLE 1"                           >>$@
53        @echo "#define PPC_VECTOR_FILE_BASE 0xFFF00100"            >>$@
54        @echo "#define PPC_USE_SPRG 1"                             >>$@
55endef
56
57#  This contains the compiler options necessary to select the CPU model
58#  and (hopefully) optimize for it.
59#
60CPU_CFLAGS = -mcpu=603
61#-ffunction-sections
62
63# optimize flag: typically -0, could use -O4 or -fast
64# -O4 is ok for RTEMS
65# NOTE: some level of -O may be actually required by inline assembler
66CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
67
68# The following is a linkcmds file which will work without using the
69# -specs system in gcc 2.8.
70#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
71#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
72#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
73#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
74
75#       $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \
76#           -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \
77#            $(START_FILE) $(LINK_OBJS) \
78#            $(LD_LIBS) \
79#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
80ifeq ($(RTEMS_USE_GCC272),yes)
81define make-exe
82        $(CC) $(CFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
83        $(NM) -g -n $@ > $(basename $@).num
84        $(SIZE) $@
85endef
86else
87# -Wl,--gc-sections
88define make-exe
89        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
90            $(LINK_OBJS) $(LINK_LIBS)
91        $(NM) -g -n $@ > $(basename $@).num
92        $(SIZE) $@
93endef
94endif
95
96# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.