From: Ivan Khoronzhuk Date: Fri, 11 Oct 2019 00:27:54 +0000 (+0300) Subject: samples/bpf: Fix HDR_PROBE "echo" X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cdd5b2d1fc86f8dda383d4f0b4ac9b533539e76a;p=linux.git samples/bpf: Fix HDR_PROBE "echo" echo should be replaced with echo -e to handle '\n' correctly, but instead, replace it with printf as some systems can't handle echo -e. Signed-off-by: Ivan Khoronzhuk Signed-off-by: Alexei Starovoitov Acked-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/20191011002808.28206-2-ivan.khoronzhuk@linaro.org --- diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index a11d7270583d0..4f61725b1d866 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -201,7 +201,7 @@ endif # Don't evaluate probes and warnings if we need to run make recursively ifneq ($(src),) -HDR_PROBE := $(shell echo "\#include \n struct list_head { int a; }; int main() { return 0; }" | \ +HDR_PROBE := $(shell printf "\#include \n struct list_head { int a; }; int main() { return 0; }" | \ $(HOSTCC) $(KBUILD_HOSTCFLAGS) -x c - -o /dev/null 2>/dev/null && \ echo okay)