1 | # |
---|
2 | # Config file for the generix RAMiX boards with i960 |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
8 | |
---|
9 | RTEMS_CPU=i960 |
---|
10 | RTEMS_CPU_MODEL=i960rp |
---|
11 | |
---|
12 | # This is the actual bsp directory used during the build process. |
---|
13 | RTEMS_BSP_FAMILY=rxgen960 |
---|
14 | |
---|
15 | # This contains the compiler options necessary to select the CPU model |
---|
16 | # and (hopefully) optimize for it. |
---|
17 | # |
---|
18 | # CPU_CFLAGS = -mrp -D__i960RP__ -D__i960_RP__ |
---|
19 | CPU_CFLAGS = -mrp |
---|
20 | |
---|
21 | # -pipe does not work in our local configuration of FSF GCC 2.6.0 |
---|
22 | # configured on top of Intel Release 2.4. We did this to replace |
---|
23 | # the GCC 2.4.5 shipped with Intel Release 2.4. |
---|
24 | |
---|
25 | # optimize flag: typically -0, could use -O4 or -fast |
---|
26 | # -O4 is ok for RTEMS |
---|
27 | CFLAGS_OPTIMIZE_V=-O4 -mleaf-procedures |
---|
28 | |
---|
29 | # This section makes the target dependent options file. |
---|
30 | |
---|
31 | define make-target-options |
---|
32 | endef |
---|
33 | |
---|
34 | # The following are definitions of make-exe which will work using ld as |
---|
35 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
36 | # will be able to override parts of the compilers specs and link using gcc. |
---|
37 | |
---|
38 | # ifeq ($(RTEMS_USE_GCC272),yes) |
---|
39 | # ar x $(PROJECT_ROOT)/$(RTEMS_BSP_FAMILY)/lib/libbsp.a |
---|
40 | |
---|
41 | # LD_LIBS += $(PROJECT_RELEASE)/lib/libbsp.a |
---|
42 | |
---|
43 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
44 | define make-exe |
---|
45 | @echo "rxgen960 does not support this gcc 2.7.2" |
---|
46 | exit 1 |
---|
47 | endef |
---|
48 | else |
---|
49 | define make-exe |
---|
50 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \ |
---|
51 | $(LINK_OBJS) $(LINK_LIBS) |
---|
52 | $(NM) -g -n $@ > $(basename $@).num |
---|
53 | $(OBJCOPY) -O binary $@ $(basename $@).bin |
---|
54 | $(SIZE) $@ |
---|
55 | endef |
---|
56 | endif |
---|
57 | |
---|
58 | # Miscellaneous additions go here |
---|
59 | |
---|
60 | START_BASE= |
---|
61 | START_FILE= |
---|