Skip to content

RFC: enable building of out-of-tree modules

Darren Hart poky 1 version In review

Get series with b4
b4 am '[email protected]'

Versions newest first

  1. v1 Latest2 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2module: build and clean hostprogs for each modulemeta/classes/module.bbclass+20 -19 replies
2/2hello-world-mod: add a module for testing module.bbclassmeta/recipes-kernel/hello-world-mod/files/COPYING meta/recipes-kernel/hello-world-mod/files/Makefile meta/recipes-kernel/hello-world-mod/files/hello_world.c +1 more+402 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] RFC: enable building of out-of-tree modules

From: Darren Hart <[email protected]>

The following patches provide a mechanism to address [BUGID #241] through two additions to module.bbclass which build and clean the hostprogs. The second patch adds an example kernel module.

When building with the hello-world-mod, the resulting rootfs is missing all the other kernel modules (/lib/modules/KERNEL_VER/extras contains hello-world.ko, but /lib/modules/KERNEL_VER/kernel is missing). The sysroots has all the modules, but the rootfs generated by the image recipe only has the hello-world module. This is the last wrinkle to iron out, any ideas on how to address this would be appreciated.

Gary, can you try the module.bbclass with your module to see if it builds successfully?

Thanks,

Darren Hart (2):
module: build and clean hostprogs for each module
hello-world-mod: add a module for testing module.bbclass

 meta/classes/module.bbclass                        |   21 ++-
 meta/recipes-kernel/hello-world-mod/files/COPYING  |  340 ++++++++++++++++++++
 meta/recipes-kernel/hello-world-mod/files/Makefile |   14 +
 .../hello-world-mod/files/hello_world.c            |   33 ++
 .../hello-world-mod/hello-world-mod.bb             |   15 +
 5 files changed, 422 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-kernel/hello-world-mod/files/COPYING
 create mode 100644 meta/recipes-kernel/hello-world-mod/files/Makefile
 create mode 100644 meta/recipes-kernel/hello-world-mod/files/hello_world.c
 create mode 100644 meta/recipes-kernel/hello-world-mod/hello-world-mod.bb