common: Add CONFIG_SKIP_RELOCATE
PATCH v2 1/1 common: Add CONFIG_SKIP_RELOCATE
Add a check for CONFIG_SKIP_RELOCATE in reserve_uboot to skip the relocation of the U-Boot image.CONFIG_SKIP_RELOCATE skips relocation of U-Boot to the end of RAM allowing for systems that have extremely limited RAM to run U-Boot.
---
V1 -> V2:
- Drop "default n"
- s/ram/RAM/g
--- Kconfig | 6 ++++++ common/board_f.c | 7 +++++++ 2 files changed, 13 insertions(+)
Kconfig +6 -0
@@ -443,6 +443,12 @@ config TOOLS_DEBUG it is possible to set breakpoints on particular lines, single-step debug through the source code, etc. +config SKIP_RELOCATE + bool "Skips relocation of U-Boot to end of RAM" + help + Skips relocation of U-Boot allowing for systems that have extremely + limited RAM to run U-Boot. + endif # EXPERT config PHYS_64BIT
common/board_f.c +7 -0
@@ -476,6 +476,13 @@ static int reserve_trace(void)static int reserve_uboot (void ) { +/* +* This should be the first place GD_FLG_SKIP_RELOC is read from. +* Set GD_FLG_SKIP_RELOC flag if CONFIG_SKIP_RELOCATE is enabled. +*/ +if (CONFIG_IS_ENABLED (SKIP_RELOCATE )) + gd->flags |=GD_FLG_SKIP_RELOC ; +if (!(gd->flags &GD_FLG_SKIP_RELOC )) {/* * reserve memory for U-Boot code, data & bss
Signature · 1 line
2.49.0
Quoted 9 lines · Jesse Taube
Add a check for
CONFIG_SKIP_RELOCATEinreserve_ubootto skip the relocation of the U-Boot image.CONFIG_SKIP_RELOCATEskips relocation of U-Boot to the end of RAM allowing for systems that have extremely limited RAM to run U-Boot.Signed-off-by Jesse Taube <[email protected]>Reviewed-by Tom Rini <[email protected]>Reviewed-by Caleb Connolly <[email protected]>
Quoted 6 lines · Jesse Taube
Add a check for
CONFIG_SKIP_RELOCATEinreserve_ubootto skip the relocation of the U-Boot image.CONFIG_SKIP_RELOCATEskips relocation of U-Boot to the end of RAM allowing for systems that have extremely limited RAM to run U-Boot.
Applied to u-boot/master, thanks!
[1/1] common: Add CONFIG_SKIP_RELOCATE
commit: f9d788d925574109ecf239a16def9450cd4c3ecd
Signature · 1 line
Tom