mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-25 21:24:21 +08:00
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: Andreas Bießmann <andreas.devel@googlemail.com> Acked-by: Jeroen Hofstee <jeroen@myspectrum.nl> Tested-by: Lubomir Popov <lpopov@mm-sol.com>
This commit is contained in:
parent
d4125ebc8d
commit
c1273d7162
2
Makefile
2
Makefile
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user