source: rtems/make/custom/mvme2307.cfg @ 8725d7c

4.104.114.84.95
Last change on this file since 8725d7c was 8725d7c, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 1, 2000 at 2:21:40 PM

Patch rtems-rc-20000731-2-cvs.diff from Ralf Corsepius <corsepiu@…>
that does the following:

Changes:

Remove $(SED) and $(CP) from make/custom/*.cfg

Motivation:

  • autoconf and automake presuppose sed and cp to be present.
  • make/host.cfg.in already contains SED = sed hard-coded into it for a long time.
  • Elimination of make-variables
  • Eliminate make/*.cfg files or at least reduce their complexity :)
  • Property mode set to 100644
File size: 3.4 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#  CONSOLE_USE_POLLED     (mvme2307_bsp)
19#  CONSOLE_USE_INTERRUPTS (mvme2307_bsp)
20#     The mvme2307 console driver has the structure to operate in either
21#     polled or interrupt mode.  However both modes only trap to the
22#     monitor currently.
23#
24#  PPC_VECTOR_FILE_BASE (PowerPC)
25#     This defines the base address of the exception table.
26#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
27#
28#  PPC_USE_SPRG (RTEMS PowerPC port)
29#     If defined, then the PowerPC specific code in RTEMS will use some
30#     of the special purpose registers to slightly optimize interrupt
31#     response time.  The use of these registers can conflict with
32#     other tools like debuggers.
33#
34
35define make-target-options
36        @echo "#define PPCN_60X_USE_DINK 0"                   >>$@
37        @echo "#define PPCN_60X_USE_NONE 1"                   >>$@
38        @echo "#define PPC_USE_DATA_CACHE 1"                   >>$@
39        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"            >>$@
40        @echo "#define PPC_USE_SPRG  1"
41endef
42
43#  This contains the compiler options necessary to select the CPU model
44#  and (hopefully) optimize for it.
45#
46CPU_CFLAGS = -mcpu=604 -mmultiple -mstring -mstrict-align
47
48# optimize flag: typically -0, could use -O4 or -fast
49# -O4 is ok for RTEMS
50# NOTE: some level of -O may be actually required by inline assembler
51#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
52CFLAGS_OPTIMIZE_V = -O4
53
54# debug flags: typically none, but at least -O1 is required due to this
55# BSP using inlined code
56CFLAGS_DEBUG_V = -O1
57
58# profile flags: typically none, but at least -O1 is required due to this
59# BSP using inlined code
60CFLAGS_PROFILE_V = -O1   
61
62# The following is a linkcmds file which will work without using the
63# -specs system in gcc 2.8.
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) -o $@ $(LINK_OBJS) $(LINK_LIBS)
76        $(NM) -g -n $@ > $(basename $@).num
77        $(SIZE) $@
78#    The following commands make a bootable image but will not work outside
79#    the build tree.
80#       test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin
81#       cp $@ $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/$(ARCH); \
82#       ( cd $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader; \
83#       $(MAKE) bootloader BINARY_LOADED=$@; )
84#       f=`basename $@ .exe`; \
85#        cp $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/bootloader \
86#           ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe \
87#       && chmod 755 \
88#         ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe
89endef
90
91# Miscellaneous additions go here
92
93# No start file
94START_BASE=
Note: See TracBrowser for help on using the repository browser.