Re: [PATCH 4/5] drivers: add COMPILE_TEST prompts to some on-by-default drivers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 08, 2020 at 08:25:29AM +0200, Ahmad Fatoum wrote:
> Many clock source and GPIO controller drivers don't have a prompt, but
> are instead default y if their respective platform is enabled. Maintain
> this behavior, but add a prompt for when COMPILE_TEST is enabled, so
> they can be included in test builds.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
> ---
>  drivers/clocksource/Kconfig | 16 +++++++++-------
>  drivers/gpio/Kconfig        | 12 ++++++++----
>  drivers/pinctrl/Kconfig     |  8 ++++----
>  3 files changed, 21 insertions(+), 15 deletions(-)
> 
> diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
> index 8805cda39e02..bc2aae7ad723 100644
> --- a/drivers/clocksource/Kconfig
> +++ b/drivers/clocksource/Kconfig
> @@ -75,16 +75,18 @@ config CLOCKSOURCE_ATMEL_PIT
>         bool
>  
>  config CLOCKSOURCE_ARM_ARCHITECTED_TIMER
> -	bool
> -	default y
> -	depends on ARM && (CPU_64v8 || CPU_V7)
> +	bool "ARM architected timer clock source" if COMPILE_TEST
> +	default y if ARM && (CPU_64v8 || CPU_V7)
> +	depends on (ARM && (CPU_64v8 || CPU_V7)) || COMPILE_TEST

This driver compiles only on ARM. It uses get_cntpct() which is a
contains inline assembly.

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux