source: rtems/make/custom/ods68302.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.5 KB
Line 
1#
2#  Config file for a "ODS 68302" BSP
3#
4#  Differs from the gen68302 by providing most of the boot code as C
5#  code. This allows separate board definitions to be based on C
6#  header files. The file is based on the VARIANT defined.
7#
8#  $Id$
9#
10
11include $(RTEMS_ROOT)/make/custom/default.cfg
12
13RTEMS_CPU=m68k
14RTEMS_CPU_MODEL=m68302
15
16# This is the actual bsp directory used during the build process.
17RTEMS_BSP_FAMILY=ods68302
18
19#
20#  This contains the compiler options necessary to select the CPU model
21#  and (hopefully) optimize for it.
22#
23CPU_CFLAGS=-g -m68302 -msoft-float \
24                -DVARIANT=$(BSP_VARIANT) -DMC68302_BASE=$(MC68302_BASE) \
25                -DRAM_BASE=$(RAM_BASE) -DRAM_SIZE=$(RAM_SIZE) \
26                -DROM_BASE=$(ROM_BASE) -DROM_SIZE=$(ROM_SIZE)
27
28# optimize flag: typically -0, could use -O4 or -fast
29# -O4 is ok for RTEMS
30CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
31
32# debugging please
33CFLAGS_DEBUG_V+=-g
34
35# This target does not support the ka9q tcp/ip stack so ignore requests
36# to enable it.
37HAS_KA9Q=no
38
39# Define this to yes if C++ is included in the development environment.
40# This requires that at least the GNU C++ compiler and libg++ be installed.
41ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)
42HAS_CPLUSPLUS=yes
43# no standard C++ libs provided by default
44#LIBCC_INCLUDE=/usr/include/g++
45#CPLUS_LD_LIBS=-lstdc++ -lrtems++
46CPLUS_LD_LIBS=$(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA)
47else
48HAS_CPLUSPLUS=no
49endif
50
51START_BASE=start302
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#  STACK_CHECKER_ON (RTEMS support code)
63#     If defined, stack bounds checking is enabled.
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 "/* #define NDEBUG 1 */ "                     >>$@
70        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
71        @echo "/* #define STACK_CHECKER_ON  1 */"           >>$@
72        @echo "#define RTEMS_DEBUG  1"                      >>$@
73endef
74
75# The following are definitions of make-exe which will work using ld as
76# is currently required.  It is expected that as of gcc 2.8, the end user
77# will be able to override parts of the compilers specs and link using gcc.
78
79ifeq ($(RTEMS_USE_GCC272),yes)
80
81# override default location of Standard C Library
82LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/libc.a
83LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/libm.a
84
85define make-exe
86        $(LD) $(LDFLAGS) -N -Ttext $(ROM_BASE) \
87            -defsym MC68302_BASE=$(MC68302_BASE) \
88            -T $(LINKCMDS) -o $(basename $@).exe \
89            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
90        $(NM) -g -n $(basename $@).exe > $(basename $@).num
91        $(SIZE) $(basename $@).exe
92endef
93else
94define make-exe
95        $(CC) $(CFLAGS) $(CFLAGS_LD) \
96            -Wl,-defsym -Wl,MC68302_BASE=$(MC68302_BASE) \
97            -o $(basename $@).exe $(LINK_OBJS)
98        $(NM) -g -n $(basename $@).exe > $(basename $@).num
99        $(SIZE) $(basename $@).exe
100endef
101endif
102# Miscellaneous additions go here
103
104ifeq "$(strip $(BSP_VARIANT))" ""
105BSP_VARIANT=bare
106MC68302_BASE=0x00700000
107RAM_BASE=0x00000000
108RAM_SIZE=0x00100000
109
110ifeq ($(RTEMS_DEBUGGER),yes)
111ROM_BASE=0x00010000
112LINKCMDS=$(PROJECT_RELEASE)/lib/debugrom
113else
114ROM_BASE=0x00C00000
115LINKCMDS=$(PROJECT_RELEASE)/lib/rom
116endif
117
118ROM_SIZE=0x00100000
119
120else
121
122# pattern match the variant to set the memory map
123
124endif
Note: See TracBrowser for help on using the repository browser.