kconfig: specify full path of built mconf

This commit is contained in:
Renz Christian Bagaporo 2018-11-29 12:43:25 +08:00
parent 759185b16c
commit f6375952bb

View 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)