1 | # |
---|
2 | # Config file for a PowerPC 403 based helas403 card |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | # this is derived from: |
---|
7 | # |
---|
8 | # Config file for a PowerPC 403 based papyrus card |
---|
9 | # |
---|
10 | # Id: papyrus.cfg,v 1.7 1998/06/27 17:09:47 joel Exp |
---|
11 | # |
---|
12 | |
---|
13 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
14 | |
---|
15 | RTEMS_CPU=powerpc |
---|
16 | RTEMS_CPU_MODEL=ppc403 |
---|
17 | |
---|
18 | # This is the actual bsp directory used during the build process. |
---|
19 | RTEMS_BSP_FAMILY=helas403 |
---|
20 | |
---|
21 | # This section makes the target dependent options file. |
---|
22 | |
---|
23 | # PPC_VECTOR_FILE_BASE (PowerPC) |
---|
24 | # This defines the base address of the exception table. |
---|
25 | # NOTE: Vectors are actually at 0xFFF00000 but file starts at offset 0x0100 |
---|
26 | # |
---|
27 | # PPC_USE_SPRG (RTEMS PowerPC port) |
---|
28 | # If defined, then the PowerPC specific code in RTEMS will use some |
---|
29 | # of the special purpose registers to slightly optimize interrupt |
---|
30 | # response time. The use of these registers can conflict with |
---|
31 | # other tools like debuggers. |
---|
32 | |
---|
33 | define make-target-options |
---|
34 | @echo "#define PPC_VECTOR_FILE_BASE 0x0100" >>$@ |
---|
35 | @echo "#define PPC_USE_SPRG 1" >>$@ |
---|
36 | endef |
---|
37 | |
---|
38 | # This contains the compiler options necessary to select the CPU model |
---|
39 | # and (hopefully) optimize for it. |
---|
40 | # |
---|
41 | CPU_CFLAGS = -mcpu=403 |
---|
42 | |
---|
43 | # optimize flag: typically -0, could use -O4 or -fast |
---|
44 | # -O4 is ok for RTEMS |
---|
45 | # NOTE: some level of -O may be actually required by inline assembler |
---|
46 | CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions |
---|
47 | |
---|
48 | # No start file |
---|
49 | START_BASE= |
---|
50 | |
---|
51 | # The following are definitions of make-exe which will work using ld as |
---|
52 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
53 | # will be able to override parts of the compilers specs and link using gcc. |
---|
54 | |
---|
55 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
56 | # The --defsym arguments define arguments which are required by the linkcmds |
---|
57 | # file which is designed for gcc 2.8 |
---|
58 | define make-exe |
---|
59 | $(LD) $(XLDFLAGS) -T $(LINKCMDS) \ |
---|
60 | --defsym __fini=0 --defsym __init=0 \ |
---|
61 | -o $@ -u atexit -u __vectors -u download_entry \ |
---|
62 | $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group |
---|
63 | $(OBJCOPY) -O srec --srec-len 120 $(basename $@).exe $(basename $@).srec |
---|
64 | $(NM) -g -n $@ > $(basename $@).num |
---|
65 | $(SIZE) $@ |
---|
66 | endef |
---|
67 | else |
---|
68 | define make-exe |
---|
69 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \ |
---|
70 | $(LINK_OBJS) $(LINK_LIBS) |
---|
71 | $(OBJCOPY) -O srec --srec-len 120 $(basename $@).exe $(basename $@).srec |
---|
72 | $(NM) -g -n $@ > $(basename $@).num |
---|
73 | $(SIZE) $@ |
---|
74 | endef |
---|
75 | endif |
---|
76 | |
---|
77 | # Miscellaneous additions go here |
---|
78 | |
---|