source: rtems/make/custom/ods68302.cfg @ 97ad1a5

Last change on this file since 97ad1a5 was 97ad1a5, checked in by Joel Sherrill <joel.sherrill@…>, on 04/16/00 at 17:14:36

After investigating a problem reported by Franck Julien <FranckJ@…>,
I discovered that when specifying -m68000 and -msoft-float to gcc 2.95.2,
it decides that the proper multilib variant is the default one which is
compiled for the m68020 and hardware floating point. This appears to be
because there is no 68000/soft-float library variant. This problem
applies to all m68000 class CPUs options including -m68302.

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