ANDROID: fips140: support "evaluation testing" builds via build.sh

Allow the following command to be run to make a build of fips140.ko
that has CONFIG_CRYPTO_FIPS140_MOD_EVAL_TESTING enabled:

    BUILD_CONFIG=common/build.config.gki.aarch64.fips140_eval_testing ./build/build.sh

Bug: 188620248
Change-Id: I0e0be487974c6ad40f3135fc5fec6aa107aab78c
Signed-off-by: Eric Biggers <ebiggers@google.com>
This commit is contained in:
Eric Biggers 2021-11-29 10:21:30 -08:00
parent cbd64e25c2
commit 143ac63130
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
CONFIG_CRYPTO_FIPS140_MOD_EVAL_TESTING=y

View File

@ -0,0 +1,3 @@
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.gki.aarch64.fips140
PRE_DEFCONFIG_CMDS+=" cat ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/fips140_gki_eval_testing.fragment >> ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/${DEFCONFIG};"