4.104.114.84.95
Line | |
---|
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=gen405 |
---|
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 -D_OLD_EXCEPTIONS -Dppc405 |
---|
26 | |
---|
27 | # optimize flag: typically -O2 |
---|
28 | CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions |
---|
29 | |
---|
30 | |
---|
31 | # No start file |
---|
32 | START_BASE= |
---|
33 | |
---|
34 | # The following are definitions of make-exe which will work using ld as |
---|
35 | # is currently required. |
---|
36 | |
---|
37 | define make-exe |
---|
38 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS) |
---|
39 | $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec |
---|
40 | $(NM) -g -n $@ > $(basename $@).num |
---|
41 | $(SIZE) $@ |
---|
42 | endef |
---|
43 | |
---|
44 | # $(OBJCOPY) -O srec --srec-len 120 $(basename $@).exe $(basename $@).srec |
---|
45 | define make-cxx-exe |
---|
46 | $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \ |
---|
47 | -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS) |
---|
48 | $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec |
---|
49 | $(NM) -g -n $@ > $(basename $@).num |
---|
50 | $(SIZE) $@ |
---|
51 | endef |
---|
52 | |
---|
53 | # Miscellaneous additions go here |
---|
54 | |
---|
Note: See
TracBrowser
for help on using the repository browser.