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

4.104.114.84.95
Last change on this file since b812f84 was b8a30d07, checked in by Joel Sherrill <joel.sherrill@…>, on 07/13/00 at 15:05:38

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

Changes:

  • Make RTEMS_TEST_NO_PAUSE a tests/ subpackage specific option.
    • Remove RTEMS_TEST_NO_PAUSE from custom/*.cfg, targopts.h and cpuopts.h.
    • Add autoconf macros RTEMS_*_RTEMS_TEST_NO_PAUSE (aclocal/rtems-test-no-pause.m4).
    • Add RTEMS_*_RTEMS_TEST_NO_PAUSE support to sptests/configure.ins and tmtests/configure.in. These are the only subdirectories which currently apply RTEMS_TEST_NO_PAUSE.
    • Add autoconf-DEFS support to all test subpackages' configure.ins below tests/. I.e. AC_DEFINES now get explicitly propagated as preprocessor defines into Makefiles, cf. AM_CPPFLAGS in tests/*/*.am, instead of using a global config-files.
    • Remove NDEBUG from custom/*.cfg.
  • AC_DEFINE POSIX_API, ITRON_API and MULTIPROCESSING in exec/configure.in, only.
    • All other sources now should relay on the values from cpuopts.h and should not define them themselves.
    • Several related changes to many configure.ins
  • Bug-fixes to RTEMS_*_RTEMS_DEBUG macros (Actually workarounds to quoting bugs in autoconf).

Notes:

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