blob: 8e8c02609c8bb9d5dfcec4ad14541462c04710a2 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
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
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=button-hotplug
12PKG_RELEASE:=3
13PKG_LICENSE:=GPL-2.0
14
15include $(INCLUDE_DIR)/package.mk
16
17define 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:=
24endef
25
26define 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.
29endef
30
31define Build/Compile
32 $(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" modules
33endef
34
35$(eval $(call KernelPackage,button-hotplug))