Shared configuration in case of multiimage build

Hello !

I have multi image build and in app_core Kconfig some own definitions like NET_L2_MY_VALUE =1.

Is any way to define if this value can be visible to network core image ? Or how to share own config value between core and network images ?

Regards,

Eugene

Parents
  • Hi Eugene,

    You can create an overlay file for them, then load the same overlay file for different projects to make sure they use the same common configurations.

    Best regards,

    Charlie

  • Hi Charlie !

    https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html

    But all of those config lines need to be provisioned in prj.conf files and visible in menuconfig and only after that is possible to set those via overlay.

    Now I'm able to have 4 independent menuconfigs;

    west build -t menuconfig

    west build -t mcuboot_menuconfig

    west build -t cpunet_menuconfig

    $ west build -t b0n_menuconfig
    -- west build: running target b0n_menuconfig
    ninja: error: unknown target 'b0n_menuconfig'

    network bootloader dosn't work , may be I use wrong menuconfig line ?

    and by this line :

    -Dchildimageone_OVERLAY_CONFIG=extrafragment.conf[...]

    I can add some common definitions for all chields if need.

    But how to provisioned those config lines for app and network images ?

    Include rsource "Kconfig.mydriver" to both KConfigs ?
    In this cases they can be provisioned and by overlay have common definitions for both cores ?

    Regards,
    Eugene


Reply
  • Hi Charlie !

    https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html

    But all of those config lines need to be provisioned in prj.conf files and visible in menuconfig and only after that is possible to set those via overlay.

    Now I'm able to have 4 independent menuconfigs;

    west build -t menuconfig

    west build -t mcuboot_menuconfig

    west build -t cpunet_menuconfig

    $ west build -t b0n_menuconfig
    -- west build: running target b0n_menuconfig
    ninja: error: unknown target 'b0n_menuconfig'

    network bootloader dosn't work , may be I use wrong menuconfig line ?

    and by this line :

    -Dchildimageone_OVERLAY_CONFIG=extrafragment.conf[...]

    I can add some common definitions for all chields if need.

    But how to provisioned those config lines for app and network images ?

    Include rsource "Kconfig.mydriver" to both KConfigs ?
    In this cases they can be provisioned and by overlay have common definitions for both cores ?

    Regards,
    Eugene


Children
No Data
Related