clk: Allow drivers to build if COMPILE_TEST is enabled
authorJavier Martinez Canillas <javier@osg.samsung.com>
Tue, 13 Oct 2015 14:18:18 +0000 (16:18 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 16 Oct 2015 18:58:53 +0000 (11:58 -0700)
These drivers only have runtime but no build time dependencies so can be
built for testing purposes if the Kconfig COMPILE_TEST option is enabled.

This is useful to have more build coverage and make sure that drivers are
not affected by changes that could cause build regressions.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Scott Branden <sbranden@broadcom.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/Kconfig
drivers/clk/bcm/Kconfig
drivers/clk/versatile/Kconfig

index 573517151976e43182ea86cfc423a99d58ae1257..57316528e9240ab9db0c5e2585ad79211e291467 100644 (file)
@@ -124,7 +124,7 @@ config CLK_TWL6040
 
 config COMMON_CLK_AXI_CLKGEN
        tristate "AXI clkgen driver"
-       depends on ARCH_ZYNQ || MICROBLAZE
+       depends on ARCH_ZYNQ || MICROBLAZE || COMPILE_TEST
        help
        ---help---
          Support for the Analog Devices axi-clkgen pcore clock generator for Xilinx
@@ -132,7 +132,7 @@ config COMMON_CLK_AXI_CLKGEN
 
 config CLK_QORIQ
        bool "Clock driver for Freescale QorIQ platforms"
-       depends on (PPC_E500MC || ARM) && OF
+       depends on (PPC_E500MC || ARM || COMPILE_TEST) && OF
        ---help---
          This adds the clock driver support for Freescale QorIQ platforms
          using common clock framework.
@@ -140,13 +140,13 @@ config CLK_QORIQ
 config COMMON_CLK_XGENE
        bool "Clock driver for APM XGene SoC"
        default y
-       depends on ARM64
+       depends on ARM64 || COMPILE_TEST
        ---help---
          Sypport for the APM X-Gene SoC reference, PLL, and device clocks.
 
 config COMMON_CLK_KEYSTONE
        tristate "Clock drivers for Keystone based SOCs"
-       depends on ARCH_KEYSTONE && OF
+       depends on (ARCH_KEYSTONE || COMPILE_TEST) && OF
        ---help---
           Supports clock drivers for Keystone based SOCs. These SOCs have local
          a power sleep control module that gate the clock to the IPs and PLLs.
index 88febf53b276a9253bfaf4045799197901180687..561e9dc6d40dd10eaed6b47f9ed9f4297a218dde 100644 (file)
@@ -1,6 +1,6 @@
 config CLK_BCM_KONA
        bool "Broadcom Kona CCU clock support"
-       depends on ARCH_BCM_MOBILE
+       depends on ARCH_BCM_MOBILE || COMPILE_TEST
        depends on COMMON_CLK
        default y
        help
@@ -10,7 +10,7 @@ config CLK_BCM_KONA
 
 config COMMON_CLK_IPROC
        bool "Broadcom iProc clock support"
-       depends on ARCH_BCM_IPROC
+       depends on ARCH_BCM_IPROC || COMPILE_TEST
        depends on COMMON_CLK
        default ARCH_BCM_IPROC
        help
index 1530c9352a7638eb60501a6bc18f8418a9b4d54f..fc50b6264bedf4b1772f7abc2e0b6418c18642e2 100644 (file)
@@ -1,6 +1,6 @@
 config COMMON_CLK_VERSATILE
        bool "Clock driver for ARM Reference designs"
-       depends on ARCH_INTEGRATOR || ARCH_REALVIEW || ARCH_VEXPRESS || ARM64
+       depends on ARCH_INTEGRATOR || ARCH_REALVIEW || ARCH_VEXPRESS || ARM64 || COMPILE_TEST
        ---help---
           Supports clocking on ARM Reference designs:
          - Integrator/AP and Integrator/CP