Skip to content
Snippets Groups Projects
Commit c1273d71 authored by Andreas Bießmann's avatar Andreas Bießmann Committed by Tom Rini
Browse files

Makefile: fix readelf usage


Some OS (like OS X) do not provide a generic readelf. We should enforce to use
the toochain provided readelf instead, to do so use $(CROSS_COMPILE)readelf.

Signed-off-by: default avatarAndreas Bießmann <andreas.devel@googlemail.com>
Acked-by: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
Tested-by: default avatarLubomir Popov <lpopov@mm-sol.com>
parent d4125ebc
No related branches found
No related tags found
No related merge requests found
......@@ -747,7 +747,7 @@ endif # config.mk
# ARM relocations should all be R_ARM_RELATIVE.
checkarmreloc: $(obj)u-boot
@if test "R_ARM_RELATIVE" != \
"`readelf -r $< | cut -d ' ' -f 4 | grep R_ARM | sort -u`"; \
"`$(CROSS_COMPILE)readelf -r $< | cut -d ' ' -f 4 | grep R_ARM | sort -u`"; \
then echo "$< contains relocations other than \
R_ARM_RELATIVE"; false; fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment