source: rtems/make/custom/score603e.cfg @ 206a0b38

4.104.114.84.95
Last change on this file since 206a0b38 was 206a0b38, checked in by Joel Sherrill <joel.sherrill@…>, on 06/19/01 at 14:27:43

2001-06-19 Ralf Corsepius <corsepiu@…>

custom/Cygwin-posix.cfg: Remove -USTRICT_ANSI, make-target-options.
custom/FreeBSD-posix.cfg: Remove make-target-options.
custom/HPUX9-posix.cfg: Dito.
custom/Linux-posix.cfg: Dito.
custom/Solaris-posix.cfg: Dito.
custom/arm_bare_bsp.cfg: Dito.
custom/armulator.cfg: Dito.
custom/erc32.cfg: Remove CONSOLE_USE_POLLED, CONSOLE_USE_INTERRUPTS.
custom/i386ex.cfg: Remove make-target-options.
custom/i960sim.cfg: Remove make-target-options.
custom/mvme2307.cfg: Remove CONSOLE_USE_POLLED, CONSOLE_USE_INTERRUPTS.
custom/rxgen960.cfg: Remove make-target-options, cleanup comments.
custom/score603e.cfg: Remove CONSOLE_USE_POLLED, CONSOLE_USE_INTERRUPTS.
custom/vegaplus.cfg: Remove make-target-options.

  • Property mode set to 100644
File size: 3.6 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# This is the actual bsp directory used during the build process.
19
20RTEMS_BSP_FAMILY=score603e
21
22ifeq ($(SCORE603E_GENERATION),1)
23RTEMS_BSP=score603e_g1
24
25else
26ifeq ($(SCORE603E_GENERATION),2)
27RTEMS_BSP=score603e
28
29endif # generation 2
30endif # generation 1
31
32include $(RTEMS_ROOT)/make/custom/default.cfg
33
34#  This section makes the target dependent options file.
35
36#  SCORE603E_USE_SDS           (score603e_bsp)
37#  SCORE603E_USE_OPEN_FIRMWARE (score603e_bsp)
38#  SCORE603E_USE_NONE          (score603e_bsp)
39#     The Score603e board can be configured with 3 ROM monitors.  Only two
40#     are appropriate for use with RTEMS.  Set exactly one of these to "1"
41#     to indicate which ROM monitor is on the board you are using.
42#
43#  PPC_VECTOR_FILE_BASE (ppc)
44#     This defines the base address of the exception table.
45#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
46#
47#  PPC_USE_SPRG (RTEMS PowerPC port)
48#     If defined, then the PowerPC specific code in RTEMS will use some
49#     of the special purpose registers to slightly optimize interrupt
50#     response time.  The use of these registers can conflict with
51#     other tools like debuggers.
52#
53#  PPC_USE_DATA_CACHE (RTEMS PowerPC port)
54#     If defined, then the PowerPC specific code in RTEMS will use
55#     data cache instructions to optimize the context switch code.
56#     This code can conflict with debuggers or emulators.
57#
58
59define make-target-options
60        @echo "#define INITIALIZE_COM_PORTS 1"                       >>$@
61        @echo "#define SCORE603E_GENERATION $(SCORE603E_GENERATION)" >>$@
62        @echo "#define SCORE603E_USE_SDS  0"                         >>$@
63        @echo "#define SCORE603E_USE_NONE 0"                         >>$@
64        @echo "#define SCORE603E_USE_DINK 1"                         >>$@
65        @echo "#define SCORE603E_USE_OPEN_FIRMWARE 0"                >>$@
66        @echo "#define PPC_USE_DATA_CACHE 0"                         >>$@
67        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"                  >>$@
68        @echo "#define PPC_USE_SPRG  0"                              >>$@
69        @echo "#define HAS_PMC_PSC8  0"                              >>$@
70endef
71
72#  This contains the compiler options necessary to select the CPU model
73#  and (hopefully) optimize for it.
74#
75CPU_CFLAGS = -mcpu=603
76
77# optimize flag: typically -0, could use -O4 or -fast
78# -O4 is ok for RTEMS
79# NOTE: some level of -O may be actually required by inline assembler
80CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
81# CFLAGS_OPTIMIZE_V=-O0
82
83# The following is a linkcmds file which will work without using the
84# -specs system in gcc 2.8.
85#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
86#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
87#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
88#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
89
90ifeq ($(RTEMS_USE_GCC272),yes)
91define make-exe
92        @echo gcc 2.7.2 style linking not supported by score603e
93        @exit 1
94endef
95else
96define make-exe
97        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
98            -o $(basename $@).elf $(LINK_OBJS) $(LINK_LIBS)
99        $(NM) -g -n $(basename $@).elf > $(basename $@).num
100        $(SIZE) $(basename $@).elf
101        $(OBJCOPY) -O srec $(basename $@).elf $(basename $@).s1
102        sed -e 's/.$$//' $(basename $@).s1 | \
103          $(PACKHEX) >$(basename $@).exe
104        rm -f $(basename $@).s1
105endef
106endif
107
108# Miscellaneous additions go here
109
110DRIVER_ARCHITECTURE=vmebus
Note: See TracBrowser for help on using the repository browser.