source: rtems/make/custom/gensh1.cfg @ bfc86bcb

4.104.114.84.95
Last change on this file since bfc86bcb 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#  gensh1.cfg
3#
4#  default configuration for Hitachi sh1 processors
5#
6#  Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
7#
8#  $Id$
9#
10
11HZ=20000000
12
13include $(RTEMS_ROOT)/make/custom/default.cfg
14
15RTEMS_CPU=sh
16RTEMS_CPU_MODEL=sh7032
17
18# This is the actual bsp directory used during the build process.
19RTEMS_BSP_FAMILY=gensh1
20
21# BSP specific preprocessor flags.
22# These should only be used in BSP dependent directories.
23BSP_CPPFLAGS=-DHZ=$(HZ)
24
25#
26#  This contains the compiler options necessary to select the CPU model
27#  and (hopefully) optimize for it.
28#
29CPU_CFLAGS=-m1
30
31# debug flags: typically none, but we use -O1 as it produces better code
32# CFLAGS_DEBUG_V = -O1
33CFLAGS_DEBUG_V =
34
35# optimize flag: typically -0, could use -O4 or -fast
36# -O4 is ok for RTEMS
37CFLAGS_OPTIMIZE_V = -O4
38
39#  This section makes the target dependent options file.
40
41#  NDEBUG (C library)
42#     if defined asserts do not generate code.  This is commonly used
43#     as a command line option.
44#
45#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
46#     do not pause between screens of output in the rtems tests
47#
48
49define make-target-options
50        @echo "/* #define NDEBUG 1 */ "                     >>$@
51        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
52endef
53
54
55# The following are definitions of make-exe which will work using ld as
56# is currently required.  It is expected that as of gcc 2.8, the end user
57# will be able to override parts of the compilers specs and link using gcc.
58
59ifeq ($(RTEMS_USE_GCC272),yes)
60define make-exe
61        $(LD) $(LDFLAGS) -N -e _start \
62            -T$(PROJECT_RELEASE)/lib/linkcmds\
63            -o $(basename $@).exe \
64            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
65        $(NM) -n $(basename $@).exe > $(basename $@).num
66        $(SIZE) $(basename $@).exe
67endef
68else
69define make-exe
70        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
71            -Wl,-Map,$(basename $@).map \
72            $(LDLIBS) -o $@ \
73            $(LINK_OBJS) $(LINK_LIBS)
74        $(NM) -n $@ > $(basename $@).num
75        $(SIZE) $@
76endef
77endif
78
79# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.