b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2008-2010 OpenWrt.org |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | include $(INCLUDE_DIR)/kernel.mk |
| 10 | |
| 11 | PKG_NAME:=button-hotplug |
| 12 | PKG_RELEASE:=3 |
| 13 | PKG_LICENSE:=GPL-2.0 |
| 14 | |
| 15 | include $(INCLUDE_DIR)/package.mk |
| 16 | |
| 17 | define KernelPackage/button-hotplug |
| 18 | SUBMENU:=Other modules |
| 19 | TITLE:=Button Hotplug driver |
| 20 | DEPENDS:=+kmod-input-core |
| 21 | FILES:=$(PKG_BUILD_DIR)/button-hotplug.ko |
| 22 | AUTOLOAD:=$(call AutoLoad,30,button-hotplug,1) |
| 23 | KCONFIG:= |
| 24 | endef |
| 25 | |
| 26 | define KernelPackage/button-hotplug/description |
| 27 | Kernel module to generate button uevent-s from input subsystem events. |
| 28 | If your device uses GPIO buttons, see gpio-button-hotplug. |
| 29 | endef |
| 30 | |
| 31 | define Build/Compile |
| 32 | $(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" modules |
| 33 | endef |
| 34 | |
| 35 | $(eval $(call KernelPackage,button-hotplug)) |