From 52b70d491bd46a403000a3984e37e5a90aea672e Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Fri, 8 Oct 2021 12:49:20 -0700 Subject: [PATCH] ANDROID: fips140: use FIPS140_CFLAGS when compiling fips140-selftests.c These flags are supposed to be used when building all source files for the module. Bug: 188620248 Fixes: b7397e89db29 ("ANDROID: fips140: add power-up cryptographic self-tests") Change-Id: I41cacff040c8a8a0065dd3cfc537303f1ff18335 Signed-off-by: Eric Biggers (cherry picked from commit 422bc2feb7e3e800a6c75a25795c7786794b7f2d) --- crypto/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/Makefile b/crypto/Makefile index f353273de018..bf5e547afc76 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -237,6 +237,7 @@ fips140-objs := fips140-module.o fips140-selftests.o crypto-fips.a obj-m += fips140.o CFLAGS_fips140-module.o += $(FIPS140_CFLAGS) +CFLAGS_fips140-selftests.o += $(FIPS140_CFLAGS) hostprogs-always-y := fips140_gen_hmac HOSTLDLIBS_fips140_gen_hmac := -lcrypto -lelf