kernel: make sure that packages are generated for built-in crypto modules to avoid...
[openwrt/svn-archive/archive.git] / package / kernel / modules / virtual.mk
1 #
2 # Copyright (C) 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
8 VIRTUAL_MENU:=Virtualization Support
9
10
11 define KernelPackage/virtio-balloon
12 SUBMENU:=$(VIRTUAL_MENU)
13 TITLE:=VirtIO balloon driver
14 DEPENDS:=@TARGET_x86_kvm_guest
15 KCONFIG:=CONFIG_VIRTIO_BALLOON
16 FILES:=$(LINUX_DIR)/drivers/virtio/virtio_balloon.ko
17 AUTOLOAD:=$(call AutoLoad,06,virtio-balloon)
18 endef
19
20 define KernelPackage/virtio-balloon/description
21 Kernel module for VirtIO memory ballooning support
22 endef
23
24 $(eval $(call KernelPackage,virtio-balloon))
25
26
27 define KernelPackage/virtio-net
28 SUBMENU:=$(VIRTUAL_MENU)
29 TITLE:=VirtIO network driver
30 DEPENDS:=@TARGET_x86_kvm_guest
31 KCONFIG:=CONFIG_VIRTIO_NET
32 FILES:=$(LINUX_DIR)/drivers/net/virtio_net.ko
33 AUTOLOAD:=$(call AutoLoad,50,virtio_net)
34 endef
35
36 define KernelPackage/virtio-net/description
37 Kernel module for the VirtIO paravirtualized network device
38 endef
39
40 $(eval $(call KernelPackage,virtio-net))
41
42
43 define KernelPackage/virtio-random
44 SUBMENU:=$(VIRTUAL_MENU)
45 TITLE:=VirtIO Random Number Generator support
46 DEPENDS:=@TARGET_x86_kvm_guest
47 KCONFIG:=CONFIG_HW_RANDOM_VIRTIO
48 FILES:=$(LINUX_DIR)/drivers/char/hw_random/virtio-rng.ko
49 AUTOLOAD:=$(call AutoLoad,09,virtio-rng)
50 endef
51
52 define KernelPackage/virtio-random/description
53 Kernel module for the VirtIO Random Number Generator
54 endef
55
56 $(eval $(call KernelPackage,virtio-random))
57
58 define KernelPackage/xen-fs
59 SUBMENU:=$(VIRTUAL_MENU)
60 TITLE:=Xen filesystem
61 DEPENDS:=@TARGET_x86_xen_domu
62 KCONFIG:= \
63 CONFIG_XENFS \
64 CONFIG_XEN_COMPAT_XENFS=y
65 FILES:=$(LINUX_DIR)/drivers/xen/xenfs/xenfs.ko
66 AUTOLOAD:=$(call AutoLoad,05,xenfs)
67 endef
68
69 define KernelPackage/xen-fs/description
70 Kernel module for the Xen filesystem
71 endef
72
73 $(eval $(call KernelPackage,xen-fs))
74
75
76 define KernelPackage/xen-evtchn
77 SUBMENU:=$(VIRTUAL_MENU)
78 TITLE:=Xen event channels
79 DEPENDS:=@TARGET_x86_xen_domu
80 KCONFIG:=CONFIG_XEN_DEV_EVTCHN
81 FILES:=$(LINUX_DIR)/drivers/xen/xen-evtchn.ko
82 AUTOLOAD:=$(call AutoLoad,06,xen-evtchn)
83 endef
84
85 define KernelPackage/xen-evtchn/description
86 Kernel module for the /dev/xen/evtchn device
87 endef
88
89 $(eval $(call KernelPackage,xen-evtchn))
90
91 define KernelPackage/xen-fbdev
92 SUBMENU:=$(VIRTUAL_MENU)
93 TITLE:=Xen virtual frame buffer
94 DEPENDS:=@TARGET_x86_xen_domu +kmod-fb
95 KCONFIG:= \
96 CONFIG_XEN_FBDEV_FRONTEND \
97 CONFIG_FB_DEFERRED_IO=y \
98 CONFIG_FB_SYS_COPYAREA \
99 CONFIG_FB_SYS_FILLRECT \
100 CONFIG_FB_SYS_FOPS \
101 CONFIG_FB_SYS_IMAGEBLIT \
102 CONFIG_FIRMWARE_EDID=n
103 FILES:= \
104 $(LINUX_DIR)/drivers/video/xen-fbfront.ko \
105 $(LINUX_DIR)/drivers/video/syscopyarea.ko \
106 $(LINUX_DIR)/drivers/video/sysfillrect.ko \
107 $(LINUX_DIR)/drivers/video/fb_sys_fops.ko \
108 $(LINUX_DIR)/drivers/video/sysimgblt.ko
109 AUTOLOAD:=$(call AutoLoad,07, \
110 fb \
111 syscopyarea \
112 sysfillrect \
113 fb_sys_fops \
114 sysimgblt \
115 xen-fbfront \
116 )
117 endef
118
119 define KernelPackage/xen-fbdev/description
120 Kernel module for the Xen virtual frame buffer
121 endef
122
123 $(eval $(call KernelPackage,xen-fbdev))
124
125
126 define KernelPackage/xen-kbddev
127 SUBMENU:=$(VIRTUAL_MENU)
128 TITLE:=Xen virtual keyboard and mouse
129 DEPENDS:=@TARGET_x86_xen_domu
130 KCONFIG:=CONFIG_XEN_KBDDEV_FRONTEND
131 FILES:=$(LINUX_DIR)/drivers/input/xen-kbdfront.ko
132 AUTOLOAD:=$(call AutoLoad,08,xen-kbdfront)
133 endef
134
135 define KernelPackage/xen-kbddev/description
136 Kernel module for the Xen virtual keyboard and mouse
137 endef
138
139 $(eval $(call KernelPackage,xen-kbddev))
140
141
142 define KernelPackage/xen-netdev
143 SUBMENU:=$(VIRTUAL_MENU)
144 TITLE:=Xen network device frontend
145 DEPENDS:=@TARGET_x86_xen_domu
146 KCONFIG:=CONFIG_XEN_NETDEV_FRONTEND
147 FILES:=$(LINUX_DIR)/drivers/net/xen-netfront.ko
148 AUTOLOAD:=$(call AutoLoad,09,xen-netfront)
149 endef
150
151 define KernelPackage/xen-netdev/description
152 Kernel module for the Xen network device frontend
153 endef
154
155 $(eval $(call KernelPackage,xen-netdev))
156
157
158 define KernelPackage/xen-pcidev
159 SUBMENU:=$(VIRTUAL_MENU)
160 TITLE:=Xen PCI device frontend
161 DEPENDS:=@TARGET_x86_xen_domu
162 KCONFIG:=CONFIG_XEN_PCIDEV_FRONTEND
163 FILES:=$(LINUX_DIR)/drivers/pci/xen-pcifront.ko
164 AUTOLOAD:=$(call AutoLoad,10,xen-pcifront)
165 endef
166
167 define KernelPackage/xen-pcidev/description
168 Kernel module for the Xen network device frontend
169 endef
170
171 $(eval $(call KernelPackage,xen-pcidev))