source: rtems/make/custom/mvme167.cfg @ 5d02459

4.104.114.84.95
Last change on this file since 5d02459 was 5d02459, checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 19:23:28

MVME167 BSP submitted by Charles Gauthier <Charles.Gauthier@…>.

  • Property mode set to 100644
File size: 2.1 KB
RevLine 
[5d02459]1#
2#  Config file for the mvme167 BSP
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=m68k
10RTEMS_CPU_MODEL=m68040
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=mvme167
14
15#
16#  This contains the compiler options necessary to select the CPU model
17#  and (hopefully) optimize for it.
18#
19
20CPU_CFLAGS = -m68040
21
22# optimize flag: typically -O, could use -O4 or -fast
23# -O4 is ok for RTEMS
24CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
25
26# This target does NOT support the TCP/IP stack so ignore requests
27# to enable it.
28HAS_NETWORKING=no
29
30#  This section makes the target dependent options file.
31#  NDEBUG (C library)
32#     if defined asserts do not generate code.  This is commonly used
33#     as a command line option.
34#
35#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
36#     do not pause between screens of output in the rtems tests
37#
38#  RTEMS_DEBUG (RTEMS)
39#     If defined, debug checks in RTEMS and support library code are enabled.
40
41define make-target-options
42        @echo "/* #define NDEBUG 1 */ "                     >>$@
43        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
44        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
45endef
46
47# Here is the rule to actually build a $(ARCH)/foo.exe
48# It also builds $(ARCH)/foo.nm
49# Usage ref: src/tests/sptest/sp1/Makefile
50#
51# We use TFTP to transfer files to the MVME167. We generate binary files
52# rather than S-records. We skip the header during downloads.
53
54# The following are definitions of make-exe which will work using ld as
55# is currently required.  It is expected that as of gcc 2.8, the end user
56# will be able to override parts of the compilers specs and link using gcc.
57
58ifeq ($(RTEMS_USE_GCC272),yes)
59define make-exe
60        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
61            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
62        $(NM) -g -n $(basename $@).exe > $(basename $@).nm
63        $(SIZE) $(basename $@).exe
64endef
65else
66define make-exe
67        $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
68            $(LINK_OBJS) $(LINK_LIBS)
69        $(NM) -g -n $(basename $@).exe > $(basename $@).nm
70        $(SIZE) $(basename $@).exe
71endef
72endif
73
74# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.