mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-24 12:46:03 +00:00
GNU/bintools abstraction completed. The following commands and flags are now available in bintools: - memusage - elfconvert - dissassembly - readelf - strip The bintools template has now been updated with more description which will be useful when adding support for more toolchains in future. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
19 lines
1.1 KiB
CMake
19 lines
1.1 KiB
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Configures binary tools as GNU binutils
|
|
|
|
find_program(CMAKE_OBJCOPY ${CROSS_COMPILE}objcopy PATHS ${TOOLCHAIN_HOME} NO_DEFAULT_PATH)
|
|
find_program(CMAKE_OBJDUMP ${CROSS_COMPILE}objdump PATHS ${TOOLCHAIN_HOME} NO_DEFAULT_PATH)
|
|
find_program(CMAKE_AS ${CROSS_COMPILE}as PATHS ${TOOLCHAIN_HOME} NO_DEFAULT_PATH)
|
|
find_program(CMAKE_AR ${CROSS_COMPILE}ar PATHS ${TOOLCHAIN_HOME} NO_DEFAULT_PATH)
|
|
find_program(CMAKE_RANLIB ${CROSS_COMPILE}ranlib PATHS ${TOOLCHAIN_HOME} NO_DEFAULT_PATH)
|
|
find_program(CMAKE_READELF ${CROSS_COMPILE}readelf PATHS ${TOOLCHAIN_HOME} NO_DEFAULT_PATH)
|
|
find_program(CMAKE_NM ${CROSS_COMPILE}nm PATHS ${TOOLCHAIN_HOME} NO_DEFAULT_PATH)
|
|
find_program(CMAKE_STRIP ${CROSS_COMPILE}strip PATHS ${TOOLCHAIN_HOME} NO_DEFAULT_PATH)
|
|
|
|
find_program(CMAKE_GDB ${CROSS_COMPILE}gdb PATHS ${TOOLCHAIN_HOME} NO_DEFAULT_PATH)
|
|
find_program(CMAKE_GDB gdb-multiarch PATHS ${TOOLCHAIN_HOME} )
|
|
|
|
# Include bin tool properties
|
|
include(${ZEPHYR_BASE}/cmake/bintools/gnu/target_bintools.cmake)
|