kernel/modules: package gpio-beeper
authorJohn Crispin <john@openwrt.org>
Tue, 2 Dec 2014 15:25:03 +0000 (15:25 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 2 Dec 2014 15:25:03 +0000 (15:25 +0000)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
SVN-Revision: 43495

package/kernel/linux/modules/other.mk

index 5d1c2fb3486f7195441867569d974185f098ce37..b1bb76a89256444106dc492cb345343acabe8140 100644 (file)
@@ -950,3 +950,22 @@ define KernelPackage/thermal-kirkwood/description
 endef
 
 $(eval $(call KernelPackage,thermal-kirkwood))
+
+
+define KernelPackage/gpio-beeper
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=GPIO beeper support
+  KCONFIG:= \
+       CONFIG_INPUT_MISC=y \
+       CONFIG_INPUT_GPIO_BEEPER
+  FILES:= \
+       $(LINUX_DIR)/drivers/input/misc/gpio-beeper.ko
+  AUTOLOAD:=$(call AutoLoad,50,gpio-beeper)
+  $(call AddDepends/input)
+endef
+
+define KernelPackage/gpio-beeper/description
+ This enables playing beeps through an GPIO-connected buzzer
+endef
+
+$(eval $(call KernelPackage,gpio-beeper))