diff options
author | Alexei Starovoitov <ast@fb.com> | 2018-06-07 10:29:29 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-07 16:56:48 -0400 |
commit | 8d97ca6b6755bf7ef57d323642ca9ee80d689782 (patch) | |
tree | 41d5dcc18cc4aa673f8357fd9275920fc4a4b927 /net/bpfilter | |
parent | bf956be520fb534510e31564231163aa05f7f091 (diff) | |
download | linux-8d97ca6b6755bf7ef57d323642ca9ee80d689782.tar.gz linux-8d97ca6b6755bf7ef57d323642ca9ee80d689782.tar.bz2 linux-8d97ca6b6755bf7ef57d323642ca9ee80d689782.zip |
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>
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 aafa72001fcd..e0bbe7583e58 100644 --- a/net/bpfilter/Makefile +++ b/net/bpfilter/Makefile @@ -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 $< $@ |