1# SPDX-License-Identifier: Apache-2.0 2 3function(${SYSBUILD_CURRENT_MODULE_NAME}_post_cmake) 4 ExternalProject_Get_Property(${DEFAULT_IMAGE} BINARY_DIR) 5 import_kconfig(CONFIG_ ${BINARY_DIR}/zephyr/.config) 6 7 if("${SB_CONFIG_TEST_FOO_VAL}" STREQUAL "${CONFIG_TEST_FOO_VAL}") 8 message(FATAL_ERROR "Values match (sysbuild and app): ${SB_CONFIG_TEST_FOO_VAL} and ${CONFIG_TEST_FOO_VAL}") 9 else() 10 message(NOTICE "Values diverge (sysbuild and app)") 11 endif() 12 13 if("${SB_CONFIG_EXPECTED_SB_TEST_FOO_VAL}" STREQUAL "${SB_CONFIG_TEST_FOO_VAL}") 14 message(NOTICE "Values match (sysbuild and snippet): ${SB_CONFIG_EXPECTED_SB_TEST_FOO_VAL} and ${SB_CONFIG_TEST_FOO_VAL}") 15 else() 16 message(FATAL_ERROR "Values diverge (sysbuild and snippet): ${SB_CONFIG_EXPECTED_SB_TEST_FOO_VAL} and ${SB_CONFIG_TEST_FOO_VAL}") 17 endif() 18 19 if("${SB_CONFIG_EXPECTED_APP_TEST_FOO_VAL}" STREQUAL "${CONFIG_TEST_FOO_VAL}") 20 message(NOTICE "Values match (app and snippet): ${SB_CONFIG_EXPECTED_APP_TEST_FOO_VAL} and ${CONFIG_TEST_FOO_VAL}") 21 else() 22 message(FATAL_ERROR "Values diverge (app and snippet): ${SB_CONFIG_EXPECTED_APP_TEST_FOO_VAL} and ${CONFIG_TEST_FOO_VAL}") 23 endif() 24endfunction() 25