package.bbclass: Avoid stripping signed kernel modules in splitdebuginfo

Since commit d756b346f2 kernel modules are stripped by the functions 'runstrip' and 'splitdebuginfo'. Signed modules must not be stripped. Function 'runstrip' avoids this by running is_kernel_module_signed. Apply the same check to splitdebuginfo.

(From OE-Core rev: 6859226652339b19cbc7bdfec074fe2016cdee60)

(From OE-Core rev: dc0f0413eabfd50f78d887f73f808d40a314fbd8)

Signed-off-by: Christoph Lauer <christoph.lauer@xtronic.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Christoph Lauer
2022-07-13 23:07:23 +02:00
committed by Richard Purdie
parent e1346989da
commit a508d0cf1b

View File

@@ -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))