1 | # |
---|
2 | # Config file for an Intec Automation SS555 MPC555-based card |
---|
3 | # |
---|
4 | # This file is derived from: |
---|
5 | # |
---|
6 | # Config file for a PowerPC MPC860-based MBX821-001 card. |
---|
7 | # Config file for a PowerPC 403 based helas403 card |
---|
8 | # Config file for MPC860 based Ethernet Comm Board |
---|
9 | # |
---|
10 | |
---|
11 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
12 | |
---|
13 | RTEMS_CPU=powerpc |
---|
14 | GCC_CPU_MODEL=505 |
---|
15 | RTEMS_CPU_MODEL=mpc555 |
---|
16 | |
---|
17 | # This is the actual bsp directory used during the build process. |
---|
18 | RTEMS_BSP_FAMILY=ss555 |
---|
19 | |
---|
20 | # This contains the compiler options necessary to select the CPU model |
---|
21 | # and (hopefully) optimize for it. |
---|
22 | # |
---|
23 | CPU_CFLAGS = -mcpu=$(GCC_CPU_MODEL) -D$(RTEMS_CPU_MODEL) -D$(RTEMS_BSP_FAMILY) |
---|
24 | |
---|
25 | # Debugging flags: If we debug with optimization on, single-stepping |
---|
26 | # sometimes looks a little odd, but there won't be any surprises later. |
---|
27 | CFLAGS_DEBUG_V += -O4 -ggdb |
---|
28 | CXXFLAGS_DEBUG_V += -O4 -ggdb |
---|
29 | |
---|
30 | # optimize flag: typically -O, could use -O4 or -fast |
---|
31 | # -O4 is ok for RTEMS |
---|
32 | # NOTE: some level of -O may be actually required by inline assembler |
---|
33 | CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions |
---|
34 | CXXFLAGS_OPTIMIZE_V=-O4 |
---|
35 | |
---|
36 | define make-exe |
---|
37 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) $(SS555_LDFLAGS) \ |
---|
38 | -o $(basename $@)_sym.exe $(LINK_OBJS) $(LINK_LIBS) |
---|
39 | $(NM) -g -n $(basename $@)_sym.exe > $(basename $@).nm |
---|
40 | cp $(basename $@)_sym.exe $(basename $@).exe |
---|
41 | $(STRIP) $(basename $@).exe |
---|
42 | $(SIZE) $(basename $@)_sym.exe |
---|
43 | endef |
---|
44 | |
---|
45 | # Miscellaneous additions go here |
---|
46 | |
---|
47 | # Override default start file |
---|
48 | START_BASE= |
---|
49 | |
---|