| 1234567891011121314151617181920212223242526272829303132333435 | ## This is a project Makefile. It is assumed the directory this Makefile resides in is a# project subdirectory.#ifeq ("$(MAKELEVEL)","0")$(error Bootloader makefile expects to be run as part of 'make bootloader' from a top-level project.)endifPROJECT_NAME := bootloaderCOMPONENTS := esptool_py bootloader_support log spi_flash micro-ecc soc main efuse# Clear C and CXX from top level projectCFLAGS =CXXFLAGS =#We cannot include the idf_target, esp_rom, esp_common component directly but we need their includes.CFLAGS += -I $(IDF_PATH)/components/$(IDF_TARGET)/includeCFLAGS += -I $(IDF_PATH)/components/esp_rom/includeCFLAGS += -I $(IDF_PATH)/components/esp_common/includeCFLAGS += -I $(IDF_PATH)/components/xtensa/include -I $(IDF_PATH)/components/xtensa/$(IDF_TARGET)/include# The bootloader pseudo-component is also included in this build, for its Kconfig.projbuild to be included.## IS_BOOTLOADER_BUILD tells the component Makefile.projbuild to be a no-opIS_BOOTLOADER_BUILD := 1export IS_BOOTLOADER_BUILD# BOOTLOADER_BUILD macro is the same, for source file changesCFLAGS += -D BOOTLOADER_BUILD=1# include the top-level "project" include directory, for sdkconfig.hCFLAGS += -I$(BUILD_DIR_BASE)/../includeinclude $(IDF_PATH)/make/project.mk
 |