aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat
diff options
context:
space:
mode:
authorDavide Garberi <dade.garberi@gmail.com>2018-10-07 18:28:02 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-07 19:01:08 +0200
commit123f85cf256d8f4007ca279f1aac6c745a109640 (patch)
treea0df30906f6366561df6d047e510eb67394381ce /src/compat
parentversion: bump snapshot (diff)
downloadwireguard-monolithic-historical-123f85cf256d8f4007ca279f1aac6c745a109640.tar.xz
wireguard-monolithic-historical-123f85cf256d8f4007ca279f1aac6c745a109640.zip
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 <dade.garberi@gmail.com>
Diffstat (limited to 'src/compat')
-rw-r--r--src/compat/Kbuild.include4
1 files changed, 2 insertions, 2 deletions
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