15062691a8d0e41f8d55dee6f6558a2e8e883636
[openwrt.git] / target / linux / generic / patches-3.14 / 270-x86_objdump_command.patch
1 Use the cross toolchain objdump command instead of assuming that the host
2 toolchain has it.
3
4 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5
6 --- a/arch/x86/boot/compressed/Makefile
7 +++ b/arch/x86/boot/compressed/Makefile
8 @@ -75,7 +75,7 @@ suffix-$(CONFIG_KERNEL_XZ)    := xz
9  suffix-$(CONFIG_KERNEL_LZO)    := lzo
10  suffix-$(CONFIG_KERNEL_LZ4)    := lz4
11  
12 -RUN_SIZE = $(shell objdump -h vmlinux | \
13 +RUN_SIZE = $(shell $(OBJDUMP) -h vmlinux | \
14              perl $(srctree)/arch/x86/tools/calc_run_size.pl)
15  quiet_cmd_mkpiggy = MKPIGGY $@
16        cmd_mkpiggy = $(obj)/mkpiggy $< $(RUN_SIZE) > $@ || ( rm -f $@ ; false )