diff options
author | Jia Zhang <qianyue.zj@alibaba-inc.com> | 2017-11-25 18:47:15 +0800 |
---|---|---|
committer | Jia Zhang <qianyue.zj@alibaba-inc.com> | 2017-11-26 13:09:01 +0800 |
commit | a22324542dd81c2bbd3aefbb58a5a0e4cc5d759a (patch) | |
tree | 705eb7ca1956c3ed230afc64fc4436942dddc66a | |
parent | 5758c189a38ebeeaecd8c44c7749cfbf1dda9032 (diff) | |
download | meta-secure-core-a22324542dd81c2bbd3aefbb58a5a0e4cc5d759a.tar.gz |
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 <qianyue.zj@alibaba-inc.com>
-rw-r--r-- | meta-integrity/recipes-kernel/linux/linux-yocto-integrity.inc | 2 |
1 files changed, 2 insertions, 0 deletions
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 += "\ | |||
15 | if d.getVar('MODSIGN_ENABLED', True) == '1' else ''} \ | 15 | if d.getVar('MODSIGN_ENABLED', True) == '1' else ''} \ |
16 | " | 16 | " |
17 | 17 | ||
18 | INHIBIT_PACKAGE_STRIP = "${@'1' if d.getVar('MODSIGN_ENABLED', True) == '1' else '0'}" | ||
19 | |||
18 | do_configure_prepend() { | 20 | do_configure_prepend() { |
19 | sys_cert="${STAGING_DIR_TARGET}${sysconfdir}/keys/system_trusted_key.crt" | 21 | sys_cert="${STAGING_DIR_TARGET}${sysconfdir}/keys/system_trusted_key.crt" |
20 | modsign_key="${STAGING_DIR_TARGET}${sysconfdir}/keys/modsign_key.key" | 22 | modsign_key="${STAGING_DIR_TARGET}${sysconfdir}/keys/modsign_key.key" |