[OE-core] [PATCH] module.bbclass: do not strip packages if modules signing is enabled

dbaryshkov at gmail.com dbaryshkov at gmail.com
Thu Aug 8 09:57:25 UTC 2019


From: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov at mentor.com>

Stripping kernel modules will also remove signature, thus we have to
inhibit package striping in case modules signatures are enabled.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov at mentor.com>
---
 meta/classes/module.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass
index c0dfa3506133..31d5a2f21adc 100644
--- a/meta/classes/module.bbclass
+++ b/meta/classes/module.bbclass
@@ -72,3 +72,6 @@ EXPORT_FUNCTIONS do_compile do_install
 KERNEL_MODULES_META_PACKAGE = "${PN}"
 FILES_${PN} = ""
 ALLOW_EMPTY_${PN} = "1"
+
+# Do not strip modules if modules signing is enabled
+INHIBIT_PACKAGE_STRIP ?= "${@bb.utils.contains('DISTRO_FEATURES', 'modsign', '1', '0', d)}"
-- 
2.20.1



More information about the Openembedded-core mailing list