source: rtems/make/custom/mvme162.cfg @ 4d20133

4.104.114.84.95
Last change on this file since 4d20133 was 011677f, checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 17:54:03

Part of automake VI Patch from Ralf Corsepius <corsepiu@…>.

Adds variables to the custom/*cfg files to specify the location of
tools. The purpose is to remove hard-coded paths from the Makefiles.

In later steps this eases moving the tools to other locations.

  • Property mode set to 100644
File size: 3.1 KB
Line 
1#
2#  Config file for the mvme162 BSP
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=m68k
10
11ifeq ($(RTEMS_MVME162_MODEL),mvme162lx)
12
13TARGET_ARCH=o-mvme162lx
14RTEMS_CPU_MODEL=m68lc040
15
16else
17ifeq ($(RTEMS_MVME162_MODEL),)
18
19RTEMS_MVME162_MODEL=mvme162
20TARGET_ARCH=o-mvme162
21RTEMS_CPU_MODEL=m68040
22
23endif # mvme162   - mc68040
24endif # mvme162lx - mc68lc040
25
26# This is the actual bsp directory used during the build process.
27RTEMS_BSP_FAMILY=mvme162
28
29# We may install in a CPU model based directory but this is still
30# a mvme162 based bsp.
31RTEMS_BSP=mvme162
32
33#  This contains the compiler options necessary to select the CPU model
34#  and (hopefully) optimize for it.
35#
36
37ifeq ($(RTEMS_CPU_MODEL),m68040)
38CPU_CFLAGS = -m68040
39else
40ifeq ($(RTEMS_CPU_MODEL),m68lc040)
41CPU_CFLAGS = -m68040 -msoft-float
42endif # mc68040
43endif # mc68lc040
44
45# optimize flag: typically -0, could use -O4 or -fast
46# -O4 is ok for RTEMS
47CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
48
49# This target does NOT support the TCP/IP stack so ignore requests
50# to enable it.
51HAS_NETWORKING=no
52
53#  This section makes the target dependent options file.
54
55#  NDEBUG (C library)
56#     if defined asserts do not generate code.  This is commonly used
57#     as a command line option.
58#
59#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
60#     do not pause between screens of output in the rtems tests
61#
62#  NO_TABLE_MOVE (SPARC PORT)
63#     do not have a second trap table -- use the BSP's
64#
65#  RTEMS_DEBUG (RTEMS)
66#     If defined, debug checks in RTEMS and support library code are enabled.
67
68define make-target-options
69        @echo "#undef $(RTEMS_MVME162_MODEL)"               >>$@
70        @echo "#define $(RTEMS_MVME162_MODEL)"              >>$@
71        @echo "/* #define NDEBUG 1 */ "                     >>$@
72        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
73        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
74endef
75
76# The following are definitions of make-exe which will work using ld as
77# is currently required.  It is expected that as of gcc 2.8, the end user
78# will be able to override parts of the compilers specs and link using gcc.
79
80ifeq ($(RTEMS_USE_GCC272),yes)
81
82ifeq ($(RTEMS_CPU_MODEL),m68lc040)
83# override default location of Standard C Library
84LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/msoft-float/libc.a
85LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/msoft-float/libm.a
86endif # mc68lc040
87
88define make-exe
89        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
90            $(START_FILE) $(LINK_OBJS) \
91            --start-group $(LINK_LIBS) --end-group
92        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
93        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
94            $(PACKHEX) > $(basename $@).exe
95        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
96        $(SIZE) $(basename $@).nxe
97endef
98else
99define make-exe
100        $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe $(LINK_OBJS) \
101            $(LINK_LIBS)
102        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
103        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
104            $(PACKHEX) > $(basename $@).exe
105        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
106        $(SIZE) $(basename $@).nxe
107endef
108endif
109
110# Miscellaneous additions go here
111
112# BSP-specific tools
113SLOAD=$(PROJECT_TOOLS)/sload
Note: See TracBrowser for help on using the repository browser.