From: "Patrick Huesmann" <patrick.huesmann@desy.de>
To: yocto@lists.yoctoproject.org
Subject: Symbol dependencies between out-of-tree kernel modules
Date: Tue, 19 Mar 2024 10:51:30 -0700 [thread overview]
Message-ID: <dQfn.1710870690202484065.WZWl@lists.yoctoproject.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1037 bytes --]
Hi,
I'm trying to write recipes for two out-of-tree kernel modules, one ("u-dma-buf-mgr") requires the Module.symvers of the other ("u-dma-buf").
module.bbclass already has some kind of inter-module dependency detection [0], but I can't use it b/c it assumes that the Module.symvers is installed in the sysroot under "${STAGING_INCDIR}/kernel-module-u-dma-buf/Module.symvers", while it is installed under "${includedir}/${BPN}/Module.symvers" [1] where BPN is "u-dma-buf" in my case, not "kernel-module-u-dma-buf".
I worked around this by overriding KBUILD_EXTRA_SYMBOLS in the depending module recipe:
d.setVar('KBUILD_EXTRA_SYMBOLS', os.path.join(d.getVar('RECIPE_SYSROOT'), 'usr', 'include', 'udmabuf', 'Module.symvers'))
feels hackish, is there a better way?
[0] https://github.com/yoctoproject/poky/blob/3e95f268ce04b49ba6731fd4bbc53b1693c21963/meta/classes-recipe/module.bbclass#L14-L21
[1] https://github.com/yoctoproject/poky/blob/3e95f268ce04b49ba6731fd4bbc53b1693c21963/meta/classes-recipe/module.bbclass#L67
[-- Attachment #2: Type: text/html, Size: 1430 bytes --]
reply other threads:[~2024-03-19 17:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=dQfn.1710870690202484065.WZWl@lists.yoctoproject.org \
--to=patrick.huesmann@desy.de \
--cc=yocto@lists.yoctoproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).