summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Bießmann <andreas.devel@googlemail.com>2013-07-02 08:37:37 +0200
committerTom Rini <trini@ti.com>2013-07-03 09:35:48 -0400
commitc1273d7162bd4bf795f8637cac3532a490dd9024 (patch)
tree9298284ddee8f65e4e9838c95ffc0097dbe7a3e6 /Makefile
parentd4125ebc8dae28e8ade858ba519bca7fbeb6ccae (diff)
downloadu-boot-imx-c1273d7162bd4bf795f8637cac3532a490dd9024.zip
u-boot-imx-c1273d7162bd4bf795f8637cac3532a490dd9024.tar.gz
u-boot-imx-c1273d7162bd4bf795f8637cac3532a490dd9024.tar.bz2
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ba1c10b..446c2f8 100644
--- a/Makefile
+++ b/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