kmod-sched-cake: bump to 20180827
[openwrt/staging/wigyori.git] / package / kernel / gpio-nct5104d / Makefile
1 #
2 # Copyright (C) 2017 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-nct5104d
12 PKG_RELEASE:=1
13
14 PKG_MAINTAINER:=Florian Eckert <Eckert.Florian@googlemail.com>
15 PKG_LICENSE:=GPL-2.0
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define KernelPackage/gpio-nct5104d
20 SUBMENU:=Other modules
21 TITLE:= GPIO nct5104d support
22 DEPENDS:= @GPIO_SUPPORT @TARGET_x86
23 FILES:=$(PKG_BUILD_DIR)/gpio-nct5104d.ko
24 AUTOLOAD:=$(call AutoLoad,30,gpio-nct5104d,1)
25 KCONFIG:=
26 endef
27
28 define KernelPackage/gpio-nct5104d/description
29 Support for GPIO functionality of NCT5104D super I/O chip.
30 endef
31
32 EXTRA_KCONFIG:= \
33 CONFIG_GPIO_NCT5104D=m
34
35 EXTRA_CFLAGS:= \
36 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(EXTRA_KCONFIG)))) \
37 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(EXTRA_KCONFIG)))) \
38
39 MAKE_OPTS:= \
40 $(KERNEL_MAKE_FLAGS) \
41 SUBDIRS="$(PKG_BUILD_DIR)" \
42 EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
43 $(EXTRA_KCONFIG)
44
45 define Build/Compile
46 $(MAKE) -C "$(LINUX_DIR)" \
47 $(MAKE_OPTS) \
48 modules
49 endef
50
51 $(eval $(call KernelPackage,gpio-nct5104d))