]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
bpfilter: fix user mode helper cross compilation
authorMatteo Croce <mcroce@redhat.com>
Wed, 20 Jun 2018 14:04:34 +0000 (16:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Jun 2018 00:19:19 +0000 (09:19 +0900)
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>
net/bpfilter/Makefile

index dd86b022eff0546ce729188150e2c9c63d2d0ada..051dc18b8ccb5032dae34b5b87e6123674820f36 100644 (file)
@@ -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 $< $@