clk: rockchip: allow COMPILE_TEST builds
Subsystems (2)
PATCH 1/1 clk: rockchip: allow COMPILE_TEST builds
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/
--- drivers/clk/Makefile | 2 +- drivers/clk/rockchip/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/clk/Makefile +1 -1
@@ -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/
drivers/clk/rockchip/Kconfig +1 -1
@@ -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.
Signature · 1 line
2.54.0
Quoted 8 lines · Rosen Penev
COMMON_CLK_ROCKCHIPalready gates the Rockchip clock objects inside the Rockchip clockMakefile. Allow selecting it forCOMPILE_TESTand use it for the parentMakefiledescent instead ofARCH_ROCKCHIP.The per-SoC Rockchip clock symbols already have
COMPILE_TESTdependencies, so this exposes the existing build coverage to other architectures without selecting the Rockchip platform.
Quoted 5 lines
Tested with:
make LLVM=1 ARCH=loongarchdrivers/clk/rockchip/Assisted-by Codex:GPT-5.5Signed-off-by Rosen Penev <[email protected]>
Quoted 9 lines · Rosen Penev
COMMON_CLK_ROCKCHIPalready gates the Rockchip clock objects inside the Rockchip clockMakefile. Allow selecting it forCOMPILE_TESTand use it for the parentMakefiledescent instead ofARCH_ROCKCHIP.The per-SoC Rockchip clock symbols already have
COMPILE_TESTdependencies, so this exposes the existing build coverage to other architectures without selecting the Rockchip platform.[...]
Applied, thanks!
[1/1] clk: rockchip: allow COMPILE_TEST builds
commit: 7edfb7fb58ee058298e18fde76a6077ef17d19d8
Best regards,
Signature · 1 line
Heiko Stuebner <[email protected]>