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