From 77aed22b48ab789491cf96cd2ba3128124e51eee Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Mon, 29 May 2023 14:04:06 +0200 Subject: spl: spl_legacy: Add extra address checks Check whether the loaded image or entry point does not overlap SPL. Signed-off-by: Marek Vasut --- cmd/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd') 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 -- cgit v1.2.3