From a37ad2413742818aeddccabb84a548c2d919b45f Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 5 Jun 2019 14:34:58 +1000 Subject: [PATCH] cmake: Always pass IDF_TARGET into mconf, avoid error about uninitialized environment variable --- tools/cmake/kconfig.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/cmake/kconfig.cmake b/tools/cmake/kconfig.cmake index 020e595509..d06618e7f8 100644 --- a/tools/cmake/kconfig.cmake +++ b/tools/cmake/kconfig.cmake @@ -200,6 +200,7 @@ function(__kconfig_generate_config sdkconfig sdkconfig_defaults) "COMPONENT_KCONFIGS=${kconfigs}" "COMPONENT_KCONFIGS_PROJBUILD=${kconfig_projbuilds}" "IDF_CMAKE=y" + "IDF_TARGET=${IDF_TARGET}" "KCONFIG_CONFIG=${sdkconfig}" ${mconf} ${root_kconfig} # VERBATIM cannot be used here because it cannot handle ${mconf}="winpty mconf-idf" and the escaping must be