source: rtems/make/custom/dmv152.cfg @ 39607984

4.104.114.84.95
Last change on this file since 39607984 was 39607984, checked in by Joel Sherrill <joel.sherrill@…>, on 07/12/00 at 19:23:14

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

Changes:

  • Make RTEMS_DEBUG a global per-cpu configuration option
  • Remove RTEMS_DEBUG from targopts.h
  • Add a global --enable-rtems-debug option disabled by default.
  • Add RTEMS_DEBUG to cpuopts.h
  • Remove all references to RTEMS_DEBUG from custom/*.cfg

Notes:

  • RTEMS_DEBUG is set in c/src/exec/configure.in only (RTEMS_CHECK_RTEMS_DEBUG) and should be defined in cpuopts.h only. BSPs should not redefine it, but use the value being provided by cpuopts.h. => With multilibs, users have to choose: Either enable RTEMS_DEBUG

for all BSPs and CPU_MODELs of a cpu or not.

  • Only few BSPs had RTEMS_DEBUG enabled, therefore I set the default to disabled.
  • This patch influences the per-BSP building scheme. Existing BSPs which set RTEMS_DEBUG in their make-target-options rule might have problems at runtime.
  • Property mode set to 100644
File size: 2.4 KB
Line 
1#
2#  Config file for the dmv152 BSP
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=m68k
10RTEMS_CPU_MODEL=m68020
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=dmv152
14
15#
16#  This contains the compiler options necessary to select the CPU model
17#  and (hopefully) optimize for it.
18#
19
20CPU_CFLAGS =
21
22# BSP specific preprocessor flags.
23# These should only be used in BSP dependent directories.
24BSP_CPPFLAGS = -DUSE_CHANNEL_A
25
26# optimize flag: typically -0, could use -O4 or -fast
27# -O4 is ok for RTEMS
28CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
29
30#  This section makes the target dependent options file.
31#  NDEBUG (C library)
32#     if defined asserts do not generate code.  This is commonly used
33#     as a command line option.
34#
35#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
36#     do not pause between screens of output in the rtems tests
37#
38#  USE_CHANNEL_A (DMV152)
39#  USE_CHANNEL_B (DMV152)
40#     One and only one of these should be set to 1 to indicate which
41#     serial port is used as the RTEMS console.
42
43define make-target-options
44        @echo "/* #define NDEBUG 1 */ "                     >>$@
45        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
46#       @echo "#define USE_CHANNEL_A  1"                    >>$@
47#       @echo "#define USE_CHANNEL_B  0"                    >>$@
48endef
49
50# Here is the rule to actually build a $(ARCH)/foo.exe
51# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm
52# Usage ref: src/tests/sptest/sp1/Makefile
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)
59define make-exe
60        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
61            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
62        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
63        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
64            $(PACKHEX) > $(basename $@).exe
65        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
66        $(SIZE) $(basename $@).nxe
67endef
68else
69define make-exe
70        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
71            $(LINK_OBJS) $(LINK_LIBS)
72        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
73        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
74            $(PACKHEX) > $@
75        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
76        $(SIZE) $(basename $@).nxe
77endef
78endif
79
80# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.