From: Ben Dooks Date: Tue, 9 May 2023 13:50:05 +0000 (+0100) Subject: clk: sifive: only build sifive-prci.o for CONFIG_CLK_SIFIVE_PRCI X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-logo.png?a=commitdiff_plain;h=c29cc110d7c2486c0b71edaccd8bc61cb77385a4;p=u-boot.git clk: sifive: only build sifive-prci.o for CONFIG_CLK_SIFIVE_PRCI If we're building non FU540/FU740 SoC drivers, then the sifive-prci.o is not needed. Only build this when CONFIG_CLK_SIFIVE_PRCI is selected. Signed-off-by: Ben Dooks Reviewed-by: Leo Yu-Chi Liang --- diff --git a/drivers/clk/sifive/Makefile b/drivers/clk/sifive/Makefile index 51348b1ddc..84859d92ab 100644 --- a/drivers/clk/sifive/Makefile +++ b/drivers/clk/sifive/Makefile @@ -1,5 +1,3 @@ # SPDX-License-Identifier: GPL-2.0+ -obj-y += sifive-prci.o - -obj-$(CONFIG_CLK_SIFIVE_PRCI) += fu540-prci.o fu740-prci.o +obj-$(CONFIG_CLK_SIFIVE_PRCI) += sifive-prci.o fu540-prci.o fu740-prci.o