source: rtems/make/custom/mvme162.cfg @ bffb938

4.104.114.84.95
Last change on this file since bffb938 was bffb938, checked in by Joel Sherrill <joel.sherrill@…>, on 01/20/98 at 19:30:30

Removed PROJECT_HOME and CONFIG_DIR variables.

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