Moving toggled settings to Kconfig for ota updates.
This commit is contained in:
parent
4bb9a97daa
commit
7dcd4bfe53
2 changed files with 36 additions and 12 deletions
|
|
@ -42,3 +42,39 @@ endchoice # PRST_ZB_FACTORY_RESET_METHOD
|
|||
config PRST_ZB_RESTART_WATCHDOG_TIMEOUT_SEC
|
||||
int "Duration after the device will restart the rejoin procedure if a network has not been successfully joined."
|
||||
default 3600
|
||||
|
||||
if ZIGBEE_FOTA
|
||||
|
||||
config ZIGBEE_FOTA_ENDPOINT
|
||||
int "Endpoint number for ota zigbee endpoint. Must not be used by another application."
|
||||
default 5
|
||||
|
||||
config ZIGBEE_FOTA_COMMENT
|
||||
string
|
||||
default "b-parasite"
|
||||
|
||||
config IMG_MANAGER
|
||||
bool "Ensure an MCUboot-compatible binary for ota update is generated."
|
||||
default y
|
||||
|
||||
config STREAM_FLASH
|
||||
bool
|
||||
default y
|
||||
|
||||
config DFU_TARGET_MCUBOOT
|
||||
bool
|
||||
default y
|
||||
|
||||
config IMG_ERASE_PROGRESSIVELY
|
||||
bool
|
||||
default y
|
||||
|
||||
config ZIGBEE_FOTA_PROGRESS_EVT
|
||||
bool
|
||||
default y
|
||||
|
||||
config NRF_802154_RX_BUFFERS
|
||||
int "Increase the number of RX buffers for ota functionality."
|
||||
default 32
|
||||
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -74,16 +74,4 @@ CONFIG_ASSERT=y
|
|||
|
||||
# OTA update configuration. This is based on the zigbee light switch example from the nrf-connect toolkit.
|
||||
CONFIG_ZIGBEE_FOTA=n
|
||||
CONFIG_ZIGBEE_FOTA_ENDPOINT=5
|
||||
CONFIG_MCUBOOT_IMGTOOL_SIGN_VERSION="1.0.0" # Increase this version for generating an update for the devices.
|
||||
CONFIG_ZIGBEE_FOTA_COMMENT="b_parasite"
|
||||
|
||||
# Ensure an MCUboot-compatible binary for ota update is generated.
|
||||
CONFIG_IMG_MANAGER=y
|
||||
CONFIG_STREAM_FLASH=y
|
||||
CONFIG_DFU_TARGET_MCUBOOT=y
|
||||
CONFIG_IMG_ERASE_PROGRESSIVELY=y
|
||||
CONFIG_ZIGBEE_FOTA_PROGRESS_EVT=y
|
||||
|
||||
# Increase the number of RX buffers, as suggested by zigbee ota sample.
|
||||
CONFIG_NRF_802154_RX_BUFFERS=32
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue