summaryrefslogtreecommitdiff
path: root/common/Kconfig
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-01-10 11:19:36 -0500
committerTom Rini <trini@konsulko.com>2023-01-20 12:27:06 -0500
commit2d1e2e5717669d91f527866465da81e0f9e65c32 (patch)
tree8f7c777e413f5b9284345ea5756d323d67043501 /common/Kconfig
parent6e73ab32d826d4baca78872dbbaabcf511728bed (diff)
downloadu-boot-2d1e2e5717669d91f527866465da81e0f9e65c32.tar.gz
u-boot-2d1e2e5717669d91f527866465da81e0f9e65c32.tar.bz2
u-boot-2d1e2e5717669d91f527866465da81e0f9e65c32.zip
common/update: Finish Kconfig migration
We can enforce the dependencies of this module via Kconfig now, so do so rather than with #error statements. Further, we can ensure that all required values are set to their defaults in Kconfig, and in fact already do so, so remove the tests here. The exception is CONFIG_UPDATE_LOAD_ADDR which needed to be migrated to Kconfig in the first place. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig16
1 files changed, 12 insertions, 4 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 1c9f4774ba..e3a5e1be1e 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -874,7 +874,7 @@ config UPDATE_COMMON
config UPDATE_TFTP
bool "Auto-update using fitImage via TFTP"
- depends on FIT
+ depends on FIT && OF_LIBFDT && !MTD_NOR_FLASH
select UPDATE_COMMON
help
This option allows performing update of NOR with data in fitImage
@@ -883,16 +883,24 @@ config UPDATE_TFTP
config UPDATE_TFTP_CNT_MAX
int "The number of connection retries during auto-update"
default 0
- depends on UPDATE_TFTP
+ depends on UPDATE_TFTP || DFU_TFTP
config UPDATE_TFTP_MSEC_MAX
int "Delay in mSec to wait for the TFTP server during auto-update"
default 100
- depends on UPDATE_TFTP
+ depends on UPDATE_TFTP || DFU_TFTP
+
+config UPDATE_LOAD_ADDR
+ hex "Address in memory to load the update to"
+ depends on UPDATE_TFTP || DFU_TFTP
+ default 0x100000
+ help
+ This option defines the location in memory to be used to load the
+ update to, if 'loadaddr' is not set in the environment.
config UPDATE_FIT
bool "Firmware update using fitImage"
- depends on FIT
+ depends on FIT && OF_LIBFDT
depends on DFU
select UPDATE_COMMON
help