1 | # |
---|
2 | # Config file for the Solaris based RTEMS UNIX |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | RTEMS_CPU=unix |
---|
8 | RTEMS_CPU_FAMILY=sparc |
---|
9 | RTEMS_CPU_MODEL=sparc_v8 |
---|
10 | RTEMS_UNIX_FLAVOR=solaris |
---|
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-solaris2 |
---|
17 | RTEMS_BSP=posix |
---|
18 | |
---|
19 | include $(RTEMS_ROOT)/make/default.cfg |
---|
20 | |
---|
21 | ## Target compiler config file, if any |
---|
22 | CONFIG.$(TARGET_ARCH).CC = $(RTEMS_ROOT)/make/compilers/gcc-target-default.cfg |
---|
23 | |
---|
24 | # Use the LIBC support for CYGNUS newlib |
---|
25 | # RTEMS_LIBC_DIR must already be set (by module file) |
---|
26 | RTEMS_USE_NEWLIB=no |
---|
27 | |
---|
28 | LIBC_DEFINES=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG |
---|
29 | LIBC_LIBM=-lm |
---|
30 | |
---|
31 | # Define this to yes if C++ is included in the development environment |
---|
32 | # This requires that at least the GNU C++ compiler and libg++ be installed. |
---|
33 | ifeq ($(RTEMS_HAS_CPLUSPLUS),yes) |
---|
34 | HAS_CPLUSPLUS=yes |
---|
35 | # no standard C++ libs provided by default |
---|
36 | LIBCC_INCLUDE=$(GNUTOOLS)/include/g++ |
---|
37 | CPLUS_LD_LIBS=-lstdc++ |
---|
38 | CPLUS_LD_LIBS=$(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA) |
---|
39 | else |
---|
40 | HAS_CPLUSPLUS=no |
---|
41 | endif |
---|
42 | |
---|
43 | # Define this to yes if this target supports multiprocessor environments. |
---|
44 | HAS_MP=yes |
---|
45 | |
---|
46 | # This target does NOT support the KA9Q TCP/IP stack so ignore requests |
---|
47 | # to enable it. |
---|
48 | HAS_KA9Q=no |
---|
49 | |
---|
50 | # This target does NOT support the POSIX API. |
---|
51 | HAS_POSIX_API=no |
---|
52 | |
---|
53 | # optimize flag: typically -0, could use -O4 or -fast |
---|
54 | # -O4 is ok for RTEMS |
---|
55 | CFLAGS_OPTIMIZE_V = -O2 |
---|
56 | |
---|
57 | # This section makes the target dependent options file. |
---|
58 | |
---|
59 | # NDEBUG (C library) |
---|
60 | # if defined asserts do not generate code. This is commonly used |
---|
61 | # as a command line option. |
---|
62 | # |
---|
63 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
---|
64 | # do not pause between screens of output in the rtems tests |
---|
65 | # |
---|
66 | # NO_TABLE_MOVE (SPARC PORT) |
---|
67 | # do not have a second trap table -- use the BSP's |
---|
68 | # |
---|
69 | # STACK_CHECKER_ON (RTEMS support code) |
---|
70 | # If defined, stack bounds checking is enabled. |
---|
71 | # |
---|
72 | # STACK_CHECKER_REPORT_USAGE (RTEMS support code) |
---|
73 | # If this and STACK_CHECKER_ON are defined, then a report on stack usage |
---|
74 | # per task is printed when the program exits. |
---|
75 | # |
---|
76 | # RTEMS_DEBUG (RTEMS) |
---|
77 | # If defined, debug checks in RTEMS and support library code are enabled. |
---|
78 | # |
---|
79 | # RTEMS_UNIX (unix) |
---|
80 | # Define this to indicate this is an RTEMS UNIX port. |
---|
81 | |
---|
82 | define make-target-options |
---|
83 | echo "/* #define NDEBUG 1 */ " >>$@ |
---|
84 | echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
85 | echo "/* #define STACK_CHECKER_ON 1 */" >>$@ |
---|
86 | echo "/* #define STACK_CHECKER_REPORT_USAGE 1 */" >>$@ |
---|
87 | echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
---|
88 | echo "#define RTEMS_UNIX 1 " >>$@ |
---|
89 | endef |
---|
90 | |
---|
91 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
92 | define make-exe |
---|
93 | $(CC) -o $@ $(LINK_FILES) $(LD_LIBS) $(LIBC_LIBM) $(LIBC_LIBC) |
---|
94 | $(NM) -ng $@ > $(basename $@).num |
---|
95 | $(SIZE) $@ |
---|
96 | endef |
---|
97 | else |
---|
98 | # |
---|
99 | # gcc28 not yet supported |
---|
100 | # |
---|
101 | endif |
---|
102 | |
---|
103 | |
---|
104 | # ***************************************************************** |
---|
105 | |
---|
106 | |
---|
107 | # Miscellaneous additions go here |
---|