virtual.mk 4.7 KB

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