aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/testhal/TIVA/TM4C123x/SPI/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/testhal/TIVA/TM4C123x/SPI/Makefile')
-rw-r--r--lib/chibios-contrib/testhal/TIVA/TM4C123x/SPI/Makefile211
1 files changed, 211 insertions, 0 deletions
diff --git a/lib/chibios-contrib/testhal/TIVA/TM4C123x/SPI/Makefile b/lib/chibios-contrib/testhal/TIVA/TM4C123x/SPI/Makefile
new file mode 100644
index 000000000..e1c2dd8f8
--- /dev/null
+++ b/lib/chibios-contrib/testhal/TIVA/TM4C123x/SPI/Makefile
@@ -0,0 +1,211 @@
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
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 = yes
34endif
35
36# If enabled, this option allows to compile the application in THUMB mode.
37ifeq ($(USE_THUMB),)
38 USE_THUMB = 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 Cortex-M 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 Cortex-M main/exceptions stack. This
67# stack is used for processing interrupts and exceptions.
68ifeq ($(USE_EXCEPTIONS_STACKSIZE),)
69 USE_EXCEPTIONS_STACKSIZE = 0x400
70endif
71
72# Enables the use of FPU on Cortex-M4 (no, softfp, hard).
73ifeq ($(USE_FPU),)
74 USE_FPU = no
75endif
76
77#
78# Architecture or project specific options
79##############################################################################
80
81##############################################################################
82# Project, sources and paths
83#
84
85# Define project name here
86PROJECT = ch
87
88# Imported source files and paths
89CHIBIOS = ../../../../../ChibiOS
90CHIBIOS_CONTRIB = $(CHIBIOS)/../ChibiOS-Contrib
91
92# Licensing files.
93include $(CHIBIOS)/os/license/license.mk
94# Startup files.
95include $(CHIBIOS_CONTRIB)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_tm4c123x.mk
96# HAL-OSAL files (optional).
97include $(CHIBIOS)/os/hal/hal.mk
98include $(CHIBIOS_CONTRIB)/os/hal/ports/TIVA/TM4C123x/platform.mk
99include $(CHIBIOS_CONTRIB)/os/hal/boards/TI_TM4C123G_LAUNCHPAD/board.mk
100include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
101# RTOS files (optional).
102include $(CHIBIOS)/os/rt/rt.mk
103include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
104# Other files (optional).
105
106# Define linker script file here
107LDSCRIPT= $(STARTUPLD)/TM4C123xH6.ld
108
109# C sources that can be compiled in ARM or THUMB mode depending on the global
110# setting.
111CSRC = $(ALLCSRC) \
112 main.c
113
114# C++ sources that can be compiled in ARM or THUMB mode depending on the global
115# setting.
116CPPSRC = $(ALLCPPSRC)
117
118# C sources to be compiled in ARM mode regardless of the global setting.
119# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
120# option that results in lower performance and larger code size.
121ACSRC =
122
123# C++ sources to be compiled in ARM mode regardless of the global setting.
124# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
125# option that results in lower performance and larger code size.
126ACPPSRC =
127
128# C sources to be compiled in THUMB mode regardless of the global setting.
129# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
130# option that results in lower performance and larger code size.
131TCSRC =
132
133# C sources to be compiled in THUMB mode regardless of the global setting.
134# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
135# option that results in lower performance and larger code size.
136TCPPSRC =
137
138# List ASM source files here
139ASMSRC = $(ALLASMSRC)
140ASMXSRC = $(ALLXASMSRC)
141
142INCDIR = $(ALLINC)
143
144#
145# Project, sources and paths
146##############################################################################
147
148##############################################################################
149# Compiler settings
150#
151
152MCU = cortex-m4
153
154#TRGT = arm-elf-
155TRGT = arm-none-eabi-
156CC = $(TRGT)gcc
157CPPC = $(TRGT)g++
158# Enable loading with g++ only if you need C++ runtime support.
159# NOTE: You can use C++ even without C++ support if you are careful. C++
160# runtime support makes code size explode.
161LD = $(TRGT)gcc
162#LD = $(TRGT)g++
163CP = $(TRGT)objcopy
164AS = $(TRGT)gcc -x assembler-with-cpp
165AR = $(TRGT)ar
166OD = $(TRGT)objdump
167SZ = $(TRGT)size
168HEX = $(CP) -O ihex
169BIN = $(CP) -O binary
170
171# ARM-specific options here
172AOPT =
173
174# THUMB-specific options here
175TOPT = -mthumb -DTHUMB
176
177# Define C warning options here
178CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
179
180# Define C++ warning options here
181CPPWARN = -Wall -Wextra -Wundef
182
183#
184# Compiler settings
185##############################################################################
186
187##############################################################################
188# Start of user section
189#
190
191# List all user C define here, like -D_DEBUG=1
192UDEFS =
193
194# Define ASM defines here
195UADEFS =
196
197# List all user directories here
198UINCDIR =
199
200# List the user directory to look for the libraries here
201ULIBDIR =
202
203# List all user libraries here
204ULIBS =
205
206#
207# End of user defines
208##############################################################################
209
210RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk
211include $(RULESPATH)/rules.mk