@echo off
cd /D C:\NCS200\v2.0.0\nrf\samples\bluetooth\peripheral_uart.0\build\zephyr\kconfig || (set FAIL_LINE=2& goto :ABORT)
C:\NCS200\toolchains\v2.0.0\opt\bin\cmake.exe -E env ZEPHYR_BASE=C:/NCS200/v2.0.0/zephyr PYTHON_EXECUTABLE=C:/NCS200/toolchains/v2.0.0/opt/bin/python.exe srctree=C:/NCS200/v2.0.0/zephyr KERNELVERSION=0x3006300 KCONFIG_CONFIG=C:/NCS200/v2.0.0/nrf/samples/bluetooth/peripheral_uart.0/build/zephyr/.config ARCH=arm ARCH_DIR=C:/NCS200/v2.0.0/zephyr/arch BOARD_DIR=C:/NCS200/v2.0.0/zephyr/boards/arm/nrf52dk_nrf52832 BOARD_REVISION= KCONFIG_BINARY_DIR=C:/NCS200/v2.0.0/nrf/samples/bluetooth/peripheral_uart.0/build/Kconfig ZEPHYR_TOOLCHAIN_VARIANT=zephyr TOOLCHAIN_KCONFIG_DIR=C:/NCS200/toolchains/v2.0.0/opt/zephyr-sdk/cmake/zephyr TOOLCHAIN_HAS_NEWLIB=y EDT_PICKLE=C:/NCS200/v2.0.0/nrf/samples/bluetooth/peripheral_uart.0/build/zephyr/edt.pickle NCS_MEMFAULT_FIRMWARE_SDK_KCONFIG=C:/NCS200/v2.0.0/nrf/modules/memfault-firmware-sdk/Kconfig ZEPHYR_NRF_MODULE_DIR=C:/NCS200/v2.0.0/nrf ZEPHYR_MCUBOOT_MODULE_DIR=C:/NCS200/v2.0.0/bootloader/mcuboot ZEPHYR_MCUBOOT_KCONFIG=C:/NCS200/v2.0.0/nrf/modules/mcuboot/Kconfig ZEPHYR_MBEDTLS_MODULE_DIR=C:/NCS200/v2.0.0/modules/crypto/mbedtls ZEPHYR_MBEDTLS_KCONFIG=C:/NCS200/v2.0.0/zephyr/modules/mbedtls/Kconfig ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR=C:/NCS200/v2.0.0/modules/tee/tf-m/trusted-firmware-m ZEPHYR_TRUSTED_FIRMWARE_M_KCONFIG=C:/NCS200/v2.0.0/nrf/modules/trusted-firmware-m/Kconfig ZEPHYR_TFM_MCUBOOT_MODULE_DIR=C:/NCS200/v2.0.0/modules/tee/tfm-mcuboot ZEPHYR_CJSON_MODULE_DIR=C:/NCS200/v2.0.0/modules/lib/cjson ZEPHYR_CJSON_KCONFIG=C:/NCS200/v2.0.0/nrf/modules/cjson/Kconfig ZEPHYR_ZCBOR_MODULE_DIR=C:/NCS200/v2.0.0/modules/lib/zcbor ZEPHYR_ZCBOR_KCONFIG=C:/NCS200/v2.0.0/zephyr/modules/zcbor/Kconfig ZEPHYR_MEMFAULT_FIRMWARE_SDK_MODULE_DIR=C:/NCS200/v2.0.0/modules/lib/memfault-firmware-sdk ZEPHYR_CANOPENNODE_MODULE_DIR=C:/NCS200/v2.0.0/modules/lib/canopennode ZEPHYR_CANOPENNODE_KCONFIG=C:/NCS200/v2.0.0/zephyr/modules/canopennode/Kconfig ZEPHYR_CHRE_MODULE_DIR=C:/NCS200/v2.0.0/modules/lib/chre ZEPHYR_CIVETWEB_MODULE_DIR=C:/NCS200/v2.0.0/modules/lib/civetweb ZEPHYR_CMSIS_MODULE_DIR=C:/NCS200/v2.0.0/modules/hal/cmsis ZEPHYR_FATFS_MODULE_DIR=C:/NCS200/v2.0.0/modules/fs/fatfs ZEPHYR_HAL_NORDIC_MODULE_DIR=C:/NCS200/v2.0.0/modules/hal/nordic ZEPHYR_HAL_NORDIC_KCONFIG=C:/NCS200/v2.0.0/zephyr/modules/hal_nordic/Kconfig ZEPHYR_ST_MODULE_DIR=C:/NCS200/v2.0.0/modules/hal/st ZEPHYR_LIBMETAL_MODULE_DIR=C:/NCS200/v2.0.0/modules/hal/libmetal ZEPHYR_LIBLC3CODEC_MODULE_DIR=C:/NCS200/v2.0.0/modules/lib/liblc3codec ZEPHYR_LIBLC3CODEC_KCONFIG=C:/NCS200/v2.0.0/zephyr/modules/liblc3codec/Kconfig ZEPHYR_LITTLEFS_MODULE_DIR=C:/NCS200/v2.0.0/modules/fs/littlefs ZEPHYR_LITTLEFS_KCONFIG=C:/NCS200/v2.0.0/zephyr/modules/littlefs/Kconfig ZEPHYR_LORAMAC_NODE_MODULE_DIR=C:/NCS200/v2.0.0/modules/lib/loramac-node ZEPHYR_LORAMAC_NODE_KCONFIG=C:/NCS200/v2.0.0/zephyr/modules/loramac-node/Kconfig ZEPHYR_LVGL_MODULE_DIR=C:/NCS200/v2.0.0/modules/lib/gui/lvgl ZEPHYR_LZ4_MODULE_DIR=C:/NCS200/v2.0.0/modules/lib/lz4 ZEPHYR_LZ4_KCONFIG=C:/NCS200/v2.0.0/zephyr/modules/lz4/Kconfig ZEPHYR_MIPI_SYS_T_MODULE_DIR=C:/NCS200/v2.0.0/modules/debug/mipi-sys-t ZEPHYR_NANOPB_MODULE_DIR=C:/NCS200/v2.0.0/modules/lib/nanopb ZEPHYR_NANOPB_KCONFIG=C:/NCS200/v2.0.0/zephyr/modules/nanopb/Kconfig ZEPHYR_NRF_HW_MODELS_MODULE_DIR=C:/NCS200/v2.0.0/modules/bsim_hw_models/nrf_hw_models ZEPHYR_OPEN_AMP_MODULE_DIR=C:/NCS200/v2.0.0/modules/lib/open-amp ZEPHYR_OPENTHREAD_MODULE_DIR=C:/NCS200/v2.0.0/modules/lib/openthread ZEPHYR_SEGGER_MODULE_DIR=C:/NCS200/v2.0.0/modules/debug/segger ZEPHYR_TINYCBOR_MODULE_DIR=C:/NCS200/v2.0.0/modules/lib/tinycbor ZEPHYR_TINYCRYPT_MODULE_DIR=C:/NCS200/v2.0.0/modules/crypto/tinycrypt ZEPHYR_TRACERECORDER_MODULE_DIR=C:/NCS200/v2.0.0/modules/debug/TraceRecorder ZEPHYR_TRACERECORDER_KCONFIG=C:/NCS200/v2.0.0/zephyr/modules/TraceRecorder/Kconfig ZEPHYR_TF_M_TESTS_MODULE_DIR=C:/NCS200/v2.0.0/modules/tee/tf-m/tf-m-tests ZEPHYR_PSA_ARCH_TESTS_MODULE_DIR=C:/NCS200/v2.0.0/modules/tee/tf-m/psa-arch-tests ZEPHYR_ZSCILIB_MODULE_DIR=C:/NCS200/v2.0.0/modules/lib/zscilib ZEPHYR_NRFXLIB_MODULE_DIR=C:/NCS200/v2.0.0/nrfxlib ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR=C:/NCS200/v2.0.0/modules/lib/matter SHIELD_AS_LIST= DTS_POST_CPP=C:/NCS200/v2.0.0/nrf/samples/bluetooth/peripheral_uart.0/build/zephyr/zephyr.dts.pre DTS_ROOT_BINDINGS=C:/NCS200/v2.0.0/nrf/dts/bindings?C:/NCS200/v2.0.0/zephyr/dts/bindings C:/NCS200/toolchains/v2.0.0/opt/bin/python.exe C:/NCS200/v2.0.0/zephyr/scripts/kconfig/menuconfig.py C:/NCS200/v2.0.0/nrf/samples/bluetooth/peripheral_uart.0/Kconfig || (set FAIL_LINE=3& goto :ABORT)
goto :EOF

:ABORT
set ERROR_CODE=%ERRORLEVEL%
echo Batch file failed at line %FAIL_LINE% with errorcode %ERRORLEVEL%
exit /b %ERROR_CODE%