Makefile 962 B

12345678910111213141516171819202122232425262728
  1. #
  2. # This is a project Makefile. It is assumed the directory this Makefile resides in is a
  3. # project subdirectory.
  4. #
  5. ifeq ("$(MAKELEVEL)","0")
  6. $(error Bootloader makefile expects to be run as part of 'make bootloader' from a top-level project.)
  7. endif
  8. PROJECT_NAME := bootloader
  9. COMPONENTS := esptool_py bootloader_support log spi_flash micro-ecc soc main
  10. #We cannot include the esp32 component directly but we need its includes.
  11. CFLAGS += -I $(IDF_PATH)/components/esp32/include
  12. # The bootloader pseudo-component is also included in this build, for its Kconfig.projbuild to be included.
  13. #
  14. # IS_BOOTLOADER_BUILD tells the component Makefile.projbuild to be a no-op
  15. IS_BOOTLOADER_BUILD := 1
  16. export IS_BOOTLOADER_BUILD
  17. # BOOTLOADER_BUILD macro is the same, for source file changes
  18. CFLAGS += -D BOOTLOADER_BUILD=1
  19. # include the top-level "project" include directory, for sdkconfig.h
  20. CFLAGS += -I$(BUILD_DIR_BASE)/../include
  21. include $(IDF_PATH)/make/project.mk