source: trunk/package/gpio-button-hotplug/Makefile @ 31634

Last change on this file since 31634 was 31634, checked in by hauke, 4 years ago

kernel: remove kernel modules and references to kernels <= 2.6.36

OpenWrt does not support kernel version <= 2.6.36 any more, remove all modules only build for those kernels and all conditions specific for those kernel versions.

File size: 963 bytes
Line 
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
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=gpio-button-hotplug
12PKG_RELEASE:=1
13
14include $(INCLUDE_DIR)/package.mk
15
16define 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)
21  KCONFIG:=
22endef
23
24define KernelPackage/button-hotplug/description
25  Kernel module to generate GPIO button hotplug events
26endef
27
28MAKE_OPTS:= \
29        ARCH="$(LINUX_KARCH)" \
30        CROSS_COMPILE="$(TARGET_CROSS)" \
31        SUBDIRS="$(PKG_BUILD_DIR)"
32
33define Build/Prepare
34        mkdir -p $(PKG_BUILD_DIR)
35        $(CP) ./src/* $(PKG_BUILD_DIR)/
36endef
37
38define Build/Compile
39        $(MAKE) -C "$(LINUX_DIR)" \
40                $(MAKE_OPTS) \
41                modules
42endef
43
44$(eval $(call KernelPackage,gpio-button-hotplug))
Note: See TracBrowser for help on using the repository browser.