]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: x86: Correct the binman symbols for SPL
authorSimon Glass <sjg@chromium.org>
Tue, 8 Feb 2022 18:49:47 +0000 (11:49 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 22 Feb 2022 17:05:44 +0000 (10:05 -0700)
These symbols are incorrect, meaning that binman cannot find the
associated entry. This leads to errors like:

binman: Section '/binman/simple-bin': Symbol '_binman_spl_prop_size'
   in entry '/binman/simple-bin/u-boot-spl/u-boot-spl-nodtb':
   Entry 'spl' not found in list (mkimage,u-boot-spl-nodtb,
   u-boot-spl-bss-pad,u-boot-spl-dtb,u-boot-spl,u-boot-img,main-section)

Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/dts/u-boot.dtsi
common/spl/spl.c
include/spl.h

index ca84d18ad90cc59c23aff19a6b8cb22ef80f8dfc..24e692f988d82dadf4dbc00b2e15462e030b4715 100644 (file)
@@ -37,7 +37,7 @@
        u-boot-tpl-dtb {
        };
 #endif
-       spl {
+       u-boot-spl {
                type = "u-boot-spl";
                offset = <CONFIG_X86_OFFSET_SPL>;
        };
index 884102bdea49f87ceb8e689c5257899ff4ae8196..444907432c1cd1d66cdc06adb3923e5319354f99 100644 (file)
@@ -54,8 +54,8 @@ binman_sym_declare(ulong, u_boot_any, image_pos);
 binman_sym_declare(ulong, u_boot_any, size);
 
 #ifdef CONFIG_TPL
-binman_sym_declare(ulong, spl, image_pos);
-binman_sym_declare(ulong, spl, size);
+binman_sym_declare(ulong, u_boot_spl, image_pos);
+binman_sym_declare(ulong, u_boot_spl, size);
 #endif
 
 /* Define board data structure */
@@ -143,14 +143,14 @@ void spl_fixup_fdt(void *fdt_blob)
 ulong spl_get_image_pos(void)
 {
        return spl_phase() == PHASE_TPL ?
-               binman_sym(ulong, spl, image_pos) :
+               binman_sym(ulong, u_boot_spl, image_pos) :
                binman_sym(ulong, u_boot_any, image_pos);
 }
 
 ulong spl_get_image_size(void)
 {
        return spl_phase() == PHASE_TPL ?
-               binman_sym(ulong, spl, size) :
+               binman_sym(ulong, u_boot_spl, size) :
                binman_sym(ulong, u_boot_any, size);
 }
 
index bb92bc6ec6c6354a3f7eb9454e147ac17cc35bfd..8ceb3c0f095e4e5f4232f0649317d93e0e82c213 100644 (file)
@@ -269,8 +269,8 @@ struct spl_load_info {
  */
 binman_sym_extern(ulong, u_boot_any, image_pos);
 binman_sym_extern(ulong, u_boot_any, size);
-binman_sym_extern(ulong, spl, image_pos);
-binman_sym_extern(ulong, spl, size);
+binman_sym_extern(ulong, u_boot_spl, image_pos);
+binman_sym_extern(ulong, u_boot_spl, size);
 
 /**
  * spl_get_image_pos() - get the image position of the next phase