]> Git Repo - J-u-boot.git/commitdiff
riscv: Do not build reset.c if SYSRESET is on
authorBin Meng <[email protected]>
Tue, 23 Jun 2020 05:29:44 +0000 (22:29 -0700)
committerAndes <[email protected]>
Fri, 3 Jul 2020 07:07:48 +0000 (15:07 +0800)
SYSRESET uclass driver already provides all the reset APIs, hence
exclude our own ad-hoc reset.c implementation.

Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Sagar Kadam <[email protected]>
Reviewed-by: Pragnesh Patel <[email protected]>
arch/riscv/lib/Makefile

index b5e93244e0ecb18f2a49f5b64333ebd2cf138369..6c503ff2b2b7a0dfd85bea8648348499a50982f0 100644 (file)
@@ -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
This page took 0.03982 seconds and 4 git commands to generate.