forked from am32-firmware/AM32-bootloader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathe230makefile.mk
More file actions
26 lines (20 loc) · 787 Bytes
/
e230makefile.mk
File metadata and controls
26 lines (20 loc) · 787 Bytes
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
MCU := E230
PART := GD32E230
HAL_FOLDER_$(MCU) := $(HAL_FOLDER)/$(call lc,$(MCU))
MCU_$(MCU) := -mfloat-abi=soft -mthumb -mcpu=cortex-m23
LDSCRIPT_$(MCU) := $(wildcard $(HAL_FOLDER_$(MCU))/*.ld)
SRC_BASE_DIR_$(MCU) := \
$(HAL_FOLDER_$(MCU))/Drivers/CMSIS/Source \
$(HAL_FOLDER_$(MCU))/Drivers/GD32E23x_standard_peripheral/Source \
$(HAL_FOLDER_$(MCU))/Startup
CFLAGS_$(MCU) += \
-I$(HAL_FOLDER_$(MCU))/Inc \
-I$(HAL_FOLDER_$(MCU))/Drivers/CMSIS/Include \
-I$(HAL_FOLDER_$(MCU))/Drivers/CMSIS/Core/Include \
-I$(HAL_FOLDER_$(MCU))/Drivers/GD32E23x_standard_peripheral/Include
CFLAGS_$(MCU) += \
-DGD32$(MCU) \
-D$(PART) \
-DUSE_STDPERIPH_DRIVER
SRC_$(MCU)_BL := $(foreach dir,$(SRC_BASE_DIR_$(MCU)),$(wildcard $(dir)/*.[cs])) \
$(wildcard $(HAL_FOLDER_$(MCU))/Src/*.c)