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 | # Override default start file |
---|
32 | START_BASE=startsis |
---|
33 | |
---|
34 | # This makes the target dependent options file |
---|
35 | |
---|
36 | # NDEBUG (C library) |
---|
37 | # if defined asserts do not generate code. This is commonly used |
---|
38 | # as a command line option. |
---|
39 | # |
---|
40 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
---|
41 | # do not pause between screens of output in the rtems tests |
---|
42 | # |
---|
43 | # NO_TABLE_MOVE (SPARC PORT) |
---|
44 | # do not have a second trap table -- use the BSP's |
---|
45 | # |
---|
46 | # RTEMS_DEBUG (RTEMS) |
---|
47 | # If defined, debug checks in RTEMS and support library code are enabled. |
---|
48 | # |
---|
49 | # CONSOLE_USE_POLLED (erc32_bsp) |
---|
50 | # CONSOLE_USE_INTERRUPTS (erc32_bsp) |
---|
51 | # The erc32 console driver can operate in either polled or interrupt mode. |
---|
52 | # Under the simulator (especially when FAST_UART is defined), polled seems |
---|
53 | # to operate better. It is common for a task to print a line (like the |
---|
54 | # end of test message) and then exit. In this case, the program returns |
---|
55 | # control to the simulator command line before the program has even queued |
---|
56 | # the output to the uart. Thus sis has no chance of getting the data out. |
---|
57 | # |
---|
58 | # SIMSPARC_FAST_IDLE (erc32_bsp) |
---|
59 | # If defined, speed up the clock ticks while the idle task is running so |
---|
60 | # time spent in the idle task is minimized. This significantly reduces |
---|
61 | # the wall time required to execute the RTEMS test suites. |
---|
62 | # |
---|
63 | # FPU_REVB (erc32_bsp) |
---|
64 | # If defined, enables work-around for bug 3.14 in FPU rev.B or rev.C |
---|
65 | # |
---|
66 | |
---|
67 | define make-target-options |
---|
68 | @echo "/* #define NDEBUG 1 */ " >>$@ |
---|
69 | @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
70 | @echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
---|
71 | @echo "#define NO_TABLE_MOVE 1" >>$@ |
---|
72 | @echo "#define CONSOLE_USE_INTERRUPTS 1" >>$@ |
---|
73 | @echo "#define CONSOLE_USE_POLLED ~CONSOLE_USE_INTERRUPTS" >>$@ |
---|
74 | @echo "/* #define SIMSPARC_FAST_IDLE 1 */" >>$@ |
---|
75 | @echo "#define FPU_REVB 1" >>$@ |
---|
76 | endef |
---|
77 | |
---|
78 | |
---|
79 | |
---|
80 | # The following are definitions of make-exe which will work using ld as |
---|
81 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
82 | # will be able to override parts of the compilers specs and link using gcc. |
---|
83 | |
---|
84 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
85 | define make-exe |
---|
86 | $(LD) -u _sbrk $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \ |
---|
87 | $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group |
---|
88 | $(NM) -g -n $(basename $@).exe > $(basename $@).num |
---|
89 | $(SIZE) $(basename $@).exe |
---|
90 | endef |
---|
91 | else |
---|
92 | define make-exe |
---|
93 | $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \ |
---|
94 | $(LINK_OBJS) $(LINK_LIBS) |
---|
95 | $(NM) -g -n $(basename $@).exe > $(basename $@).num |
---|
96 | $(SIZE) $(basename $@).exe |
---|
97 | endef |
---|
98 | endif |
---|
99 | # Miscellaneous additions go here |
---|
100 | |
---|