tools: clean up Makefiles / make ccache work
[openwrt.git] / package / kernel / modules / firewire.mk
1 #
2 # Copyright (C) 2008-2011 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 FIREWIRE_MENU:=FireWire support
9
10 define firewiredep
11 SUBMENU:=$(FIREWIRE_MENU)
12 DEPENDS:=kmod-ieee1394 $(1)
13 endef
14
15
16 define KernelPackage/ieee1394
17 SUBMENU:=$(FIREWIRE_MENU)
18 TITLE:=Support for FireWire (old stack)
19 DEPENDS:=@PCI_SUPPORT @LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36
20 KCONFIG:=CONFIG_IEEE1394
21 FILES:=$(LINUX_DIR)/drivers/ieee1394/ieee1394.ko
22 AUTOLOAD:=$(call AutoLoad,20,ieee1394)
23 endef
24
25 define KernelPackage/ieee1394/description
26 Kernel support for FireWire (old stack)
27 endef
28
29 $(eval $(call KernelPackage,ieee1394))
30
31
32 define KernelPackage/ohci1394
33 $(call firewiredep,)
34 TITLE:=Support for OHCI-1394 controllers
35 KCONFIG:= CONFIG_IEEE1394_OHCI1394
36 FILES:=$(LINUX_DIR)/drivers/ieee1394/ohci1394.ko
37 AUTOLOAD:=$(call AutoLoad,50,ohci1394)
38 endef
39
40 define KernelPackage/ohci1394/description
41 Kernel support for FireWire OHCI-1394 controllers
42 endef
43
44 $(eval $(call KernelPackage,ohci1394))
45
46
47 define KernelPackage/sbp2
48 $(call firewiredep,kmod-ohci1394)
49 TITLE:=Support for SBP-2 devices over FireWire
50 KCONFIG:= \
51 CONFIG_IEEE1394_SBP2 \
52 CONFIG_IEEE1394_SBP2_PHYS_DMA=n
53 FILES:=$(LINUX_DIR)/drivers/ieee1394/sbp2.ko
54 AUTOLOAD:=$(call AutoLoad,50,sbp2)
55 endef
56
57 define KernelPackage/sbp2/description
58 Kernel support for SBP-2 devices over FireWire
59 endef
60
61 $(eval $(call KernelPackage,sbp2))
62
63
64 define KernelPackage/raw1394
65 $(call firewiredep,kmod-ohci1394)
66 TITLE:=Support for Raw I/O for FireWire devices
67 KCONFIG:=CONFIG_IEEE1394_RAWIO
68 FILES:=$(LINUX_DIR)/drivers/ieee1394/raw1394.ko
69 AUTOLOAD:=$(call AutoLoad,50,raw1394)
70 endef
71
72 define KernelPackage/raw1394/description
73 Kernel support for FireWire Raw I/O
74 endef
75
76 $(eval $(call KernelPackage,raw1394))
77
78
79 define KernelPackage/video1394
80 $(call firewiredep,kmod-ohci1394)
81 TITLE:=Support for FireWire video
82 KCONFIG:=CONFIG_IEEE1394_VIDEO1394
83 FILES:=$(LINUX_DIR)/drivers/ieee1394/video1394.ko
84 AUTOLOAD:=$(call AutoLoad,50,video1394)
85 endef
86
87 define KernelPackage/video1394/description
88 Kernel support for FireWire video
89 endef
90
91 $(eval $(call KernelPackage,video1394))
92
93
94 define KernelPackage/firewire
95 SUBMENU:=$(FIREWIRE_MENU)
96 TITLE:=Support for FireWire (new stack)
97 DEPENDS:=@PCI_SUPPORT +kmod-lib-crc-itu-t
98 KCONFIG:=CONFIG_FIREWIRE
99 FILES:=$(LINUX_DIR)/drivers/firewire/firewire-core.ko
100 AUTOLOAD:=$(call AutoLoad,20,firewire-core)
101 endef
102
103 define KernelPackage/firewire/description
104 Kernel support for FireWire (new stack)
105 endef
106
107 $(eval $(call KernelPackage,firewire))
108
109
110 define KernelPackage/firewire-ohci
111 SUBMENU:=$(FIREWIRE_MENU)
112 TITLE:=Support for OHCI-1394 controllers
113 DEPENDS:=kmod-firewire
114 KCONFIG:= \
115 CONFIG_FIREWIRE_OHCI \
116 CONFIG_FIREWIRE_OHCI_DEBUG=n \
117 CONFIG_FIREWIRE_OHCI_REMOTE_DMA=n
118 FILES:=$(LINUX_DIR)/drivers/firewire/firewire-ohci.ko
119 AUTOLOAD:=$(call AutoLoad,50,firewire-ohci)
120 endef
121
122
123 define KernelPackage/firewire-ohci/description
124 Kernel support for FireWire OHCI-1394 controllers
125 endef
126
127 $(eval $(call KernelPackage,firewire-ohci))
128
129
130 define KernelPackage/firewire-sbp2
131 SUBMENU:=$(FIREWIRE_MENU)
132 TITLE:=Support for SBP-2 devices over FireWire
133 DEPENDS:=kmod-firewire +kmod-scsi-core
134 KCONFIG:=CONFIG_FIREWIRE_SBP2
135 FILES:=$(LINUX_DIR)/drivers/firewire/firewire-sbp2.ko
136 AUTOLOAD:=$(call AutoLoad,50,firewire-sbp2)
137 endef
138
139 define KernelPackage/firewire-sbp2/description
140 Kernel support for SBP-2 devices over FireWire
141 endef
142
143 $(eval $(call KernelPackage,firewire-sbp2))
144
145
146 define KernelPackage/firewire-net
147 SUBMENU:=$(FIREWIRE_MENU)
148 TITLE:=Support for IP networking over FireWire
149 DEPENDS:=kmod-firewire @!LINUX_2_6_30
150 KCONFIG:=CONFIG_FIREWIRE_NET
151 FILES:=$(LINUX_DIR)/drivers/firewire/firewire-net.ko
152 AUTOLOAD:=$(call AutoLoad,50,firewire-net)
153 endef
154
155 define KernelPackage/firewire-net/description
156 Kernel support for IPv4 over FireWire
157 endef
158
159 $(eval $(call KernelPackage,firewire-net))
160
This page took 0.049205 seconds and 5 git commands to generate.