Files
mkrtos-real/kconfig.cmake

31 lines
861 B
CMake
Raw Normal View History

message(
2024-01-18 00:48:16 +08:00
python3 "\n"
${CMAKE_SOURCE_DIR}/mkrtos_tool/kconfig/kconfig.py "\n"
${CMAKE_SOURCE_DIR}/Kconfig "\n"
${CMAKE_SOURCE_DIR}/build/auto.conf "\n"
${CMAKE_SOURCE_DIR}/build/autoconf.h "\n"
${CMAKE_SOURCE_DIR}/build/log.txt "\n"
2023-11-22 22:14:25 +08:00
${CMAKE_SOURCE_DIR}/.config "\n"
)
2023-11-20 16:17:58 +08:00
execute_process(
COMMAND
2024-01-18 00:48:16 +08:00
python3
${CMAKE_SOURCE_DIR}/mkrtos_tool/kconfig/kconfig.py
${CMAKE_SOURCE_DIR}/Kconfig
${CMAKE_SOURCE_DIR}/build/auto.conf
${CMAKE_SOURCE_DIR}/build/autoconf.h
${CMAKE_SOURCE_DIR}/build/log.txt
2023-11-22 22:14:25 +08:00
${CMAKE_SOURCE_DIR}/.config
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
# The working directory is set to the app dir such that the user
# can use relative paths in CONF_FILE, e.g. CONF_FILE=nrf5.conf
RESULT_VARIABLE ret
)
if(NOT "${ret}" STREQUAL "0")
message(FATAL_ERROR "command failed with return code: ${ret}")
endif()