Kconfig
More info
- Creator
- Roman Zippel
- Released
- 2002
- Type
- Configuration language
A small declarative language for describing the thousands of build options a large C project has, how they depend on each other, and what the defaults are.
Each option is declared with config, a type (bool, tristate, int, string), help text and conditions such as depends on and select. Front ends like make menuconfig parse the files, let the user tick boxes, and write the result to .config plus a generated header, autoconf.h, where every choice becomes a CONFIG_ macro the code tests with #ifdef.
It landed in Linux 2.5.45 in autumn 2002, replacing the older CML1 after Eric S. Raymond's far more ambitious CML2 was turned down. Since then it has spread to nearly every embedded project that grew large: Buildroot, U-Boot, coreboot, ESP-IDF and Zephyr, which swapped the kernel's C tools for the Python implementation Kconfiglib. The fact that select forces symbols on without checking their own dependencies remains a reliable source of builds that configure cleanly and then fail to link.