mac80211: Drop ath10k workaround for providing calibration data
[openwrt/openwrt.git] / package / kernel / gpio-button-hotplug / Makefile
1 #
2 # Copyright (C) 2008-2012 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:=gpio-button-hotplug
12 PKG_RELEASE:=1
13
14 include $(INCLUDE_DIR)/package.mk
15
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,1)
21 KCONFIG:=
22 endef
23
24 define KernelPackage/gpio-button-hotplug/description
25 This is a replacement for the following in-kernel drivers:
26 1) gpio_keys (KEYBOARD_GPIO)
27 2) gpio_keys_polled (KEYBOARD_GPIO_POLLED)
28
29 Instead of generating input events (like in-kernel drivers do) it generates
30 uevent-s and broadcasts them. This allows disabling input subsystem which is
31 an overkill for OpenWrt simple needs.
32 endef
33
34 MAKE_OPTS:= \
35 ARCH="$(LINUX_KARCH)" \
36 CROSS_COMPILE="$(TARGET_CROSS)" \
37 SUBDIRS="$(PKG_BUILD_DIR)"
38
39 define Build/Prepare
40 mkdir -p $(PKG_BUILD_DIR)
41 $(CP) ./src/* $(PKG_BUILD_DIR)/
42 endef
43
44 define Build/Compile
45 $(MAKE) -C "$(LINUX_DIR)" \
46 $(MAKE_OPTS) \
47 modules
48 endef
49
50 $(eval $(call KernelPackage,gpio-button-hotplug))