1# SPDX-License-Identifier: Apache-2.0 2 3# Configures binary tools as mwdt binutils 4 5find_program(CMAKE_FROMELF fromelf PATHS ${TOOLCHAIN_HOME}/bin NO_DEFAULT_PATH) 6find_program(CMAKE_AS armasm PATHS ${TOOLCHAIN_HOME}/bin NO_DEFAULT_PATH) 7find_program(CMAKE_AR armar PATHS ${TOOLCHAIN_HOME}/bin NO_DEFAULT_PATH) 8 9SET(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> -rq <TARGET> <LINK_FLAGS> <OBJECTS>") 10SET(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> -rq <TARGET> <LINK_FLAGS> <OBJECTS>") 11SET(CMAKE_CXX_ARCHIVE_FINISH "<CMAKE_AR> -sq <TARGET>") 12SET(CMAKE_C_ARCHIVE_FINISH "<CMAKE_AR> -sq <TARGET>") 13 14find_program(CMAKE_GDB ${CROSS_COMPILE}mdb PATHS ${TOOLCHAIN_HOME} NO_DEFAULT_PATH) 15 16include(${CMAKE_CURRENT_LIST_DIR}/target_bintools.cmake) 17