Re: [PATCH RFC 15/40] clk: restrict clk/imx to MACH_IMX

Ferass El Hafidi <[email protected]> Thu, 19 Mar 2026 21:25:14 +0000
Newsgroups io.groups.u-boot-amlogic,org.u-boot-project.lists.u-boot
Message-ID <[email protected]>
On Thu, 19 Mar 2026 20:56, "Casey Connolly via groups.io" <casey.connolly=
[email protected]> wrote:
>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 <[email protected]>
>---
> 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) +=3D clk-stub.o
>=20
> obj-y +=3D adi/
> obj-y +=3D airoha/
> obj-y +=3D analogbits/
>-obj-y +=3D imx/
>+obj-$(CONFIG_$(PHASE_)MACH_IMX) +=3D imx/

I think this is not necessary. drivers/clk/imx/Makefile already requires
that imx config options be enabled for the driver to be compiled in.

Best regards,
Ferass

[PS: had to remove a few people from CC, because my email provider does
     not let me CC that many people, sorry!]

> obj-$(CONFIG_CLK_JH7110) +=3D starfive/
> obj-y +=3D tegra/
> obj-y +=3D ti/
> obj-$(CONFIG_CLK_THEAD) +=3D thead/
>
>--=20
>2.51.0
>
>
>
>-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
>Groups.io Links: You receive all messages sent to this group.
>View/Reply Online (#2906): https://groups.io/g/u-boot-qcom/message/2906
>Mute This Topic: https://groups.io/mt/118408050/8399868
>Group Owner: [email protected]
>Unsubscribe: https://groups.io/g/u-boot-qcom/leave/13198341/8399868/7974=
98721/xyzzy [[email protected]]
>-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
>
>