@@ -124,14 +124,8 @@ HAL_DRIVER_SRC = \
124124HARDWARE_SRC = \
125125 ${wildcard $(TOP_DIR ) /targets/STM32F429IGTx_FIRE/Hardware/Src/*.c}
126126 C_SOURCES += $(HARDWARE_SRC )
127-
128- ifeq ($(USE_BOOTLOADER ) , no)
129- HAL_DRIVER_SRC_NO_BOOTLOADER = \
130- $(TOP_DIR ) /drivers/third_party/ST/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c \
131- $(TOP_DIR ) /drivers/third_party/ST/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c \
132- $(TOP_DIR ) /drivers/third_party/ST/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_eth.c \
133- $(TOP_DIR ) /drivers/third_party/ST/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rng.c
134- C_SOURCES += $(HAL_DRIVER_SRC_NO_BOOTLOADER )
127+
128+
135129KERNEL_SRC = \
136130 ${wildcard $(TOP_DIR ) /kernel/*.c} \
137131 ${wildcard $(TOP_DIR ) /kernel/base/core/*.c} \
@@ -155,6 +149,15 @@ ARCH_SRC = \
155149 ${wildcard $(TOP_DIR ) /arch/arm/arm-m/armv7-m/*.c} \
156150 ${wildcard $(TOP_DIR ) /arch/arm/arm-m/armv7-m/gcc/*.c}
157151 C_SOURCES += $(ARCH_SRC )
152+
153+ ifeq ($(USE_BOOTLOADER ) , no)
154+ HAL_DRIVER_SRC_NO_BOOTLOADER = \
155+ $(TOP_DIR ) /drivers/third_party/ST/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c \
156+ $(TOP_DIR ) /drivers/third_party/ST/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c \
157+ $(TOP_DIR ) /drivers/third_party/ST/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_eth.c \
158+ $(TOP_DIR ) /drivers/third_party/ST/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rng.c
159+ C_SOURCES += $(HAL_DRIVER_SRC_NO_BOOTLOADER )
160+
158161
159162ifeq ($(WITH_LWIP ) , yes)
160163LWIP_SRC = \
@@ -565,7 +568,6 @@ LITEOS_CMSIS = \
565568 -I $(TOP_DIR ) /osdepends/liteos/cmsis
566569 C_INCLUDES += $(LITEOS_CMSIS )
567570
568- ifeq ($(USE_BOOTLOADER ) , no)
569571OS_CONFIG_INC = \
570572 -I $(TOP_DIR ) /targets/STM32F429IGTx_FIRE/OS_CONFIG
571573 C_INCLUDES += $(OS_CONFIG_INC )
@@ -579,7 +581,8 @@ ARCH_INC = \
579581 -I $(TOP_DIR ) /arch/arm/arm-m/include \
580582 -I $(TOP_DIR ) /arch/arm/arm-m/armv7-m
581583 C_INCLUDES += $(ARCH_INC )
582-
584+
585+ ifeq ($(USE_BOOTLOADER ) , no)
583586
584587ifeq ($(WITH_LWIP ) , yes)
585588LWIP_INC = \
0 commit comments