]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
common/board_f.c: fix condition for reloc_off assignment
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 19 Aug 2015 11:25:53 +0000 (13:25 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 19 Aug 2015 11:25:53 +0000 (13:25 +0200)
All ARM systems define the symbol __image_copy_start which is the
correct relocation base address for secure and non-secure boot.

common/board_f.c

index 8e8e2177a13b7e4d196cc3e4b1ae5ecfbedd1aae..c172ea1acb8a08be9f7adc92322d327793151205 100644 (file)
@@ -739,7 +739,7 @@ static int reloc_fdt(void)
 static int setup_reloc(void)
 {
 #ifdef CONFIG_SYS_TEXT_BASE
-#ifndef CONFIG_SECURE_BOOT
+#ifndef CONFIG_ARM
        gd->reloc_off = gd->relocaddr - CONFIG_SYS_TEXT_BASE;
 #else
        gd->reloc_off = gd->relocaddr - (unsigned long)__image_copy_start;