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

Last change on this file since effc2c4 was effc2c4, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 3, 2000 at 2:44:39 PM

Patch rtems-rc-4.5.0-6-cvs.diff from Ralf Corsepius <corsepiu@…>.
The patch contains:

  • build variants support
  • Reworked make-exe custom/*.cfg for all targets (Should be self-explanatory, may still be incomplete)
  • Several fixes to custom/*.cfgs related to setting debug flags
  • Fixes to some bsp_specs for BSPs which apparently have never been build with debugging before ;)
  • pc386.cfg fix attempts (cf. my mail from earlier today)
  • Updated ampolish (No need to run it, the patch contains the result from having applied it)

Known bugs/deficiencies related to this work:

  • "make [clean|distclean]" support is still incomplete (e.g. "make clean" does not delete all Depends-o-*)
  • Completely untested for linux/posix and hppa.
  • Build failures of i960 BSPs (make VARIANT=DEBUG) - I guess, they are not related to this patch.
  • Successfully tested for all sh, sparc, i386, ppc, m68k BSPs (make VARIANT=DEBUG)
  • make VARIANT=PROFILE not supported by all BSPs (I don't care :)
  • make VARIANT=DEBUG failures below tests/ for some BSPs (e.g. gensh1), because of the tests's binaries being too large to fit into the target memory layout.
  • Property mode set to 100644
File size: 4.8 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#  RTEMS_DEBUG (RTEMS)
45#     If defined, debug checks in RTEMS and support library code are enabled.
46#
47#  CONSOLE_USE_POLLED     (score603e_bsp)
48#  CONSOLE_USE_INTERRUPTS (score603e_bsp)
49#     The score603e console driver has the structure to operate in either
50#     polled or interrupt mode.  However both modes only trap to the
51#     monitor currently.
52#
53#  SCORE603E_USE_SDS           (score603e_bsp)
54#  SCORE603E_USE_OPEN_FIRMWARE (score603e_bsp)
55#  SCORE603E_USE_NONE          (score603e_bsp)
56#     The Score603e board can be configured with 3 ROM monitors.  Only two
57#     are appropriate for use with RTEMS.  Set exactly one of these to "1"
58#     to indicate which ROM monitor is on the board you are using.
59#
60#  PPC_VECTOR_FILE_BASE (ppc)
61#     This defines the base address of the exception table.
62#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
63#
64#  PPC_ABI (ppc)
65#     This defines the calling convention (Application Binary Interface)
66#     used in this configuration.  EABI is the only one supported.
67#
68#  PPC_ASM (ppc)
69#     This defines the assembly language format used in this configuration.
70#     ELF is the only one supported.
71#
72#  PPC_USE_SPRG (RTEMS PowerPC port)
73#     If defined, then the PowerPC specific code in RTEMS will use some
74#     of the special purpose registers to slightly optimize interrupt
75#     response time.  The use of these registers can conflict with
76#     other tools like debuggers.
77#
78#  PPC_USE_DATA_CACHE (RTEMS PowerPC port)
79#     If defined, then the PowerPC specific code in RTEMS will use
80#     data cache instructions to optimize the context switch code.
81#     This code can conflict with debuggers or emulators.
82#
83
84define make-target-options
85        @echo "/* #define NDEBUG 1 */ "                              >>$@
86        @echo "#define RTEMS_TEST_NO_PAUSE 1"                        >>$@
87        @echo "/* #define RTEMS_DEBUG  1 */"                         >>$@
88        @echo "#define CONSOLE_USE_INTERRUPTS 0"                     >>$@
89        @echo "#define INITIALIZE_COM_PORTS 1"                       >>$@
90        @echo "#define SCORE603E_GENERATION $(SCORE603E_GENERATION)" >>$@
91        @echo "#define SCORE603E_USE_SDS  0"                         >>$@
92        @echo "#define SCORE603E_USE_NONE 0"                         >>$@
93        @echo "#define SCORE603E_USE_DINK 1"                         >>$@
94        @echo "#define SCORE603E_USE_OPEN_FIRMWARE 0"                >>$@
95        @echo "#define PPC_USE_DATA_CACHE 0"                         >>$@
96        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"                  >>$@
97        @echo "#define PPC_ABI PPC_ABI_EABI"                         >>$@
98        @echo "#define PPC_ASM PPC_ASM_ELF"                          >>$@
99        @echo "#define PPC_USE_SPRG  0"                              >>$@
100        @echo "#define HAS_PMC_PSC8  0"                              >>$@
101endef
102
103#  This contains the compiler options necessary to select the CPU model
104#  and (hopefully) optimize for it.
105#
106CPU_CFLAGS = -mcpu=603
107
108# optimize flag: typically -0, could use -O4 or -fast
109# -O4 is ok for RTEMS
110# NOTE: some level of -O may be actually required by inline assembler
111CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
112# CFLAGS_OPTIMIZE_V=-O0
113
114# The following is a linkcmds file which will work without using the
115# -specs system in gcc 2.8.
116#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
117#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
118#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
119#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
120
121ifeq ($(RTEMS_USE_GCC272),yes)
122define make-exe
123        @echo gcc 2.7.2 style linking not supported by score603e
124        @exit 1
125endef
126else
127define make-exe
128        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
129            -o $(basename $@).elf $(LINK_OBJS) $(LINK_LIBS)
130        $(NM) -g -n $(basename $@).elf > $(basename $@).num
131        $(SIZE) $(basename $@).elf
132        $(OBJCOPY) -O srec $(basename $@).elf $(basename $@).s1
133        sed -e 's/.$$//' $(basename $@).s1 | \
134          $(PACKHEX) >$(basename $@).exe
135        rm -f $(basename $@).s1
136endef
137endif
138
139# Miscellaneous additions go here
140
141DRIVER_ARCHITECTURE=vmebus
Note: See TracBrowser for help on using the repository browser.