source: rtems/make/custom/FreeBSD-posix.cfg @ effc2c4

Last change on this file since effc2c4 was effc2c4, checked in by Joel Sherrill <joel.sherrill@…>, on 04/03/00 at 14:44:39

Patch rtems-rc-4.5.0-6-cvs.diff from Ralf Corsepius <corsepiu@…>.
The patch contains:

  • build variants support
  • Reworked make-exe custom/*.cfg for all targets (Should be self-explanatory, may still be incomplete)
  • Several fixes to custom/*.cfgs related to setting debug flags
  • Fixes to some bsp_specs for BSPs which apparently have never been build with debugging before ;)
  • pc386.cfg fix attempts (cf. my mail from earlier today)
  • Updated ampolish (No need to run it, the patch contains the result from having applied it)

Known bugs/deficiencies related to this work:

  • "make [clean|distclean]" support is still incomplete (e.g. "make clean" does not delete all Depends-o-*)
  • Completely untested for linux/posix and hppa.
  • Build failures of i960 BSPs (make VARIANT=DEBUG) - I guess, they are not related to this patch.
  • Successfully tested for all sh, sparc, i386, ppc, m68k BSPs (make VARIANT=DEBUG)
  • make VARIANT=PROFILE not supported by all BSPs (I don't care :)
  • make VARIANT=DEBUG failures below tests/ for some BSPs (e.g. gensh1), because of the tests's binaries being too large to fit into the target memory layout.
  • Property mode set to 100644
File size: 1.8 KB
Line 
1#
2#  Config file for the FreeBSD 2.x based RTEMS UNIX
3#
4#
5
6RTEMS_CPU=unix
7RTEMS_CPU_FAMILY=i386
8RTEMS_CPU_MODEL=i486dx
9RTEMS_UNIX_FLAVOR=freebsd
10
11# This is the actual bsp directory used during the build process.
12RTEMS_BSP_FAMILY=posix
13
14include $(RTEMS_ROOT)/make/custom/default.cfg
15
16# RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER
17LIBC_DEFINES =-D_POSIX_C_SOURCE
18LIBC_DEFINES+=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG
19
20# The following define the memory reserved in the executable for the
21# RTEMS Workspace and the C Program Heap.
22LIBC_DEFINES += -DWORKSPACE_MB=2
23LIBC_DEFINES += -DHEAPSPACE_MB=1
24
25
26# optimize flag: typically -0, could use -O4 or -fast
27# -O4 is ok for RTEMS
28CFLAGS_OPTIMIZE_V = -O2
29
30#  This section makes the target dependent options file.
31
32#  NDEBUG (C library)
33#     if defined asserts do not generate code.  This is commonly used
34#     as a command line option.
35#
36#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
37#     do not pause between screens of output in the rtems tests
38#
39#  NO_TABLE_MOVE (SPARC PORT)
40#     do not have a second trap table -- use the BSP's
41#
42#  RTEMS_DEBUG (RTEMS)
43#     If defined, debug checks in RTEMS and support library code are enabled.
44#     
45#  RTEMS_UNIX (unix)
46#     Define this to indicate this is an RTEMS UNIX port.
47
48define make-target-options
49        echo "/* #define NDEBUG 1 */ "                     >>$@
50        echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
51        echo "/* #define RTEMS_DEBUG  1 */"                >>$@
52        echo "#define RTEMS_UNIX 1 "                       >>$@
53endef
54
55define make-exe
56        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
57        $(NM) -ng $@ > $(basename $@).num
58        $(SIZE) $@
59endef
60
61
62# *****************************************************************
63# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.