summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2023-05-29 14:04:06 +0200
committerTom Rini <[email protected]>2023-06-24 13:47:00 -0400
commit77aed22b48ab789491cf96cd2ba3128124e51eee (patch)
treeff2409d6742312abfeb818ac0b81b582d012bca8 /cmd
parent68dcbdd594d4172632ca6b122c56ec87ca551cf4 (diff)
spl: spl_legacy: Add extra address checks
Check whether the loaded image or entry point does not overlap SPL. Signed-off-by: Marek Vasut <[email protected]>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 365371fb511..02e54f1e50f 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -362,7 +362,8 @@ config BOOTM_VXWORKS
config SYS_BOOTM_LEN
hex "Maximum size of a decompresed OS image"
- depends on CMD_BOOTM || CMD_BOOTI || CMD_BOOTZ
+ depends on CMD_BOOTM || CMD_BOOTI || CMD_BOOTZ || \
+ LEGACY_IMAGE_FORMAT || SPL_LEGACY_IMAGE_FORMAT
default 0x4000000 if PPC || ARM64
default 0x1000000 if X86 || ARCH_MX6 || ARCH_MX7
default 0x800000