diff options
| author | Matteo Croce <mcroce@redhat.com> | 2018-06-20 10:04:34 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-06-20 20:19:19 -0400 |
| commit | c24fb5e68ebfd485ecaa8b5d40cb4721a1d137ee (patch) | |
| tree | c9d7eb53663098ad721b1ab914d1d88f89e12d02 /net/bpfilter | |
| parent | 1abd8a8f39cd9a2925149000056494523c85643a (diff) | |
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/bpfilter')
| -rw-r--r-- | net/bpfilter/Makefile | 2 |
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 | |||
| 22 | quiet_cmd_copy_umh = GEN $@ | 22 | quiet_cmd_copy_umh = GEN $@ |
| 23 | cmd_copy_umh = echo ':' > $(obj)/.bpfilter_umh.o.cmd; \ | 23 | cmd_copy_umh = echo ':' > $(obj)/.bpfilter_umh.o.cmd; \ |
| 24 | $(OBJCOPY) -I binary \ | 24 | $(OBJCOPY) -I binary \ |
| 25 | `LC_ALL=C objdump -f net/bpfilter/bpfilter_umh \ | 25 | `LC_ALL=C $(OBJDUMP) -f net/bpfilter/bpfilter_umh \ |
| 26 | |awk -F' |,' '/file format/{print "-O",$$NF} \ | 26 | |awk -F' |,' '/file format/{print "-O",$$NF} \ |
| 27 | /^architecture:/{print "-B",$$2}'` \ | 27 | /^architecture:/{print "-B",$$2}'` \ |
| 28 | --rename-section .data=.init.rodata $< $@ | 28 | --rename-section .data=.init.rodata $< $@ |
