From 5369198ae3120989b2e2c0beb37d7fa8c22e98b1 Mon Sep 17 00:00:00 2001 From: simbit18 <101105604+simbit18@users.noreply.github.com> Date: Mon, 30 Sep 2024 16:12:58 +0200 Subject: [PATCH] Update menuconfig.cmake --- cmake/menuconfig.cmake | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmake/menuconfig.cmake b/cmake/menuconfig.cmake index e7f5edc12795f..ce32530faf32b 100644 --- a/cmake/menuconfig.cmake +++ b/cmake/menuconfig.cmake @@ -95,8 +95,11 @@ add_custom_target( COMMAND ${CMAKE_COMMAND} -E copy ${NUTTX_DEFCONFIG} ${CMAKE_BINARY_DIR}/.config COMMAND ${CMAKE_COMMAND} -E env ${CMAKE_BINARY_DIR}/.config olddefconfig - COMMAND ${CMAKE_COMMAND} -P env ${KCONFIG_ENV} savedefconfig --out - ${CMAKE_BINARY_DIR}/defconfig + COMMAND ${CMAKE_COMMAND} -P ${NUTTX_DIR}/cmake/savedefconfig.cmake + ${CMAKE_BINARY_DIR}/.config ${CMAKE_BINARY_DIR}/defconfig.tmp COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_BINARY_DIR}/defconfig ${NUTTX_DEFCONFIG} WORKING_DIRECTORY ${NUTTX_DIR}) + +# COMMAND ${CMAKE_COMMAND} -E env ${KCONFIG_ENV} savedefconfig --out + # ${CMAKE_BINARY_DIR}/defconfig \ No newline at end of file