Skip to content

Checking whether a certain CONFIG_* is set

Thomas Petazzoni buildroot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 2 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 v1 0/2] Checking whether a certain CONFIG_* is set

Dear Jan Viktorin,

Quoted 10 lines · Jan Viktorin

this short patch series introduces a way how to check whether certain CONFIG_* entries are set to an expected value in a selected .config file. When building a package that requires a certain CONFIG_* to be set (as in the case of xtables-addons), Buildroot can either force to set the config or just error out a message.

I could not find any suitable mechanism for this in Buildroot (if there is one, please give me a reference) so I propose a simple extension of KCONFIG_*_OPT util macros. It is then implemented for xtables-addons to check whether CONFIG_MODULES are set in the Linux Kernel .config.

There is some discussion already going on on this topic, around the pkg-kernel-module infrastructure. We recently committed a patch that makes the infrastructure verify that the kernel has been built with module support, and if not, bail out with a clear error message:

http://git.buildroot.net/buildroot/commit/?id=8df95d926e963601c727defeb4ab90ce2368da70

However, Peter Korsgaard raised the concern that we should instead just forcefully enable CONFIG_MODULES=y in the configuration in such a case. There has then been some discussion with Yann on how to achieve that properly. Please see the thread at
http://lists.busybox.net/pipermail/buildroot/2015-August/137511.html.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com