source: rtems/make/custom/efi332.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: 1.9 KB
Line 
1#
2#  Config file for the efi332 BSP
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=m68k
10RTEMS_CPU_MODEL=mcpu32
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=efi332
14
15#  This contains the compiler options necessary to select the CPU model
16#  and (hopefully) optimize for it.
17CPU_CFLAGS = -mcpu32
18
19# optimize flag: typically -0, could use -O4 or -fast, -O4 is ok for RTEMS
20CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
21
22#  This section makes the target dependent options file.
23#  NDEBUG (C library)
24#     if defined asserts do not generate code.  This is commonly used
25#     as a command line option.
26#
27#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
28#     do not pause between screens of output in the rtems tests
29#
30
31define make-target-options
32        @echo "/* #define NDEBUG 1 */ "                     >>$@
33        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
34endef
35
36# The following are definitions of make-exe which will work using ld as
37# is currently required.  It is expected that as of gcc 2.8, the end user
38# will be able to override parts of the compilers specs and link using gcc.
39
40ifeq ($(RTEMS_USE_GCC272),yes)
41define make-exe
42        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
43            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
44        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
45        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
46            $(PACKHEX) > $(basename $@).exe
47        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
48        $(SIZE) $(basename $@).nxe
49endef
50else
51define make-exe
52        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
53            $(LINK_OBJS) $(LINK_LIBS)
54        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
55        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
56            $(PACKHEX) > $(basename $@).exe
57        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
58        $(SIZE) $(basename $@).nxe
59endef
60endif
61
62
63# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.