source: rtems/make/custom/mvme162.cfg @ 1ea9c3f

4.104.114.84.95
Last change on this file since 1ea9c3f was 1ea9c3f, checked in by Joel Sherrill <joel.sherrill@…>, on 04/06/98 at 16:33:48

Purged references to STACK_CHECKER_REPORT_USAGE

  • Property mode set to 100644
File size: 3.3 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#  RTEMS_DEBUG (RTEMS)
72#     If defined, debug checks in RTEMS and support library code are enabled.
73
74define make-target-options
75        @echo "#undef $(RTEMS_MVME162_MODEL)"               >>$@
76        @echo "#define $(RTEMS_MVME162_MODEL)"              >>$@
77        @echo "/* #define NDEBUG 1 */ "                     >>$@
78        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
79        @echo "/* #define STACK_CHECKER_ON  1 */"           >>$@
80        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
81endef
82
83# The following are definitions of make-exe which will work using ld as
84# is currently required.  It is expected that as of gcc 2.8, the end user
85# will be able to override parts of the compilers specs and link using gcc.
86
87ifeq ($(RTEMS_USE_GCC272),yes)
88
89ifeq ($(RTEMS_CPU_MODEL),m68lc040)
90# override default location of Standard C Library
91LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/msoft-float/libc.a
92LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/msoft-float/libm.a
93endif # mc68lc040
94
95define make-exe
96        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
97            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
98        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
99        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
100            $(PROJECT_TOOLS)/packhex > $(basename $@).exe
101        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
102        $(SIZE) $(basename $@).nxe
103endef
104else
105define make-exe
106        $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe $(LINK_OBJS)
107        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
108        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
109            $(PROJECT_TOOLS)/packhex > $(basename $@).exe
110        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
111        $(SIZE) $(basename $@).nxe
112endef
113endif
114# Miscellaneous additions go here
115
116
117
Note: See TracBrowser for help on using the repository browser.