more port-specific files for BL

This commit is contained in:
andreika-git 2023-12-29 19:09:55 +02:00 committed by rusefillc
parent a572407e03
commit 3118bbe0d0
4 changed files with 20 additions and 6 deletions

View File

@ -113,7 +113,7 @@ endif
#
# Define project name here
PROJECT = fome_bl
PROJECT = openblt_$(PROJECT_BOARD)
PROJECT_DIR = ..
# Configure precompiled header
@ -170,7 +170,7 @@ include $(PROJECT_DIR)/hw_layer/$(CPU_HWLAYER)/hw_ports.mk
include $(PROJECT_DIR)/hw_layer/drivers/drivers.mk
OPENBLT_TRGT_DIR = $(PROJECT_DIR)/ext/openblt/Target
-include $(PROJECT_DIR)/hw_layer/$(CPU_HWLAYER)/openblt/port.mk
include $(PROJECT_DIR)/hw_layer/$(CPU_HWLAYER)/openblt/port.mk
# C sources that can be compiled in ARM or THUMB mode depending on the global
@ -189,6 +189,7 @@ CSRC = $(ALLCSRC) \
$(PROJECT_DIR)/ext/openblt/Target/Source/xcp.c \
$(PROJECT_DIR)/bootloader/openblt_chibios/nvm.c \
$(PROJECT_DIR)/hw_layer/openblt/hooks.c \
$(OPENBLT_PORT_FILES) \
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
# todo: reduce code duplication with primary Makefile!!!

View File

@ -5,8 +5,8 @@
# exclude flash-layout.c as this one is directly included in a source file, when used.
#PROJ_FILES += $(filter-out $(OPENBLT_PORT_DIR)/flash_layout.c, $(call rwildcard, $(OPENBLT_PORT_DIR), *.c *.h *.s))
# reuse ST32F4xx HAL and CMSIS from one of OpenBLT examples to avoid having copy in rusEFI git
PROJ_FILES += $(filter-out uip, $(call rwildcard, $(OPENBLT_TRGT_DIR)/Source/ARMCM4_STM32F4/, *.c *.h *.s))
PROJ_FILES += $(filter-out uip, $(call rwildcard, $(OPENBLT_TRGT_DIR)/Source/ARMCM4_STM32F4/GCC/, *.c *.h *.s))
OPENBLT_PORT_FILES += $(filter-out uip, $(call rwildcard, $(OPENBLT_TRGT_DIR)/Source/ARMCM4_STM32F4/, *.c *.h *.s))
OPENBLT_PORT_FILES += $(filter-out uip, $(call rwildcard, $(OPENBLT_TRGT_DIR)/Source/ARMCM4_STM32F4/GCC/, *.c *.h *.s))
#|--------------------------------------------------------------------------------------|
#| Options for toolchain binaries |

View File

@ -5,8 +5,8 @@
# exclude flash-layout.c as this one is directly included in a source file, when used.
#PROJ_FILES += $(filter-out $(OPENBLT_PORT_DIR)/flash_layout.c, $(call rwildcard, $(OPENBLT_PORT_DIR), *.c *.h *.s))
# reuse ST32F7xx HAL and CMSIS from one of OpenBLT examples to avoid having copy in rusEFI git
PROJ_FILES += $(filter-out uip, $(call rwildcard, $(OPENBLT_TRGT_DIR)/Source/ARMCM4_STM32F7/, *.c *.h *.s))
PROJ_FILES += $(filter-out uip, $(call rwildcard, $(OPENBLT_TRGT_DIR)/Source/ARMCM4_STM32F7/GCC/, *.c *.h *.s))
OPENBLT_PORT_FILES += $(filter-out uip, $(call rwildcard, $(OPENBLT_TRGT_DIR)/Source/ARMCM4_STM32F7/, *.c *.h *.s))
OPENBLT_PORT_FILES += $(filter-out uip, $(call rwildcard, $(OPENBLT_TRGT_DIR)/Source/ARMCM4_STM32F7/GCC/, *.c *.h *.s))
# stm32f767xx.h
#PROJ_FILES += $(wildcard $(OPENBLT_TRGT_DIR)/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_GCC/Boot/lib/CMSIS/Device/ST/STM32F7xx/Include/*.h)
#|--------------------------------------------------------------------------------------|

View File

@ -0,0 +1,13 @@
#|--------------------------------------------------------------------------------------|
#| Collect port files |
#|--------------------------------------------------------------------------------------|
# Collect all application files in the current directory and its subdirectories, but
# exclude flash-layout.c as this one is directly included in a source file, when used.
#PROJ_FILES += $(filter-out $(OPENBLT_PORT_DIR)/flash_layout.c, $(call rwildcard, $(OPENBLT_PORT_DIR), *.c *.h *.s))
# reuse ST32F7xx HAL and CMSIS from one of OpenBLT examples to avoid having copy in rusEFI git
OPENBLT_PORT_FILES += $(filter-out uip, $(call rwildcard, $(OPENBLT_TRGT_DIR)/Source/ARMCM4_STM32H7/, *.c *.h *.s))
OPENBLT_PORT_FILES += $(filter-out uip, $(call rwildcard, $(OPENBLT_TRGT_DIR)/Source/ARMCM4_STM32H7/GCC/, *.c *.h *.s))
#|--------------------------------------------------------------------------------------|
#| Specific options for toolchain binaries |
#|--------------------------------------------------------------------------------------|
#PORTFLAGS = -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER