source: rtems/make/custom/score603e.cfg @ bfc86bcb

4.104.114.84.95
Last change on this file since bfc86bcb 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: 4.3 KB
Line 
1#
2#  Config file for a PowerPC 603e based Vista VMEbus Single Board Computer.
3#  This BSP should work with the following models:
4#
5#     + Vista SCORE 603e
6#
7#  $Id$
8#
9
10RTEMS_CPU=powerpc
11RTEMS_CPU_MODEL=ppc603e
12
13# Set the default generation if it has not been overridden
14ifeq ($(SCORE603E_GENERATION),)
15SCORE603E_GENERATION=2
16endif
17
18
19# This is the actual bsp directory used during the build process.
20
21RTEMS_BSP_FAMILY=score603e
22
23ifeq ($(SCORE603E_GENERATION),1)
24RTEMS_BSP=score603e_g1
25
26else
27ifeq ($(SCORE603E_GENERATION),2)
28RTEMS_BSP=score603e
29
30endif # generation 2
31endif # generation 1
32
33include $(RTEMS_ROOT)/make/custom/default.cfg
34
35#  This section makes the target dependent options file.
36
37#  NDEBUG (C library)
38#     if defined asserts do not generate code.  This is commonly used
39#     as a command line option.
40#
41#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
42#     do not pause between screens of output in the rtems tests
43#
44#  CONSOLE_USE_POLLED     (score603e_bsp)
45#  CONSOLE_USE_INTERRUPTS (score603e_bsp)
46#     The score603e console driver has the structure to operate in either
47#     polled or interrupt mode.  However both modes only trap to the
48#     monitor currently.
49#
50#  SCORE603E_USE_SDS           (score603e_bsp)
51#  SCORE603E_USE_OPEN_FIRMWARE (score603e_bsp)
52#  SCORE603E_USE_NONE          (score603e_bsp)
53#     The Score603e board can be configured with 3 ROM monitors.  Only two
54#     are appropriate for use with RTEMS.  Set exactly one of these to "1"
55#     to indicate which ROM monitor is on the board you are using.
56#
57#  PPC_VECTOR_FILE_BASE (ppc)
58#     This defines the base address of the exception table.
59#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
60#
61#  PPC_USE_SPRG (RTEMS PowerPC port)
62#     If defined, then the PowerPC specific code in RTEMS will use some
63#     of the special purpose registers to slightly optimize interrupt
64#     response time.  The use of these registers can conflict with
65#     other tools like debuggers.
66#
67#  PPC_USE_DATA_CACHE (RTEMS PowerPC port)
68#     If defined, then the PowerPC specific code in RTEMS will use
69#     data cache instructions to optimize the context switch code.
70#     This code can conflict with debuggers or emulators.
71#
72
73define make-target-options
74        @echo "/* #define NDEBUG 1 */ "                              >>$@
75        @echo "#define RTEMS_TEST_NO_PAUSE 1"                        >>$@
76        @echo "#define CONSOLE_USE_INTERRUPTS 0"                     >>$@
77        @echo "#define INITIALIZE_COM_PORTS 1"                       >>$@
78        @echo "#define SCORE603E_GENERATION $(SCORE603E_GENERATION)" >>$@
79        @echo "#define SCORE603E_USE_SDS  0"                         >>$@
80        @echo "#define SCORE603E_USE_NONE 0"                         >>$@
81        @echo "#define SCORE603E_USE_DINK 1"                         >>$@
82        @echo "#define SCORE603E_USE_OPEN_FIRMWARE 0"                >>$@
83        @echo "#define PPC_USE_DATA_CACHE 0"                         >>$@
84        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"                  >>$@
85        @echo "#define PPC_USE_SPRG  0"                              >>$@
86        @echo "#define HAS_PMC_PSC8  0"                              >>$@
87endef
88
89#  This contains the compiler options necessary to select the CPU model
90#  and (hopefully) optimize for it.
91#
92CPU_CFLAGS = -mcpu=603
93
94# optimize flag: typically -0, could use -O4 or -fast
95# -O4 is ok for RTEMS
96# NOTE: some level of -O may be actually required by inline assembler
97CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
98# CFLAGS_OPTIMIZE_V=-O0
99
100# The following is a linkcmds file which will work without using the
101# -specs system in gcc 2.8.
102#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
103#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
104#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
105#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
106
107ifeq ($(RTEMS_USE_GCC272),yes)
108define make-exe
109        @echo gcc 2.7.2 style linking not supported by score603e
110        @exit 1
111endef
112else
113define make-exe
114        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
115            -o $(basename $@).elf $(LINK_OBJS) $(LINK_LIBS)
116        $(NM) -g -n $(basename $@).elf > $(basename $@).num
117        $(SIZE) $(basename $@).elf
118        $(OBJCOPY) -O srec $(basename $@).elf $(basename $@).s1
119        sed -e 's/.$$//' $(basename $@).s1 | \
120          $(PACKHEX) >$(basename $@).exe
121        rm -f $(basename $@).s1
122endef
123endif
124
125# Miscellaneous additions go here
126
127DRIVER_ARCHITECTURE=vmebus
Note: See TracBrowser for help on using the repository browser.