Message ID | 20220713210723.29442-1-christoph.lauer@email.de |
---|---|
State | New |
Headers | show |
Series | [v3] package.bbclass: Avoid stripping signed kernel modules in splitdebuginfo | expand |
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 4850134022..63887b34f8 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -382,6 +382,11 @@ def splitdebuginfo(file, dvar, dv, d): debugfile = dvar + dest sources = [] + if file.endswith(".ko") and file.find("/lib/modules/") != -1: + if oe.package.is_kernel_module_signed(file): + bb.debug(1, "Skip strip on signed module %s" % file) + return (file, sources) + # Split the file... bb.utils.mkdirhier(os.path.dirname(debugfile)) #bb.note("Split %s -> %s" % (file, debugfile))