X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/df7f1b56e6e7909785e09888656919d197f795d3..271987a133f3738bb017758cd05595b0e2968301:/package/kernel/modules/other.mk diff --git a/package/kernel/modules/other.mk b/package/kernel/modules/other.mk index 1e6c1db25..8499c461f 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)) +