blob: 701680014fa4f9486482e64962b6125778782224 [file] [log] [blame]
Andrew Geisslerdc9d6142023-05-19 09:38:37 -05001FILESEXTRAPATHS:append := "${THISDIR}/linux:"
2
3SRC_URI += " \
4 ${@bb.utils.contains('DISTRO_FEATURES', 'ima', 'file://ima.scc', '', d)} \
5"
6
7do_configure:append() {
8 if [ "${@bb.utils.contains('DISTRO_FEATURES', 'ima', 'yes', '', d)}" = "yes" ] && [ -f .config ] ; then
9 sed -i "s|^CONFIG_SYSTEM_TRUSTED_KEYS=.*|CONFIG_SYSTEM_TRUSTED_KEYS=\"${IMA_EVM_ROOT_CA}\"|" .config
10 fi
11}
Andrew Geisslera1a6aef2021-06-25 14:23:58 -050012
Patrick Williams213cb262021-08-07 19:21:33 -050013KERNEL_FEATURES:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'modsign', ' features/ima/modsign.scc', '', d)}"
Andrew Geisslera1a6aef2021-06-25 14:23:58 -050014
15inherit ${@bb.utils.contains('DISTRO_FEATURES', 'modsign', 'kernel-modsign', '', d)}