Skip to content

linux: simplify requesting kernel modules (branch yem/needs-modules)

Peter Korsgaard buildroot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 7 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 7 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/7] linux: simplify requesting kernel modules (branch yem/needs-modules)
Quoted 22 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Hello All!
This series is a proposal to make it easier and mor esimple for packages to request that the Linux kernel be built with support for loadable modules.

This work was prompted by a comment from Thomas on IRC, who did not like much that packages had to write things like:

ifeq ($(BR2_PACKAGE_FOO),y)
LINUX_NEEDS_MODULES = y
endif

The LINUX_NEEDS_MODULES variable was introduced as a pure make variable, because we needed it to implement the kernel-module infra. So, we just turned to using it even from packages that do not use that infra.

However, that's indeed quite cumbersome that packages do have to write this code in their .mk files, when we already have the logic in two places:

Quoted 8 lines

- in the Config.in, since that's handled natively by Kconfig,
- in the generic package infra, in which we already have that condition to add packages to the list.

So, this series introduce BR2_LINUX_NEEDS_MODULES, the Kconfig counter-part of LINUX_NEEDS_MODULES. LINUX_NEEDS_MODULES still gets set by the kernel-module infra when the package is enabled, but is also set when BR2_LINUX_NEEDS_MODULES is.

Committed series, thanks.

Signature · 1 line
Bye, Peter Korsgaard