source: rtems/make/custom/mvme2307.cfg @ d102375e

Last change on this file since d102375e was d102375e, checked in by Joel Sherrill <joel.sherrill@…>, on May 28, 2000 at 5:52:30 PM

Removed definition of PPC_ABI and PPC_ASM as there are now defaults
that reflect the GNU toolset.

  • Property mode set to 100644
File size: 3.9 KB
Line 
1#
2#  Config file for the PowerPC 604 based mvme2307
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=powerpc
10RTEMS_CPU_MODEL=mpc604
11RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new
12
13# This is the actual bsp directory used during the build process.
14RTEMS_BSP_FAMILY=motorola_powerpc
15
16#  This section makes the target dependent options file.
17
18#  NDEBUG (C library)
19#     if defined asserts do not generate code.  This is commonly used
20#     as a command line option.
21#
22#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
23#     do not pause between screens of output in the rtems tests
24#
25#  RTEMS_DEBUG (RTEMS)
26#     If defined, debug checks in RTEMS and support library code are enabled.
27#
28#  CONSOLE_USE_POLLED     (mvme2307_bsp)
29#  CONSOLE_USE_INTERRUPTS (mvme2307_bsp)
30#     The mvme2307 console driver has the structure to operate in either
31#     polled or interrupt mode.  However both modes only trap to the
32#     monitor currently.
33#
34#  PPC_VECTOR_FILE_BASE (PowerPC)
35#     This defines the base address of the exception table.
36#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
37#
38#  PPC_USE_SPRG (RTEMS PowerPC port)
39#     If defined, then the PowerPC specific code in RTEMS will use some
40#     of the special purpose registers to slightly optimize interrupt
41#     response time.  The use of these registers can conflict with
42#     other tools like debuggers.
43#
44
45define make-target-options
46        @echo "/* #define NDEBUG 1 */ "                        >>$@
47        @echo "#define RTEMS_TEST_NO_PAUSE 1"                  >>$@
48        @echo "/* #define RTEMS_DEBUG  1 */"                   >>$@
49        @echo "#define PPCN_60X_USE_DINK 0"                   >>$@
50        @echo "#define PPCN_60X_USE_NONE 1"                   >>$@
51        @echo "#define PPC_USE_DATA_CACHE 1"                   >>$@
52        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"            >>$@
53        @echo "#define PPC_USE_SPRG  1"
54endef
55
56#  This contains the compiler options necessary to select the CPU model
57#  and (hopefully) optimize for it.
58#
59CPU_CFLAGS = -mcpu=604 -mmultiple -mstring -mstrict-align
60
61# optimize flag: typically -0, could use -O4 or -fast
62# -O4 is ok for RTEMS
63# NOTE: some level of -O may be actually required by inline assembler
64#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
65CFLAGS_OPTIMIZE_V = -O4
66
67# debug flags: typically none, but at least -O1 is required due to this
68# BSP using inlined code
69CFLAGS_DEBUG_V = -O1
70
71# profile flags: typically none, but at least -O1 is required due to this
72# BSP using inlined code
73CFLAGS_PROFILE_V = -O1   
74
75# The following is a linkcmds file which will work without using the
76# -specs system in gcc 2.8.
77#       $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
78#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
79#       $(LD) $(XLDFLAGS) -Ttext 0x20000 \
80#         -o $@ -u atexit -u __vectors -u download_entry $(LINK_FILES)
81
82#       $(CC) -mmvme -mrtems -nostartfiles -mcpu=603 \
83#           -o $(basename $@).exe -L $(PROJECT_RELEASE)/lib \
84#            $(START_FILE) $(LINK_OBJS) \
85#            $(LD_LIBS) \
86#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
87define make-exe
88        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
89        $(NM) -g -n $@ > $(basename $@).num
90        $(SIZE) $@
91#    The following commands make a bootable image but will not work outside
92#    the build tree.
93#       test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin
94#       $(CP) $@ $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/$(ARCH); \
95#       ( cd $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader; \
96#       $(MAKE) bootloader BINARY_LOADED=$@; )
97#       f=`basename $@ .exe`; \
98#        cp $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/bootloader \
99#           ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe \
100#       && chmod 755 \
101#         ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe
102endef
103
104
105# Miscellaneous additions go here
106
107# No start file
108START_BASE=
Note: See TracBrowser for help on using the repository browser.