summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/board_f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/board_f.c b/common/board_f.c
index a90dcf3013c..11ad5779115 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -462,7 +462,7 @@ static int reserve_uboot(void)
if (CONFIG_IS_ENABLED(SKIP_RELOCATE))
gd->flags |= GD_FLG_SKIP_RELOC;
- if (!(gd->flags & GD_FLG_SKIP_RELOC)) {
+ if (!(gd->flags & GD_FLG_SKIP_RELOC) && !CONFIG_IS_ENABLED(SKIP_RELOCATE_CODE)) {
/*
* reserve memory for U-Boot code, data & bss
* round down to next 4 kB limit