Ard Biesheuvel | 6be141e | 2021-03-23 10:54:38 +0100 | [diff] [blame^] | 1 | . ${ROOT_DIR}/${KERNEL_DIR}/build.config.gki.aarch64 |
| 2 | |
| 3 | FILES="${FILES} |
| 4 | crypto/fips140.ko |
| 5 | " |
| 6 | |
| 7 | if [ "${LTO}" = "none" ]; then |
| 8 | echo "The FIPS140 module needs LTO to be enabled." |
| 9 | exit 1 |
| 10 | fi |
| 11 | |
| 12 | MODULES_ORDER=android/gki_aarch64_fips140_modules |
| 13 | KERNEL_DIR=common |
| 14 | |
| 15 | DEFCONFIG=fips140_gki_defconfig |
| 16 | PRE_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};" |
| 17 | POST_DEFCONFIG_CMDS="rm ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/${DEFCONFIG}" |