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 |
Ard Biesheuvel | 6be141e | 2021-03-23 10:54:38 +0100 | [diff] [blame] | 13 | |
| 14 | DEFCONFIG=fips140_gki_defconfig |
Matthias Maennich | b9ae328 | 2021-06-11 14:31:48 +0100 | [diff] [blame] | 15 | KMI_SYMBOL_LIST=android/abi_gki_aarch64_fips140 |
Ard Biesheuvel | 6be141e | 2021-03-23 10:54:38 +0100 | [diff] [blame] | 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}" |
Eric Biggers | cf721d6 | 2021-10-29 14:32:49 -0700 | [diff] [blame] | 18 | KMI_SYMBOL_LIST_ADD_ONLY=1 |