summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/ss555/make/custom/ss555.cfg
blob: 1745bb5cad432bd368f7995f0d70ceb862056140 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
#  Config file for an Intec Automation SS555 MPC555-based card
#
#  This file is derived from:
#
#  Config file for a PowerPC MPC860-based MBX821-001 card.
#  Config file for a PowerPC 403 based helas403 card
#  Config file for MPC860 based Ethernet Comm Board

include $(RTEMS_ROOT)/make/custom/default.cfg

RTEMS_CPU=powerpc
GCC_CPU_MODEL=505

#  This contains the compiler options necessary to select the CPU model
#  and (hopefully) optimize for it.
#
CPU_CFLAGS = -mcpu=$(GCC_CPU_MODEL) -Dmpc555

# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions

# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2563.
# The following two lines enable compiling and linking on per element.
# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
# LDFLAGS = -Wl,--gc-sections

define bsp-post-link
	$(default-bsp-post-link)
	cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 
	$(STRIP) $(basename $@)$(DOWNEXT)
endef