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 | |
---|
12 | ifeq ($(RTEMS_CPU_MODEL),erc32nfp) |
---|
13 | MSOFT_FLOAT = -msoft-float |
---|
14 | else |
---|
15 | RTEMS_CPU_MODEL=erc32 |
---|
16 | endif |
---|
17 | # This is the actual bsp directory used during the build process. |
---|
18 | RTEMS_BSP_FAMILY=erc32 |
---|
19 | |
---|
20 | # The -mflat avoids the use of save/restore instructions. It has |
---|
21 | # a negative impact on the performance of RTEMS and should not be used. |
---|
22 | |
---|
23 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
24 | # -mno-v8 says not to use v8 level instructions. i.e. use v7 only |
---|
25 | # FIXME: This known not to work with gcc's >= gcc-2.95 |
---|
26 | CPU_CFLAGS = -mno-v8 -mcypress $(MSOFT_FLOAT) |
---|
27 | else |
---|
28 | # -mcpu=cypress says to optimize for a Cypress 60x chipset |
---|
29 | CPU_CFLAGS = -mcpu=cypress $(MSOFT_FLOAT) |
---|
30 | endif |
---|
31 | |
---|
32 | # optimize flag: typically -0, could use -O4 or -fast |
---|
33 | # -O4 is ok for RTEMS |
---|
34 | CFLAGS_OPTIMIZE_V=-O4 |
---|
35 | |
---|
36 | # This makes the target dependent options file |
---|
37 | |
---|
38 | # NO_TABLE_MOVE (SPARC PORT) |
---|
39 | # do not have a second trap table -- use the BSP's |
---|
40 | # |
---|
41 | # CONSOLE_USE_POLLED (erc32_bsp) |
---|
42 | # CONSOLE_USE_INTERRUPTS (erc32_bsp) |
---|
43 | # The erc32 console driver can operate in either polled or interrupt mode. |
---|
44 | # Under the simulator (especially when FAST_UART is defined), polled seems |
---|
45 | # to operate better. It is common for a task to print a line (like the |
---|
46 | # end of test message) and then exit. In this case, the program returns |
---|
47 | # control to the simulator command line before the program has even queued |
---|
48 | # the output to the uart. Thus sis has no chance of getting the data out. |
---|
49 | # |
---|
50 | # SIMSPARC_FAST_IDLE (erc32_bsp) |
---|
51 | # If defined, speed up the clock ticks while the idle task is running so |
---|
52 | # time spent in the idle task is minimized. This significantly reduces |
---|
53 | # the wall time required to execute the RTEMS test suites. |
---|
54 | # |
---|
55 | # FPU_REVB (erc32_bsp) |
---|
56 | # If defined, enables work-around for bug 3.14 in FPU rev.B or rev.C |
---|
57 | # |
---|
58 | # CPU_U32_FIX (all) |
---|
59 | # Needed to align received TCP/IP packets since SPARC does not |
---|
60 | # support unaligned memory access. |
---|
61 | # |
---|
62 | |
---|
63 | define make-target-options |
---|
64 | @echo "#define NO_TABLE_MOVE 1" >>$@ |
---|
65 | @echo "#define CONSOLE_USE_INTERRUPTS 0" >>$@ |
---|
66 | @echo "#define CONSOLE_USE_POLLED !CONSOLE_USE_INTERRUPTS" >>$@ |
---|
67 | @echo "/* #define SIMSPARC_FAST_IDLE 1 */" >>$@ |
---|
68 | @echo "/* #define FPU_REVB 1 */" >>$@ |
---|
69 | @echo "#define CPU_U32_FIX 1" >>$@ |
---|
70 | endef |
---|
71 | |
---|
72 | # The following are definitions of make-exe which will work using ld as |
---|
73 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
74 | # will be able to override parts of the compilers specs and link using gcc. |
---|
75 | |
---|
76 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
77 | define make-exe |
---|
78 | $(LD) -u _sbrk $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \ |
---|
79 | $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group |
---|
80 | $(NM) -g -n $(basename $@).exe > $(basename $@).num |
---|
81 | $(SIZE) $(basename $@).exe |
---|
82 | endef |
---|
83 | else |
---|
84 | define make-exe |
---|
85 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \ |
---|
86 | $(LINK_OBJS) $(LINK_LIBS) |
---|
87 | $(NM) -g -n $(basename $@).exe > $(basename $@).num |
---|
88 | $(SIZE) $(basename $@).exe |
---|
89 | endef |
---|
90 | endif |
---|
91 | # Miscellaneous additions go here |
---|
92 | |
---|