2021-05-20 04:36:55 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
# Configures binary tools as mwdt binutils
|
|
|
|
|
2022-04-26 20:58:24 +08:00
|
|
|
find_program(CMAKE_FROMELF fromelf PATHS ${TOOLCHAIN_HOME}/bin NO_DEFAULT_PATH)
|
|
|
|
find_program(CMAKE_AS armasm PATHS ${TOOLCHAIN_HOME}/bin NO_DEFAULT_PATH)
|
|
|
|
find_program(CMAKE_AR armar PATHS ${TOOLCHAIN_HOME}/bin NO_DEFAULT_PATH)
|
2021-05-20 04:36:55 +08:00
|
|
|
|
|
|
|
SET(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> -rq <TARGET> <LINK_FLAGS> <OBJECTS>")
|
|
|
|
SET(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> -rq <TARGET> <LINK_FLAGS> <OBJECTS>")
|
|
|
|
SET(CMAKE_CXX_ARCHIVE_FINISH "<CMAKE_AR> -sq <TARGET>")
|
|
|
|
SET(CMAKE_C_ARCHIVE_FINISH "<CMAKE_AR> -sq <TARGET>")
|
|
|
|
|
2022-04-26 20:58:24 +08:00
|
|
|
find_program(CMAKE_GDB ${CROSS_COMPILE}mdb PATHS ${TOOLCHAIN_HOME} NO_DEFAULT_PATH)
|
2021-05-20 04:36:55 +08:00
|
|
|
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/target_bintools.cmake)
|