You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
3.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=qemu
  3. PKG_VERSION:=3.0.0-rc2
  4. PKG_RELEASE:=1
  5. PKG_SOURCE_URL:=https://download.qemu.org/
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  7. PKG_HASH:=b02b30c7d460996835416ef09161f6faef2700e339cf11cd99481ca51b5954f2
  8. PKG_LICENSE:=GPL-2.0
  9. PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
  10. HOST_BUILD_PARALLEL:=1
  11. PKG_BUILD_PARALLEL:=1
  12. PKG_INSTALL:=1
  13. include $(INCLUDE_DIR)/host-build.mk
  14. include $(INCLUDE_DIR)/package.mk
  15. HOST_BUILD_DEPENDS:=glib2/host
  16. define Package/qemu-userspace
  17. SECTION:=utils
  18. CATEGORY:=Utilities
  19. SUBMENU:=Virtualization
  20. TITLE:=qemu $(PKG_VERSION) (Linux/BSD User space emulation)
  21. URL:=https://www.qemu.org
  22. DEPENDS:=+glib2 +zlib +libpthread @BROKEN
  23. endef
  24. define Package/qemu-userspace/description
  25. QEMU is a generic and open source machine emulator and virtualizer.
  26. (This package version is for user space emulation only, not full system.)
  27. endef
  28. HOST_CONFIGURE_ARGS += \
  29. --audio-drv-list='' \
  30. --disable-slirp \
  31. --disable-debug-info \
  32. --disable-modules \
  33. --disable-sdl \
  34. --disable-qom-cast-debug \
  35. --disable-virtfs \
  36. --disable-vnc \
  37. --disable-debug-tcg \
  38. --disable-sparse \
  39. --disable-strip \
  40. --disable-vnc-sasl \
  41. --disable-vnc-jpeg \
  42. --disable-vnc-png \
  43. --disable-vde \
  44. --disable-netmap \
  45. --disable-xen \
  46. --disable-xen-pci-passthrough \
  47. --disable-xen-pv-domain-build \
  48. --disable-brlapi \
  49. --disable-bluez \
  50. --disable-tcg-interpreter \
  51. --disable-cap-ng \
  52. --disable-spice \
  53. --disable-libiscsi \
  54. --disable-libnfs \
  55. --disable-cocoa \
  56. --disable-werror \
  57. --disable-stack-protector \
  58. --disable-curl \
  59. --disable-crypto-afalg \
  60. --disable-docs \
  61. --disable-vhost-net \
  62. --disable-vhost-scsi \
  63. --disable-vhost-vsock \
  64. --disable-opengl \
  65. --disable-rbd \
  66. --disable-xfsctl \
  67. --disable-smartcard \
  68. --disable-libusb \
  69. --disable-usb-redir \
  70. --disable-zlib-test \
  71. --disable-lzo \
  72. --disable-snappy \
  73. --disable-bzip2 \
  74. --disable-guest-agent-msi \
  75. --without-vss-sdk \
  76. --without-win-sdk \
  77. --disable-tools \
  78. --disable-glusterfs \
  79. --disable-gtk \
  80. --disable-gnutls \
  81. --disable-nettle \
  82. --disable-gcrypt \
  83. --disable-rdma \
  84. --disable-vte \
  85. --disable-virglrenderer \
  86. --disable-tpm \
  87. --disable-libssh2 \
  88. --disable-strip \
  89. --disable-replication \
  90. --disable-vxhs \
  91. --disable-system \
  92. --disable-guest-agent \
  93. --disable-pie \
  94. --disable-live-block-migration \
  95. --disable-numa \
  96. --disable-libxml2 \
  97. --disable-capstone \
  98. --disable-debug-mutex \
  99. --disable-git-update \
  100. --disable-hax \
  101. --disable-kvm \
  102. --disable-hvf \
  103. --disable-whpx \
  104. --disable-blobs
  105. # --disable-tcg
  106. # --disable-bsd-user
  107. # --disable-linux-aio
  108. # --disable-attr
  109. # --disable-seccomp
  110. # --disable-coroutine-pool
  111. # --disable-tcmalloc
  112. # --disable-jemalloc
  113. # --disable-vhost-user
  114. # QEMU configure script does not recognize these options
  115. HOST_CONFIGURE_ARGS:=$(filter-out \
  116. --target=% \
  117. --host=% \
  118. --build=% \
  119. --program-prefix=% \
  120. --program-suffix=% \
  121. --exec-prefix=% \
  122. --disable-nls \
  123. , $(HOST_CONFIGURE_ARGS))
  124. # does this do anything in usermode?
  125. CONFIGURE_ARGS:=$(filter-out \
  126. --disable-hax \
  127. --disable-kvm \
  128. --disable-hvf \
  129. --disable-blobs \
  130. , $(HOST_CONFIGURE_ARGS))
  131. CONFIGURE_ARGS += \
  132. --cross-prefix=$(TARGET_CROSS) \
  133. --host-cc="$(HOSTCC)"
  134. $(eval $(call HostBuild))
  135. $(eval $(call BuildPackage,qemu-userspace))