aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios/demos/SPC5/RT-SPC560B-EVB/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios/demos/SPC5/RT-SPC560B-EVB/Makefile')
-rw-r--r--lib/chibios/demos/SPC5/RT-SPC560B-EVB/Makefile189
1 files changed, 189 insertions, 0 deletions
diff --git a/lib/chibios/demos/SPC5/RT-SPC560B-EVB/Makefile b/lib/chibios/demos/SPC5/RT-SPC560B-EVB/Makefile
new file mode 100644
index 000000000..e54932834
--- /dev/null
+++ b/lib/chibios/demos/SPC5/RT-SPC560B-EVB/Makefile
@@ -0,0 +1,189 @@
1##############################################################################
2# Build global options
3# NOTE: Can be overridden externally.
4#
5
6# Compiler options here.
7ifeq ($(USE_OPT),)
8 USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -mno-spe -msoft-float
9endif
10
11# C specific options here (added to USE_OPT).
12ifeq ($(USE_COPT),)
13 USE_COPT =
14endif
15
16# C++ specific options here (added to USE_OPT).
17ifeq ($(USE_CPPOPT),)
18 USE_CPPOPT = -fno-rtti
19endif
20
21# Enable this if you want the linker to remove unused code and data.
22ifeq ($(USE_LINK_GC),)
23 USE_LINK_GC = yes
24endif
25
26# Linker extra options here.
27ifeq ($(USE_LDOPT),)
28 USE_LDOPT =
29endif
30
31# Enable this if you want link time optimizations (LTO)
32ifeq ($(USE_LTO),)
33 USE_LTO = no
34endif
35
36# If enabled, this option allows to compile the application in VLE mode.
37ifeq ($(USE_VLE),)
38 USE_VLE = yes
39endif
40
41# Enable this if you want to see the full log while compiling.
42ifeq ($(USE_VERBOSE_COMPILE),)
43 USE_VERBOSE_COMPILE = no
44endif
45
46# If enabled, this option makes the build process faster by not compiling
47# modules not used in the current configuration.
48ifeq ($(USE_SMART_BUILD),)
49 USE_SMART_BUILD = yes
50endif
51
52#
53# Build global options
54##############################################################################
55
56##############################################################################
57# Architecture or project specific options
58#
59
60# Stack size to be allocated to the process stack. This stack is
61# the stack used by the main() thread.
62ifeq ($(USE_PROCESS_STACKSIZE),)
63 USE_PROCESS_STACKSIZE = 0x400
64endif
65
66# Stack size to the allocated to the optional exceptions stack. This
67# stack is used for processing interrupts and exceptions.
68ifeq ($(USE_EXCEPTIONS_STACKSIZE),)
69 USE_EXCEPTIONS_STACKSIZE = 0
70endif
71
72#
73# Architecture or project specific options
74##############################################################################
75
76##############################################################################
77# Project, sources and paths
78#
79
80# Define project name here
81PROJECT = ch
82
83# Imported source files and paths
84CHIBIOS = ../../..
85CONFDIR := .
86BUILDDIR := ./build
87DEPDIR := ./.dep
88
89# Licensing files.
90include $(CHIBIOS)/os/license/license.mk
91# Startup files.
92include $(CHIBIOS)/os/common/startup/e200/compilers/GCC/mk/startup_spc560bxx.mk
93# HAL-OSAL files (optional).
94include $(CHIBIOS)/os/hal/hal.mk
95include $(CHIBIOS)/os/hal/boards/ST_EVB_SPC560B/board.mk
96include $(CHIBIOS)/os/hal/ports/SPC5/SPC560Bxx/platform.mk
97include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
98# RTOS files (optional).
99include $(CHIBIOS)/os/rt/rt.mk
100include $(CHIBIOS)/os/common/ports/e200/compilers/GCC/mk/port.mk
101# Other files (optional).
102include $(CHIBIOS)/test/lib/test.mk
103include $(CHIBIOS)/test/rt/rt_test.mk
104include $(CHIBIOS)/test/oslib/oslib_test.mk
105include $(CHIBIOS)/os/hal/lib/streams/streams.mk
106include $(CHIBIOS)/os/various/shell/shell.mk
107
108# Define linker script file here
109LDSCRIPT= $(STARTUPLD)/SPC560B60.ld
110
111# C sources here.
112CSRC = $(ALLCSRC) \
113 $(TESTSRC) \
114 main.c
115
116# C++ sources here.
117CPPSRC = $(ALLCPPSRC)
118
119# List ASM source files here
120ASMSRC = $(ALLASMSRC)
121ASMXSRC = $(ALLXASMSRC)
122
123INCDIR = $(ALLINC) $(TESTINC) $(CONFDIR)
124
125#
126# Project, sources and paths
127##############################################################################
128
129##############################################################################
130# Compiler settings
131#
132
133#MCU = e200zx -meabi -msdata=none -mnew-mnemonics -mregnames # HighTec
134MCU = e200z0 -meabi -msdata=none -mregnames # Free GCC
135
136#TRGT = ppc-vle-
137#TRGT = powerpc-eabivle-
138TRGT = ppc-freevle-eabi-
139CC = $(TRGT)gcc
140CPPC = $(TRGT)g++
141# Enable loading with g++ only if you need C++ runtime support.
142# NOTE: You can use C++ even without C++ support if you are careful. C++
143# runtime support makes code size explode.
144LD = $(TRGT)gcc
145#LD = $(TRGT)g++
146CP = $(TRGT)objcopy
147AS = $(TRGT)gcc -x assembler-with-cpp
148AR = $(TRGT)ar
149OD = $(TRGT)objdump
150SZ = $(TRGT)size
151HEX = $(CP) -O ihex
152MOT = $(CP) -O srec
153BIN = $(CP) -O binary
154
155# Define C warning options here
156CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
157
158# Define C++ warning options here
159CPPWARN = -Wall -Wextra -Wundef
160
161#
162# Compiler settings
163##############################################################################
164
165##############################################################################
166# Start of user section
167#
168
169# List all user C define here, like -D_DEBUG=1
170UDEFS = -DTEST_CFG_SIZE_REPORT=0
171
172# Define ASM defines here
173UADEFS =
174
175# List all user directories here
176UINCDIR =
177
178# List the user directory to look for the libraries here
179ULIBDIR =
180
181# List all user libraries here
182ULIBS =
183
184#
185# End of user defines
186##############################################################################
187
188RULESPATH = $(CHIBIOS)/os/common/startup/e200/compilers/GCC
189include $(RULESPATH)/rules.mk