diff --git a/cmake/toolchain/zephyr/target.cmake b/cmake/toolchain/zephyr/target.cmake index b5b01c63f9e..86b0ce2ecdc 100644 --- a/cmake/toolchain/zephyr/target.cmake +++ b/cmake/toolchain/zephyr/target.cmake @@ -4,6 +4,9 @@ if(${SDK_VERSION} VERSION_LESS_EQUAL 0.11.2) # For backward compatibility with 0.11.1 and 0.11.2 # we need to source files from Zephyr repo include(${CMAKE_CURRENT_LIST_DIR}/${SDK_MAJOR_MINOR}/target.cmake) +elseif("${ARCH}" STREQUAL "sparc") + # SDK 0.11.3, 0.11.4 and 0.12.0-beta-1 does not have SPARC target support. + include(${CMAKE_CURRENT_LIST_DIR}/${SDK_MAJOR_MINOR}/target.cmake) else() include(${ZEPHYR_SDK_INSTALL_DIR}/cmake/zephyr/target.cmake)