]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
riscv: cpu: th1520: Build spl.c for SPL only
authorYao Zi <ziyao@disroot.org>
Fri, 30 May 2025 09:48:47 +0000 (09:48 +0000)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 9 Jun 2025 02:44:06 +0000 (10:44 +0800)
Symbols in spl.c only function correctly in SPL stage. Build the file
for SPL only to avoid weak symbols in proper U-Boot being unexpectedly
reloaded.

Fixes: 5fe9ced3552 ("riscv: cpu: Add TH1520 CPU support")
Signed-off-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/cpu/th1520/Makefile

index 5d806c06e2eea8141314db43a0f23c4bdd84c77c..d971ea7390db95598879a25c467b74f964e089d1 100644 (file)
@@ -5,4 +5,4 @@
 obj-y += cache.o
 obj-y += cpu.o
 obj-y += dram.o
-obj-y += spl.o
+obj-$(CONFIG_SPL_BUILD) += spl.o