Skip to contentSkip to conversation

clk: sifive: only build sifive-prci.o for CONFIG_CLK_SIFIVE_PRCI

PATCH In review Ben Dooks 2 participants 2 messages May 9, 2023 – Jun 26, 2023

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/clk/sifive/Makefile | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/clk/sifive/Makefile +1 -3
index 51348b1ddc..84859d92ab 100644
@@ -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
Signature · 1 line
2.39.2