bpfilter Makefile assumes that the system locale is en_US, and the
parsing of objdump output fails.
Set LC_ALL=C and, while at it, rewrite the objdump parsing so it spawns
only 2 processes instead of 7.
Fixes: d2ba09c17a064 ("net: add skeleton of bpfilter kernel module")
Signed-off-by: Matteo Croce <redacted>
---
net/bpfilter/Makefile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
@@ -21,8 +21,10 @@ endif# which bpfilter_kern.c passes further into umh blob loader at run-timequiet_cmd_copy_umh=GEN$@cmd_copy_umh=echo':'>$(obj)/.bpfilter_umh.o.cmd;\-$(OBJCOPY)-Ibinary-O`$(OBJDUMP)-f$<|grepformat|cut-d' '-f8`\--B`$(OBJDUMP)-f$<|greparchitecture|cut-d,-f1|cut-d' '-f2`\+$(OBJCOPY)-Ibinary\+`LC_ALL=Cobjdump-fnet/bpfilter/bpfilter_umh\+|awk-F' |,''/fileformat/{print"-O",$$NF}\+/^architecture:/{print"-B",$$2}'`\--rename-section.data=.init.rodata$<$@$(obj)/bpfilter_umh.o:$(obj)/bpfilter_umh
bpfilter Makefile assumes that the system locale is en_US, and the
parsing of objdump output fails.
Set LC_ALL=C and, while at it, rewrite the objdump parsing so it spawns
only 2 processes instead of 7.
Fixes: d2ba09c17a064 ("net: add skeleton of bpfilter kernel module")
Signed-off-by: Matteo Croce <redacted>
On Tue, 19 Jun 2018 17:16:20 +0200
Matteo Croce [off-list ref] wrote:
quoted hunk
bpfilter Makefile assumes that the system locale is en_US, and the
parsing of objdump output fails.
Set LC_ALL=C and, while at it, rewrite the objdump parsing so it spawns
only 2 processes instead of 7.
Fixes: d2ba09c17a064 ("net: add skeleton of bpfilter kernel module")
Signed-off-by: Matteo Croce <redacted>
---
net/bpfilter/Makefile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
@@ -21,8 +21,10 @@ endif# which bpfilter_kern.c passes further into umh blob loader at run-timequiet_cmd_copy_umh=GEN$@cmd_copy_umh=echo':'>$(obj)/.bpfilter_umh.o.cmd;\-$(OBJCOPY)-Ibinary-O`$(OBJDUMP)-f$<|grepformat|cut-d' '-f8`\--B`$(OBJDUMP)-f$<|greparchitecture|cut-d,-f1|cut-d' '-f2`\+$(OBJCOPY)-Ibinary\+`LC_ALL=Cobjdump-fnet/bpfilter/bpfilter_umh\
Why do you use objdump instead of $(OBJDUMP) now? I guess this might
cause issues if you're cross-compiling.
--
Stefano
On Wed, Jun 20, 2018 at 12:39 PM Stefano Brivio [off-list ref] wrote:
On Tue, 19 Jun 2018 17:16:20 +0200
Matteo Croce [off-list ref] wrote:
quoted
bpfilter Makefile assumes that the system locale is en_US, and the
parsing of objdump output fails.
Set LC_ALL=C and, while at it, rewrite the objdump parsing so it spawns
only 2 processes instead of 7.
Fixes: d2ba09c17a064 ("net: add skeleton of bpfilter kernel module")
Signed-off-by: Matteo Croce <redacted>
---
net/bpfilter/Makefile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
@@ -21,8 +21,10 @@ endif# which bpfilter_kern.c passes further into umh blob loader at run-timequiet_cmd_copy_umh=GEN$@cmd_copy_umh=echo':'>$(obj)/.bpfilter_umh.o.cmd;\-$(OBJCOPY)-Ibinary-O`$(OBJDUMP)-f$<|grepformat|cut-d' '-f8`\--B`$(OBJDUMP)-f$<|greparchitecture|cut-d,-f1|cut-d' '-f2`\+$(OBJCOPY)-Ibinary\+`LC_ALL=Cobjdump-fnet/bpfilter/bpfilter_umh\
Why do you use objdump instead of $(OBJDUMP) now? I guess this might
cause issues if you're cross-compiling.
--
Stefano
Right, I've sent a proper fix.
Thanks,
--
Matteo Croce
per aspera ad upstream