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