1 | # |
---|
2 | # Config file for the European Space Agency ERC32 SPARC processor. |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
8 | |
---|
9 | RTEMS_CPU=sparc |
---|
10 | |
---|
11 | ifeq ($(RTEMS_CPU_MODEL),leon1) |
---|
12 | MSOFT_FLOAT = -msoft-float |
---|
13 | else |
---|
14 | RTEMS_CPU_MODEL=leon2 |
---|
15 | endif |
---|
16 | # This is the actual bsp directory used during the build process. |
---|
17 | RTEMS_BSP_FAMILY=leon |
---|
18 | |
---|
19 | # The -mflat avoids the use of save/restore instructions. It has |
---|
20 | # a negative impact on the performance of RTEMS and should not be used. |
---|
21 | |
---|
22 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
23 | # -mno-v8 says not to use v8 level instructions. i.e. use v7 only |
---|
24 | CPU_CFLAGS = -mno-v8 -mcypress $(MSOFT_FLOAT) |
---|
25 | else |
---|
26 | # -mcpu=cypress says to optimize for a Cypress 60x chipset |
---|
27 | CPU_CFLAGS = -mcpu=cypress $(MSOFT_FLOAT) |
---|
28 | endif |
---|
29 | |
---|
30 | # optimize flag: typically -0, could use -O4 or -fast |
---|
31 | # -O4 is ok for RTEMS |
---|
32 | CFLAGS_OPTIMIZE_V=-O4 |
---|
33 | |
---|
34 | # This makes the target dependent options file |
---|
35 | |
---|
36 | # NO_TABLE_MOVE (SPARC PORT) |
---|
37 | # do not have a second trap table -- use the BSP's |
---|
38 | # |
---|
39 | # CPU_U32_FIX (all) |
---|
40 | # Needed to align received TCP/IP packets since SPARC does not |
---|
41 | # support unaligned memory access. |
---|
42 | # |
---|
43 | |
---|
44 | define make-target-options |
---|
45 | @echo "#define NO_TABLE_MOVE 1" >>$@ |
---|
46 | @echo "#define CPU_U32_FIX 1" >>$@ |
---|
47 | endef |
---|
48 | |
---|
49 | |
---|
50 | |
---|
51 | # The following are definitions of make-exe which will work using ld as |
---|
52 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
53 | # will be able to override parts of the compilers specs and link using gcc. |
---|
54 | |
---|
55 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
56 | define make-exe |
---|
57 | $(LD) -u _sbrk $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \ |
---|
58 | $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group |
---|
59 | $(NM) -g -n $(basename $@).exe > $(basename $@).num |
---|
60 | $(SIZE) $(basename $@).exe |
---|
61 | endef |
---|
62 | else |
---|
63 | define make-exe |
---|
64 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \ |
---|
65 | $(LINK_OBJS) $(LINK_LIBS) |
---|
66 | $(NM) -g -n $(basename $@).exe > $(basename $@).num |
---|
67 | $(SIZE) $(basename $@).exe |
---|
68 | endef |
---|
69 | endif |
---|
70 | # Miscellaneous additions go here |
---|
71 | |
---|