bpfilter: fix OUTPUT_FORMAT
Subsystems (2)
PATCH 1/1 bpfilter: fix OUTPUT_FORMAT
From: Alexei Starovoitov <[email protected]>
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 <[email protected]>
Signed-off-by Alexei Starovoitov <[email protected]>
--- net/bpfilter/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/bpfilter/Makefile +1 -1
@@ -21,7 +21,7 @@ endif # which bpfilter_kern.c passes further into umh blob loader at run-time quiet_cmd_copy_umh = GEN $@ cmd_copy_umh = echo ':' > $(obj)/.bpfilter_umh.o.cmd; \ - $(OBJCOPY) -I binary -O $(CONFIG_OUTPUT_FORMAT) \ + $(OBJCOPY) -I binary -O `$(OBJDUMP) -f $<|grep format|cut -d' ' -f8` \ -B `$(OBJDUMP) -f $<|grep architecture|cut -d, -f1|cut -d' ' -f2` \ --rename-section .data=.init.rodata $< $@
Signature · 1 line
2.9.5
From: Alexei Starovoitov <[email protected]>
Date: Thu, 7 Jun 2018 10:29:29 -0700
Quoted 8 lines
From: Alexei Starovoitov <[email protected]>
CONFIG_OUTPUT_FORMATis x86 only macro.
Used objdump to extract elf file format.Fixes d2ba09c17a06 ("net: add skeleton of bpfilter kernel module")Reported-by David S. Miller <[email protected]>Signed-off-by Alexei Starovoitov <[email protected]>
Applied.