source: rtems/make/custom/mvme2307.cfg @ 19ca797

4.104.114.84.95
Last change on this file since 19ca797 was 19ca797, checked in by Joel Sherrill <joel.sherrill@…>, on 10/04/99 at 20:41:28

Motorola MVME2307 BSP submitted by Jay Kulpinski <jskulpin@…>.
No modifications made.

  • Property mode set to 100644
File size: 3.7 KB
Line 
1#
2#  Config file for the PowerPC 60x simulator - mvme2307
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=powerpc
10RTEMS_CPU_MODEL=ppc604
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=mvme2307
14
15# This target does NOT support the TCP/IP stack so ignore requests
16# to enable it.
17#HAS_NETWORKING=no
18
19#  This section makes the target dependent options file.
20
21#  NDEBUG (C library)
22#     if defined asserts do not generate code.  This is commonly used
23#     as a command line option.
24#
25#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
26#     do not pause between screens of output in the rtems tests
27#
28#  RTEMS_DEBUG (RTEMS)
29#     If defined, debug checks in RTEMS and support library code are enabled.
30#
31#  CONSOLE_USE_POLLED     (mvme2307_bsp)
32#  CONSOLE_USE_INTERRUPTS (mvme2307_bsp)
33#     The mvme2307 console driver has the structure to operate in either
34#     polled or interrupt mode.  However both modes only trap to the
35#     monitor currently.
36#
37#  PPC_VECTOR_FILE_BASE (PowerPC)
38#     This defines the base address of the exception table.
39#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
40#
41#  PPC_ABI (PowerPC)
42#     This defines the calling convention (Application Binary Interface)
43#     used in this configuration.  EABI is the only one supported.
44#
45#  PPC_ASM (PowerPC)
46#     This defines the assembly language format used in this configuration.
47#     ELF is the only one supported.
48#
49#  PPC_USE_SPRG (RTEMS PowerPC port)
50#     If defined, then the PowerPC specific code in RTEMS will use some
51#     of the special purpose registers to slightly optimize interrupt
52#     response time.  The use of these registers can conflict with
53#     other tools like debuggers.
54#
55
56define make-target-options
57        @echo "/* #define NDEBUG 1 */ "                            >>$@
58        @echo "#define RTEMS_TEST_NO_PAUSE 1"                      >>$@
59        @echo "/* #define RTEMS_DEBUG  1 */"                       >>$@
60        @echo "#define CONSOLE_USE_INTERRUPTS 0"                   >>$@
61        @echo "#define CONSOLE_USE_POLLED !CONSOLE_USE_INTERRUPTS" >>$@
62        @echo "#define PPC_VECTOR_FILE_BASE 0x00000100"            >>$@
63        @echo "#define PPC_ABI PPC_ABI_EABI"                       >>$@
64        @echo "#define PPC_ASM PPC_ASM_ELF"                        >>$@
65        @echo "#define PPC_USE_SPRG 0"                             >>$@
66endef
67
68#  This contains the compiler options necessary to select the CPU model
69#  and (hopefully) optimize for it.
70#
71CPU_CFLAGS = -mcpu=604
72
73# optimize flag: typically -0, could use -O4 or -fast
74# -O4 is ok for RTEMS
75# NOTE: some level of -O may be actually required by inline assembler
76CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
77
78# Define this to yes if this target supports multiprocessor environments.
79HAS_MP=no
80
81
82# The following is a linkcmds file which will work without using the
83# -specs system in gcc 2.8.
84#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
85#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
86#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
87#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
88
89#       $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \
90#           -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \
91#            $(START_FILE) $(LINK_OBJS) \
92#            $(LD_LIBS) \
93#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
94ifeq ($(RTEMS_USE_GCC272),yes)
95define make-exe
96        $(CC) $(CFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
97        $(NM) -g -n $@ > $(basename $@).num
98        $(SIZE) $@
99endef
100else
101define make-exe
102        $(CC) $(CFLAGS) -o $(basename $@).exe \
103            $(LINK_OBJS) $(LINK_LIBS)
104        $(NM) -g -n $@ > $(basename $@).num
105        $(SIZE) $@
106endef
107endif
108
109# Miscellaneous additions go here
110
111# No start file
112START_BASE=
Note: See TracBrowser for help on using the repository browser.