mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-03 09:11:56 +00:00
This abstracts the interface for generation of the strip command line, by naming the desired actions instead of directly setting the command parameters, which then opens up for other binary tool sets which may require different arguments to achieve the desired result. The intent here is to abstract Zephyr's dependence on toolchains, thus allowing for easier porting to other, perhaps commercial, toolchains and/or usecases. No functional change expected. Signed-off-by: Danny Oerndrup <daor@demant.com>
19 lines
665 B
CMake
19 lines
665 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_RANLILB ranlib )
|
|
find_program(CMAKE_READELF readelf)
|
|
|
|
find_program(CMAKE_GDB gdb )
|
|
|
|
# Use the gnu binutil abstraction macros
|
|
include(${ZEPHYR_BASE}/cmake/bintools/gnu/target_memusage.cmake)
|
|
include(${ZEPHYR_BASE}/cmake/bintools/gnu/target_objcopy.cmake)
|
|
include(${ZEPHYR_BASE}/cmake/bintools/gnu/target_objdump.cmake)
|
|
include(${ZEPHYR_BASE}/cmake/bintools/gnu/target_readelf.cmake)
|
|
include(${ZEPHYR_BASE}/cmake/bintools/gnu/target_strip.cmake)
|