llvm: Allow llvm-readelf

Enable multiple names for the readelf program under llvm

Signed-off-by: Yuval Peress <peress@google.com>
This commit is contained in:
Yuval Peress 2023-12-01 15:52:46 -07:00 committed by Fabio Baltieri
parent 35761f724d
commit 3ddd36ff77

View file

@ -26,7 +26,11 @@ find_program(CMAKE_OBJCOPY NAMES
llvm-objcopy-${CLANGVER}
objcopy
${find_program_binutils_args})
find_program(CMAKE_READELF readelf ${find_program_binutils_args})
find_program(CMAKE_READELF NAMES
llvm-readelf
llvm-readelf-${CLANGVER}
readelf
${find_program_binutils_args})
# Use the gnu binutil abstraction
include(${ZEPHYR_BASE}/cmake/bintools/llvm/target_bintools.cmake)