1 | # |
---|
2 | # Config file for the algorithmics p4000 evaluation board with R4600 cpu |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | |
---|
8 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
9 | |
---|
10 | RTEMS_CPU=mips64orion |
---|
11 | RTEMS_CPU_MODEL=R4600 |
---|
12 | |
---|
13 | # This is the actual bsp directory used during the build process. |
---|
14 | RTEMS_BSP_FAMILY=p4000 |
---|
15 | |
---|
16 | CPU_CFLAGS=-mcpu=4600 -G0 |
---|
17 | CCMIPS_CFLAGS_CPU=-cpu=r4600 |
---|
18 | |
---|
19 | # Override default start file |
---|
20 | START_BASE=idt_csu |
---|
21 | |
---|
22 | CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3 |
---|
23 | |
---|
24 | # The p4600 and p4600 share the p4000 bsp. |
---|
25 | TARGET_ARCH=o-p4600 |
---|
26 | RTEMS_BSP=p4000 |
---|
27 | |
---|
28 | ## Target compiler config file, if any |
---|
29 | CONFIG.$(TARGET_ARCH).CC = $(RTEMS_ROOT)/make/compilers/gcc-target-default.cfg |
---|
30 | |
---|
31 | # This target does NOT support the KA9Q TCP/IP stack so ignore requests |
---|
32 | # to enable it. |
---|
33 | HAS_KA9Q=no |
---|
34 | |
---|
35 | # This section makes the target dependent options file. |
---|
36 | |
---|
37 | # NDEBUG (C library) |
---|
38 | # if defined asserts do not generate code. This is commonly used |
---|
39 | # as a command line option. |
---|
40 | # |
---|
41 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
---|
42 | # do not pause between screens of output in the rtems tests |
---|
43 | # |
---|
44 | # RTEMS_DEBUG (RTEMS) |
---|
45 | # If defined, debug checks in RTEMS and support library code are enabled. |
---|
46 | # |
---|
47 | # WORKSPACE_MB (p4000) |
---|
48 | # Defines the size in Megabytes of the RTEMS Workspace. |
---|
49 | # |
---|
50 | # HEAPSPACE_MB (p4000) |
---|
51 | # Defines the size in Megabytes of the C Program Heap. |
---|
52 | |
---|
53 | define make-target-options |
---|
54 | @echo "/* #define NDEBUG 1 */ " >>$@ |
---|
55 | @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
56 | @echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
---|
57 | @echo "#define WORKSPACE_MB 2" >>$@ |
---|
58 | @echo "#define HEAPSPACE_MB 1" >>$@ |
---|
59 | endef |
---|
60 | |
---|
61 | |
---|
62 | # optimize flag: typically -0, could use -O4 or -fast |
---|
63 | # -O4 is ok for RTEMS |
---|
64 | CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
---|
65 | |
---|
66 | # The following are definitions of make-exe which will work using ld as |
---|
67 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
68 | # will be able to override parts of the compilers specs and link using gcc. |
---|
69 | |
---|
70 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
71 | # This rule was used in 3.6.0 |
---|
72 | # $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \ |
---|
73 | # -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_FILES) $(LD_PATHS:%=-L %) |
---|
74 | |
---|
75 | define make-exe |
---|
76 | $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \ |
---|
77 | $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group |
---|
78 | $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1 |
---|
79 | $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec |
---|
80 | $(RM) $(basename $@).srec1 |
---|
81 | $(NM) -n $(basename $@).exe > $(basename $@).num |
---|
82 | $(SIZE) $(basename $@).exe |
---|
83 | endef |
---|
84 | else |
---|
85 | define make-exe |
---|
86 | $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe $(LINK_OBJS) |
---|
87 | $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1 |
---|
88 | $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec |
---|
89 | $(RM) $(basename $@).srec1 |
---|
90 | $(NM) -n $(basename $@).exe > $(basename $@).num |
---|
91 | $(SIZE) $(basename $@).exe |
---|
92 | endef |
---|
93 | endif |
---|
94 | |
---|
95 | # Miscellaneous additions go here |
---|
96 | |
---|