source: rtems/make/custom/ods68302.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.3 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# This target does NOT support the TCP/IP stack so ignore requests
40# to enable it.
41HAS_NETWORKING=no
42
43# Define this to yes if C++ is included in the development environment.
44# This requires that at least the GNU C++ compiler and libg++ be installed.
45ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)
46HAS_CPLUSPLUS=yes
47CPLUS_LD_LIBS=$(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA)
48endif
49
50START_BASE=start302
51
52#  This section makes the target dependent options file.
53
54#  NDEBUG (C library)
55#     if defined asserts do not generate code.  This is commonly used
56#     as a command line option.
57#
58#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
59#     do not pause between screens of output in the rtems tests
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 "/* #define NDEBUG 1 */ "                     >>$@
66        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
67        @echo "#define RTEMS_DEBUG  1"                      >>$@
68endef
69
70# The following are definitions of make-exe which will work using ld as
71# is currently required.  It is expected that as of gcc 2.8, the end user
72# will be able to override parts of the compilers specs and link using gcc.
73
74ifeq ($(RTEMS_USE_GCC272),yes)
75
76# override default location of Standard C Library
77LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/libc.a
78LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/libm.a
79
80define make-exe
81        $(LD) $(LDFLAGS) -N -Ttext $(ROM_BASE) \
82            -defsym MC68302_BASE=$(MC68302_BASE) \
83            -T $(LINKCMDS) -o $(basename $@).exe \
84            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
85        $(NM) -g -n $(basename $@).exe > $(basename $@).num
86        $(SIZE) $(basename $@).exe
87endef
88else
89define make-exe
90        $(CC) $(CFLAGS) $(CFLAGS_LD) \
91            -Wl,-defsym -Wl,MC68302_BASE=$(MC68302_BASE) \
92            -o $(basename $@).exe \
93            $(LINK_OBJS) $(LINK_LIBS)
94        $(NM) -g -n $(basename $@).exe > $(basename $@).num
95        $(SIZE) $(basename $@).exe
96endef
97endif
98# Miscellaneous additions go here
99
100ifeq "$(strip $(BSP_VARIANT))" ""
101BSP_VARIANT=bare
102MC68302_BASE=0x00700000
103RAM_BASE=0x00000000
104RAM_SIZE=0x00100000
105
106ifeq ($(RTEMS_DEBUGGER),yes)
107ROM_BASE=0x00010000
108LINKCMDS=$(PROJECT_RELEASE)/lib/debugrom
109else
110ROM_BASE=0x00C00000
111LINKCMDS=$(PROJECT_RELEASE)/lib/rom
112endif
113
114ROM_SIZE=0x00100000
115
116else
117
118# pattern match the variant to set the memory map
119
120endif
Note: See TracBrowser for help on using the repository browser.