kernel: kmod-mmc: handle moved mmc_block.ko
[openwrt/openwrt.git] / package / kernel / button-hotplug / Makefile
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 EXTRA_KCONFIG:= \
32 CONFIG_BUTTON_HOTPLUG=m
33
34 EXTRA_CFLAGS:= \
35 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(EXTRA_KCONFIG)))) \
36 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(EXTRA_KCONFIG)))) \
37
38 MAKE_OPTS:= \
39 $(KERNEL_MAKE_FLAGS) \
40 SUBDIRS="$(PKG_BUILD_DIR)" \
41 EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
42 $(EXTRA_KCONFIG)
43
44 define Build/Compile
45 $(MAKE) -C "$(LINUX_DIR)" \
46 $(MAKE_OPTS) \
47 modules
48 endef
49
50 $(eval $(call KernelPackage,button-hotplug))