source: rtems/make/custom/mvme167.cfg @ 997c921

Last change on this file since 997c921 was 997c921, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/30/06 at 06:58:56

Cleanup (Backport from HEAD).

  • Property mode set to 100644
File size: 2.0 KB
Line 
1#
2#  Config file for the mvme167 BSP
3#
4#  $Id$
5#
6
7# THIS BSP USES ELF IMAGES. IT WILL NOT WORK WITH COFF UNLESS CHANGES
8# ARE MADE TO THE LINKCMDS FILE.
9
10RTEMS_CPU=m68k
11RTEMS_CPU_MODEL=m68040
12
13include $(RTEMS_ROOT)/make/custom/default.cfg
14
15# This is the actual bsp directory used during the build process.
16RTEMS_BSP_FAMILY=mvme167
17
18#
19#  This contains the compiler options necessary to select the CPU model
20#  and (hopefully) optimize for it.  We also specify the BSP during compilation.
21#  This should really get its own flag, but it works here.
22#
23
24CPU_CFLAGS = -m68040
25
26
27# optimize flag: typically -O, could use -O4 or -fast
28CFLAGS_OPTIMIZE_V=-O4 -fno-omit-frame-pointer
29
30# Here is the rule to actually build a $(ARCH)/foo.exe
31# It also builds $(ARCH)/foo.nm
32# Usage ref: src/tests/sptest/sp1/Makefile
33#
34# We use TFTP to transfer files to the MVME167. We generate binary files
35# rather than S-records. We skip the header during downloads.
36
37# The following are definitions of make-exe which will work using ld as
38# is currently required.  It is expected that as of gcc 2.8, the end user
39# will be able to override parts of the compilers specs and link using gcc.
40
41# The MC68040 does not implement all MC68881/MC68882 instructions, so use
42# either the gcc floating-point software support (msoft-float libraries), or
43# use the Motorola FPSP floating-point emulator in
44#   rtems/c/src/lib/libcpu/m68k/m68040/fpsp
45# The default is to use the FPSP.
46# To use the msoft-float libraries, uncomment the three lines below.
47# You then should comment the M68KFPSPInstallExceptionHandlers() statement
48# in rtems/c/src/lib/libbsp/m68k/mvme167/startup/bststart.c in bsp_start().
49# Floating-point support will then be limited. See the mvme167 README file
50# for more details.
51define make-exe
52        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@)_sym.exe \
53            $(LINK_OBJS) $(LINK_LIBS)
54        $(NM) -g -n $(basename $@)_sym.exe > $(basename $@).nm
55        cp $(basename $@)_sym.exe $(basename $@).exe
56        $(STRIP) $(basename $@).exe
57        $(SIZE) $(basename $@)_sym.exe
58endef
59
60# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.