Skip to content

Commit

Permalink
llvm: Allow llvm-readelf
Browse files Browse the repository at this point in the history
Enable multiple names for the readelf program under llvm

Signed-off-by: Yuval Peress <[email protected]>
(cherry picked from commit 3ddd36f)
  • Loading branch information
yperess authored and fabiobaltieri committed Dec 21, 2023
1 parent f91ebab commit e9f997e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/bintools/llvm/target.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit e9f997e

Please sign in to comment.