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