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-25 15:11:46 +0100
commitf1d0a3c7c6c6f1a2f077fb3ad14c30379cc11865 (patch)
tree407208f62d021a331b0cac9864bea65c5f9d92c6
parent195b61756bae2d0066b411eea9e14da9de3992a9 (diff)
downloadpoky-f1d0a3c7c6c6f1a2f077fb3ad14c30379cc11865.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: cefc6ec245ac1ca7a1a47d55aaec793e730a24a5) 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> (cherry picked from commit dc0f0413eabfd50f78d887f73f808d40a314fbd8) Signed-off-by: Steve Sakoman <steve@sakoman.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))