[linux-yocto] [PATCH] meta: add features/rfkill

Bruce Ashfield bruce.ashfield at windriver.com
Wed Aug 21 13:12:31 PDT 2013

On 13-08-21 01:21 PM, Darren Hart wrote:
> On Wed, 2013-08-21 at 17:20 +0100, Ross Burton wrote:
>> Add standalone CONFIG_RFKILL feature for cross-BSP/driver use.
> I try to be cautious when it comes to single line CONFIG fragments (you
> can see as how this doesn't scale very well).
> How is this going to be used? Is the need broad enough to justify the
> overhead in the kernel meta-data rather than a single norfkill.cfg in a
> BSP layer recipe space?

My suggestion is this, turn it on for the "standard" kernel type, which
is where we collect our policy for typical boards. Yes, this sort of has
a hardware binding, but it isn't that strong.

We turn on CONFIG_NET in the base configuration already, and netfilter
and friends in the standard kernel configuration. So adding this into
the standard.cfg file would be acceptable as a general policy config

The standard kernel config wouldn't impact the tiny kernel config, since
it doesn't inherit it, and that's what Darren would want. preempt-rt would
need to have it turned on as well .. which leads me to my next statement:

That being said, I *still* think it is ok in the features/ subdirectory,
since we don't typically trigger them from recipes directly, but instead
include them from other configuration fragments. preempt-rt and the
standard kernel would include it, and it would be clear that they are
enabling the option. What I wouldn't want to see is a BSP or set of
BSPs needing to enable it explicitly via KERNEL_FEATURES from their


> --
> Darren
>> Signed-off-by: Ross Burton <ross.burton at intel.com>
>> ---
>>   meta/cfg/kernel-cache/features/rfkill/rfkill.cfg |    1 +
>>   meta/cfg/kernel-cache/features/rfkill/rfkill.scc |    1 +
>>   2 files changed, 2 insertions(+)
>>   create mode 100644 meta/cfg/kernel-cache/features/rfkill/rfkill.cfg
>>   create mode 100644 meta/cfg/kernel-cache/features/rfkill/rfkill.scc
>> diff --git a/meta/cfg/kernel-cache/features/rfkill/rfkill.cfg b/meta/cfg/kernel-cache/features/rfkill/rfkill.cfg
>> new file mode 100644
>> index 0000000..b80af14
>> --- /dev/null
>> +++ b/meta/cfg/kernel-cache/features/rfkill/rfkill.cfg
>> @@ -0,0 +1 @@
>> diff --git a/meta/cfg/kernel-cache/features/rfkill/rfkill.scc b/meta/cfg/kernel-cache/features/rfkill/rfkill.scc
>> new file mode 100644
>> index 0000000..4adea00
>> --- /dev/null
>> +++ b/meta/cfg/kernel-cache/features/rfkill/rfkill.scc
>> @@ -0,0 +1 @@
>> +kconf hardware rfkill.cfg

More information about the linux-yocto mailing list