summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorMatteo Croce <mcroce@redhat.com>2018-06-20 17:04:34 +0300
committerDavid S. Miller <davem@davemloft.net>2018-06-21 03:19:19 +0300
commitc24fb5e68ebfd485ecaa8b5d40cb4721a1d137ee (patch)
treec9d7eb53663098ad721b1ab914d1d88f89e12d02 /net
parent1abd8a8f39cd9a2925149000056494523c85643a (diff)
downloadlinux-c24fb5e68ebfd485ecaa8b5d40cb4721a1d137ee.tar.xz
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 'net')
-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 $< $@