blob: f7ef7dae35e3f5f38104243fc1259f4e3214e366 [file] [log] [blame]
Ard Biesheuvel6be141e2021-03-23 10:54:38 +01001. ${ROOT_DIR}/${KERNEL_DIR}/build.config.gki.aarch64
2
3FILES="${FILES}
4crypto/fips140.ko
5"
6
7if [ "${LTO}" = "none" ]; then
8 echo "The FIPS140 module needs LTO to be enabled."
9 exit 1
10fi
11
12MODULES_ORDER=android/gki_aarch64_fips140_modules
Ard Biesheuvel6be141e2021-03-23 10:54:38 +010013
14DEFCONFIG=fips140_gki_defconfig
Matthias Maennichb9ae3282021-06-11 14:31:48 +010015KMI_SYMBOL_LIST=android/abi_gki_aarch64_fips140
Ard Biesheuvel6be141e2021-03-23 10:54:38 +010016PRE_DEFCONFIG_CMDS="cat ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/gki_defconfig ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/fips140_gki.fragment > ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/${DEFCONFIG};"
17POST_DEFCONFIG_CMDS="rm ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/${DEFCONFIG}"
Eric Biggerscf721d62021-10-29 14:32:49 -070018KMI_SYMBOL_LIST_ADD_ONLY=1