diff options
Diffstat (limited to 'lib/chibios-contrib/testhal/TIVA/TM4C123x/I2C/Makefile')
-rw-r--r-- | lib/chibios-contrib/testhal/TIVA/TM4C123x/I2C/Makefile | 212 |
1 files changed, 212 insertions, 0 deletions
diff --git a/lib/chibios-contrib/testhal/TIVA/TM4C123x/I2C/Makefile b/lib/chibios-contrib/testhal/TIVA/TM4C123x/I2C/Makefile new file mode 100644 index 000000000..a1f0fdeb5 --- /dev/null +++ b/lib/chibios-contrib/testhal/TIVA/TM4C123x/I2C/Makefile | |||
@@ -0,0 +1,212 @@ | |||
1 | ############################################################################## | ||
2 | # Build global options | ||
3 | # NOTE: Can be overridden externally. | ||
4 | # | ||
5 | |||
6 | # Compiler options here. | ||
7 | ifeq ($(USE_OPT),) | ||
8 | USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 | ||
9 | endif | ||
10 | |||
11 | # C specific options here (added to USE_OPT). | ||
12 | ifeq ($(USE_COPT),) | ||
13 | USE_COPT = | ||
14 | endif | ||
15 | |||
16 | # C++ specific options here (added to USE_OPT). | ||
17 | ifeq ($(USE_CPPOPT),) | ||
18 | USE_CPPOPT = -fno-rtti | ||
19 | endif | ||
20 | |||
21 | # Enable this if you want the linker to remove unused code and data | ||
22 | ifeq ($(USE_LINK_GC),) | ||
23 | USE_LINK_GC = yes | ||
24 | endif | ||
25 | |||
26 | # Linker extra options here. | ||
27 | ifeq ($(USE_LDOPT),) | ||
28 | USE_LDOPT = | ||
29 | endif | ||
30 | |||
31 | # Enable this if you want link time optimizations (LTO) | ||
32 | ifeq ($(USE_LTO),) | ||
33 | USE_LTO = yes | ||
34 | endif | ||
35 | |||
36 | # If enabled, this option allows to compile the application in THUMB mode. | ||
37 | ifeq ($(USE_THUMB),) | ||
38 | USE_THUMB = yes | ||
39 | endif | ||
40 | |||
41 | # Enable this if you want to see the full log while compiling. | ||
42 | ifeq ($(USE_VERBOSE_COMPILE),) | ||
43 | USE_VERBOSE_COMPILE = no | ||
44 | endif | ||
45 | |||
46 | # If enabled, this option makes the build process faster by not compiling | ||
47 | # modules not used in the current configuration. | ||
48 | ifeq ($(USE_SMART_BUILD),) | ||
49 | USE_SMART_BUILD = yes | ||
50 | endif | ||
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. | ||
62 | ifeq ($(USE_PROCESS_STACKSIZE),) | ||
63 | USE_PROCESS_STACKSIZE = 0x400 | ||
64 | endif | ||
65 | |||
66 | # Stack size to the allocated to the Cortex-M main/exceptions stack. This | ||
67 | # stack is used for processing interrupts and exceptions. | ||
68 | ifeq ($(USE_EXCEPTIONS_STACKSIZE),) | ||
69 | USE_EXCEPTIONS_STACKSIZE = 0x400 | ||
70 | endif | ||
71 | |||
72 | # Enables the use of FPU on Cortex-M4 (no, softfp, hard). | ||
73 | ifeq ($(USE_FPU),) | ||
74 | USE_FPU = no | ||
75 | endif | ||
76 | |||
77 | # | ||
78 | # Architecture or project specific options | ||
79 | ############################################################################## | ||
80 | |||
81 | ############################################################################## | ||
82 | # Project, sources and paths | ||
83 | # | ||
84 | |||
85 | # Define project name here | ||
86 | PROJECT = ch | ||
87 | |||
88 | # Imported source files and paths | ||
89 | CHIBIOS = ../../../../../ChibiOS | ||
90 | CHIBIOS_CONTRIB = $(CHIBIOS)/../ChibiOS-Contrib | ||
91 | |||
92 | # Licensing files. | ||
93 | include $(CHIBIOS)/os/license/license.mk | ||
94 | # Startup files. | ||
95 | include $(CHIBIOS_CONTRIB)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_tm4c123x.mk | ||
96 | # HAL-OSAL files (optional). | ||
97 | include $(CHIBIOS)/os/hal/hal.mk | ||
98 | include $(CHIBIOS_CONTRIB)/os/hal/ports/TIVA/TM4C123x/platform.mk | ||
99 | include $(CHIBIOS_CONTRIB)/os/hal/boards/TI_TM4C123G_LAUNCHPAD/board.mk | ||
100 | include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk | ||
101 | # RTOS files (optional). | ||
102 | include $(CHIBIOS)/os/rt/rt.mk | ||
103 | include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk | ||
104 | # Other files (optional). | ||
105 | include $(CHIBIOS)/os/hal/lib/streams/streams.mk | ||
106 | |||
107 | # Define linker script file here | ||
108 | LDSCRIPT= $(STARTUPLD)/TM4C123xH6.ld | ||
109 | |||
110 | # C sources that can be compiled in ARM or THUMB mode depending on the global | ||
111 | # setting. | ||
112 | CSRC = $(ALLCSRC) \ | ||
113 | main.c | ||
114 | |||
115 | # C++ sources that can be compiled in ARM or THUMB mode depending on the global | ||
116 | # setting. | ||
117 | CPPSRC = $(ALLCPPSRC) | ||
118 | |||
119 | # C sources to be compiled in ARM mode regardless of the global setting. | ||
120 | # NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler | ||
121 | # option that results in lower performance and larger code size. | ||
122 | ACSRC = | ||
123 | |||
124 | # C++ sources to be compiled in ARM mode regardless of the global setting. | ||
125 | # NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler | ||
126 | # option that results in lower performance and larger code size. | ||
127 | ACPPSRC = | ||
128 | |||
129 | # C sources to be compiled in THUMB mode regardless of the global setting. | ||
130 | # NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler | ||
131 | # option that results in lower performance and larger code size. | ||
132 | TCSRC = | ||
133 | |||
134 | # C sources to be compiled in THUMB mode regardless of the global setting. | ||
135 | # NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler | ||
136 | # option that results in lower performance and larger code size. | ||
137 | TCPPSRC = | ||
138 | |||
139 | # List ASM source files here | ||
140 | ASMSRC = $(ALLASMSRC) | ||
141 | ASMXSRC = $(ALLXASMSRC) | ||
142 | |||
143 | INCDIR = $(ALLINC) | ||
144 | |||
145 | # | ||
146 | # Project, sources and paths | ||
147 | ############################################################################## | ||
148 | |||
149 | ############################################################################## | ||
150 | # Compiler settings | ||
151 | # | ||
152 | |||
153 | MCU = cortex-m4 | ||
154 | |||
155 | #TRGT = arm-elf- | ||
156 | TRGT = arm-none-eabi- | ||
157 | CC = $(TRGT)gcc | ||
158 | CPPC = $(TRGT)g++ | ||
159 | # Enable loading with g++ only if you need C++ runtime support. | ||
160 | # NOTE: You can use C++ even without C++ support if you are careful. C++ | ||
161 | # runtime support makes code size explode. | ||
162 | LD = $(TRGT)gcc | ||
163 | #LD = $(TRGT)g++ | ||
164 | CP = $(TRGT)objcopy | ||
165 | AS = $(TRGT)gcc -x assembler-with-cpp | ||
166 | AR = $(TRGT)ar | ||
167 | OD = $(TRGT)objdump | ||
168 | SZ = $(TRGT)size | ||
169 | HEX = $(CP) -O ihex | ||
170 | BIN = $(CP) -O binary | ||
171 | |||
172 | # ARM-specific options here | ||
173 | AOPT = | ||
174 | |||
175 | # THUMB-specific options here | ||
176 | TOPT = -mthumb -DTHUMB | ||
177 | |||
178 | # Define C warning options here | ||
179 | CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes | ||
180 | |||
181 | # Define C++ warning options here | ||
182 | CPPWARN = -Wall -Wextra -Wundef | ||
183 | |||
184 | # | ||
185 | # Compiler settings | ||
186 | ############################################################################## | ||
187 | |||
188 | ############################################################################## | ||
189 | # Start of user section | ||
190 | # | ||
191 | |||
192 | # List all user C define here, like -D_DEBUG=1 | ||
193 | UDEFS = | ||
194 | |||
195 | # Define ASM defines here | ||
196 | UADEFS = | ||
197 | |||
198 | # List all user directories here | ||
199 | UINCDIR = | ||
200 | |||
201 | # List the user directory to look for the libraries here | ||
202 | ULIBDIR = | ||
203 | |||
204 | # List all user libraries here | ||
205 | ULIBS = | ||
206 | |||
207 | # | ||
208 | # End of user defines | ||
209 | ############################################################################## | ||
210 | |||
211 | RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk | ||
212 | include $(RULESPATH)/rules.mk | ||