1 | # |
---|
2 | # Config file for the algorithmics p4000 evaluation board |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | # NOTE: this file is broken ! |
---|
8 | |
---|
9 | CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3 |
---|
10 | |
---|
11 | # This is the actual bsp directory used during the build process. |
---|
12 | RTEMS_BSP_FAMILY=p4000 |
---|
13 | |
---|
14 | # This section makes the target dependent options file. |
---|
15 | |
---|
16 | # NDEBUG (C library) |
---|
17 | # if defined asserts do not generate code. This is commonly used |
---|
18 | # as a command line option. |
---|
19 | # |
---|
20 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
---|
21 | # do not pause between screens of output in the rtems tests |
---|
22 | # |
---|
23 | |
---|
24 | define make-target-options |
---|
25 | @echo "/* #define NDEBUG 1 */ " >>$@ |
---|
26 | @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
27 | endef |
---|
28 | |
---|
29 | |
---|
30 | # optimize flag: typically -0, could use -O4 or -fast |
---|
31 | # -O4 is ok for RTEMS |
---|
32 | CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
---|
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 | define make-exe |
---|
40 | $(CC) $(LDFLAGS) -nostdlib -o $(basename $@).exe \ |
---|
41 | -T$(PROJECT_RELEASE)/lib/linkcmds $(LINK_OBJS) $(LINK_LIBS) $(LD_PATHS:%=-L %) |
---|
42 | $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1 |
---|
43 | $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec |
---|
44 | $(RM) $(basename $@).srec1 |
---|
45 | $(NM) -n $(basename $@).exe > $(basename $@).num |
---|
46 | $(SIZE) $(basename $@).exe |
---|
47 | endef |
---|
48 | else |
---|
49 | define make-exe |
---|
50 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \ |
---|
51 | $(LINK_OBJS) $(LINK_LIBS) |
---|
52 | $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1 |
---|
53 | $(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec |
---|
54 | $(RM) $(basename $@).srec1 |
---|
55 | $(NM) -n $(basename $@).exe > $(basename $@).num |
---|
56 | $(SIZE) $(basename $@).exe |
---|
57 | endef |
---|
58 | endif |
---|
59 | |
---|
60 | # Miscellaneous additions go here |
---|
61 | |
---|