diff options
author | Davide Garberi <dade.garberi@gmail.com> | 2018-10-07 18:28:02 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-07 19:01:08 +0200 |
commit | ba483b05385c35d3863921eec72292c349292a7e (patch) | |
tree | 7731a75e3a63d671305e2fccfb0c5964f141d853 | |
parent | dec1d630b63e43904d79cfbeff22acd7fbe680b4 (diff) |
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>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | src/compat/Kbuild.include | 4 |
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 |