summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2016-09-16 10:33:20 +0200
committerKlaus Goger <klaus.goger@theobroma-systems.com>2016-09-18 20:22:05 +0200
commit77c1954572cf9a21a5b5efebb570f22a36fbad7f (patch)
tree8dbe97258182b47449146c2870b75d7aead7fe60 /Kconfig
parentc7f0d108cc276031ba9437537dd89dc65c476345 (diff)
spl: Provide a FIT-only policy via SPL_LOAD_FIT_ONLY
When probing multiple interfaces (according to the result from the board_boot_order function), we need to ensure that only valid FIT images are considered and disable the fallback to assuming that a raw (binary-only) U-Boot image is loaded (to avoid hangs/crashes from jumping to random content loaded from devices that in the probing order which do not contain a valid image). When the SPL_LOAD_FIT configuration option is enabled, the new SPL_LOAD_FIT_ONLY option becomes available to disable such fallback paths. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'Kconfig')
-rw-r--r--Kconfig18
1 files changed, 9 insertions, 9 deletions
diff --git a/Kconfig b/Kconfig
index d5ab9e3a2c..cac3a75f1d 100644
--- a/Kconfig
+++ b/Kconfig
@@ -284,6 +284,15 @@ config SPL_LOAD_FIT
particular it can handle selecting from multiple device tree
and passing the correct one to U-Boot.
+config SPL_LOAD_FIT_ONLY
+ bool "Force SPL to on load images with FIT header"
+ depends on SPL_LOAD_FIT
+ help
+ Normally SPL falls back to assuming that loaded images are raw
+ U-Boot binaries, when no FIT header is present. This will cause
+ a crash when probing boot devices and touching one that does not
+ contain a valid image.
+
config SPL_FIT_IMAGE_POST_PROCESS
bool "Enable post-processing of FIT artifacts after loading by the SPL"
depends on SPL_LOAD_FIT && TI_SECURE_DEVICE
@@ -298,15 +307,6 @@ config SPL_FIT_IMAGE_POST_PROCESS
injected into the FIT creation (i.e. the blobs would have been pre-
processed before being added to the FIT image).
-config SPL_LOAD_FIT_ONLY
- bool "Force SPL to on load images with FIT header"
- depends on SPL_LOAD_FIT
- help
- Normally SPL falls back to assuming that loaded images are raw
- U-Boot binaries, when no FIT header is present. This will cause
- a crash when probing boot devices and touching one that does not
- contain a valid image.
-
config SYS_CLK_FREQ
depends on ARC || ARCH_SUNXI
int "CPU clock frequency"