source: rtems/make/custom/mvme162.cfg @ 0280cb6

4.104.114.84.95
Last change on this file since 0280cb6 was 0280cb6, checked in by Joel Sherrill <joel.sherrill@…>, on 08/20/98 at 14:39:09

FreeBSD stack compiles for the first time (except libc/strsep.c)

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