From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: "mark.yang" <mark.yang@lge.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] kernel-module-split: fix re-signing of modules built in a subdirectory
Date: Thu, 26 Nov 2026 21:05:24 -0800 (PST) [thread overview]
Message-ID: <6b090f94.7d406e04.569ca.c735@mx.google.com> (raw)
In-Reply-To: <20261125005619.45574-1-mark.yang@lge.com>
On Tue, Nov 25, 2026 at 9:56 AM mark.yang via openembedded-core
<mark.yang=lge.com@lists.openembedded.org> wrote:
>
> Use MODULES_MODULE_SYMVERS_LOCATION, which module.bbclass already uses
> to find Module.symvers in the same directory. modules_sign then signs
> the modules:
Thanks for the detailed commit message, the reproducer and logs made
this easy to follow.
Using MODULES_MODULE_SYMVERS_LOCATION makes sense to me, it's the
parameterisation that RP mentioned when get_ext_mod was dropped, and
module.bbclass already looks for Module.symvers in that same spot.
> - ${@'M=%s' % '${S}' if not "virtual/kernel" in d.getVar('PROVIDES') else ''} \
> + ${@'M=${B}/%s' % (d.getVar('MODULES_MODULE_SYMVERS_LOCATION') or '') if not "virtual/kernel" in d.getVar('PROVIDES') else ''} \
The expression is more complicated than it needs to be, though. (At
least in my reading of it). It nests the conditional, a % format and
a getVar with an or '' guard.
I assume the getVar/or '' is there because kernel.bbclass never sets
MODULES_MODULE_SYMVERS_LOCATION, and an unset ${VAR} inside ${@...}
stops bitbake from running the python at all. If you give it a default
in kernel-module-split.bbclass:
MODULES_MODULE_SYMVERS_LOCATION ?= ""
then it is always set (module.bbclass inherits kernel-module-split,
so its ?= "" becomes redundant), and the call site can just expand
it, the same way it does ${S} today:
${@'M=${B}/${MODULES_MODULE_SYMVERS_LOCATION}' if not "virtual/kernel" in d.getVar('PROVIDES') else ''} \
Can you also mention the ${S} -> ${B} change in the commit message ?
For most module recipes B == S so nothing changes, but where they
differ (externalsrc without EXTERNALSRC_BUILD, etc) we now point at
${B}, which is where Kbuild ran and modules.order lives. That's the
right place, but it is a behaviour change and should be called out.
With those in a v2, I'm happy to ack it.
Bruce
prev parent reply other threads:[~2026-11-27 5:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 0:56 [PATCH] kernel-module-split: fix re-signing of modules built in a subdirectory mark.yang
2026-11-27 5:05 ` Bruce Ashfield [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=6b090f94.7d406e04.569ca.c735@mx.google.com \
--to=bruce.ashfield@gmail.com \
--cc=mark.yang@lge.com \
--cc=openembedded-core@lists.openembedded.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.