# The board has no reset line and no programming header, so the loader-entry
# route in the emitted image is the only thing standing between a firmware change
# and an unreflashable board. It has been wrong before — see the script.
find_package(Python3 COMPONENTS Interpreter)
if(Python3_FOUND)
	add_test(NAME fantemp.reachability
	         COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check_reachability.py
	                 --objdump ${CMAKE_OBJDUMP} --elf $<TARGET_FILE:fantemp>
	                 --image $<TARGET_FILE_DIR:fantemp>/fantemp.bin)
else()
	message(STATUS "Python not found — the reachability check is skipped")
endif()
