From 123f85cf256d8f4007ca279f1aac6c745a109640 Mon Sep 17 00:00:00 2001 From: Davide Garberi Date: Sun, 7 Oct 2018 18:28:02 +0200 Subject: compat: don't output for grep errors This will make it so that kernels not having arch/$(SRCARCH)/Kbuild no longer give any (non-fatal) grep errors such as "grep: arch/arm64/Kbuild: No such file or directory". Signed-off-by: Davide Garberi --- src/compat/Kbuild.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compat/Kbuild.include') diff --git a/src/compat/Kbuild.include b/src/compat/Kbuild.include index 0e70006..1565d8f 100644 --- a/src/compat/Kbuild.include +++ b/src/compat/Kbuild.include @@ -33,7 +33,7 @@ ifeq ($(wildcard $(srctree)/arch/x86/include/asm/fpu/api.h)$(CONFIG_X86),y) ccflags-y += -I$(src)/compat/fpu-x86/include endif -ifeq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/simd.h)$(shell grep -F "generic-y += simd.h" "$(srctree)/arch/$(SRCARCH)/Kbuild"),) +ifeq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/simd.h)$(shell grep -s -F "generic-y += simd.h" "$(srctree)/arch/$(SRCARCH)/Kbuild"),) ccflags-y += -I$(src)/compat/simd-asm/include endif @@ -46,7 +46,7 @@ ccflags-y += -I$(src)/compat/udp_tunnel/include wireguard-y += compat/udp_tunnel/udp_tunnel.o endif -ifeq ($(shell grep -F "int crypto_memneq" "$(srctree)/include/crypto/algapi.h"),) +ifeq ($(shell grep -s -F "int crypto_memneq" "$(srctree)/include/crypto/algapi.h"),) ccflags-y += -include $(cmd_include_path_prefix)/compat/memneq/include.h wireguard-y += compat/memneq/memneq.o endif -- cgit v1.2.3-59-g8ed1b