Kconfig Configuration

[中文]

This section introduces frequency ask questions of Armino Kconfig.

For Kconfig configuration example, please refer to Kconfig configuration example.

Kconfig Files

The Armino Kconfig organization is shown in the following diagram:

-armino/
    - components/
        - c1/
            -Kconfig
    - middleware/
        - soc/
            - bk7258/
                -bk7258.defconfig
    - projects/
        - my_project/
            -config/
                -bk7258/config
            -Kconfig.projbuild
            - main/
                -Kconfig
            - components/
                - c2/
                    -Kconfig

These files can be grouped into two categories:

  • Configuration definition file:

    • Kconfig - usually defined in components.

    • Kconfig.projbuild - defined in the component or project directory.

  • Configuration modification file:

    • bk7258.defconfig - Default configuration for the bk7258 provided by Armino.

    • bk7258.config - bk7258 proprietary configuration in the project.

Important

The configuration items can only be modified through configuration modification files after they are defined in definition files. If you try to modify a configuration that is not defined, no definitions will be generated in sdkconfig.h.

Note

All the items defined in Kconfig.projbuild will be show in the top menu of menuconfig. BK7258 does not support menuconfig, so Kconfig.projbuild works same as Kconfig.

In the Armino project, the priority of Kconfig configuration is:

bk7258.config >  bk7258.defconfig > configuration definition files

Configuration Dependencies

Interdependent configuration items are automatically changed to correct values, only when using menuconfig configuration. Armino does not support menuconfig, so when changing a configuration via configuration modification file, the configurations that depend on this configuration will not be changed automatically.

Important

All configuration items in Armino need to be specified explicitly, or use the default value.

Using Kconfig in CMakeLists.txt

The configuration items defined in Kconfig can be directly used in CMakeLists.txt, but you should NOT put armino_component_register() in any configuration condition, refer to Disabling components via Kconfig.