2 # Copyright (C) 2008-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
11 PKG_NAME
:=gpio-button-hotplug
14 include $(INCLUDE_DIR
)/package.mk
16 define KernelPackage
/gpio-button-hotplug
17 SUBMENU
:=Other modules
18 TITLE
:=Simple GPIO Button Hotplug driver
19 FILES
:=$(PKG_BUILD_DIR
)/gpio-button-hotplug.ko
20 AUTOLOAD
:=$(call AutoLoad
,30,gpio-button-hotplug
)
24 define KernelPackage
/button-hotplug
/description
25 Kernel module to generate GPIO button hotplug events
29 ARCH
="$(LINUX_KARCH)" \
30 CROSS_COMPILE
="$(TARGET_CROSS)" \
31 SUBDIRS
="$(PKG_BUILD_DIR)"
34 mkdir
-p
$(PKG_BUILD_DIR
)
35 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
39 $(MAKE
) -C
"$(LINUX_DIR)" \
44 $(eval
$(call KernelPackage
,gpio-button-hotplug
))