From: "Antonin Godard" <antonin.godard@bootlin.com>
To: "Robert P. J. Day" <rpjday@crashcourse.ca>,
"YP docs mailing list" <docs@lists.yoctoproject.org>
Subject: Re: [docs] [PATCH] ref-manual: add "KERNEL_IMAGE_STRIP_EXTRA_SECTIONS" to variables
Date: Fri, 10 Jul 2026 10:11:44 +0200 [thread overview]
Message-ID: <DJUQMXDTBWXD.P3TB5BYLA1IK@bootlin.com> (raw)
In-Reply-To: <bbb920f3-06ee-356c-1641-e9d4dda960d8@crashcourse.ca>
Hi,
On Thu Jul 9, 2026 at 10:48 AM CEST, Robert P. J. Day wrote:
>
> Add this variable to the variables glossary, and add links to it and
> back to the do_strip() task for completeness.
>
> Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
>
> ---
>
> diff --git a/documentation/ref-manual/tasks.rst b/documentation/ref-manual/tasks.rst
> index e1db2d5ed..ea0899f53 100644
> --- a/documentation/ref-manual/tasks.rst
> +++ b/documentation/ref-manual/tasks.rst
> @@ -848,7 +848,7 @@ the kernel build produces a warning to that effect.
> ``do_strip``
> ------------
>
> -If ``KERNEL_IMAGE_STRIP_EXTRA_SECTIONS`` is defined, this task strips
> +If :term:`KERNEL_IMAGE_STRIP_EXTRA_SECTIONS` is defined, this task strips
> the sections named in that variable from ``vmlinux``. This stripping is
> typically used to remove nonessential sections such as ``.comment``
> sections from a size-sensitive configuration.
> diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
> index c92b195ff..1629df99f 100644
> --- a/documentation/ref-manual/variables.rst
> +++ b/documentation/ref-manual/variables.rst
> @@ -5623,6 +5623,11 @@ system and gives an overview of their function and contents.
>
> See :term:`KERNEL_ARTIFACT_NAME` for additional information.
>
> + :term:`KERNEL_IMAGE_STRIP_EXTRA_SECTIONS`
> + If this variable is set, it should contain the sections to be
> + stripped from the ``vmlinux`` image by the kernel-related
> + :ref:`ref-tasks-strip` task.
An example would be nice:
"""
For example::
KERNEL_IMAGE_STRIP_EXTRA_SECTIONS = ".comment"
"""
Thanks,
Antonin
prev parent reply other threads:[~2026-07-10 8:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-09 8:48 [PATCH] ref-manual: add "KERNEL_IMAGE_STRIP_EXTRA_SECTIONS" to variables Robert P. J. Day
2026-07-10 8:11 ` Antonin Godard [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=DJUQMXDTBWXD.P3TB5BYLA1IK@bootlin.com \
--to=antonin.godard@bootlin.com \
--cc=docs@lists.yoctoproject.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