Thread (85 messages) 85 messages, 11 authors, 2015-05-23

Re: [PATCH v8 09/16] clockevents/drivers: Add STM32 Timer driver

From: Russell King - ARM Linux <hidden>
Date: 2015-05-19 14:51:03
Also in: linux-arch, linux-arm-kernel, linux-devicetree, linux-gpio, linux-serial, lkml

On Tue, May 19, 2015 at 04:41:58PM +0200, Maxime Coquelin wrote:
2015-05-19 15:49 GMT+02:00 Daniel Lezcano [off-list ref]:
quoted

It is not exactly as the initial patch.

I think Arnd is proposing:

config CLKSRC_STM32
        bool "Clocksource for STM32 SoCs" if COMPILE_TEST
        select CLKSRC_MMIO
Isn't "depends on OF" missing for COMPILE_TEST case?
config CLKSRC_STM32
	bool "Clocksource for STM32 SoCs" if COMPILE_TEST
	depends on OF
	select CLKSRC_MMIO

This permits CLKSRC_STM32 to be selected by STM32 (provided OF is enabled,
it's always going to be for that case, right?) while allowing the option
to be visible when both OF!=n and COMPILE_TEST!=n.

Remember,

	bool "string" if <condition-affects-visibility-of-string>
	depends on <condition-affects-config-symbol-availability>

The former merely hides the option from the user _if_ the condition fails.
The latter _disables_ the option completely (except if you try and select
it, at which point you end up with a Kconfig warning about that.)

-- 
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help