aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/modules/other.mk
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2009-03-07 17:07:24 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2009-03-07 17:07:24 +0000
commit44aa0b5dacb80243009b349a5cd5ef40e6dd2103 (patch)
tree3244c5e7a84d589d77a41f84a15bb1fdf43f1829 /package/kernel/modules/other.mk
parent2b64ecf391ab7050684a95ce075e6a1d04da3362 (diff)
downloadupstream-44aa0b5dacb80243009b349a5cd5ef40e6dd2103.tar.gz
upstream-44aa0b5dacb80243009b349a5cd5ef40e6dd2103.tar.bz2
upstream-44aa0b5dacb80243009b349a5cd5ef40e6dd2103.zip
extract the rfkill module to an extra package, only build rfkill module if it is not integrated into the kernel.
SVN-Revision: 14780
Diffstat (limited to 'package/kernel/modules/other.mk')
-rw-r--r--package/kernel/modules/other.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/kernel/modules/other.mk b/package/kernel/modules/other.mk
index 1e6c1db254..8499c461f9 100644
--- a/package/kernel/modules/other.mk
+++ b/package/kernel/modules/other.mk
@@ -786,3 +786,25 @@ endef
$(eval $(call KernelPackage,textsearch))
+
+define KernelPackage/rfkill
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=RF switch subsystem support
+ DEPENDS:=@LINUX_2_6 @!LINUX_2_6_21 @!TARGET_rb532 @!TARGET_avr32 @!TARGET_brcm47xx @!TARGET_s3c24xx @!TARGET_ifxmips @!TARGET_atheros @!TARGET_adm5120 @!TARGET_ar7 @!TARGET_ppc40x @!TARGET_ixp4xx @!TARGET_rdc
+ KCONFIG:= \
+ CONFIG_RFKILL \
+ CONFIG_RFKILL_INPUT \
+ CONFIG_RFKILL_LEDS=y
+ FILES:= \
+ $(LINUX_DIR)/net/rfkill/rfkill.$(LINUX_KMOD_SUFFIX) \
+ $(LINUX_DIR)/net/rfkill/rfkill-input.$(LINUX_KMOD_SUFFIX)
+ AUTOLOAD:=$(call AutoLoad,20,rfkill rfkill-input)
+endef
+
+define KernelPackage/rfkill/description
+ Say Y here if you want to have control over RF switches
+ found on many WiFi and Bluetooth cards.
+endef
+
+$(eval $(call KernelPackage,rfkill))
+