2023-08-30 16:21:18 +08:00
|
|
|
# Kconfig file for package ota_downloader
|
2023-11-09 20:19:51 +08:00
|
|
|
menuconfig LPKG_USING_OTA_DOWNLOADER
|
2023-08-30 16:21:18 +08:00
|
|
|
bool "ota_downloader: The firmware downloader which using on RT-Thread OTA component"
|
|
|
|
|
default n
|
|
|
|
|
|
2023-11-09 20:19:51 +08:00
|
|
|
if LPKG_USING_OTA_DOWNLOADER
|
2023-08-30 16:21:18 +08:00
|
|
|
|
|
|
|
|
config PKG_OTA_DOWNLOADER_PATH
|
|
|
|
|
string
|
2023-11-09 20:19:51 +08:00
|
|
|
default "/packages/third-party/ota_downloader"
|
2023-08-30 16:21:18 +08:00
|
|
|
|
|
|
|
|
config OTA_DOWNLOADER_DEBUG
|
|
|
|
|
bool "Enable OTA downloader debug"
|
|
|
|
|
default n
|
|
|
|
|
|
2023-11-09 20:19:51 +08:00
|
|
|
config LPKG_USING_HTTP_OTA
|
2023-08-30 16:21:18 +08:00
|
|
|
bool "Enable HTTP/HTTPS OTA"
|
2023-11-09 20:19:51 +08:00
|
|
|
select LPKG_USING_WEBCLIENT
|
|
|
|
|
select AIC_ENV_INTERFACE
|
|
|
|
|
select AIC_AB_SYSTEM_INTERFACE
|
2023-08-30 16:21:18 +08:00
|
|
|
default n
|
2023-11-09 20:19:51 +08:00
|
|
|
if LPKG_USING_HTTP_OTA
|
2023-08-30 16:21:18 +08:00
|
|
|
config PKG_HTTP_OTA_URL
|
|
|
|
|
string "HTTP OTA Download default URL"
|
2023-11-09 20:19:51 +08:00
|
|
|
default "http://192.168.31.22/ota.cpio"
|
2023-08-30 16:21:18 +08:00
|
|
|
endif
|
|
|
|
|
|
2023-11-09 20:19:51 +08:00
|
|
|
config LPKG_USING_YMODEM_OTA
|
2023-08-30 16:21:18 +08:00
|
|
|
bool "Enable Ymodem OTA"
|
|
|
|
|
select RT_USING_RYM
|
|
|
|
|
default y
|
|
|
|
|
|
|
|
|
|
choice
|
|
|
|
|
prompt "Version"
|
2023-11-09 20:19:51 +08:00
|
|
|
default LPKG_USING_OTA_DOWNLOADER_LATEST_VERSION
|
2023-08-30 16:21:18 +08:00
|
|
|
help
|
|
|
|
|
Select the package version
|
|
|
|
|
|
2023-11-09 20:19:51 +08:00
|
|
|
config LPKG_USING_OTA_DOWNLOADER_V100
|
2023-08-30 16:21:18 +08:00
|
|
|
bool "v1.0.0"
|
|
|
|
|
|
2023-11-09 20:19:51 +08:00
|
|
|
config LPKG_USING_OTA_DOWNLOADER_LATEST_VERSION
|
2023-08-30 16:21:18 +08:00
|
|
|
bool "latest"
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
|
|
config PKG_OTA_DOWNLOADER_VER
|
|
|
|
|
string
|
2023-11-09 20:19:51 +08:00
|
|
|
default "v1.0.0" if LPKG_USING_OTA_DOWNLOADER_V100
|
|
|
|
|
default "latest" if LPKG_USING_OTA_DOWNLOADER_LATEST_VERSION
|
2023-08-30 16:21:18 +08:00
|
|
|
|
|
|
|
|
endif
|