riscv: dts: starfive: Prevent binman from relocating symbols in SPL
authorYao Zi <ziyao@disroot.org>
Wed, 16 Apr 2025 16:25:32 +0000 (16:25 +0000)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Fri, 25 Apr 2025 08:31:29 +0000 (16:31 +0800)
SPL and proper U-Boot are split into two images with default binman
configuration of StarFive VisionFive 2, thus proper U-Boot symbols
cannot be found in the SPL image. This fixes errors like

  Section '/binman/spl-img': Symbol '_binman_u_boot_any_prop_size'
    in entry '/binman/spl-img/mkimage/u-boot-spl/u-boot-spl-nodtb':
      Entry 'u-boot-any' not found in list (u-boot-spl-nodtb,
      u-boot-spl-dtb,u-boot-spl,mkimage,spl-img)

Fixes: 90602e779d3 ("riscv: dts: starfive: generate u-boot-spl.bin.normal.out")
Suggested-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Yao Zi <ziyao@disroot.org>
arch/riscv/dts/starfive-visionfive2-binman.dtsi

index 05787bd..6e083bf 100644 (file)
@@ -20,6 +20,7 @@
                        args = "-T sfspl";
 
                        u-boot-spl {
+                               no-write-symbols;
                        };
                };
        };