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 | # ERC32 without FPU |
---|
9 | |
---|
10 | RTEMS_CPU_MODEL=erc32nfp |
---|
11 | |
---|
12 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
13 | |
---|
14 | # This is the actual bsp directory used during the build process. |
---|
15 | RTEMS_BSP_FAMILY=erc32 |
---|
16 | |
---|
17 | CPU_CFLAGS = -mcpu=cypress -msoft-float |
---|
18 | |
---|
19 | # optimize flag: typically -0, could use -O4 or -fast |
---|
20 | # -O4 is ok for RTEMS |
---|
21 | CFLAGS_OPTIMIZE_V=-O4 |
---|
22 | |
---|
23 | # This makes the target dependent options file |
---|
24 | |
---|
25 | # NO_TABLE_MOVE (SPARC PORT) |
---|
26 | # do not have a second trap table -- use the BSP's |
---|
27 | # |
---|
28 | # FPU_REVB (erc32_bsp) |
---|
29 | # If defined, enables work-around for bug 3.14 in FPU rev.B or rev.C |
---|
30 | # |
---|
31 | # CPU_U32_FIX (all) libchip/network/sonic.* |
---|
32 | # Needed to align received TCP/IP packets since SPARC does not |
---|
33 | # support unaligned memory access. |
---|
34 | # |
---|
35 | |
---|
36 | define make-target-options |
---|
37 | @echo "#define NO_TABLE_MOVE 1" >>$@ |
---|
38 | @echo "/* #define FPU_REVB 1 */" >>$@ |
---|
39 | @echo "#define CPU_U32_FIX 1" >>$@ |
---|
40 | endef |
---|
41 | |
---|
42 | # The following are definitions of make-exe which will work using ld as |
---|
43 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
44 | # will be able to override parts of the compilers specs and link using gcc. |
---|
45 | |
---|
46 | define make-exe |
---|
47 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \ |
---|
48 | $(LINK_OBJS) $(LINK_LIBS) |
---|
49 | $(NM) -g -n $(basename $@).exe > $(basename $@).num |
---|
50 | $(SIZE) $(basename $@).exe |
---|
51 | endef |
---|
52 | # Miscellaneous additions go here |
---|