zephyr: Add a bool Kconfig option for swap move
The Kconfig system used by Zephyr does not allow the defaults for choice options to be overridden. To compensate for this, create a new boolean config option that will determine what the default is for the boot mode.
This allows the kconfig override file for various Zephyr boards to change the default to swap move.
Signed-off-by: David Brown [email protected]
Making this a draft for additional integration testing with Zephyr.
I think this should be benign until other changes are made in Zephyr, so it'd be nice to get this in, so we can work toward getting Zephyr transitioned to using it.
The Kconfig system used by Zephyr does not allow the defaults for choice options to be overridden.
For named choice (like that one you modified) you can modify it using additional Kconfig.
An example of this https://github.com/nrfconnect/sdk-nrf/blob/main/drivers/mpsl/flash_sync/Kconfig#L9, choice SOC_FLASH_NRF_RADIO_SYNC_CHOICE is originated from zephyr.
Although override a choice might be unproductive for this particular need.
For named choice (like that one you modified) you can modify it using additional Kconfig.
I'd be open to suggestions on how to make this work, but what you've suggested definitely doesn't work when used in a Kconfig.defconfig file. It is stated in the Kconfig documentation that this is a limitation.