blob: 415476a04a280a6ec2c251e73a0a9ae71adca0f3 [file] [log] [blame]
Andrew Geisslerdc9d6142023-05-19 09:38:37 -05001
2do_configure:append() {
3 if [ "${@bb.utils.contains('DISTRO_FEATURES', 'ima', 'yes', '', d)}" = "yes" ] && [ -f .config ] ; then
4 sed -i "s|^CONFIG_SYSTEM_TRUSTED_KEYS=.*|CONFIG_SYSTEM_TRUSTED_KEYS=\"${IMA_EVM_ROOT_CA}\"|" .config
5 fi
6}
Andrew Geisslera1a6aef2021-06-25 14:23:58 -05007
Patrick Williams213cb262021-08-07 19:21:33 -05008KERNEL_FEATURES:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'modsign', ' features/ima/modsign.scc', '', d)}"
Patrick Williams2a254922023-08-11 09:48:11 -05009KERNEL_FEATURES:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ima', ' features/ima/ima.scc', '', d)}"
Andrew Geisslera1a6aef2021-06-25 14:23:58 -050010
11inherit ${@bb.utils.contains('DISTRO_FEATURES', 'modsign', 'kernel-modsign', '', d)}