From e3e21b7954580431142ccd8fd527d7113aa00241 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 29 Aug 2019 18:53:16 +1000 Subject: [PATCH] build system: Pass Python executable through to bootloader build Fixes failures if the PYTHON cache setting doesn't match the default of "python" on the PATH. --- components/bootloader/project_include.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/bootloader/project_include.cmake b/components/bootloader/project_include.cmake index 019d1df71e..fa26fd097f 100644 --- a/components/bootloader/project_include.cmake +++ b/components/bootloader/project_include.cmake @@ -96,12 +96,13 @@ endif() idf_build_get_property(idf_path IDF_PATH) idf_build_get_property(idf_target IDF_TARGET) idf_build_get_property(sdkconfig SDKCONFIG) +idf_build_get_property(python PYTHON) externalproject_add(bootloader SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/subproject" BINARY_DIR "${BOOTLOADER_BUILD_DIR}" CMAKE_ARGS -DSDKCONFIG=${sdkconfig} -DIDF_PATH=${idf_path} -DIDF_TARGET=${idf_target} - -DPYTHON_DEPS_CHECKED=1 + -DPYTHON_DEPS_CHECKED=1 -DPYTHON=${python} -DEXTRA_COMPONENT_DIRS=${CMAKE_CURRENT_LIST_DIR} ${sign_key_arg} ${ver_key_arg} # LEGACY_INCLUDE_COMMON_HEADERS has to be passed in via cache variable since -- 2.40.0