ARC: build: use $(READELF) instead of hard-coded readelf
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 21 Nov 2020 19:36:57 +0000 (04:36 +0900)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 2 Dec 2020 01:24:05 +0000 (17:24 -0800)
The top Makefile defines READELF as the readelf in the cross-toolchains.
Use it rather than the host readelf.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/boot/Makefile

index b3870cc..5648748 100644 (file)
@@ -6,7 +6,7 @@
 
 OBJCOPYFLAGS= -O binary -R .note -R .note.gnu.build-id -R .comment -S
 
-LINUX_START_TEXT = $$(readelf -h vmlinux | \
+LINUX_START_TEXT = $$($(READELF) -h vmlinux | \
                        grep "Entry point address" | grep -o 0x.*)
 
 UIMAGE_LOADADDR    = $(CONFIG_LINUX_LINK_BASE)