busybox: Add check for wifi/bluetooth to enable rfkill
PATCH 1/1 busybox: Add check for wifi/bluetooth to enable rfkill
rfkill is a usefull tool when you have a device with bluetooth and wifi enabled
[YOCTO #2494]
--- meta/recipes-core/busybox/busybox.inc | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
meta/recipes-core/busybox/busybox.inc +5 -0
@@ -57,6 +57,11 @@ def features_to_busybox_settings(d): busybox_cfg('nls', distro_features, 'CONFIG_LOCALE_SUPPORT', cnf, rem) busybox_cfg('ipv4', distro_features, 'CONFIG_FEATURE_IFUPDOWN_IPV4', cnf, rem) busybox_cfg('ipv6', distro_features, 'CONFIG_FEATURE_IFUPDOWN_IPV6', cnf, rem) + busybox_cfg('wifi', distro_features, 'CONFIG_RFKILL', cnf, rem) + busybox_cfg('bluetooth', distro_features, 'CONFIG_RFKILL', cnf, rem) + machine_features = d.getVar('MACHINE_FEATURES', True).split() + busybox_cfg('wifi', machine_features, 'CONFIG_RFKILL', cnf, rem) + busybox_cfg('bluetooth', machine_features, 'CONFIG_RFKILL', cnf, rem) return "\n".join(cnf), "\n".join(rem) # X, Y = ${@features_to_uclibc_settings(d)}
Signature · 1 line
1.7.7.6
Quoted 14 lines · Saul Wold
rfkill is a usefull tool when you have a device with bluetooth and wifi enabled
[YOCTO #2494]
Signed-off-by Saul Wold <[email protected]>---
meta/recipes-core/busybox/busybox.inc | 5 +++++1 files changed, 5 insertions(+), 0 deletions(-)meta/recipes-core/busybox/busybox.inc +0
-0
meta/recipes-core/busybox/busybox.inc def features_to_busybox_settings(d): · line 64
Quoted 8 lines
meta/recipes-core/busybox/busybox.inc +5
-0@@ -57,6 +57,11 @@ def features_to_busybox_settings(d): busybox_cfg('nls', distro_features, 'CONFIG_LOCALE_SUPPORT', cnf, rem) busybox_cfg('ipv4', distro_features, 'CONFIG_FEATURE_IFUPDOWN_IPV4', cnf, rem) busybox_cfg('ipv6', distro_features, 'CONFIG_FEATURE_IFUPDOWN_IPV6', cnf, rem) + busybox_cfg('wifi', distro_features, 'CONFIG_RFKILL', cnf, rem) + busybox_cfg('bluetooth', distro_features, 'CONFIG_RFKILL', cnf, rem) + machine_features = d.getVar('MACHINE_FEATURES', True).split() + busybox_cfg('wifi', machine_features, 'CONFIG_RFKILL', cnf, rem) + busybox_cfg('bluetooth', machine_features, 'CONFIG_RFKILL', cnf, rem)
Doesnt this mean that it should be made machine specific recipe now ?
Quoted 11 lines
meta/recipes-core/busybox/busybox.inc +0
-1return "\n".join(cnf), "\n".join(rem) # X, Y = ${@features_to_uclibc_settings(d)} --1.7.7.6
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 15 lines · Saul Wold
rfkill is a usefull tool when you have a device with bluetooth and wifi enabled
[YOCTO #2494]
Signed-off-by Saul Wold <[email protected]>--- meta/recipes-core/busybox/busybox.inc | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)meta/recipes-core/busybox/busybox.inc +0
-0@@ -57,6 +57,11 @@ def features_to_busybox_settings(d): busybox_cfg('nls', distro_features, 'CONFIG_LOCALE_SUPPORT', cnf, rem)
meta/recipes-core/busybox/busybox.inc def features_to_busybox_settings(d): · line 67
Quoted 10 lines
meta/recipes-core/busybox/busybox.inc +5
-0busybox_cfg('ipv4', distro_features, 'CONFIG_FEATURE_IFUPDOWN_IPV4', cnf, rem) busybox_cfg('ipv6', distro_features, 'CONFIG_FEATURE_IFUPDOWN_IPV6', cnf, rem) + busybox_cfg('wifi', distro_features, 'CONFIG_RFKILL', cnf, rem) + busybox_cfg('bluetooth', distro_features, 'CONFIG_RFKILL', cnf, rem) + machine_features = d.getVar('MACHINE_FEATURES', True).split() + busybox_cfg('wifi', machine_features, 'CONFIG_RFKILL', cnf, rem) + busybox_cfg('bluetooth', machine_features, 'CONFIG_RFKILL', cnf, rem) return "\n".join(cnf), "\n".join(rem) # X, Y = ${@features_to_uclibc_settings(d)}
This makes the busybox package machine specific? Is that intentional?
Cheers,
Richard