source: rtems/make/custom/dmv177.cfg @ 6b5a85ae

4.104.114.84.95
Last change on this file since 6b5a85ae was 6b5a85ae, checked in by Joel Sherrill <joel.sherrill@…>, on 05/24/01 at 20:03:10

2001-05-22 Ralf Corsepius <corsepiu@…>

  • custom/dmv177.cfg: Remove CONSOLE_USE_INTERRUPTS, CONSOLE_USE_POLLED, HAS_RTC.
  • Property mode set to 100644
File size: 3.2 KB
Line 
1#
2#  Config file for a PowerPC 603e based DY-4 VMEbus Single Board Computer.
3#  This BSP should work with the following models:
4#
5#     + SVME-171/DMV-171
6#     + SVME-176/DMV-176
7#
8#  $Id$
9#
10
11include $(RTEMS_ROOT)/make/custom/default.cfg
12
13RTEMS_CPU=powerpc
14RTEMS_CPU_MODEL=ppc603e
15
16# This is the actual bsp directory used during the build process.
17RTEMS_BSP_FAMILY=dmv177
18
19#  This section makes the target dependent options file.
20
21#  PPC_VECTOR_FILE_BASE (ppc)
22#     This defines the base address of the exception table.
23#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
24#
25#  PPC_USE_SPRG (RTEMS PowerPC port)
26#     If defined, then the PowerPC specific code in RTEMS will use some
27#     of the special purpose registers to slightly optimize interrupt
28#     response time.  The use of these registers can conflict with
29#     other tools like debuggers.
30#
31#  PPC_USE_DATA_CACHE (RTEMS PowerPC port/BSP)
32#     If defined, then the PowerPC specific code in RTEMS will use
33#     data cache instructions to optimize the context switch code.
34#     This code can conflict with debuggers or emulators.  It is known
35#     to break the Corelis PowerPC emulator with at least some combinations
36#     of PowerPC 603e revisions and emulator versions.
37#     The BSP actually contains the call that enables this.
38#
39#  PPC_USE_INSTRUCTION_CACHE (RTEMS PowerPC port/BSP)
40#     If defined, then the PowerPC specific code in RTEMS will use
41#     data cache instructions to optimize the context switch code.
42#     This code can conflict with debuggers or emulators.
43#     The BSP actually contains the call that enables this.
44
45define make-target-options
46        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"                >>$@
47        @echo "#define PPC_USE_SPRG 0"                             >>$@
48        @echo "#define PPC_USE_DATA_CACHE 0"                       >>$@
49        @echo "#define PPC_USE_INSTRUCTION_CACHE 1"                >>$@
50endef
51
52#  This contains the compiler options necessary to select the CPU model
53#  and (hopefully) optimize for it.
54#
55CPU_CFLAGS = -mcpu=603
56
57# optimize flag: typically -0, could use -O4 or -fast
58# -O4 is ok for RTEMS
59# NOTE: some level of -O may be actually required by inline assembler
60CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
61
62# The following is a ld command file which works without using the
63# -specs system in gcc 2.8.  IT HAS NEVER BEEN TESTED WITH THIS BSP!!!
64#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
65#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
66#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
67#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
68
69#       $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \
70#           -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \
71#            $(START_FILE) $(LINK_OBJS) \
72#            $(LD_LIBS) \
73#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
74define make-exe
75        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
76            -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
77        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
78        sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
79            $(PACKHEX) > $(basename $@).exe
80        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
81        $(SIZE) $(basename $@).nxe
82        $(STRIP) $(basename $@).nxe
83endef
84
85# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.