mac80211: fix patch naming
[openwrt.git] / package / w1-gpio-custom / Makefile
1 #
2 # Copyright (C) 2008 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:=w1-gpio-custom
12 PKG_RELEASE:=1
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define KernelPackage/w1-gpio-custom
17 SUBMENU:=W1 support
18 TITLE:=Custom GPIO-based 1-wire device
19 DEPENDS:=kmod-w1 +kmod-w1-master-gpio
20 FILES:=$(PKG_BUILD_DIR)/w1-gpio-custom.$(LINUX_KMOD_SUFFIX)
21 AUTOLOAD:=$(call AutoLoad,55,w1-gpio-custom)
22 KCONFIG:=
23 endef
24
25 define KernelPackage/w1-gpio-custom/description
26 Kernel module to register a custom w1-gpio platform device.
27 endef
28
29 EXTRA_KCONFIG:= \
30 CONFIG_W1_MASTER_GPIO_CUSTOM=m
31
32 EXTRA_CFLAGS:= \
33 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(EXTRA_KCONFIG)))) \
34 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(EXTRA_KCONFIG))))
35
36 MAKE_OPTS:= \
37 ARCH="$(LINUX_KARCH)" \
38 CROSS_COMPILE="$(TARGET_CROSS)" \
39 SUBDIRS="$(PKG_BUILD_DIR)" \
40 EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
41 $(EXTRA_KCONFIG)
42
43 define Build/Prepare
44 mkdir -p $(PKG_BUILD_DIR)
45 $(CP) ./src/* $(PKG_BUILD_DIR)/
46 endef
47
48 define Build/Compile
49 $(MAKE) -C "$(LINUX_DIR)" \
50 $(MAKE_OPTS) \
51 modules
52 endef
53
54 $(eval $(call KernelPackage,w1-gpio-custom))
55
This page took 0.049246 seconds and 5 git commands to generate.