All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: yocto@lists.yoctoproject.org, dchvs11@gmail.com
Subject: Re: [yocto] [linux-yocto][poky][master][PATCH] module.bbclass: enhance KBUILD_EXTRA_SYMBOLS retrieval
Date: Fri, 10 Jan 2025 08:43:11 +0100	[thread overview]
Message-ID: <2025011007431120b9a500@mail.local> (raw)
In-Reply-To: <20250110030847.4839-1-dchvs11@gmail.com>

Hello,

This should be sent to the oe-core mailing list, see README.OE-Core.md.

On 10/01/2025 03:08:47+0000, Daniel via lists.yoctoproject.org wrote:
> Kernel packages may not always use the kernel-module- prefix. However,
> those listed in DEPENDS will consistently add Module.symvers to the
> STAGING_INCDIR.
> 
> Signed-off-by: Daniel Chaves <dchvs11@gmail.com>
> ---
>  meta/classes-recipe/module.bbclass | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/meta/classes-recipe/module.bbclass b/meta/classes-recipe/module.bbclass
> index f2f0b25a2d..0f16522866 100644
> --- a/meta/classes-recipe/module.bbclass
> +++ b/meta/classes-recipe/module.bbclass
> @@ -11,13 +11,13 @@ EXTRA_OEMAKE += "KERNEL_SRC=${STAGING_KERNEL_DIR}"
>  MODULES_INSTALL_TARGET ?= "modules_install"
>  MODULES_MODULE_SYMVERS_LOCATION ?= ""
>  
> -python __anonymous () {
> -    depends = d.getVar('DEPENDS')
> -    extra_symbols = []
> -    for dep in depends.split():
> -        if dep.startswith("kernel-module-"):
> -            extra_symbols.append("${STAGING_INCDIR}/" + dep + "/Module.symvers")
> -    d.setVar('KBUILD_EXTRA_SYMBOLS', " ".join(extra_symbols))
> +python () {

Why did you remove __anonymous?

> +    import glob
> +
> +    extra_symbols = glob.glob(d.getVar('STAGING_INCDIR') + "/*/Module.symvers")
> +
> +    d.setVar('KBUILD_EXTRA_SYMBOLS', d.getVar('KBUILD_EXTRA_SYMBOLS') + " " + \
> +        " ".join(extra_symbols))
>  }
>  
>  python do_package:prepend () {
> -- 
> 2.40.1
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#64525): https://lists.yoctoproject.org/g/yocto/message/64525
> Mute This Topic: https://lists.yoctoproject.org/mt/110529511/3617179
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


  reply	other threads:[~2025-01-10  7:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-10  3:08 [linux-yocto][poky][master][PATCH] module.bbclass: enhance KBUILD_EXTRA_SYMBOLS retrieval Daniel Chaves
2025-01-10  7:43 ` Alexandre Belloni [this message]
2025-01-10 14:22 ` [yocto] " Richard Purdie

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=2025011007431120b9a500@mail.local \
    --to=alexandre.belloni@bootlin.com \
    --cc=dchvs11@gmail.com \
    --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 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.