1 | # |
---|
2 | # Config file for the European Space Agency ERC32 |
---|
3 | # a V7 SPARC processor derived from the Cypress 601/602 set. |
---|
4 | # |
---|
5 | # $Id$ |
---|
6 | # |
---|
7 | |
---|
8 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
9 | |
---|
10 | RTEMS_CPU=sparc |
---|
11 | RTEMS_CPU_MODEL=erc32 |
---|
12 | |
---|
13 | # This is the actual bsp directory used during the build process. |
---|
14 | RTEMS_BSP_FAMILY=erc32 |
---|
15 | |
---|
16 | # The -mflat avoids the use of save/restore instructions. It has |
---|
17 | # a negative impact on the performance of RTEMS and should not be used. |
---|
18 | |
---|
19 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
20 | # -mno-v8 says not to use v8 level instructions. i.e. use v7 only |
---|
21 | CPU_CFLAGS = -mno-v8 -mcypress |
---|
22 | else |
---|
23 | # -mcpu=cypress says to optimize for a Cypress 60x chipset |
---|
24 | CPU_CFLAGS = -mcpu=cypress |
---|
25 | endif |
---|
26 | |
---|
27 | # optimize flag: typically -0, could use -O4 or -fast |
---|
28 | # -O4 is ok for RTEMS |
---|
29 | CFLAGS_OPTIMIZE_V=-O4 |
---|
30 | |
---|
31 | # This target does NOT support the KA9Q TCP/IP stack so ignore requests |
---|
32 | # to enable it. |
---|
33 | HAS_KA9Q=no |
---|
34 | |
---|
35 | # Override default start file |
---|
36 | START_BASE=startsis |
---|
37 | |
---|
38 | # This makes the target dependent options file |
---|
39 | |
---|
40 | # NDEBUG (C library) |
---|
41 | # if defined asserts do not generate code. This is commonly used |
---|
42 | # as a command line option. |
---|
43 | # |
---|
44 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
---|
45 | # do not pause between screens of output in the rtems tests |
---|
46 | # |
---|
47 | # NO_TABLE_MOVE (SPARC PORT) |
---|
48 | # do not have a second trap table -- use the BSP's |
---|
49 | # |
---|
50 | # STACK_CHECKER_ON (RTEMS support code) |
---|
51 | # If defined, stack bounds checking is enabled. |
---|
52 | # |
---|
53 | # STACK_CHECKER_REPORT_USAGE (RTEMS support code) |
---|
54 | # If this and STACK_CHECKER_ON are defined, then a report on stack usage |
---|
55 | # per task is printed when the program exits. |
---|
56 | # |
---|
57 | # RTEMS_DEBUG (RTEMS) |
---|
58 | # If defined, debug checks in RTEMS and support library code are enabled. |
---|
59 | # |
---|
60 | # CONSOLE_USE_POLLED (erc32_bsp) |
---|
61 | # CONSOLE_USE_INTERRUPTS (erc32_bsp) |
---|
62 | # The erc32 console driver can operate in either polled or interrupt mode. |
---|
63 | # Under the simulator (especially when FAST_UART is defined), polled seems |
---|
64 | # to operate better. It is common for a task to print a line (like the |
---|
65 | # end of test message) and then exit. In this case, the program returns |
---|
66 | # control to the simulator command line before the program has even queued |
---|
67 | # the output to the uart. Thus sis has no chance of getting the data out. |
---|
68 | # |
---|
69 | # SIMSPARC_FAST_IDLE (erc32_bsp) |
---|
70 | # If defined, speed up the clock ticks while the idle task is running so |
---|
71 | # time spent in the idle task is minimized. This significantly reduces |
---|
72 | # the wall time required to execute the RTEMS test suites. |
---|
73 | # |
---|
74 | |
---|
75 | define make-target-options |
---|
76 | @echo "/* #define NDEBUG 1 */ " >>$@ |
---|
77 | @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
78 | @echo "/* #define STACK_CHECKER_ON 1 */" >>$@ |
---|
79 | @echo "/* #define STACK_CHECKER_REPORT_USAGE 1 */" >>$@ |
---|
80 | @echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
---|
81 | @echo "#define NO_TABLE_MOVE 1" >>$@ |
---|
82 | @echo "/* #define CONSOLE_USE_INTERRUPTS 1 */" >>$@ |
---|
83 | @echo "#define CONSOLE_USE_POLLED 1" >>$@ |
---|
84 | @echo "/* #define SIMSPARC_FAST_IDLE 1 */" >>$@ |
---|
85 | endef |
---|
86 | |
---|
87 | |
---|
88 | |
---|
89 | # The following are definitions of make-exe which will work using ld as |
---|
90 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
91 | # will be able to override parts of the compilers specs and link using gcc. |
---|
92 | |
---|
93 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
94 | define make-exe |
---|
95 | $(LD) -u _sbrk $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \ |
---|
96 | $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group |
---|
97 | $(NM) -g -n $(basename $@).exe > $(basename $@).num |
---|
98 | $(SIZE) $(basename $@).exe |
---|
99 | endef |
---|
100 | else |
---|
101 | define make-exe |
---|
102 | $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe $(LINK_OBJS) |
---|
103 | $(NM) -g -n $(basename $@).exe > $(basename $@).num |
---|
104 | $(SIZE) $(basename $@).exe |
---|
105 | endef |
---|
106 | endif |
---|
107 | # Miscellaneous additions go here |
---|
108 | |
---|
109 | |
---|
110 | |
---|