Skip to contentSkip to conversation

busybox: Add check for wifi/bluetooth to enable rfkill

PATCH In review Saul Wold 3 participants 3 messages Jun 12, 2012

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

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
index 5b83d32..83b25b4 100644
@@ -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
#1 lore raw
Quoted 14 lines · Saul Wold

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 +0 -0
index 5b83d32..83b25b4 100644

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 -1
        return "\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

#2 lore raw
In reply to Saul Wold
Quoted 15 lines · Saul Wold

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 +0 -0
index 5b83d32..83b25b4 100644
@@ -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 -0
 	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)}

This makes the busybox package machine specific? Is that intentional?

Cheers,

Richard