aboutsummaryrefslogtreecommitdiffstats
path: root/net/bpfilter/Makefile
diff options
context:
space:
mode:
authorMatteo Croce <mcroce@redhat.com>2018-06-20 16:04:34 +0200
committerDavid S. Miller <davem@davemloft.net>2018-06-21 09:19:19 +0900
commitc24fb5e68ebfd485ecaa8b5d40cb4721a1d137ee (patch)
treec9d7eb53663098ad721b1ab914d1d88f89e12d02 /net/bpfilter/Makefile
parentMerge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma (diff)
downloadlinux-dev-c24fb5e68ebfd485ecaa8b5d40cb4721a1d137ee.tar.xz
linux-dev-c24fb5e68ebfd485ecaa8b5d40cb4721a1d137ee.zip
bpfilter: fix user mode helper cross compilation
Use $(OBJDUMP) instead of literal 'objdump' to avoid using host toolchain when cross compiling. Fixes: 421780fd4983 ("bpfilter: fix build error") Signed-off-by: Matteo Croce <mcroce@redhat.com> Reported-by: Stefano Brivio <sbrivio@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/bpfilter/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bpfilter/Makefile b/net/bpfilter/Makefile
index dd86b022eff0..051dc18b8ccb 100644
--- a/net/bpfilter/Makefile
+++ b/net/bpfilter/Makefile
@@ -22,7 +22,7 @@ endif
quiet_cmd_copy_umh = GEN $@
cmd_copy_umh = echo ':' > $(obj)/.bpfilter_umh.o.cmd; \
$(OBJCOPY) -I binary \
- `LC_ALL=C objdump -f net/bpfilter/bpfilter_umh \
+ `LC_ALL=C $(OBJDUMP) -f net/bpfilter/bpfilter_umh \
|awk -F' |,' '/file format/{print "-O",$$NF} \
/^architecture:/{print "-B",$$2}'` \
--rename-section .data=.init.rodata $< $@