1 | # |
---|
2 | # Config file for the algorithmics p4000 evaluation board with R4650 cpu |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
8 | |
---|
9 | # I think we can get this from the generated target.cfg. |
---|
10 | # RTEMS_CPU=mips |
---|
11 | RTEMS_CPU_MODEL=R4650 |
---|
12 | |
---|
13 | # This is the actual bsp directory used during the build process. |
---|
14 | RTEMS_BSP_FAMILY=p4000 |
---|
15 | |
---|
16 | CPU_CFLAGS=-m4650 -G0 |
---|
17 | CCMIPS_CFLAGS_CPU=-cpu=r4650 |
---|
18 | |
---|
19 | CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3 |
---|
20 | |
---|
21 | # This section makes the target dependent options file. |
---|
22 | |
---|
23 | define make-target-options |
---|
24 | endef |
---|
25 | |
---|
26 | # optimize flag: typically -0, could use -O4 or -fast |
---|
27 | # -O4 is ok for RTEMS |
---|
28 | CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
---|
29 | |
---|
30 | # The following are definitions of make-exe which will work using ld as |
---|
31 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
32 | # will be able to override parts of the compilers specs and link using gcc. |
---|
33 | |
---|
34 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
35 | # This rule was used in 3.6.0 |
---|
36 | # $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \ |
---|
37 | # -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_FILES) $(LD_PATHS:%=-L %) |
---|
38 | |
---|
39 | define make-exe |
---|
40 | $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \ |
---|
41 | $(START_FILE) $(LINK_OBJS) \ |
---|
42 | --start-group $(LINK_LIBS) --end-group $(LD_LIBS) |
---|
43 | $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1 |
---|
44 | $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec |
---|
45 | $(RM) $(basename $@).srec1 |
---|
46 | $(NM) -n $(basename $@).exe > $(basename $@).num |
---|
47 | $(SIZE) $(basename $@).exe |
---|
48 | endef |
---|
49 | else |
---|
50 | define make-exe |
---|
51 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \ |
---|
52 | $(LINK_OBJS) $(LINK_LIBS) $(LD_LIBS) |
---|
53 | $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1 |
---|
54 | $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec |
---|
55 | $(RM) $(basename $@).srec1 |
---|
56 | $(NM) -n $(basename $@).exe > $(basename $@).num |
---|
57 | $(SIZE) $(basename $@).exe |
---|
58 | endef |
---|
59 | endif |
---|
60 | |
---|
61 | # Miscellaneous additions go here |
---|