source: rtems/make/custom/Solaris-posix.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.5 KB
Line 
1#
2#  Config file for the Solaris based RTEMS UNIX
3#
4#  $Id$
5#
6
7RTEMS_CPU=unix
8RTEMS_CPU_FAMILY=sparc
9RTEMS_CPU_MODEL=sparc_v8
10RTEMS_UNIX_FLAVOR=solaris
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=posix
14
15include $(RTEMS_ROOT)/make/custom/default.cfg
16
17# The following define the memory reserved in the executable for the
18# RTEMS Workspace and the C Program Heap.
19LIBC_DEFINES += -DWORKSPACE_MB=2
20LIBC_DEFINES += -DHEAPSPACE_MB=1
21LIBC_DEFINES +=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED
22
23DEFINES += -D__EXTENSIONS__ -Dsolaris2
24
25# optimize flag: typically -0, could use -O4 or -fast
26# -O4 is ok for RTEMS
27CFLAGS_OPTIMIZE_V = -O2
28
29#  This section makes the target dependent options file.
30
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#  NO_TABLE_MOVE (SPARC PORT)
39#     do not have a second trap table -- use the BSP's
40#
41#  RTEMS_UNIX (unix)
42#     Define this to indicate this is an RTEMS UNIX port.
43
44define make-target-options
45        echo "/* #define NDEBUG 1 */ "                     >>$@
46        echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
47        echo "#define RTEMS_UNIX 1 "                       >>$@
48endef
49
50define make-exe
51        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
52        $(NM) -ng $@ > $(basename $@).num
53        $(SIZE) $@
54endef
55
56# *****************************************************************
57
58
59# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.