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

4.104.114.84.95
Last change on this file since c801aba was 2094513, checked in by Joel Sherrill <joel.sherrill@…>, on 09/12/00 at 20:56:54

2000-09-12 Ralf Corsepius <corsepiu@…>

  • custom/erc32.cfg: Add comment on -mno-v8, -mcypress.
  • custom/gen68302.cfg: Comment out LIBC_LIB[C|M].
  • custom/gen68340.cfg: Comment out LIBC_LIB[C|M].
  • custom/gen68360.cfg: Comment out LIBC_LIB[C|M].
  • custom/idp.cfg: Comment out LIBC_LIB[C|M].
  • custom/mvme162.cfg: Comment out LIBC_LIB[C|M].
  • custom/ods68302.cfg: Comment out LIBC_LIB[C|M].
  • Property mode set to 100644
File size: 2.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#
23# 68000+softfloat results in gcc 2.95.2 giving default libraries.
24# CPU_CFLAGS = -m68302 -msoft-float
25CPU_CFLAGS = -m68302
26CPU_DEFINES = \
27-DVARIANT=$(BSP_VARIANT) -DMC68302_BASE=$(MC68302_BASE) \
28-DRAM_BASE=$(RAM_BASE) -DRAM_SIZE=$(RAM_SIZE) \
29-DROM_BASE=$(ROM_BASE) -DROM_SIZE=$(ROM_SIZE)
30
31# optimize flag: typically -0, could use -O4 or -fast
32# -O4 is ok for RTEMS
33CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
34
35# debugging please
36CFLAGS_DEBUG_V =
37
38#  This section makes the target dependent options file.
39
40define make-target-options
41endef
42
43# The following are definitions of make-exe which will work using ld as
44# is currently required.  It is expected that as of gcc 2.8, the end user
45# will be able to override parts of the compilers specs and link using gcc.
46
47ifeq ($(RTEMS_USE_GCC272),yes)
48
49# override default location of Standard C Library
50# LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/libc.a
51# LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/libm.a
52
53define make-exe
54        $(LD) $(LDFLAGS) -N -Ttext $(ROM_BASE) \
55            -defsym MC68302_BASE=$(MC68302_BASE) \
56            -T $(LINKCMDS) -o $(basename $@).exe \
57            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
58        $(NM) -g -n $(basename $@).exe > $(basename $@).num
59        $(SIZE) $(basename $@).exe
60endef
61else
62define make-exe
63        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
64            -Wl,-defsym -Wl,MC68302_BASE=$(MC68302_BASE) \
65            -o $@ \
66            $(LINK_OBJS) $(LINK_LIBS)
67        $(NM) -g -n $@ > $(basename $@).num
68        $(SIZE) $@
69endef
70endif
71# Miscellaneous additions go here
72
73ifeq "$(strip $(BSP_VARIANT))" ""
74BSP_VARIANT=bare
75MC68302_BASE=0x00700000
76RAM_BASE=0x00000000
77RAM_SIZE=0x00100000
78
79ifeq ($(RTEMS_DEBUGGER),yes)
80ROM_BASE=0x00010000
81LINKCMDS=$(PROJECT_RELEASE)/lib/debugrom
82else
83ROM_BASE=0x00C00000
84LINKCMDS=$(PROJECT_RELEASE)/lib/rom
85endif
86
87ROM_SIZE=0x00100000
88
89else
90
91# pattern match the variant to set the memory map
92
93endif
Note: See TracBrowser for help on using the repository browser.