-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathToolConfig.mk
67 lines (59 loc) · 1.52 KB
/
ToolConfig.mk
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# ARM GCC Compiler configuration for make
# Created by Nhi Pham @ 2018
#
# The command for calling the compiler.
CC = arm-none-eabi-gcc
LD = arm-none-eabi-ld
AR = arm-none-eabi-ar
AS = arm-none-eabi-as
OBJSIZE = arm-none-eabi-size
OBJDUMP = arm-none-eabi-objdump
OBJCOPY = arm-none-eabi-objcopy
# Determine the compiler CPU/FPU options based on the processor variant.
CPU = -mcpu=cortex-m4
ARCH =
FPU = -mfpu=fpv4-sp-d16 -mfloat-abi=softfp
#
# The flags passed to the assembler.
#
AFLAGS = -mthumb \
${CPU} \
${FPU} \
-MD
#
# The flags passed to the compiler.
#
CFLAGS = -mthumb \
${CPU} \
${FPU} \
-Os \
-ffunction-sections \
-fdata-sections \
-MD \
-std=c99 \
-Wall \
-pedantic \
-c \
-Dgcc
#
# Tell the compiler to include debugging information if the DEBUG environment
# variable is set.
#
CFLAGS += -O0 -g
#
# User definition
#
CFLAGS += -DPART_TM4C123GH6PM \
-DTARGET_IS_BLIZZARD_RA1 \
#
# The flags passed to the linker.
#
LDFLAGS=--gc-sections
#
# Add the include file paths to AFLAGS and CFLAGS.
#
AFLAGS+=${patsubst %,-I%,${subst :, ,${IPATH}}}
CFLAGS+=${patsubst %,-I%,${subst :, ,${IPATH}}}
export CC LD AR AS OBJCOPY
export CFLAGS AFLAGS LDFLAGS