From f368737a26809ce77c9c51c0edc1664245b3847d Mon Sep 17 00:00:00 2001 From: Xiao Xufeng Date: Fri, 3 Mar 2023 18:42:50 +0800 Subject: [PATCH] test: fixed test_build_system test failure due to Kconfig change --- components/esptool_py/project_include.cmake | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/components/esptool_py/project_include.cmake b/components/esptool_py/project_include.cmake index e53893cc12..b965b14b87 100644 --- a/components/esptool_py/project_include.cmake +++ b/components/esptool_py/project_include.cmake @@ -49,14 +49,19 @@ if(NOT CONFIG_SECURE_BOOT_ALLOW_SHORT_APP_PARTITION AND endif() endif() +set(min_rev_str "${CONFIG_ESP_REV_MIN_FULL}") +if(min_rev_str STREQUAL "") + set(min_rev_str 0) +endif() + # We still set "--min-rev" to keep the app compatible with older booloaders where this field is controlled. if(CONFIG_IDF_TARGET_ESP32) # for this chip min_rev is major revision - math(EXPR min_rev "${CONFIG_ESP_REV_MIN_FULL} / 100") + math(EXPR min_rev "${min_rev_str} / 100") endif() if(CONFIG_IDF_TARGET_ESP32C3) # for this chip min_rev is minor revision - math(EXPR min_rev "${CONFIG_ESP_REV_MIN_FULL} % 100") + math(EXPR min_rev "${min_rev_str} % 100") endif() if(min_rev)