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

Subversion Repositories openrisc_me

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

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

Line No. Rev Author Line
1 30 unneback
#
2
#  Config file for the Linux 1.x based RTEMS UNIX
3
#
4
#  $Id: Linux-posix.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $
5
#
6
 
7
RTEMS_CPU=unix
8
RTEMS_CPU_FAMILY=i386
9
RTEMS_CPU_MODEL=i486dx
10
RTEMS_UNIX_FLAVOR=linux
11
 
12
# This is the actual bsp directory used during the build process.
13
RTEMS_BSP_FAMILY=posix
14
 
15
include $(RTEMS_ROOT)/make/custom/default.cfg
16
 
17
# RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER
18
LIBC_DEFINES =-D_POSIX_C_SOURCE
19
LIBC_DEFINES+=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG
20
 
21
# The following define the memory reserved in the executable for the
22
# RTEMS Workspace and the C Program Heap.
23
LIBC_DEFINES += -DWORKSPACE_MB=2
24
LIBC_DEFINES += -DHEAPSPACE_MB=1
25
 
26
DEFINES += -D_BSD_SOURCE
27
 
28
# optimize flag: typically -0, could use -O4 or -fast
29
# -O4 is ok for RTEMS
30
CFLAGS_OPTIMIZE_V = -O2
31
 
32
#  This section makes the target dependent options file.
33
 
34
#  NDEBUG (C library)
35
#     if defined asserts do not generate code.  This is commonly used
36
#     as a command line option.
37
#
38
#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
39
#     do not pause between screens of output in the rtems tests
40
#
41
#  NO_TABLE_MOVE (SPARC PORT)
42
#     do not have a second trap table -- use the BSP's
43
#
44
#  RTEMS_DEBUG (RTEMS)
45
#     If defined, debug checks in RTEMS and support library code are enabled.
46
#
47
#  RTEMS_UNIX (unix)
48
#     Define this to indicate this is an RTEMS UNIX port.
49
 
50
define make-target-options
51
        echo "/* #define NDEBUG 1 */ "                     >>$@
52
        echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
53
        echo "/* #define RTEMS_DEBUG  1 */"                >>$@
54
        echo "#define RTEMS_UNIX 1 "                       >>$@
55
endef
56
 
57
define make-exe
58
        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
59
        $(NM) -ng $@ > $(basename $@).num
60
        $(SIZE) $@
61
endef
62
 
63
 
64
# *****************************************************************
65
# Miscellaneous additions go here

powered by: WebSVN 2.1.0

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