Skip to content

Commit 8d97ca6

Browse files
4astdavem330
authored andcommitted
bpfilter: fix OUTPUT_FORMAT
CONFIG_OUTPUT_FORMAT is x86 only macro. Used objdump to extract elf file format. Fixes: d2ba09c ("net: add skeleton of bpfilter kernel module") Reported-by: David S. Miller <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bf956be commit 8d97ca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/bpfilter/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ endif
2121
# which bpfilter_kern.c passes further into umh blob loader at run-time
2222
quiet_cmd_copy_umh = GEN $@
2323
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` \
2525
-B `$(OBJDUMP) -f $<|grep architecture|cut -d, -f1|cut -d' ' -f2` \
2626
--rename-section .data=.init.rodata $< $@
2727

0 commit comments

Comments
 (0)