* [backport] [PATCH] module.bbclass: add KBUILD_EXTRA_SYMBOLS to install
@ 2025-05-12 13:49 Alon Bar-Lev
2025-05-12 20:13 ` [OE-core] " Khem Raj
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Alon Bar-Lev @ 2025-05-12 13:49 UTC (permalink / raw)
To: openembedded-core; +Cc: Richard Purdie, Steve Sakoman
[-- Attachment #1: Type: text/plain, Size: 455 bytes --]
Hello,
Please consider backporting "module.bbclass: add KBUILD_EXTRA_SYMBOLS to
install"[1] trivial patch to Scarthgap and Walnascar, it will allow
building kernel modules with dependencies without linkage breakage also in
stable branches.
Master commit hash: 483c6067eb1ee9562c0b21cea0d375c7f521bede
Into [at least]: scarthgap, walnascar
Regards,
Alon Bar-Lev
[1]
https://git.yoctoproject.org/poky/commit/?id=483c6067eb1ee9562c0b21cea0d375c7f521bede
[-- Attachment #2: Type: text/html, Size: 744 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [OE-core] [backport] [PATCH] module.bbclass: add KBUILD_EXTRA_SYMBOLS to install
2025-05-12 13:49 [backport] [PATCH] module.bbclass: add KBUILD_EXTRA_SYMBOLS to install Alon Bar-Lev
@ 2025-05-12 20:13 ` Khem Raj
2025-05-13 16:03 ` Alon Bar-Lev
2025-05-18 9:36 ` [scarthgap][PATCH] " Alon Bar-Lev
2025-05-18 9:38 ` [walnascar][PATCH] " Alon Bar-Lev
2 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2025-05-12 20:13 UTC (permalink / raw)
To: alon.barlev; +Cc: openembedded-core, Richard Purdie, Steve Sakoman
On Mon, May 12, 2025 at 6:49 AM Alon Bar-Lev via
lists.openembedded.org <alon.barlev=gmail.com@lists.openembedded.org>
wrote:
>
> Hello,
>
> Please consider backporting "module.bbclass: add KBUILD_EXTRA_SYMBOLS to install"[1] trivial patch to Scarthgap and Walnascar, it will allow building kernel modules with dependencies without linkage breakage also in stable branches.
>
> Master commit hash: 483c6067eb1ee9562c0b21cea0d375c7f521bede
> Into [at least]: scarthgap, walnascar
It will be faster if you can send the backported patches to the
mailing list after testing them out on the releases you propose them
for prefixed in the subject line
>
> Regards,
> Alon Bar-Lev
>
> [1] https://git.yoctoproject.org/poky/commit/?id=483c6067eb1ee9562c0b21cea0d375c7f521bede
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#216370): https://lists.openembedded.org/g/openembedded-core/message/216370
> Mute This Topic: https://lists.openembedded.org/mt/113070483/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OE-core] [backport] [PATCH] module.bbclass: add KBUILD_EXTRA_SYMBOLS to install
2025-05-12 20:13 ` [OE-core] " Khem Raj
@ 2025-05-13 16:03 ` Alon Bar-Lev
0 siblings, 0 replies; 5+ messages in thread
From: Alon Bar-Lev @ 2025-05-13 16:03 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-core, Richard Purdie, Steve Sakoman
Hello Khem,
On Mon, 12 May 2025 at 23:13, Khem Raj <raj.khem@gmail.com> wrote:
>
> On Mon, May 12, 2025 at 6:49 AM Alon Bar-Lev via
> lists.openembedded.org <alon.barlev=gmail.com@lists.openembedded.org>
> wrote:
> >
> > Hello,
> >
> > Please consider backporting "module.bbclass: add KBUILD_EXTRA_SYMBOLS to install"[1] trivial patch to Scarthgap and Walnascar, it will allow building kernel modules with dependencies without linkage breakage also in stable branches.
> >
> > Master commit hash: 483c6067eb1ee9562c0b21cea0d375c7f521bede
> > Into [at least]: scarthgap, walnascar
>
> It will be faster if you can send the backported patches to the
> mailing list after testing them out on the releases you propose them
> for prefixed in the subject line
The patch cleanly applies (cherry-picked) to both scarthgap, walnascar
and tested.
Regards,
Alon
^ permalink raw reply [flat|nested] 5+ messages in thread
* [scarthgap][PATCH] module.bbclass: add KBUILD_EXTRA_SYMBOLS to install
2025-05-12 13:49 [backport] [PATCH] module.bbclass: add KBUILD_EXTRA_SYMBOLS to install Alon Bar-Lev
2025-05-12 20:13 ` [OE-core] " Khem Raj
@ 2025-05-18 9:36 ` Alon Bar-Lev
2025-05-18 9:38 ` [walnascar][PATCH] " Alon Bar-Lev
2 siblings, 0 replies; 5+ messages in thread
From: Alon Bar-Lev @ 2025-05-18 9:36 UTC (permalink / raw)
To: openembedded-core
Cc: steve, Alon Bar-Lev, Mathieu Dubois-Briand, Richard Purdie
Symbols are used during install as well, adding KBUILD_EXTRA_SYMBOLS enables
successful installation.
| DEBUG: Executing shell function do_install
| NOTE: make -j 22 KERNEL_SRC=xxx/kernel-source -C xxx/drivers
KDIR=xxx/kernel-source DEPMOD=echo
MODLIB=xxx/image/lib/modules/6.6.75-yocto-standard-00189-g530c419bc9db
INSTALL_FW_PATH=xxx/image/lib/firmware CC=aarch64-poky-linux-gcc
-fuse-ld=bfd -fcanon-prefix-map LD=aarch64-poky-linux-ld.bfd
OBJCOPY=aarch64-poky-linux-objcopy STRIP=aarch64-poky-linux-strip
O=xxx/kernel-build-artifacts modules_install
| make: Entering directory 'xxx/drivers'
| make -C xxx/kernel-source M=xxx/drivers modules
| make[1]: Entering directory 'xxx/kernel-source'
| make[2]: Entering directory 'xxx/kernel-build-artifacts'
| MODPOST xxx/drivers/Module.symvers
| ERROR: modpost: "xxx" [xxx/xxx.ko] undefined!
(From OE-Core rev: 0ef80eeda967a9e04ff91c3583aabbc35c9868e8)
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/classes-recipe/module.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes-recipe/module.bbclass b/meta/classes-recipe/module.bbclass
index f2f0b25a2d..4948e995c5 100644
--- a/meta/classes-recipe/module.bbclass
+++ b/meta/classes-recipe/module.bbclass
@@ -65,6 +65,7 @@ module_do_install() {
CC="${KERNEL_CC}" LD="${KERNEL_LD}" OBJCOPY="${KERNEL_OBJCOPY}" \
STRIP="${KERNEL_STRIP}" \
O=${STAGING_KERNEL_BUILDDIR} \
+ KBUILD_EXTRA_SYMBOLS="${KBUILD_EXTRA_SYMBOLS}" \
${MODULES_INSTALL_TARGET}
if [ ! -e "${B}/${MODULES_MODULE_SYMVERS_LOCATION}/Module.symvers" ] ; then
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* [walnascar][PATCH] module.bbclass: add KBUILD_EXTRA_SYMBOLS to install
2025-05-12 13:49 [backport] [PATCH] module.bbclass: add KBUILD_EXTRA_SYMBOLS to install Alon Bar-Lev
2025-05-12 20:13 ` [OE-core] " Khem Raj
2025-05-18 9:36 ` [scarthgap][PATCH] " Alon Bar-Lev
@ 2025-05-18 9:38 ` Alon Bar-Lev
2 siblings, 0 replies; 5+ messages in thread
From: Alon Bar-Lev @ 2025-05-18 9:38 UTC (permalink / raw)
To: openembedded-core; +Cc: richard.purdie, Alon Bar-Lev, Mathieu Dubois-Briand
Symbols are used during install as well, adding KBUILD_EXTRA_SYMBOLS enables
successful installation.
| DEBUG: Executing shell function do_install
| NOTE: make -j 22 KERNEL_SRC=xxx/kernel-source -C xxx/drivers
KDIR=xxx/kernel-source DEPMOD=echo
MODLIB=xxx/image/lib/modules/6.6.75-yocto-standard-00189-g530c419bc9db
INSTALL_FW_PATH=xxx/image/lib/firmware CC=aarch64-poky-linux-gcc
-fuse-ld=bfd -fcanon-prefix-map LD=aarch64-poky-linux-ld.bfd
OBJCOPY=aarch64-poky-linux-objcopy STRIP=aarch64-poky-linux-strip
O=xxx/kernel-build-artifacts modules_install
| make: Entering directory 'xxx/drivers'
| make -C xxx/kernel-source M=xxx/drivers modules
| make[1]: Entering directory 'xxx/kernel-source'
| make[2]: Entering directory 'xxx/kernel-build-artifacts'
| MODPOST xxx/drivers/Module.symvers
| ERROR: modpost: "xxx" [xxx/xxx.ko] undefined!
(From OE-Core rev: 0ef80eeda967a9e04ff91c3583aabbc35c9868e8)
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/classes-recipe/module.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes-recipe/module.bbclass b/meta/classes-recipe/module.bbclass
index f2f0b25a2d..4948e995c5 100644
--- a/meta/classes-recipe/module.bbclass
+++ b/meta/classes-recipe/module.bbclass
@@ -65,6 +65,7 @@ module_do_install() {
CC="${KERNEL_CC}" LD="${KERNEL_LD}" OBJCOPY="${KERNEL_OBJCOPY}" \
STRIP="${KERNEL_STRIP}" \
O=${STAGING_KERNEL_BUILDDIR} \
+ KBUILD_EXTRA_SYMBOLS="${KBUILD_EXTRA_SYMBOLS}" \
${MODULES_INSTALL_TARGET}
if [ ! -e "${B}/${MODULES_MODULE_SYMVERS_LOCATION}/Module.symvers" ] ; then
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-05-18 9:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-12 13:49 [backport] [PATCH] module.bbclass: add KBUILD_EXTRA_SYMBOLS to install Alon Bar-Lev
2025-05-12 20:13 ` [OE-core] " Khem Raj
2025-05-13 16:03 ` Alon Bar-Lev
2025-05-18 9:36 ` [scarthgap][PATCH] " Alon Bar-Lev
2025-05-18 9:38 ` [walnascar][PATCH] " Alon Bar-Lev
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.