summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-10-24 15:07:35 -0700
committerSteve Sakoman <steve@sakoman.com>2023-11-24 05:01:37 -1000
commit7e5b4743f4735faed6b87cd704a7251bb865534a (patch)
tree11e0a591a49238113c584b5a35e02fc10079e938
parentcae5e1ee3d0e7a931f677b269f58308d998f4706 (diff)
downloadpoky-7e5b4743f4735faed6b87cd704a7251bb865534a.tar.gz
kernel.bbclass: Use strip utility used for kernel build in do_package
os.environ does not pass this down to runstrip() function and in strip_execs() its using STRIP bitbake variable to find the strip utility to use. Since there might be a trailing whitespace in KERNEL_STRIP remove that otherwise python is not able to launch it. e.g. FileNotFoundError: [Errno 2] No such file or directory: 'riscv64-yoe-linux-strip ' This is more evident when STRIP and KERNEL_STRIP are different utilities e.g. when using clang as default toolchain but using gcc+binutils only for kernel build. (From OE-Core rev: e0bd7ce93a75c7ddb6b1c572453c37407e7e32da) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 77497dbdca92ab4d6386a071bc281c42a7e8a14b) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/classes-recipe/kernel.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass
index 2ec9ea2091..16b85dbca4 100644
--- a/meta/classes-recipe/kernel.bbclass
+++ b/meta/classes-recipe/kernel.bbclass
@@ -336,7 +336,7 @@ kernel_do_transform_bundled_initramfs() {
336do_transform_bundled_initramfs[dirs] = "${B}" 336do_transform_bundled_initramfs[dirs] = "${B}"
337 337
338python do_package:prepend () { 338python do_package:prepend () {
339 os.environ['STRIP'] = d.getVar('KERNEL_STRIP') 339 d.setVar('STRIP', d.getVar('KERNEL_STRIP').strip())
340} 340}
341 341
342python do_devshell:prepend () { 342python do_devshell:prepend () {