source: trunk/package/kernel/modules/w1.mk @ 22145

Last change on this file since 22145 was 22145, checked in by claudio, 6 years ago

massive: replace occurences of .$(LINUX_KMOD_SUFFIX) with .ko after r21950

  • Property svn:eol-style set to native
File size: 2.7 KB
Line 
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
8W1_MENU:=W1 support
9W1_MASTERS_DIR:=$(LINUX_DIR)/drivers/w1/masters
10W1_SLAVES_DIR:=$(LINUX_DIR)/drivers/w1/slaves
11
12define KernelPackage/w1
13  SUBMENU:=$(W1_MENU)
14  TITLE:=Dallas's 1-wire support
15  KCONFIG:=CONFIG_W1
16  FILES:=$(LINUX_DIR)/drivers/w1/wire.ko
17  AUTOLOAD:=$(call AutoLoad,50,wire)
18endef
19
20define KernelPackage/w1/description
21  Kernel module for Dallas's 1-wire support
22endef
23
24$(eval $(call KernelPackage,w1))
25
26
27define AddDepends/w1
28  SUBMENU:=$(W1_MENU)
29  DEPENDS+=kmod-w1 $(1)
30endef
31
32
33#
34# 1-wire masters
35#
36define KernelPackage/w1-master-gpio
37  TITLE:=GPIO 1-wire bus master driver
38  DEPENDS:=@GPIO_SUPPORT
39  KCONFIG:=CONFIG_W1_MASTER_GPIO
40  FILES:=$(W1_MASTERS_DIR)/w1-gpio.ko
41  AUTOLOAD:=$(call AutoLoad,60,w1-gpio)
42  $(call AddDepends/w1)
43endef
44
45define KernelPackage/w1-master-gpio/description
46  Kernel module for the GPIO 1-wire bus master driver
47endef
48
49$(eval $(call KernelPackage,w1-master-gpio))
50
51
52#
53# 1-wire slaves
54#
55define KernelPackage/w1-slave-therm
56  TITLE:=Thermal family implementation
57  KCONFIG:=CONFIG_W1_SLAVE_THERM
58  FILES:=$(W1_SLAVES_DIR)/w1_therm.ko
59  AUTOLOAD:=$(call AutoLoad,70,w1_therm)
60  $(call AddDepends/w1)
61endef
62
63define KernelPackage/w1-slave-therm/description
64  Kernel module for 1-wire thermal sensors
65endef
66
67$(eval $(call KernelPackage,w1-slave-therm))
68
69
70define KernelPackage/w1-slave-smem
71  TITLE:=Simple 64bit memory family implementation
72  KCONFIG:=CONFIG_W1_SLAVE_SMEM
73  FILES:=$(W1_SLAVES_DIR)/w1_smem.ko
74  AUTOLOAD:=$(call AutoLoad,70,w1_smem)
75  $(call AddDepends/w1)
76endef
77
78define KernelPackage/w1-slave-smem/description
79  Kernel module for 1-wire simple 64bit memory rom(ds2401/ds2411/ds1990*)
80endef
81
82$(eval $(call KernelPackage,w1-slave-smem))
83
84
85define KernelPackage/w1-slave-ds2433
86  TITLE:=Simple 64bit memory family implementation
87  KCONFIG:= \
88        CONFIG_W1_SLAVE_DS2433 \
89        CONFIG_W1_SLAVE_DS2433_CRC=n
90  FILES:=$(W1_SLAVES_DIR)/w1_ds2433.ko
91  AUTOLOAD:=$(call AutoLoad,70,w1_ds2433)
92  $(call AddDepends/w1)
93endef
94
95define KernelPackage/w1-slave-ds2433/description
96  Kernel module for 1-wire simple 64bit memory rom(ds2401/ds2411/ds1990*)
97endef
98
99$(eval $(call KernelPackage,w1-slave-ds2433))
100
101
102define KernelPackage/w1-slave-ds2760
103  TITLE:=Dallas 2760 battery monitor chip (HP iPAQ & others)
104  KCONFIG:= \
105        CONFIG_W1_SLAVE_DS2760 \
106        CONFIG_W1_SLAVE_DS2433_CRC=n
107  FILES:=$(W1_SLAVES_DIR)/w1_ds2760.ko
108  AUTOLOAD:=$(call AutoLoad,70,w1_ds2760)
109  $(call AddDepends/w1)
110endef
111
112define KernelPackage/w1-slave-ds2760/description
113  Kernel module for 1-wire DS2760 battery monitor chip support
114endef
115
116$(eval $(call KernelPackage,w1-slave-ds2760))
Note: See TracBrowser for help on using the repository browser.