summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/tqm8xx/make/custom/tqm8xx.inc
blob: f9a31d0835bc68a606cda1c2fe38a7d801f561b9 (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
#
#  Config file for a PowerPC MPC8xx-based TQM8xx carrier card
#

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

RTEMS_CPU=powerpc

CPU_CFLAGS = -mcpu=860 -Dmpc860 \
             -mstrict-align -fno-strict-aliasing \
             -meabi -msdata=sysv -fno-common

# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections

LDFLAGS = -Wl,--gc-sections

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