]> granicus.if.org Git - esp-idf/commitdiff
kconfig: pass env variable to menuconfig invocation
authorRenz Christian Bagaporo <renz@espressif.com>
Thu, 29 Nov 2018 05:22:10 +0000 (13:22 +0800)
committerRenz Christian Bagaporo <renz@espressif.com>
Thu, 29 Nov 2018 05:22:10 +0000 (13:22 +0800)
tools/cmake/kconfig.cmake

index 50f9acc4a63340fbf829b18b8cecbd1071483155..2b3dbcb8bad10ba2371483f7e0ff54ae08d06870 100644 (file)
@@ -61,12 +61,13 @@ function(kconfig_process_config)
     add_custom_target(menuconfig
         ${menuconfig_depends}
         # create any missing config file, with defaults if necessary
-        COMMAND ${confgen_basecommand} --output config ${SDKCONFIG}
+        COMMAND ${confgen_basecommand} --env "IDF_TARGET=${IDF_TARGET}" --output config ${SDKCONFIG}
         COMMAND ${CMAKE_COMMAND} -E env
         "COMPONENT_KCONFIGS=${kconfigs}"
         "COMPONENT_KCONFIGS_PROJBUILD=${kconfigs_projbuild}"
         "IDF_CMAKE=y"
         "KCONFIG_CONFIG=${SDKCONFIG}"
+        "IDF_TARGET=${IDF_TARGET}"
         ${CMAKE_BINARY_DIR}/${MCONF} ${ROOT_KCONFIG}
         VERBATIM
         USES_TERMINAL)