From 320dfca58a3dabec6af0932e030c326d697a6c61 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Fri, 6 Jan 2023 05:07:16 +0000 Subject: [PATCH] ANDROID: fips140: fix in-tree builds Kernel code is expected to support both in-tree and out-of-tree builds. Fix in-tree builds of the fips140 module by using the full include path for fips140-defs.h. Bug: 188620248 Change-Id: Iba5ed888bc6a316bd4d0a97479768f50094d63d0 Signed-off-by: Eric Biggers --- crypto/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/Makefile b/crypto/Makefile index e726f5364b25..7cb011dd2828 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -203,7 +203,8 @@ obj-$(CONFIG_CRYPTO_SIMD) += crypto_simd.o ifneq ($(CONFIG_CRYPTO_FIPS140_MOD),) -FIPS140_CFLAGS := -D__DISABLE_EXPORTS -DBUILD_FIPS140_KO -include fips140-defs.h +FIPS140_CFLAGS := -D__DISABLE_EXPORTS -DBUILD_FIPS140_KO \ + -include $(srctree)/crypto/fips140-defs.h CFLAGS_jitterentropy-fips.o := -O0 KASAN_SANITIZE_jitterentropy-fips.o = n