summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorJesse Taube <mr.bossman075@gmail.com>2023-08-24 21:59:48 -0400
committerTom Rini <trini@konsulko.com>2023-09-30 15:24:43 -0400
commit6ab77bb14f61906b7ce0c486ebe46dbeab0502f3 (patch)
tree37c581bbcb412aecf5394bc7bf8407f7e9e78b1d /Kconfig
parent90c81f407dd4a7747385b10f9b8f732202c45cde (diff)
downloadu-boot-6ab77bb14f61906b7ce0c486ebe46dbeab0502f3.tar.gz
u-boot-6ab77bb14f61906b7ce0c486ebe46dbeab0502f3.tar.bz2
u-boot-6ab77bb14f61906b7ce0c486ebe46dbeab0502f3.zip
Convert CFG_SYS_UBOOT_START to Kconfig
Commit 65cc0e2a65d2 ("global: Move remaining CONFIG_SYS_* to CFG_SYS_*") renamed CONFIG_SYS_UBOOT_START to CFG_SYS_UBOOT_START. Unfortunately, this meant that the value was no longer available to the Makefile. This caused imxrt to fail to boot. All the other boards that used this variable were unaffected because they were using the default value which is CONFIG_TEXT_BASE. This commit converts CFG_SYS_UBOOT_START to Kconfig and sets the default value to CONFIG_TEXT_BASE. Suggested-by: Marek Vasut <marek.vasut+renesas@gmail.com> Suggested-by: Tom Rini <trini@konsulko.com> Signed-off-by: Jesse Taube <Mr.Bossman075@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'Kconfig')
-rw-r--r--Kconfig22
1 files changed, 21 insertions, 1 deletions
diff --git a/Kconfig b/Kconfig
index 2d4b821498..109379a149 100644
--- a/Kconfig
+++ b/Kconfig
@@ -601,7 +601,27 @@ config TEXT_BASE
default 0x42e00000 if SUNXI_MINIMUM_DRAM_MB >= 64
hex "Text Base"
help
- The address in memory that U-Boot will be running from, initially.
+ The address in memory that U-Boot will be copied and executed from
+ initially.
+
+config HAVE_SYS_UBOOT_START
+ bool "Use custom U-Boot Start"
+ depends on HAVE_TEXT_BASE
+ help
+ By default, the address in memory that U-Boot will be copied from
+ (TEXT_BASE) and the entry point are the same. Select this to start the
+ execution of U-Boot from a different address.
+ This may be required if a header or vector table needs to be copied
+ but not executed.
+
+config SYS_UBOOT_START
+ hex
+ depends on HAVE_TEXT_BASE
+ default TEXT_BASE
+ prompt "U-Boot entry" if HAVE_SYS_UBOOT_START
+ help
+ If TEXT_BASE differs from the start of execution, this sets the
+ address in memory that U-Boot will start execution from initially.
config HAVE_SYS_MONITOR_BASE
bool