Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bpfilter: fix OUTPUT_FORMAT

CONFIG_OUTPUT_FORMAT is x86 only macro.
Used objdump to extract elf file format.

Fixes: d2ba09c17a06 ("net: add skeleton of bpfilter kernel module")
Reported-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Alexei Starovoitov and committed by
David S. Miller
8d97ca6b bf956be5

+1 -1
+1 -1
net/bpfilter/Makefile
··· 21 21 # which bpfilter_kern.c passes further into umh blob loader at run-time 22 22 quiet_cmd_copy_umh = GEN $@ 23 23 cmd_copy_umh = echo ':' > $(obj)/.bpfilter_umh.o.cmd; \ 24 - $(OBJCOPY) -I binary -O $(CONFIG_OUTPUT_FORMAT) \ 24 + $(OBJCOPY) -I binary -O `$(OBJDUMP) -f $<|grep format|cut -d' ' -f8` \ 25 25 -B `$(OBJDUMP) -f $<|grep architecture|cut -d, -f1|cut -d' ' -f2` \ 26 26 --rename-section .data=.init.rodata $< $@ 27 27