source: rtems/make/custom/ods68302.cfg @ dda3dc9a

Last change on this file since dda3dc9a was c34eb10, checked in by Joel Sherrill <joel.sherrill@…>, on 04/03/00 at 20:01:31

Patch rtems-rc-4.5.0-7-cvs.diff from Ralf Corsepius <corsepiu@…>.
The patch contains:

  • Many small cleanups wrt. make VARIANT=[DEBUG|PROFILE] support
  • several modifications to make/custom/*.cfg
  • Merger with the mvme2307.cfg you had posted two weeks ago (Please check it, I did not check it against to version you posted today).
  • Added a check to the toplevel configure.in to refuse building inside of the source tree.
  • Property mode set to 100644
File size: 2.7 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 =-m68302 -msoft-float
24CPU_DEFINES = \
25-DVARIANT=$(BSP_VARIANT) -DMC68302_BASE=$(MC68302_BASE) \
26-DRAM_BASE=$(RAM_BASE) -DRAM_SIZE=$(RAM_SIZE) \
27-DROM_BASE=$(ROM_BASE) -DROM_SIZE=$(ROM_SIZE)
28
29# optimize flag: typically -0, could use -O4 or -fast
30# -O4 is ok for RTEMS
31CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
32
33# debugging please
34CFLAGS_DEBUG_V =
35
36#  This section makes the target dependent options file.
37
38#  NDEBUG (C library)
39#     if defined asserts do not generate code.  This is commonly used
40#     as a command line option.
41#
42#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
43#     do not pause between screens of output in the rtems tests
44#
45#  RTEMS_DEBUG (RTEMS)
46#     If defined, debug checks in RTEMS and support library code are enabled.
47
48define make-target-options
49        @echo "/* #define NDEBUG 1 */ "                     >>$@
50        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
51        @echo "#define RTEMS_DEBUG  1"                      >>$@
52endef
53
54# The following are definitions of make-exe which will work using ld as
55# is currently required.  It is expected that as of gcc 2.8, the end user
56# will be able to override parts of the compilers specs and link using gcc.
57
58ifeq ($(RTEMS_USE_GCC272),yes)
59
60# override default location of Standard C Library
61LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/libc.a
62LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/libm.a
63
64define make-exe
65        $(LD) $(LDFLAGS) -N -Ttext $(ROM_BASE) \
66            -defsym MC68302_BASE=$(MC68302_BASE) \
67            -T $(LINKCMDS) -o $(basename $@).exe \
68            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
69        $(NM) -g -n $(basename $@).exe > $(basename $@).num
70        $(SIZE) $(basename $@).exe
71endef
72else
73define make-exe
74        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
75            -Wl,-defsym -Wl,MC68302_BASE=$(MC68302_BASE) \
76            -o $@ \
77            $(LINK_OBJS) $(LINK_LIBS)
78        $(NM) -g -n $@ > $(basename $@).num
79        $(SIZE) $@
80endef
81endif
82# Miscellaneous additions go here
83
84ifeq "$(strip $(BSP_VARIANT))" ""
85BSP_VARIANT=bare
86MC68302_BASE=0x00700000
87RAM_BASE=0x00000000
88RAM_SIZE=0x00100000
89
90ifeq ($(RTEMS_DEBUGGER),yes)
91ROM_BASE=0x00010000
92LINKCMDS=$(PROJECT_RELEASE)/lib/debugrom
93else
94ROM_BASE=0x00C00000
95LINKCMDS=$(PROJECT_RELEASE)/lib/rom
96endif
97
98ROM_SIZE=0x00100000
99
100else
101
102# pattern match the variant to set the memory map
103
104endif
Note: See TracBrowser for help on using the repository browser.