From a22324542dd81c2bbd3aefbb58a5a0e4cc5d759a Mon Sep 17 00:00:00 2001 From: Jia Zhang Date: Sat, 25 Nov 2017 18:47:15 +0800 Subject: linux-yocto: fix loading kernel module due to being stripped The kernel module will be stripped during do_package, including the modsign signature. Use INHIBIT_PACKAGE_STRIP=1 if modsign is configured. Signed-off-by: Jia Zhang --- meta-integrity/recipes-kernel/linux/linux-yocto-integrity.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-integrity/recipes-kernel/linux/linux-yocto-integrity.inc b/meta-integrity/recipes-kernel/linux/linux-yocto-integrity.inc index a70774e..b950acd 100644 --- a/meta-integrity/recipes-kernel/linux/linux-yocto-integrity.inc +++ b/meta-integrity/recipes-kernel/linux/linux-yocto-integrity.inc @@ -15,6 +15,8 @@ SRC_URI += "\ if d.getVar('MODSIGN_ENABLED', True) == '1' else ''} \ " +INHIBIT_PACKAGE_STRIP = "${@'1' if d.getVar('MODSIGN_ENABLED', True) == '1' else '0'}" + do_configure_prepend() { sys_cert="${STAGING_DIR_TARGET}${sysconfdir}/keys/system_trusted_key.crt" modsign_key="${STAGING_DIR_TARGET}${sysconfdir}/keys/modsign_key.key" -- cgit v1.2.3-54-g00ecf