zephyr/cmake/bintools/host-gnu/target.cmake
Torsten Rasmussen 1ee86a883d cmake: lookup strip tool and set CMAKE_STRIP for host-gnu target
Fixes: #51821

Set CMAKE_STRIP using `find_program(CMAKE_STRIP strip)` to support
strip when building on native posix.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2022-11-01 11:59:19 +01:00

17 lines
465 B
CMake

# SPDX-License-Identifier: Apache-2.0
# Configures binary tools as host GNU binutils
find_program(CMAKE_OBJCOPY objcopy)
find_program(CMAKE_OBJDUMP objdump)
find_program(CMAKE_AR ar )
find_program(CMAKE_RANLIB ranlib )
find_program(CMAKE_READELF readelf)
find_program(CMAKE_NM nm)
find_program(CMAKE_STRIP strip)
find_program(CMAKE_GDB gdb )
# Include bin tool properties
include(${ZEPHYR_BASE}/cmake/bintools/gnu/target_bintools.cmake)