Skip to content

Commit

Permalink
Makefile.machine: check if objdump exists rather than readelf
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <[email protected]>
  • Loading branch information
ColinIanKing committed Oct 10, 2024
1 parent 9860a96 commit d80b4f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.machine
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#

all:
@if which readelf > /dev/null ; then \
@if which objdump > /dev/null ; then \
$(CC) test/test-machine.c -o test-machine > /dev/null 2>&1 && \
objdump -D ./test-machine | grep format | awk '{print $$4}' \
| sed 's/elf[0-9\-]*//' | sed 's/[\-]*linux//' || echo "unknown"; \
Expand Down

0 comments on commit d80b4f8

Please sign in to comment.