-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qemu: update to 6.1.0, add usb passthrough option
One of big change is that QEMU has switched to Meson build system. That result in few changes to build scripts to fix python interpreter usage. Second change that it's not possible to select binaries to build, so now we have to build all targets at once (that require --enable-tools). Options --disable-sheepdog and --disable-vxhs was removed from qemu 6.1.0 and 6.0.0 accordingly. Signed-off-by: Vladimir Ermakov <[email protected]> Signed-off-by: Tianling Shen <[email protected]>
- Loading branch information
1 parent
e8c834d
commit eeb65e6
Showing
8 changed files
with
45 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,12 @@ | |
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=qemu | ||
PKG_VERSION:=5.0.0 | ||
PKG_RELEASE:=5 | ||
PKG_VERSION:=6.1.0 | ||
PKG_RELEASE:=$(AUTORELEASE) | ||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz | ||
PKG_HASH:=2f13a92a0fa5c8b69ff0796b59b86b080bbb92ebad5d301a7724dd06b5e78cb6 | ||
PKG_HASH:=eebc089db3414bbeedf1e464beda0a7515aad30f73261abc246c9b27503a3c96 | ||
PKG_SOURCE_URL:=http://download.qemu.org/ | ||
PKG_LICENSE:=GPL-2.0 | ||
PKG_LICENSE:=GPL-2.0-only | ||
PKG_LICENSE_FILES:=LICENSE tcg/LICENSE | ||
PKG_MAINTAINER:=Yousong Zhou <[email protected]> | ||
PKG_CPE_ID:=cpe:/a:qemu:qemu | ||
|
@@ -23,7 +23,7 @@ PKG_BUILD_PARALLEL:=1 | |
PKG_INSTALL:=1 | ||
PKG_USE_MIPS16:=0 | ||
|
||
PKG_BUILD_DEPENDS+=spice-protocol | ||
PKG_BUILD_DEPENDS+=spice-protocol meson/host | ||
|
||
include $(INCLUDE_DIR)/nls.mk | ||
include $(INCLUDE_DIR)/package.mk | ||
|
@@ -98,7 +98,7 @@ endef | |
|
||
define Package/qemu-img/install | ||
$(INSTALL_DIR) $(1)/usr/bin/ | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/qemu-img $(1)/usr/bin/qemu-img | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/build/qemu-img $(1)/usr/bin/qemu-img | ||
endef | ||
|
||
|
||
|
@@ -113,7 +113,7 @@ endef | |
|
||
define Package/qemu-nbd/install | ||
$(INSTALL_DIR) $(1)/usr/sbin/ | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/qemu-nbd $(1)/usr/sbin/qemu-nbd | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/build/qemu-nbd $(1)/usr/sbin/qemu-nbd | ||
endef | ||
|
||
|
||
|
@@ -192,12 +192,13 @@ define qemu-target | |
SUBMENU:=Virtualization | ||
TITLE:=QEMU target $(1) | ||
URL:=http://www.qemu.org | ||
DEPENDS:= +glib2 +libpthread +zlib $(QEMU_DEPS_IN_HOST) $(qemu-target-$(1)-deps) \ | ||
DEPENDS:= +glib2 +libpthread +zlib +libbpf $(QEMU_DEPS_IN_HOST) $(qemu-target-$(1)-deps) \ | ||
+QEMU_UI_VNC:qemu-keymaps \ | ||
+QEMU_UI_VNC_JPEG:libjpeg \ | ||
+QEMU_UI_VNC_PNG:libpng \ | ||
+QEMU_UI_VNC_SASL:libsasl2 \ | ||
+QEMU_UI_SPICE:libspice-server \ | ||
+QEMU_DEV_USB:libusb-1.0 \ | ||
$(if $(filter %-softmmu,$(1)),+libncurses +libfdt +pixman +qemu-firmware-efi $(ICONV_DEPENDS)) | ||
endef | ||
|
||
|
@@ -259,6 +260,9 @@ config QEMU_UI_VNC_SASL | |
config QEMU_UI_SPICE | ||
bool "QEMU SPICE ui support" | ||
|
||
config QEMU_DEV_USB | ||
bool "QEMU USB passthrough support" | ||
|
||
endif | ||
endef | ||
|
||
|
@@ -268,6 +272,7 @@ PKG_CONFIG_DEPENDS += \ | |
CONFIG_QEMU_UI_VNC_PNG \ | ||
CONFIG_QEMU_UI_VNC_SASL \ | ||
CONFIG_QEMU_UI_SPICE \ | ||
CONFIG_QEMU_DEV_USB \ | ||
|
||
|
||
# QEMU configure script does not recognize these options | ||
|
@@ -301,7 +306,9 @@ CONFIGURE_ARGS += \ | |
--enable-vhost-scsi \ | ||
--enable-vhost-user \ | ||
--enable-vhost-user-fs \ | ||
--enable-vhost-user-blk-server \ | ||
--enable-vhost-vsock \ | ||
--enable-vhost-vdpa \ | ||
|
||
# Image formats support | ||
CONFIGURE_ARGS += \ | ||
|
@@ -353,6 +360,8 @@ CONFIGURE_ARGS += \ | |
--enable-live-block-migration \ | ||
--enable-membarrier \ | ||
--enable-replication \ | ||
--enable-lto \ | ||
--enable-tools \ | ||
|
||
# Review configure options not explicitly specified here | ||
# | ||
|
@@ -377,7 +386,7 @@ CONFIGURE_ARGS += \ | |
--disable-debug-tcg \ | ||
--disable-docs \ | ||
--disable-gcrypt \ | ||
--disable-git-update \ | ||
--with-git-submodules=ignore \ | ||
--disable-glusterfs \ | ||
--disable-gnutls \ | ||
--disable-guest-agent-msi \ | ||
|
@@ -387,7 +396,7 @@ CONFIGURE_ARGS += \ | |
--disable-libpmem \ | ||
--disable-libssh \ | ||
--disable-libudev \ | ||
--disable-libusb \ | ||
--$(if $(CONFIG_QEMU_DEV_USB),enable,disable)-libusb \ | ||
--disable-libxml2 \ | ||
--disable-linux-aio \ | ||
--disable-linux-io-uring \ | ||
|
@@ -407,19 +416,16 @@ CONFIGURE_ARGS += \ | |
--disable-rdma \ | ||
--disable-sanitizers \ | ||
--disable-seccomp \ | ||
--disable-sheepdog \ | ||
--disable-smartcard \ | ||
--disable-snappy \ | ||
--disable-sparse \ | ||
--disable-strip \ | ||
--disable-tcg-interpreter \ | ||
--disable-tcmalloc \ | ||
--disable-tools \ | ||
--disable-tpm \ | ||
--disable-usb-redir \ | ||
--disable-vde \ | ||
--disable-virtfs \ | ||
--disable-vxhs \ | ||
--disable-werror \ | ||
--disable-xen-pci-passthrough \ | ||
--disable-xkbcommon \ | ||
|
@@ -437,17 +443,6 @@ MAKE_FLAGS:=$(filter-out \ | |
ARCH=% \ | ||
,$(MAKE_FLAGS)) | ||
|
||
QEMU_MAKE_TARGETS := \ | ||
$(if $(CONFIG_PACKAGE_qemu-ga),qemu-ga) \ | ||
$(if $(CONFIG_PACKAGE_qemu-bridge-helper),qemu-bridge-helper) \ | ||
$(if $(CONFIG_PACKAGE_qemu-img),qemu-img) \ | ||
$(if $(CONFIG_PACKAGE_qemu-nbd),qemu-nbd) \ | ||
$(foreach target,$(qemu-target-list),$(if $(CONFIG_PACKAGE_qemu-$(target)),$(target)/all)) \ | ||
|
||
define Build/Compile | ||
$(if $(strip $(QEMU_MAKE_TARGETS)),$(call Build/Compile/Default,$(QEMU_MAKE_TARGETS))) | ||
endef | ||
|
||
$(eval $(call BuildPackage,virtio-console-helper)) | ||
$(eval $(call BuildPackage,qemu-ga)) | ||
$(eval $(call BuildPackage,qemu-bridge-helper)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,6 @@ Signed-off-by: Yousong Zhou <[email protected]> | |
util/mmap-alloc.c | 10 +++++++--- | ||
1 file changed, 7 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/util/mmap-alloc.c b/util/mmap-alloc.c | ||
index 27dcccd8ec..e133e38d21 100644 | ||
--- a/util/mmap-alloc.c | ||
+++ b/util/mmap-alloc.c | ||
@@ -12,9 +12,6 @@ | ||
|
@@ -34,7 +32,7 @@ index 27dcccd8ec..e133e38d21 100644 | |
#endif /* CONFIG_LINUX */ | ||
|
||
#include "qemu/osdep.h" | ||
@@ -27,6 +24,13 @@ | ||
@@ -29,6 +26,13 @@ | ||
#include <sys/vfs.h> | ||
#endif | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters