OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [make/] [custom/] [FreeBSD-posix.cfg] - Blame information for rev 746

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
#
2
#  Config file for the FreeBSD 2.x based RTEMS UNIX
3
#
4
#
5
 
6
RTEMS_CPU=unix
7
RTEMS_CPU_FAMILY=i386
8
RTEMS_CPU_MODEL=i486dx
9
RTEMS_UNIX_FLAVOR=freebsd
10
 
11
# This is the actual bsp directory used during the build process.
12
RTEMS_BSP_FAMILY=posix
13
 
14
include $(RTEMS_ROOT)/make/custom/default.cfg
15
 
16
# RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER
17
LIBC_DEFINES =-D_POSIX_C_SOURCE
18
LIBC_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.
22
LIBC_DEFINES += -DWORKSPACE_MB=2
23
LIBC_DEFINES += -DHEAPSPACE_MB=1
24
 
25
 
26
# optimize flag: typically -0, could use -O4 or -fast
27
# -O4 is ok for RTEMS
28
CFLAGS_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
 
48
define 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 "                       >>$@
53
endef
54
 
55
define make-exe
56
        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
57
        $(NM) -ng $@ > $(basename $@).num
58
        $(SIZE) $@
59
endef
60
 
61
 
62
# *****************************************************************
63
# Miscellaneous additions go here

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.