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

4.104.114.84.95
Last change on this file since ce39123 was ce39123, checked in by Joel Sherrill <joel.sherrill@…>, on 07/13/00 at 14:53:41

Removed NDEBUG as a per BSP option.

  • Property mode set to 100644
File size: 2.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#
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
40#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
41#     do not pause between screens of output in the rtems tests
42#
43
44define make-target-options
45        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
46endef
47
48# The following are definitions of make-exe which will work using ld as
49# is currently required.  It is expected that as of gcc 2.8, the end user
50# will be able to override parts of the compilers specs and link using gcc.
51
52ifeq ($(RTEMS_USE_GCC272),yes)
53
54# override default location of Standard C Library
55LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/libc.a
56LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/libm.a
57
58define make-exe
59        $(LD) $(LDFLAGS) -N -Ttext $(ROM_BASE) \
60            -defsym MC68302_BASE=$(MC68302_BASE) \
61            -T $(LINKCMDS) -o $(basename $@).exe \
62            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
63        $(NM) -g -n $(basename $@).exe > $(basename $@).num
64        $(SIZE) $(basename $@).exe
65endef
66else
67define make-exe
68        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
69            -Wl,-defsym -Wl,MC68302_BASE=$(MC68302_BASE) \
70            -o $@ \
71            $(LINK_OBJS) $(LINK_LIBS)
72        $(NM) -g -n $@ > $(basename $@).num
73        $(SIZE) $@
74endef
75endif
76# Miscellaneous additions go here
77
78ifeq "$(strip $(BSP_VARIANT))" ""
79BSP_VARIANT=bare
80MC68302_BASE=0x00700000
81RAM_BASE=0x00000000
82RAM_SIZE=0x00100000
83
84ifeq ($(RTEMS_DEBUGGER),yes)
85ROM_BASE=0x00010000
86LINKCMDS=$(PROJECT_RELEASE)/lib/debugrom
87else
88ROM_BASE=0x00C00000
89LINKCMDS=$(PROJECT_RELEASE)/lib/rom
90endif
91
92ROM_SIZE=0x00100000
93
94else
95
96# pattern match the variant to set the memory map
97
98endif
Note: See TracBrowser for help on using the repository browser.