What is the source for menuconfig/guiconfig/nRF Kconfig GUI?

Hey

I'm trying to figure out what is the intetned way of using the tools for configuring a project.

We have the following config files in the following structure:

.
├── boards
│   ├── arm
│   │   ├── app_nrf5340
│   │   │   ├── Kconfig
│   │   │   ├── Kconfig.board
│   │   │   ├── Kconfig.defconfig
│   │   │   ├── app_nrf5340_cpuapp_defconfig
│   │   │   ├── app_nrf5340_cpunet_defconfig
│   │   │   ├── app_nrf5340_partition_conf.dts
│   │   │   └── app_nrf5340_shared_sram_planning_conf.dts
│   │   └── nrf5340dk_nrf5340_cpuapp.overlay
│   └── debug_tools.conf
├── Kconfig
├── Kconfig.sysbuild
├── netcore
│   ├── prj.conf
├── prj.conf
├── sysbuild
│   └── mcuboot.conf
├── sysbuild.conf
├── west.yml

Depending on what i choose in the build configuration: 

Different things happen when i open any of the config tools. 

Can anyone tell me what is the intetned behavior, and even more is it correct that on not supposed to use the save minimal config? 

When i save minimal config it seems like i'm getting a  merge of all the different config files. 

  • Peter, 

    Sorry for delayed response.

    I will need to ask about this to the VSC team, I do not know the internals of this.

    Will come back to you when I have more info. I am curious to know the behavior as well.

    When i save minimal config it seems like i'm getting a  merge of all the different config files. 

    Not sure which configs are merged, can you please be more specific on what different config files are merged, then I can convey this specific details to the VSC team.

  • Hello

    The intended behavior of menuconfig, guiconfig, and the nRF Kconfig GUI is to provide tools for configuring project settings interactively, either through text-based or graphical interfaces.

    When i save minimal config it seems like i'm getting a  merge of all the different config files. 

    Could you please answer my colleague's question? AFAIK, the 'Save minimal configuration' option should capture only your selected settings, not a merge of all available configurations.

    Kind Regards,

    Abhijith

  • Could you please answer my colleague's question? AFAIK, the 'Save minimal configuration' option should capture only your selected settings, not a merge of all available configurations.

    All of my .conf files are merged when i use the tools

  • Hello,

    As far as I know, enabling the "save minimal configuration" option should generate a minimal configuration file that includes only the differences from the default settings. Let's discuss the steps to achieve this or to reproduce the issue. I recommend starting with a clean build and ensuring that prj.conf and other .conf files contain only the settings specific to their purpose. Then, use the menuconfig or a similar tool. Open menuconfig and make your changes. After making the changes, save the minimal configuration. Now, check the defconfig file inside the build folder to see if it reflects the configuration you selected in menuconfig or guiconfig.

    Please let me know if this is not the case or if there is any confusion.

    Kind Regards,

    Abhijith

Related