summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-03-30 18:07:11 -0400
committerTom Rini <trini@konsulko.com>2022-04-08 09:05:19 -0400
commit95b641756cf0af009f8f74be5f57de84acc58d51 (patch)
treedbf6d6274716b032c1cd465bbf65cf6e6b4664ff /Kconfig
parent03a8a797e5dccaffe172d3b5224bc3c3fcd304d6 (diff)
Convert CONFIG_BOARD_SIZE_LIMIT to Kconfig
This converts the following to Kconfig: CONFIG_BOARD_SIZE_LIMIT To do this, introduce CONFIG_HAS_BOARD_SIZE_LIMIT. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'Kconfig')
-rw-r--r--Kconfig17
1 files changed, 17 insertions, 0 deletions
diff --git a/Kconfig b/Kconfig
index 6b1ddfc549..74a1013e4c 100644
--- a/Kconfig
+++ b/Kconfig
@@ -395,6 +395,23 @@ config BUILD_TARGET
special image will be automatically built upon calling
make / buildman.
+config HAS_BOARD_SIZE_LIMIT
+ bool "Define a maximum size for the U-Boot image"
+ default y if RCAR_GEN3
+ help
+ In some cases, we need to enforce a hard limit on how big the U-Boot
+ image itself can be.
+
+config BOARD_SIZE_LIMIT
+ int "Maximum size of the U-Boot image in bytes"
+ default 1048576 if RCAR_GEN3
+ depends on HAS_BOARD_SIZE_LIMIT
+ help
+ Maximum size of the U-Boot image. When defined, the build system
+ checks that the actual size does not exceed it. This does not
+ include SPL nor TPL, on platforms that use that functionality, they
+ have a separate option to restict size.
+
config SYS_CUSTOM_LDSCRIPT
bool "Use a custom location for the U-Boot linker script"
help