aboutsummaryrefslogtreecommitdiff
path: root/common/Kconfig.boot
diff options
context:
space:
mode:
authorSimon Glass2021-09-25 19:43:39 -0600
committerTom Rini2021-10-08 15:53:27 -0400
commitb53541f7f61d506c6b19b30357f471472831e9cb (patch)
tree033136478d5985554beea24122477aae7826d88d /common/Kconfig.boot
parentf33a2c1bd0fb371511a485cac1f182ba50db51be (diff)
image: Remove some #ifdefs from image-fit and image-fit-sig
Drop the #ifdefs which are easy to remove without refactoring. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/Kconfig.boot')
-rw-r--r--common/Kconfig.boot10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/Kconfig.boot b/common/Kconfig.boot
index f23b9988521..9b84a8d005f 100644
--- a/common/Kconfig.boot
+++ b/common/Kconfig.boot
@@ -165,6 +165,16 @@ config SPL_FIT_SIGNATURE
select SPL_IMAGE_SIGN_INFO
select SPL_FIT_FULL_CHECK
+config SPL_FIT_SIGNATURE_MAX_SIZE
+ hex "Max size of signed FIT structures in SPL"
+ depends on SPL_FIT_SIGNATURE
+ default 0x10000000
+ help
+ This option sets a max size in bytes for verified FIT uImages.
+ A sane value of 256MB protects corrupted DTB structures from overlapping
+ device memory. Assure this size does not extend past expected storage
+ space.
+
config SPL_LOAD_FIT
bool "Enable SPL loading U-Boot as a FIT (basic fitImage features)"
select SPL_FIT