source: rtems/make/custom/ods68302.cfg @ 7e5a481

4.104.114.84.95
Last change on this file since 7e5a481 was b8a30d07, checked in by Joel Sherrill <joel.sherrill@…>, on 07/13/00 at 15:05:38

Patch rtems-rc-20000713-1-cvs.diff from Ralf Corsepius <corsepiu@…>
that is yet another multilib-related structual cleanup patch:

Changes:

  • Make RTEMS_TEST_NO_PAUSE a tests/ subpackage specific option.
    • Remove RTEMS_TEST_NO_PAUSE from custom/*.cfg, targopts.h and cpuopts.h.
    • Add autoconf macros RTEMS_*_RTEMS_TEST_NO_PAUSE (aclocal/rtems-test-no-pause.m4).
    • Add RTEMS_*_RTEMS_TEST_NO_PAUSE support to sptests/configure.ins and tmtests/configure.in. These are the only subdirectories which currently apply RTEMS_TEST_NO_PAUSE.
    • Add autoconf-DEFS support to all test subpackages' configure.ins below tests/. I.e. AC_DEFINES now get explicitly propagated as preprocessor defines into Makefiles, cf. AM_CPPFLAGS in tests/*/*.am, instead of using a global config-files.
    • Remove NDEBUG from custom/*.cfg.
  • AC_DEFINE POSIX_API, ITRON_API and MULTIPROCESSING in exec/configure.in, only.
    • All other sources now should relay on the values from cpuopts.h and should not define them themselves.
    • Several related changes to many configure.ins
  • Bug-fixes to RTEMS_*_RTEMS_DEBUG macros (Actually workarounds to quoting bugs in autoconf).

Notes:

  • This patch is rather immature and only tested for a small subset of BSPs (requires the tests to be enabled and therefore takes an tremendous amount of disc space and time.)
  • The patches to *cfg were generated by a script. Expect file formating changes :)
  • 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
50LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/libc.a
51LIBC_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.