source: rtems/make/custom/dmv177.cfg @ 3db37a7c

4.104.114.84.95
Last change on this file since 3db37a7c was 3db37a7c, checked in by Joel Sherrill <joel.sherrill@…>, on 09/13/00 at 19:39:00

2000-09-13 Joel Sherrill <joel@…>

  • custom/arm_bare_bsp.cfg, custom/armulator.cfg, custom/dmv177.cfg, custom/mcp750.cfg, custom/vegaplus.cfg: Clean up.
  • Property mode set to 100644
File size: 3.6 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#  CONSOLE_USE_POLLED     (psim_bsp)
22#  CONSOLE_USE_INTERRUPTS (psim_bsp)
23#     The psim console driver has the structure to operate in either
24#     polled or interrupt mode.  However both modes only trap to the
25#     monitor currently.
26#
27#  PPC_VECTOR_FILE_BASE (ppc)
28#     This defines the base address of the exception table.
29#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
30#
31#  PPC_USE_SPRG (RTEMS PowerPC port)
32#     If defined, then the PowerPC specific code in RTEMS will use some
33#     of the special purpose registers to slightly optimize interrupt
34#     response time.  The use of these registers can conflict with
35#     other tools like debuggers.
36#
37#  PPC_USE_DATA_CACHE (RTEMS PowerPC port/BSP)
38#     If defined, then the PowerPC specific code in RTEMS will use
39#     data cache instructions to optimize the context switch code.
40#     This code can conflict with debuggers or emulators.  It is known
41#     to break the Corelis PowerPC emulator with at least some combinations
42#     of PowerPC 603e revisions and emulator versions.
43#     The BSP actually contains the call that enables this.
44#
45#  PPC_USE_INSTRUCTION_CACHE (RTEMS PowerPC port/BSP)
46#     If defined, then the PowerPC specific code in RTEMS will use
47#     data cache instructions to optimize the context switch code.
48#     This code can conflict with debuggers or emulators.
49#     The BSP actually contains the call that enables this.
50
51define make-target-options
52        @echo "#define CONSOLE_USE_INTERRUPTS 0"                   >>$@
53        @echo "#define CONSOLE_USE_POLLED !CONSOLE_USE_INTERRUPTS" >>$@
54        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"                >>$@
55        @echo "#define PPC_USE_SPRG 0"                             >>$@
56        @echo "#define PPC_USE_DATA_CACHE 0"                       >>$@
57        @echo "#define PPC_USE_INSTRUCTION_CACHE 1"                >>$@
58endef
59
60#  This contains the compiler options necessary to select the CPU model
61#  and (hopefully) optimize for it.
62#
63CPU_CFLAGS = -mcpu=603
64
65# optimize flag: typically -0, could use -O4 or -fast
66# -O4 is ok for RTEMS
67# NOTE: some level of -O may be actually required by inline assembler
68CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
69
70# Define this to yes if this target supports a real-time clock.
71HAS_RTC=yes
72
73# The following is a ld command file which works without using the
74# -specs system in gcc 2.8.  IT HAS NEVER BEEN TESTED WITH THIS BSP!!!
75#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
76#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
77#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
78#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
79
80#       $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \
81#           -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \
82#            $(START_FILE) $(LINK_OBJS) \
83#            $(LD_LIBS) \
84#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
85define make-exe
86        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
87            -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
88        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
89        sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
90            $(PACKHEX) > $(basename $@).exe
91        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
92        $(SIZE) $(basename $@).nxe
93        $(STRIP) $(basename $@).nxe
94endef
95
96# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.