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 | RTEMS_CPU=mips64orion |
---|
10 | RTEMS_CPU_MODEL=R4650 |
---|
11 | |
---|
12 | # This is the actual bsp directory used during the build process. |
---|
13 | RTEMS_BSP_FAMILY=p4000 |
---|
14 | |
---|
15 | CPU_CFLAGS=-m4650 -G0 |
---|
16 | CCMIPS_CFLAGS_CPU=-cpu=r4650 |
---|
17 | |
---|
18 | CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3 |
---|
19 | |
---|
20 | # This section makes the target dependent options file. |
---|
21 | |
---|
22 | # NDEBUG (C library) |
---|
23 | # if defined asserts do not generate code. This is commonly used |
---|
24 | # as a command line option. |
---|
25 | # |
---|
26 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
---|
27 | # do not pause between screens of output in the rtems tests |
---|
28 | # |
---|
29 | |
---|
30 | define make-target-options |
---|
31 | @echo "/* #define NDEBUG 1 */ " >>$@ |
---|
32 | @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
33 | endef |
---|
34 | |
---|
35 | |
---|
36 | # optimize flag: typically -0, could use -O4 or -fast |
---|
37 | # -O4 is ok for RTEMS |
---|
38 | CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
---|
39 | |
---|
40 | # The following are definitions of make-exe which will work using ld as |
---|
41 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
42 | # will be able to override parts of the compilers specs and link using gcc. |
---|
43 | |
---|
44 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
45 | # This rule was used in 3.6.0 |
---|
46 | # $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \ |
---|
47 | # -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_FILES) $(LD_PATHS:%=-L %) |
---|
48 | |
---|
49 | define make-exe |
---|
50 | $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \ |
---|
51 | $(START_FILE) $(LINK_OBJS) \ |
---|
52 | --start-group $(LINK_LIBS) --end-group $(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 | else |
---|
60 | define make-exe |
---|
61 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \ |
---|
62 | $(LINK_OBJS) $(LINK_LIBS) $(LD_LIBS) |
---|
63 | $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1 |
---|
64 | $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec |
---|
65 | $(RM) $(basename $@).srec1 |
---|
66 | $(NM) -n $(basename $@).exe > $(basename $@).num |
---|
67 | $(SIZE) $(basename $@).exe |
---|
68 | endef |
---|
69 | endif |
---|
70 | |
---|
71 | # Miscellaneous additions go here |
---|