-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
62 lines (46 loc) · 1.49 KB
/
Makefile
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
##### Project #####
PROJECT ?= app
# `$(shell pwd)` or `.`, both works
TOP = .
# The path for generated files
BUILD_DIR = Build
##### Options #####
# Programmer, jlink or pyocd
FLASH_PROGRM ?= jlink
##### Toolchains #######
# path to gcc arm
#ARM_TOOCHAIN ?= /opt/gcc-arm/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi/bin
#ARM_TOOCHAIN ?= /opt/gcc-arm/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi/bin
#ARM_TOOCHAIN ?= /opt/gcc-arm/arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi/bin
ARM_TOOCHAIN ?= /opt/gcc-arm/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin
# path to JLinkExe
JLINKEXE ?= /opt/SEGGER/JLink/JLinkExe
# JLink devices: HC32L110x4 or HC32L110x6
JLINK_DEVICE ?= HC32L110x4
# path to PyOCD
PYOCD_EXE ?= pyocd
# PyOCD device type: hc32l110 hc32l110b4pa hc32l110c4pa hc32l110c4ua hc32l110b6pa hc32l110c6pa hc32l110c6ua
PYOCD_DEVICE ?= hc32l110c4ua
##### Paths ############
# Link descript file, hc32l110x4.ld or hc32l110x6.ld
LDSCRIPT = Libraries/LDScripts/hc32l110x4.ld
# Library build flags
LIB_FLAGS =
# C source folders
CDIRS := User \
Libraries/CMSIS/HC32L110/source \
Libraries/HC32L110_Driver/src \
Libraries/BSP
# C source files (if there are any single ones)
CFILES :=
# ASM source folders
ADIRS := User
# ASM single files
AFILES := Libraries/CMSIS/HC32L110/source/startup_hc32l110.s
# Include paths
INCLUDES := User \
Libraries/CMSIS/CM0/Core \
Libraries/CMSIS/HC32L110/include \
Libraries/HC32L110_Driver/inc \
Libraries/BSP
include ./rules.mk