source: rtems/make/custom/mvme162.cfg @ 123d4b7d

4.104.114.84.95
Last change on this file since 123d4b7d was 6e27f588, checked in by Joel Sherrill <joel.sherrill@…>, on 04/12/99 at 20:27:14

Patch from Ralf Corsepius <corsepiu@…>:

Installing of bsp_specs for aliased bsps is broken. Instead of installing
RTEMS_BSP_FAMILY/bsp_specs, RTEMS_BSP/bsp_specs was tried to be installed.

The patch below should fix this problem (tested with mips64orion p4600 and
p4650).

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