kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/pass_IDF_TARGET_to_bootloader_build' into 'master'
pass IDF_TARGET variable to bootloader build process See merge request idf/esp-idf!4963pull/3456/head
commit
c2aef48a57
|
@ -51,7 +51,7 @@ if((NOT CONFIG_SECURE_BOOT_ENABLED) OR
|
||||||
# TODO: support overriding the bootloader in COMPONENT_PATHS
|
# TODO: support overriding the bootloader in COMPONENT_PATHS
|
||||||
SOURCE_DIR "${IDF_PATH}/components/bootloader/subproject"
|
SOURCE_DIR "${IDF_PATH}/components/bootloader/subproject"
|
||||||
BINARY_DIR "${BOOTLOADER_BUILD_DIR}"
|
BINARY_DIR "${BOOTLOADER_BUILD_DIR}"
|
||||||
CMAKE_ARGS -DSDKCONFIG=${SDKCONFIG} -DIDF_PATH=${IDF_PATH}
|
CMAKE_ARGS -DSDKCONFIG=${SDKCONFIG} -DIDF_PATH=${IDF_PATH} -DIDF_TARGET=${IDF_TARGET}
|
||||||
-DSECURE_BOOT_SIGNING_KEY=${secure_boot_signing_key}
|
-DSECURE_BOOT_SIGNING_KEY=${secure_boot_signing_key}
|
||||||
INSTALL_COMMAND ""
|
INSTALL_COMMAND ""
|
||||||
BUILD_ALWAYS 1 # no easy way around this...
|
BUILD_ALWAYS 1 # no easy way around this...
|
||||||
|
|
|
@ -10,6 +10,11 @@ if(NOT IDF_PATH)
|
||||||
"in by the parent build process.")
|
"in by the parent build process.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT IDF_TARGET)
|
||||||
|
message(FATAL_ERROR "Bootloader subproject expects the IDF_TARGET variable to be passed "
|
||||||
|
"in by the parent build process.")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(COMPONENTS bootloader esptool_py partition_table soc bootloader_support log spi_flash micro-ecc main efuse)
|
set(COMPONENTS bootloader esptool_py partition_table soc bootloader_support log spi_flash micro-ecc main efuse)
|
||||||
set(BOOTLOADER_BUILD 1)
|
set(BOOTLOADER_BUILD 1)
|
||||||
add_definitions(-DBOOTLOADER_BUILD=1)
|
add_definitions(-DBOOTLOADER_BUILD=1)
|
||||||
|
|
Ładowanie…
Reference in New Issue