1 | # |
---|
2 | # Config file for MPC860 based Ethernet Comm Board |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
8 | |
---|
9 | RTEMS_CPU=powerpc |
---|
10 | RTEMS_CPU_MODEL=mpc8xx |
---|
11 | 8XX_CPU_TYPE=860 |
---|
12 | |
---|
13 | # This is the actual bsp directory used during the build process. |
---|
14 | RTEMS_BSP_FAMILY=eth_comm |
---|
15 | RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new |
---|
16 | |
---|
17 | # PPC_ABI (PowerPC) |
---|
18 | # This defines the calling convention (Application Binary Interface) |
---|
19 | # used in this configuration. EABI is the only one supported. |
---|
20 | # This BSP was initially developed using the PowerOpen ABI. |
---|
21 | # |
---|
22 | # PPC_ASM (PowerPC) |
---|
23 | # This defines the assembly language format used in this configuration. |
---|
24 | # ELF is the only one supported. |
---|
25 | # |
---|
26 | |
---|
27 | # This contains the compiler options necessary to select the CPU model |
---|
28 | # and (hopefully) optimize for it. |
---|
29 | # |
---|
30 | CPU_CFLAGS = -mcpu=$(8XX_CPU_TYPE) -Dmpc$(8XX_CPU_TYPE) \ |
---|
31 | -DPPC_ABI=PPC_ABI_EABI -DPPC_ASM=PPC_ASM_ELF |
---|
32 | |
---|
33 | # optimize flag: typically -0, could use -O4 or -fast |
---|
34 | # -O4 is ok for RTEMS |
---|
35 | # NOTE: some level of -O may be actually required by inline assembler |
---|
36 | CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions |
---|
37 | |
---|
38 | # The following are definitions of make-exe which will work using ld as |
---|
39 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
40 | # will be able to override parts of the compilers specs and link using gcc. |
---|
41 | |
---|
42 | define make-exe |
---|
43 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \ |
---|
44 | $(LINK_OBJS) $(LINK_LIBS) |
---|
45 | $(NM) -g -n $@ > $(basename $@).num |
---|
46 | $(SIZE) $@ |
---|
47 | endef |
---|
48 | |
---|
49 | # Miscellaneous additions go here |
---|
50 | |
---|