]> granicus.if.org Git - esp-idf/commitdiff
kconfig: specify full path of built mconf
authorRenz Christian Bagaporo <renz@espressif.com>
Thu, 29 Nov 2018 04:43:25 +0000 (12:43 +0800)
committerRenz Christian Bagaporo <renz@espressif.com>
Thu, 29 Nov 2018 05:16:13 +0000 (13:16 +0800)
tools/cmake/kconfig.cmake

index cb2a5c3cacd85ffd4ddd74106cb42dceedcc5d8e..50f9acc4a63340fbf829b18b8cecbd1071483155 100644 (file)
@@ -67,7 +67,7 @@ function(kconfig_process_config)
         "COMPONENT_KCONFIGS_PROJBUILD=${kconfigs_projbuild}"
         "IDF_CMAKE=y"
         "KCONFIG_CONFIG=${SDKCONFIG}"
-        ${MCONF} ${ROOT_KCONFIG}
+        ${CMAKE_BINARY_DIR}/${MCONF} ${ROOT_KCONFIG}
         VERBATIM
         USES_TERMINAL)
 
@@ -157,6 +157,7 @@ if(NOT MCONF)
         BUILD_BYPRODUCTS ${MCONF}
         INSTALL_COMMAND ""
         EXCLUDE_FROM_ALL 1
+        WORKING_DIRECTORY ${CMAKE_BINARY_DIR} # Put built files on top level build directory
         )
 
     file(GLOB mconf_srcfiles ${IDF_PATH}/tools/kconfig/*.c)