]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: sifive: only build sifive-prci.o for CONFIG_CLK_SIFIVE_PRCI
authorBen Dooks <ben.dooks@sifive.com>
Tue, 9 May 2023 13:50:05 +0000 (14:50 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 6 Jul 2023 09:28:08 +0000 (17:28 +0800)
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 <ben.dooks@sifive.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
drivers/clk/sifive/Makefile

index 51348b1ddc07d2b0e38589b27cc7a218f985691f..84859d92aba8d1dfd4c2834e52a6a59d987b05a8 100644 (file)
@@ -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