[PATCH RFC 15/40] clk: restrict clk/imx to MACH_IMX
Casey Connolly
casey.connolly at linaro.org
Thu Mar 19 21:56:37 CET 2026
Only build IMX clocks when MACH_IMX is enabled, otherwise IMX clock
drivers get compiled for all platforms with CLK_CCF enabled.
Signed-off-by: Casey Connolly <casey.connolly at linaro.org>
---
drivers/clk/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
index 5f0c0d8a5c28..f96d57a3223a 100644
--- a/drivers/clk/Makefile
+++ b/drivers/clk/Makefile
@@ -15,9 +15,9 @@ obj-$(CONFIG_$(PHASE_)CLK_STUB) += clk-stub.o
obj-y += adi/
obj-y += airoha/
obj-y += analogbits/
-obj-y += imx/
+obj-$(CONFIG_$(PHASE_)MACH_IMX) += imx/
obj-$(CONFIG_CLK_JH7110) += starfive/
obj-y += tegra/
obj-y += ti/
obj-$(CONFIG_CLK_THEAD) += thead/
--
2.51.0
More information about the U-Boot
mailing list