component.mk 763 B

123456789101112131415161718192021222324252627
  1. COMPONENT_ADD_INCLUDEDIRS := include
  2. COMPONENT_PRIV_INCLUDEDIRS := include_priv
  3. ifdef IS_BOOTLOADER_BUILD
  4. # share "private" headers with the bootloader component
  5. # eventual goal: all functionality that needs this lives in bootloader_support
  6. COMPONENT_ADD_INCLUDEDIRS += include_priv
  7. endif
  8. COMPONENT_SRCDIRS := src
  9. #
  10. # Secure boot signing key support
  11. #
  12. ifdef CONFIG_SECURE_BOOT_ENABLED
  13. # this path is created relative to the component build directory
  14. SECURE_BOOT_VERIFICATION_KEY := $(abspath signature_verification_key.bin)
  15. $(SECURE_BOOT_VERIFICATION_KEY): $(SECURE_BOOT_SIGNING_KEY)
  16. $(ESPSECUREPY) extract_public_key --keyfile $< $@
  17. COMPONENT_EXTRA_CLEAN += $(SECURE_BOOT_VERIFICATION_KEY)
  18. COMPONENT_EMBED_FILES := $(SECURE_BOOT_VERIFICATION_KEY)
  19. endif