summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Lauer <christoph.lauer@xtronic.de>2022-07-13 23:07:23 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-07-15 12:33:21 +0100
commita508d0cf1b96c83f48a7ad017b1bb4db08738a16 (patch)
tree4fb639e0500914f7fa60fc1f2728d021124de1ba
parente1346989da5e25ba0f842626264146f696187e53 (diff)
downloadpoky-a508d0cf1b96c83f48a7ad017b1bb4db08738a16.tar.gz
package.bbclass: Avoid stripping signed kernel modules in splitdebuginfo
Since commit d756b346f248df47b0540644adb1d0f17bcc4b6e 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>
-rw-r--r--meta/classes/package.bbclass5
1 files changed, 5 insertions, 0 deletions
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):
382 debugfile = dvar + dest 382 debugfile = dvar + dest
383 sources = [] 383 sources = []
384 384
385 if file.endswith(".ko") and file.find("/lib/modules/") != -1:
386 if oe.package.is_kernel_module_signed(file):
387 bb.debug(1, "Skip strip on signed module %s" % file)
388 return (file, sources)
389
385 # Split the file... 390 # Split the file...
386 bb.utils.mkdirhier(os.path.dirname(debugfile)) 391 bb.utils.mkdirhier(os.path.dirname(debugfile))
387 #bb.note("Split %s -> %s" % (file, debugfile)) 392 #bb.note("Split %s -> %s" % (file, debugfile))