Commit c24fb5e6 authored by Matteo Croce's avatar Matteo Croce Committed by David S. Miller
Browse files

bpfilter: fix user mode helper cross compilation



Use $(OBJDUMP) instead of literal 'objdump' to avoid
using host toolchain when cross compiling.

Fixes: 421780fd ("bpfilter: fix build error")
Signed-off-by: default avatarMatteo Croce <mcroce@redhat.com>
Reported-by: default avatarStefano Brivio <sbrivio@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1abd8a8f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 $< $@