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