[LTP] [PATCH 1/1] doc/ground_rules: Add Kernel features check rules
Cyril Hrubis
chrubis@suse.cz
Thu Jan 29 09:59:19 CET 2026
Hi!
> > I wonder how about .needs_kconfigs vs. needs_drivers. Do we prefer any of these?
> > I suppose the rule could be .needs_drivers when nothing specific from module is
> > needed, .needs_kconfigs otherwise.
>
> Hmm, this looks only belongs to the second section.
> Maybe:
>
> - Tristate/module feature: If the functionality is controlled by a Kconfig of
> type tristate (`tristate
> <https://docs.kernel.org/kbuild/kconfig-language.html#menu-attributes>`_),
> it might be built as a module. Modules can be absent or unloaded
> at runtime,
> so checking the Kconfig option alone isn’t enough. Instead of
> .needs_kconfigs,
> rely on .needs_drivers or a runtime check to confirm the module is loaded.
Sounds good to me.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list