Makefile: Fix CONFIG_SYS_UBOOT_START default value
authorPatrice Chotard <patrice.chotard@st.com>
Fri, 6 Dec 2019 14:01:48 +0000 (15:01 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 8 Jan 2020 14:27:44 +0000 (09:27 -0500)
This patches restores boot on boards which rely on
CONFIG_SYS_UBOOT_START equal to CONFIG_SYS_TEXT_BASE when using SPL

Fixes: d3e97b53c1f2 ("spl: fix entry_point equal to load_addr")
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Makefile

index 6f62d764db4bb7effa3fe6e720f7a4881dcd8134..cc126ebc53b5918a4618eeb03d50c9724bf6fd3b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1265,7 +1265,7 @@ u-boot.ldr.hex u-boot.ldr.srec: u-boot.ldr FORCE
 # from the SPL U-Boot version.
 #
 ifndef CONFIG_SYS_UBOOT_START
-CONFIG_SYS_UBOOT_START := 0
+CONFIG_SYS_UBOOT_START := $(CONFIG_SYS_TEXT_BASE)
 endif
 
 # Boards with more complex image requirements can provide an .its source file