Skip to content

[FR] Use KConfig as configuration source #27917

@gudvinr

Description

@gudvinr

Is your feature request related to a problem? Please describe.

Currently, editing configuration requires manual editing of C header files or using somewhat cumbersome ABM (which on itself requires to be familiar with vscode).

Header files also quite bad at being DSL for configuration as you can't really limit values or write somewhat decent docs alongside with configuration option.

Are you looking for hardware support?

No response

Describe the feature you want

Linux kernel uses KConfig for this exact purpose: to edit build configuration.

Some companies that specialize in embedded device development also use KConfig: nordic semi, espressif, zephyr.

  • Its declarative nature makes it easier to parse and produce human-readable docs
  • You can define boundaries and value types
  • There are existing GUI tools for using KConfig
  • KConfig values are translated to C headers so there's (likely) not that much work to be done to adapt it

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions