Files
u-boot/arch/riscv/cpu/th1520/Makefile
Yao Zi 0463545678 riscv: cpu: th1520: Build spl.c for SPL only
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: 5fe9ced355 ("riscv: cpu: Add TH1520 CPU support")
Signed-off-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2025-06-09 10:44:06 +08:00

9 lines
169 B
Makefile

# SPDX-License-Identifier: GPL-2.0+
#
# Copyright (C) 2025, Yao Zi <ziyao@disroot.org>
obj-y += cache.o
obj-y += cpu.o
obj-y += dram.o
obj-$(CONFIG_SPL_BUILD) += spl.o