summaryrefslogtreecommitdiffstats
path: root/make/custom/ss555.cfg
blob: 41322a4607e212e950f820c3386019d12845f131 (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
33
34
35
36
37
38
39
40
41
#
#  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
RTEMS_CPU_MODEL=mpc555

# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=ss555

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

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

define make-exe
	$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) $(SS555_LDFLAGS) \
	    -o $(basename $@)_sym.exe $(LINK_OBJS) $(LINK_LIBS)
	$(NM) -g -n $(basename $@)_sym.exe > $(basename $@).nm
	cp $(basename $@)_sym.exe $(basename $@).exe 
	$(STRIP) $(basename $@).exe
	$(SIZE) $(basename $@)_sym.exe
endef

# Miscellaneous additions go here

# Override default start file
START_BASE=