]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
clk: rockchip: allow COMPILE_TEST builds
authorRosen Penev <rosenp@gmail.com>
Sat, 9 May 2026 00:36:02 +0000 (17:36 -0700)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 13 May 2026 10:35:57 +0000 (12:35 +0200)
COMMON_CLK_ROCKCHIP already gates the Rockchip clock objects inside the
Rockchip clock Makefile.  Allow selecting it for COMPILE_TEST and use it
for the parent Makefile descent instead of ARCH_ROCKCHIP.

The per-SoC Rockchip clock symbols already have COMPILE_TEST dependencies,
so this exposes the existing build coverage to other architectures without
selecting the Rockchip platform.

Tested with:
make LLVM=1 ARCH=loongarch drivers/clk/rockchip/

Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Link: https://patch.msgid.link/20260509003602.956186-1-rosenp@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/Makefile
drivers/clk/rockchip/Kconfig

index a3e2862ebd7eb516e2d8a25c5fe1a9473b6e3229..e83c60320bfeb3ccef1611a31dbc5bfddb811a40 100644 (file)
@@ -141,7 +141,7 @@ obj-$(CONFIG_COMMON_CLK_PXA)                += pxa/
 obj-$(CONFIG_COMMON_CLK_QCOM)          += qcom/
 obj-y                                  += ralink/
 obj-y                                  += renesas/
-obj-$(CONFIG_ARCH_ROCKCHIP)            += rockchip/
+obj-$(CONFIG_COMMON_CLK_ROCKCHIP)      += rockchip/
 obj-$(CONFIG_COMMON_CLK_SAMSUNG)       += samsung/
 obj-$(CONFIG_CLK_SIFIVE)               += sifive/
 obj-y                                  += socfpga/
index 7e14335020618aa62259b02109e51af595215294..85133498f0130654d598f5d62e49a703f0152111 100644 (file)
@@ -3,7 +3,7 @@
 
 config COMMON_CLK_ROCKCHIP
        bool "Rockchip clock controller common support"
-       depends on ARCH_ROCKCHIP
+       depends on ARCH_ROCKCHIP || COMPILE_TEST
        default ARCH_ROCKCHIP
        help
          Say y here to enable common clock controller for Rockchip platforms.