mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
28 lines
763 B
Makefile
Executable File
28 lines
763 B
Makefile
Executable File
COMPONENT_ADD_INCLUDEDIRS := include
|
|
COMPONENT_PRIV_INCLUDEDIRS := include_priv
|
|
|
|
ifdef IS_BOOTLOADER_BUILD
|
|
# share "private" headers with the bootloader component
|
|
# eventual goal: all functionality that needs this lives in bootloader_support
|
|
COMPONENT_ADD_INCLUDEDIRS += include_priv
|
|
endif
|
|
|
|
COMPONENT_SRCDIRS := src
|
|
|
|
#
|
|
# Secure boot signing key support
|
|
#
|
|
ifdef CONFIG_SECURE_BOOT_ENABLED
|
|
|
|
# this path is created relative to the component build directory
|
|
SECURE_BOOT_VERIFICATION_KEY := $(abspath signature_verification_key.bin)
|
|
|
|
$(SECURE_BOOT_VERIFICATION_KEY): $(SECURE_BOOT_SIGNING_KEY)
|
|
$(ESPSECUREPY) extract_public_key --keyfile $< $@
|
|
|
|
COMPONENT_EXTRA_CLEAN += $(SECURE_BOOT_VERIFICATION_KEY)
|
|
|
|
COMPONENT_EMBED_FILES := $(SECURE_BOOT_VERIFICATION_KEY)
|
|
|
|
endif
|