mirror of
https://github.com/jiazhang0/meta-secure-core.git
synced 2026-07-16 12:47:00 +00:00
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>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user