diff options
| author | Khem Raj <raj.khem@gmail.com> | 2023-08-13 19:25:50 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-16 07:54:38 +0100 |
| commit | 64789f18f3cd983e8ce451c24e9709bab41bafa0 (patch) | |
| tree | fdda4a81d220e5e64e3c057bb4ed516a3c03ab7a | |
| parent | f27ab9ffcd900261f166937db2a798697ab3d03a (diff) | |
| download | poky-64789f18f3cd983e8ce451c24e9709bab41bafa0.tar.gz | |
kernel.bbclass: Use KERNEL_STRIP instead of STRIP
Kernel uses its own variables KERNEL_* instead of general toolchain env
variables, therefore use KERNEL_STRIP here explicitly, Problems happen
when using llvm-strip as default STRIP in distro settings, since kernel
defaults to using gcc, system does not stage llvm/clang toolchain into
kernel's staging sysroot and this function ends up with
FileNotFoundError: [Errno 2] No such file or directory: 'riscv64-yoe-linux-llvm-strip'
(From OE-Core rev: 2db0ef8fe6381c893791ad645748f6e7c8134e5f)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes-recipe/kernel.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass index bb5995b495..acb43bd4d5 100644 --- a/meta/classes-recipe/kernel.bbclass +++ b/meta/classes-recipe/kernel.bbclass | |||
| @@ -760,7 +760,7 @@ addtask kernel_link_images after do_compile before do_strip | |||
| 760 | python do_strip() { | 760 | python do_strip() { |
| 761 | import shutil | 761 | import shutil |
| 762 | 762 | ||
| 763 | strip = d.getVar('STRIP') | 763 | strip = d.getVar('KERNEL_STRIP') |
| 764 | extra_sections = d.getVar('KERNEL_IMAGE_STRIP_EXTRA_SECTIONS') | 764 | extra_sections = d.getVar('KERNEL_IMAGE_STRIP_EXTRA_SECTIONS') |
| 765 | kernel_image = d.getVar('B') + "/" + d.getVar('KERNEL_OUTPUT_DIR') + "/vmlinux" | 765 | kernel_image = d.getVar('B') + "/" + d.getVar('KERNEL_OUTPUT_DIR') + "/vmlinux" |
| 766 | 766 | ||
