1 | # |
---|
2 | # Config file for the Linux 1.x based RTEMS UNIX |
---|
3 | # |
---|
4 | # $Id$ |
---|
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 | # share the posix bsp |
---|
16 | TARGET_ARCH=o-linux1 |
---|
17 | RTEMS_BSP=posix |
---|
18 | |
---|
19 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
20 | |
---|
21 | # DO NOT Use the LIBC support for CYGNUS newlib |
---|
22 | RTEMS_USE_NEWLIB=no |
---|
23 | |
---|
24 | # RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER |
---|
25 | LIBC_DEFINES =-D_POSIX_C_SOURCE |
---|
26 | LIBC_DEFINES+=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG |
---|
27 | |
---|
28 | # The following define the memory reserved in the executable for the |
---|
29 | # RTEMS Workspace and the C Program Heap. |
---|
30 | LIBC_DEFINES += -DWORKSPACE_MB=2 |
---|
31 | LIBC_DEFINES += -DHEAPSPACE_MB=1 |
---|
32 | |
---|
33 | |
---|
34 | # Define this to yes if C++ is included in the development environment |
---|
35 | # This requires that at least the GNU C++ compiler and libg++ be installed. |
---|
36 | ifeq ($(RTEMS_HAS_CPLUSPLUS),yes) |
---|
37 | HAS_CPLUSPLUS=yes |
---|
38 | # No need to set it, gcc knows about them |
---|
39 | # LIBCC_INCLUDE=/usr/include/g++ |
---|
40 | CPLUS_LD_LIBS += $(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA) |
---|
41 | else |
---|
42 | HAS_CPLUSPLUS=no |
---|
43 | endif |
---|
44 | |
---|
45 | # Define this to yes if this target supports multiprocessor environments. |
---|
46 | HAS_MP=yes |
---|
47 | |
---|
48 | # This target does NOT support the KA9Q TCP/IP stack so ignore requests |
---|
49 | # to enable it. |
---|
50 | HAS_KA9Q=no |
---|
51 | |
---|
52 | # This target does NOT support the POSIX API. |
---|
53 | HAS_POSIX_API=no |
---|
54 | |
---|
55 | # optimize flag: typically -0, could use -O4 or -fast |
---|
56 | # -O4 is ok for RTEMS |
---|
57 | CFLAGS_OPTIMIZE_V = -O2 |
---|
58 | |
---|
59 | # This section makes the target dependent options file. |
---|
60 | |
---|
61 | # NDEBUG (C library) |
---|
62 | # if defined asserts do not generate code. This is commonly used |
---|
63 | # as a command line option. |
---|
64 | # |
---|
65 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
---|
66 | # do not pause between screens of output in the rtems tests |
---|
67 | # |
---|
68 | # NO_TABLE_MOVE (SPARC PORT) |
---|
69 | # do not have a second trap table -- use the BSP's |
---|
70 | # |
---|
71 | # RTEMS_DEBUG (RTEMS) |
---|
72 | # If defined, debug checks in RTEMS and support library code are enabled. |
---|
73 | # |
---|
74 | # RTEMS_UNIX (unix) |
---|
75 | # Define this to indicate this is an RTEMS UNIX port. |
---|
76 | |
---|
77 | define make-target-options |
---|
78 | echo "/* #define NDEBUG 1 */ " >>$@ |
---|
79 | echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
80 | echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
---|
81 | echo "#define RTEMS_UNIX 1 " >>$@ |
---|
82 | endef |
---|
83 | |
---|
84 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
85 | define make-exe |
---|
86 | $(CC) -o $@ $(LINK_FILES) $(LD_LIBS) $(LIBC_LIBM) $(LIBC_LIBC) |
---|
87 | $(NM) -ng $@ > $(basename $@).num |
---|
88 | $(SIZE) $@ |
---|
89 | endef |
---|
90 | else |
---|
91 | # |
---|
92 | # gcc28 not yet supported |
---|
93 | # |
---|
94 | endif |
---|
95 | |
---|
96 | |
---|
97 | # ***************************************************************** |
---|
98 | # Miscellaneous additions go here |
---|
99 | |
---|
100 | # Workaround for missing ranlib support in RTEMS |
---|
101 | MKLIB=$(AR) s $(@) ; echo library is complete: |
---|