[PATCH 3/5] riscv: Do not build reset.c if SYSRESET is on

Bin Meng bmeng.cn at gmail.com
Tue Jun 23 07:29:44 CEST 2020


From: Bin Meng <bin.meng at windriver.com>

SYSRESET uclass driver already provides all the reset APIs, hence
exclude our own ad-hoc reset.c implementation.

Signed-off-by: Bin Meng <bin.meng at windriver.com>
---

 arch/riscv/lib/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/riscv/lib/Makefile b/arch/riscv/lib/Makefile
index b5e9324..6c503ff 100644
--- a/arch/riscv/lib/Makefile
+++ b/arch/riscv/lib/Makefile
@@ -20,7 +20,9 @@ obj-$(CONFIG_SBI) += sbi.o
 obj-$(CONFIG_SBI_IPI) += sbi_ipi.o
 endif
 obj-y	+= interrupts.o
+ifeq ($(CONFIG_$(SPL_)SYSRESET),)
 obj-y	+= reset.o
+endif
 obj-y   += setjmp.o
 obj-$(CONFIG_$(SPL_)SMP) += smp.o
 obj-$(CONFIG_SPL_BUILD)	+= spl.o
-- 
2.7.4



More information about the U-Boot mailing list