From 63c4c233624154d6dcbf21ecab10b4444d332d3c Mon Sep 17 00:00:00 2001 From: Alistair Popple Date: Thu, 13 Jul 2017 16:43:58 +1000 Subject: configure.ac: Detect architecture objcopy parameters The objcopy parameters required to turn device-tree blobs into elf objects for linking are architecture specific but were hard-coded. This required manual updates to Makefile.am when compiling for other architectures. Instead detect the parameters using an autoconf test. Signed-off-by: Alistair Popple --- Makefile.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 1db5546..2bd3f83 100644 --- a/Makefile.am +++ b/Makefile.am @@ -60,5 +60,4 @@ p9w-fsi.dtb.o: p9w-fsi.dts p9-fsi.dtsi # unflattening the device-tree dd if=$@.tmp of=$@ ibs=16 conv=sync rm $@.tmp -# objcopy -I binary -O elf32-littlearm -B arm $@ $@ - objcopy -I binary -O elf64-x86-64 -B i386:x86-64 $@ $@ + objcopy -I binary -O @ARCH_FF@ $@ $@ -- cgit v1.2.1