source: rtems/make/custom/helas403.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: 2.6 KB
Line 
1#
2#  Config file for a PowerPC 403 based helas403 card
3#
4#  $Id$
5#
6#  this is derived from:
7#
8#  Config file for a PowerPC 403 based papyrus card
9#
10#  Id: papyrus.cfg,v 1.7 1998/06/27 17:09:47 joel Exp
11#
12
13include $(RTEMS_ROOT)/make/custom/default.cfg
14
15RTEMS_CPU=powerpc
16RTEMS_CPU_MODEL=ppc403
17
18# This is the actual bsp directory used during the build process.
19RTEMS_BSP_FAMILY=helas403
20
21#  This section makes the target dependent options file.
22
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#  PPC_VECTOR_FILE_BASE (PowerPC)
31#     This defines the base address of the exception table.
32#     NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100
33#       
34#  PPC_USE_SPRG (RTEMS PowerPC port)
35#     If defined, then the PowerPC specific code in RTEMS will use some
36#     of the special purpose registers to slightly optimize interrupt
37#     response time.  The use of these registers can conflict with
38#     other tools like debuggers.
39
40define make-target-options
41        @echo "/* #define NDEBUG 1 */ "                     >>$@
42        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
43        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"         >>$@
44        @echo "#define PPC_USE_SPRG 1"                      >>$@
45endef
46
47#  This contains the compiler options necessary to select the CPU model
48#  and (hopefully) optimize for it.
49#
50CPU_CFLAGS = -mcpu=403
51
52# optimize flag: typically -0, could use -O4 or -fast
53# -O4 is ok for RTEMS
54# NOTE: some level of -O may be actually required by inline assembler
55CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
56
57# No start file
58START_BASE=
59
60# The following are definitions of make-exe which will work using ld as
61# is currently required.  It is expected that as of gcc 2.8, the end user
62# will be able to override parts of the compilers specs and link using gcc.
63
64ifeq ($(RTEMS_USE_GCC272),yes)
65# The --defsym arguments define arguments which are required by the linkcmds
66# file which is designed for gcc 2.8
67define make-exe
68        $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
69            --defsym __fini=0 --defsym __init=0 \
70            -o $@ -u atexit -u __vectors -u download_entry \
71            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
72        $(NM) -g -n $@ > $(basename $@).num
73        $(SIZE) $@
74endef
75else
76define make-exe
77        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
78            $(LINK_OBJS) $(LINK_LIBS)
79        $(NM) -g -n $@ > $(basename $@).num
80        $(SIZE) $@
81endef
82endif
83
84# Miscellaneous additions go here
85
86
Note: See TracBrowser for help on using the repository browser.