[PATCH] efi: use objcopy with CROSS_COMPILE prefix

Michael Olbrich m.olbrich at pengutronix.de
Thu Sep 18 03:44:29 PDT 2014


Signed-off-by: Michael Olbrich <m.olbrich at pengutronix.de>
---
 arch/efi/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/efi/Makefile b/arch/efi/Makefile
index af28085..85cb655 100644
--- a/arch/efi/Makefile
+++ b/arch/efi/Makefile
@@ -24,7 +24,7 @@ cmd_barebox__ ?= $(LD) $(LDFLAGS) $(LDFLAGS_barebox) -o $@	\
 		$(filter-out $(barebox-lds) $(barebox-common) FORCE ,$^)
 
 quiet_cmd_efi_image = EFI-IMG $@
-      cmd_efi_image = objcopy -j .text -j .sdata -j .data -j .dynamic \
+      cmd_efi_image = $(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
 		      -j .dynsym -j .rel -j .rela -j .reloc -j __barebox_initcalls \
 		      -j __barebox_cmd -j .barebox_magicvar -j .bbenv.* \
 		      --target=$(TARGET) $< $@
-- 
2.1.0




More information about the barebox mailing list