Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Quentin Schulz <quentin.schulz@cherry.de>
To: "Robert P. J. Day" <rpjday@crashcourse.ca>
Cc: OE Core mailing list <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] setting KERNEL_IMAGE_STRIP_EXTRA_SECTIONS blows up building linux-yocto
Date: Mon, 20 Jul 2026 16:44:42 +0200	[thread overview]
Message-ID: <2ea2c118-22a7-45df-859e-df0d38dbbc82@cherry.de> (raw)
In-Reply-To: <b605f80c-34ad-4c3d-407d-8130a004cb0e@crashcourse.ca>

Hi Robert,

On 7/20/26 3:54 PM, Robert P. J. Day wrote:
> On Mon, 20 Jul 2026, Quentin Schulz wrote:
> 
>> Hi Robert,
>>
>> On 7/11/26 12:50 PM, Robert P. J. Day via lists.openembedded.org wrote:
>>>
>>>     testing my recent docs submission documenting
>>> KERNEL_IMAGE_STRIP_EXTRA_SECTIONS, and it did not go well. i'm
>>> iterating through all of the tasks for building linux-yocto for a
>>> rockchip-based orangepi-5-plus, and everything worked fine up to and
>>> including the do_transform_kernel() task.
>>>
>>>     for fun, i added to my local.conf:
>>>
>>>       KERNEL_IMAGE_STRIP_EXTRA_SECTIONS = ".comment"
>>>
>>> and manually ran the do_strip() task:
>>>
>>>       $ bitbake -c strip linux-yocto
>>>
>>> to get:
>>>
>>> ERROR: linux-yocto-6.18.35+git-r0 do_strip: Error executing a python
>>> function in exec_func_python() autogenerated:
>>>
>>> The stack trace of python calls that resulted in this
>>> exception/failure was:
>>> File: 'exec_func_python() autogenerated', lineno: 2, function:
>>> <module>
>>>        0001:
>>>    *** 0002:do_strip(d)
>>>        0003:
>>> File:
>>> '/home/rpjday/oe/layers/openembedded-core/meta/classes-recipe/kernel.bbclass',
>>> lineno: 753, function: do_strip
>>>        0749:
>>>        0750:    if (extra_sections and
>>> kernel_image.find(d.getVar('KERNEL_IMAGEDEST') + '/vmlinux') != -1):
>>>        0751:        kernel_image_stripped = kernel_image + ".stripped"
>>>        0752:        shutil.copy2(kernel_image, kernel_image_stripped)
>>>    *** 0753:        oe.package.runstrip((kernel_image_stripped, 8,
>>> strip, extra_sections))
>>>        0754:        bb.debug(1, "KERNEL_IMAGE_STRIP_EXTRA_SECTIONS is
>>> set, stripping sections: " + \
>>>        0755:            extra_sections)
>>>        0756:}
>>>        0757:do_strip[dirs] = "${B}"
>>> Exception: TypeError: runstrip() missing 2 required positional
>>> arguments: 'elftype' and 'strip'
>>>
>>> ERROR: Logfile of failure stored in:
>>> /home/rpjday/oe/builds/orangepi-5-plus/build/tmp/work/orangepi_5_plus-oe-linux/linux-yocto/6.18.35+git/temp/log.do_strip.2408627
>>> ERROR: Task
>>> (/home/rpjday/oe/layers/openembedded-core/meta/recipes-kernel/linux/linux-yocto_6.18.bb:do_strip)
>>> failed with exit code '1'
>>>
>>>
>>>     all i did was add that line to my local.conf, is there something
>>> else i'm missing in order to use that feature?
>>>
>>
>> Congrats, you found a bug. I sent a patch that should fix it though I haven't
>> tested it, see
>> https://lore.kernel.org/openembedded-core/20260720-runstrip-not-tuple-arg-v1-1-e07764fe3f41@cherry.de/.
> 
>    i can report that your fix to kernel.bbclass allowed my command:
> 
>    $ bitbake -c strip linux-yocto
> 
> to complete without error. thank you kindly.
> 

Can you please answer on the OE-Core patch with

Tested-by: Robert P. J. Day <rpjday@crashcourse.ca>

:) ?

Thanks for testing and the quick feedback!
Quentin


      reply	other threads:[~2026-07-20 14:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-11 10:50 setting KERNEL_IMAGE_STRIP_EXTRA_SECTIONS blows up building linux-yocto Robert P. J. Day
2026-07-20 13:23 ` [OE-core] " Quentin Schulz
2026-07-20 13:54   ` Robert P. J. Day
2026-07-20 14:44     ` Quentin Schulz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2ea2c118-22a7-45df-859e-df0d38dbbc82@cherry.de \
    --to=quentin.schulz@cherry.de \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=rpjday@crashcourse.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox