1 | # |
---|
2 | # Config file for a generic PowerPC 405 based card |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | # this is derived from: |
---|
7 | # |
---|
8 | # Config file for a PowerPC 403 based helas403 card |
---|
9 | # |
---|
10 | # Id: helas403.cfg,v 1.8 2000/07/13 15:05:38 joel Exp |
---|
11 | # |
---|
12 | # |
---|
13 | |
---|
14 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
15 | |
---|
16 | RTEMS_CPU=powerpc |
---|
17 | RTEMS_CPU_MODEL=ppc405 |
---|
18 | |
---|
19 | # This is the actual bsp directory used during the build process. |
---|
20 | RTEMS_BSP_FAMILY=virtex |
---|
21 | |
---|
22 | # This contains the compiler options necessary to select the CPU model |
---|
23 | # and (hopefully) optimize for it. |
---|
24 | # |
---|
25 | CPU_CFLAGS = -mcpu=403 -Dppc405 -Dvirtex |
---|
26 | |
---|
27 | # optimize flag: typically -0, could use -O4 or -fast |
---|
28 | # -O4 is ok for RTEMS |
---|
29 | # NOTE: some level of -O may be actually required by inline assembler |
---|
30 | CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions |
---|
31 | |
---|
32 | |
---|
33 | # No start file |
---|
34 | START_BASE= |
---|
35 | |
---|
36 | # The following are definitions of make-exe which will work using ld as |
---|
37 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
38 | # will be able to override parts of the compilers specs and link using gcc. |
---|
39 | |
---|
40 | define make-exe |
---|
41 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS) |
---|
42 | $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec |
---|
43 | $(NM) -g -n $@ > $(basename $@).num |
---|
44 | $(SIZE) $@ |
---|
45 | endef |
---|
46 | |
---|
47 | # $(OBJCOPY) -O srec --srec-len 120 $(basename $@).exe $(basename $@).srec |
---|
48 | define make-cxx-exe |
---|
49 | $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \ |
---|
50 | -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS) |
---|
51 | $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec |
---|
52 | $(NM) -g -n $@ > $(basename $@).num |
---|
53 | $(SIZE) $@ |
---|
54 | endef |
---|
55 | |
---|
56 | # Miscellaneous additions go here |
---|
57 | |
---|