tools: Add new make targets for handling bootloader-related operations

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2021-09-14 10:41:59 -03:00 committed by Xiang Xiao
parent 5a2510d48d
commit 8816f21ba2
2 changed files with 40 additions and 0 deletions

View File

@ -459,6 +459,26 @@ endif
download: $(BIN)
$(call DOWNLOAD, $<)
# bootloader
#
# Some architectures require the provisioning of a bootloader or other
# functions required for properly executing the NuttX binary.
# Make.defs files for those architectures should define a bootloader target
# with the correct operations for that platform. It will generate an error
# if the bootloader target is not defined.
bootloader:
$(Q) $(MAKE) -C $(ARCH_SRC) bootloader
# clean_bootloader
#
# Removes all of the files and directories created by the bootloader target.
# It will generate an error if the clean_bootloader target is not defined on
# the architecture-specific Makefile.
clean_bootloader:
$(Q) $(MAKE) -C $(ARCH_SRC) clean_bootloader
# pass1dep: Create pass1 build dependencies
# pass2dep: Create pass2 build dependencies

View File

@ -418,6 +418,26 @@ endif
download: $(BIN)
$(call DOWNLOAD, $<)
# bootloader
#
# Some architectures require the provisioning of a bootloader or other
# functions required for properly executing the NuttX binary.
# Make.defs files for those architectures should define a bootloader target
# with the correct operations for that platform. It will generate an error
# if the bootloader target is not defined.
bootloader:
$(Q) $(MAKE) -C $(ARCH_SRC) bootloader
# clean_bootloader
#
# Removes all of the files and directories created by the bootloader target.
# It will generate an error if the clean_bootloader target is not defined on
# the architecture-specific Makefile.
clean_bootloader:
$(Q) $(MAKE) -C $(ARCH_SRC) clean_bootloader
# pass1dep: Create pass1 build dependencies
# pass2dep: Create pass2 build dependencies