aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@sifive.com>2023-05-09 14:50:05 +0100
committerLeo Yu-Chi Liang <ycliang@andestech.com>2023-07-06 17:28:08 +0800
commitc29cc110d7c2486c0b71edaccd8bc61cb77385a4 (patch)
tree7cbbe4fdd8ba1654140b4d85363e802e26b4d268
parent661e2215f8483cc7a77badeab6dcbf6a88cc715c (diff)
downloadu-boot-c29cc110d7c2486c0b71edaccd8bc61cb77385a4.zip
u-boot-c29cc110d7c2486c0b71edaccd8bc61cb77385a4.tar.gz
u-boot-c29cc110d7c2486c0b71edaccd8bc61cb77385a4.tar.bz2
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 <ben.dooks@sifive.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
-rw-r--r--drivers/clk/sifive/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/sifive/Makefile b/drivers/clk/sifive/Makefile
index 51348b1..84859d9 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