mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
bootloader: Fix error in Make build system when signature options is on
This commit is contained in:
parent
6e06d323b1
commit
02170d815e
@ -17,6 +17,8 @@ CONFIG_SECURE_BOOT_SIGNING_KEY ?=
|
|||||||
SECURE_BOOT_SIGNING_KEY=$(abspath $(call dequote,$(CONFIG_SECURE_BOOT_SIGNING_KEY)))
|
SECURE_BOOT_SIGNING_KEY=$(abspath $(call dequote,$(CONFIG_SECURE_BOOT_SIGNING_KEY)))
|
||||||
export SECURE_BOOT_SIGNING_KEY # used by bootloader_support component
|
export SECURE_BOOT_SIGNING_KEY # used by bootloader_support component
|
||||||
|
|
||||||
|
BOOTLOADER_SIGNED_BIN ?=
|
||||||
|
|
||||||
# Has a matching value in bootloader_support esp_flash_partitions.h
|
# Has a matching value in bootloader_support esp_flash_partitions.h
|
||||||
BOOTLOADER_OFFSET := 0x1000
|
BOOTLOADER_OFFSET := 0x1000
|
||||||
|
|
||||||
|
@ -7,7 +7,9 @@ else
|
|||||||
COMPONENT_PRIV_INCLUDEDIRS := include_bootloader
|
COMPONENT_PRIV_INCLUDEDIRS := include_bootloader
|
||||||
endif
|
endif
|
||||||
|
|
||||||
COMPONENT_SRCDIRS := src
|
COMPONENT_SRCDIRS := src \
|
||||||
|
src/secure_boot_v2 \
|
||||||
|
src/secure_boot_v1
|
||||||
|
|
||||||
ifndef IS_BOOTLOADER_BUILD
|
ifndef IS_BOOTLOADER_BUILD
|
||||||
COMPONENT_SRCDIRS += src/idf # idf sub-directory contains platform agnostic IDF versions
|
COMPONENT_SRCDIRS += src/idf # idf sub-directory contains platform agnostic IDF versions
|
||||||
@ -33,15 +35,27 @@ COMPONENT_OBJEXCLUDE += src/bootloader_flash_config_esp32s2.o \
|
|||||||
src/bootloader_random_esp32s3.o \
|
src/bootloader_random_esp32s3.o \
|
||||||
src/bootloader_random_esp32c3.o
|
src/bootloader_random_esp32c3.o
|
||||||
|
|
||||||
ifndef CONFIG_SECURE_SIGNED_APPS_ECDSA_SCHEME
|
ifdef IS_BOOTLOADER_BUILD
|
||||||
COMPONENT_OBJEXCLUDE += src/secure_boot_v1/secure_boot_signatures_bootloader.o \
|
ifndef CONFIG_SECURE_SIGNED_APPS_ECDSA_SCHEME
|
||||||
src/secure_boot_v1/secure_boot_signatures_app.o
|
COMPONENT_OBJEXCLUDE += src/secure_boot_v1/secure_boot_signatures_bootloader.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME
|
ifndef CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME
|
||||||
COMPONENT_OBJEXCLUDE += src/secure_boot_v2/secure_boot_signatures_bootloader.o \
|
COMPONENT_OBJEXCLUDE += src/secure_boot_v2/secure_boot_signatures_bootloader.o
|
||||||
src/secure_boot_v2/secure_boot_signatures_app.o
|
endif
|
||||||
endif
|
COMPONENT_OBJEXCLUDE += src/secure_boot_v1/secure_boot_signatures_app.o \
|
||||||
|
src/secure_boot_v2/secure_boot_signatures_app.o
|
||||||
|
else
|
||||||
|
ifndef CONFIG_SECURE_SIGNED_APPS_ECDSA_SCHEME
|
||||||
|
COMPONENT_OBJEXCLUDE += src/secure_boot_v1/secure_boot_signatures_app.o
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME
|
||||||
|
COMPONENT_OBJEXCLUDE += src/secure_boot_v2/secure_boot_signatures_app.o
|
||||||
|
endif
|
||||||
|
COMPONENT_OBJEXCLUDE += src/secure_boot_v1/secure_boot_signatures_bootloader.o \
|
||||||
|
src/secure_boot_v2/secure_boot_signatures_bootloader.o
|
||||||
|
endif # IS_BOOTLOADER_BUILD
|
||||||
|
|
||||||
ifndef CONFIG_SECURE_BOOT
|
ifndef CONFIG_SECURE_BOOT
|
||||||
COMPONENT_OBJEXCLUDE += src/$(IDF_TARGET)/secure_boot.o
|
COMPONENT_OBJEXCLUDE += src/$(IDF_TARGET)/secure_boot.o
|
||||||
|
Loading…
x
Reference in New Issue
Block a user