qemu: add zstd option
Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
This commit is contained in:
parent
65d052d9b8
commit
6035e4884d
|
@ -91,7 +91,7 @@ define Package/qemu-img
|
||||||
SUBMENU:=Virtualization
|
SUBMENU:=Virtualization
|
||||||
TITLE:=QEMU Image utility
|
TITLE:=QEMU Image utility
|
||||||
URL:=http://www.qemu.org
|
URL:=http://www.qemu.org
|
||||||
DEPENDS:=+glib2 $(QEMU_DEPS_IN_HOST)
|
DEPENDS:=+glib2 +QEMU_ZSTD:libzstd $(QEMU_DEPS_IN_HOST)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/qemu-img/install
|
define Package/qemu-img/install
|
||||||
|
@ -106,7 +106,7 @@ define Package/qemu-nbd
|
||||||
SUBMENU:=Virtualization
|
SUBMENU:=Virtualization
|
||||||
TITLE:=QEMU Network Block Device Utility
|
TITLE:=QEMU Network Block Device Utility
|
||||||
URL:=http://www.qemu.org
|
URL:=http://www.qemu.org
|
||||||
DEPENDS:=+glib2 $(QEMU_DEPS_IN_HOST) +kmod-nbd
|
DEPENDS:=+glib2 +QEMU_ZSTD:libzstd $(QEMU_DEPS_IN_HOST) +kmod-nbd
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/qemu-nbd/install
|
define Package/qemu-nbd/install
|
||||||
|
@ -198,6 +198,7 @@ define qemu-target
|
||||||
+QEMU_UI_SPICE:libspice-server \
|
+QEMU_UI_SPICE:libspice-server \
|
||||||
+QEMU_DEV_USB:libusb-1.0 \
|
+QEMU_DEV_USB:libusb-1.0 \
|
||||||
+QEMU_SECCOMP:libseccomp \
|
+QEMU_SECCOMP:libseccomp \
|
||||||
|
+QEMU_ZSTD:libzstd \
|
||||||
$(if $(filter %-softmmu,$(1)),+libncurses +libfdt +libslirp +libudev +pixman +qemu-firmware-efi $(ICONV_DEPENDS))
|
$(if $(filter %-softmmu,$(1)),+libncurses +libfdt +libslirp +libudev +pixman +qemu-firmware-efi $(ICONV_DEPENDS))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -265,6 +266,10 @@ config QEMU_SECCOMP
|
||||||
Build QEMU with support for seccomp filters.
|
Build QEMU with support for seccomp filters.
|
||||||
Select libseccomp which also pulls-in the needed kernel features.
|
Select libseccomp which also pulls-in the needed kernel features.
|
||||||
|
|
||||||
|
config QEMU_ZSTD
|
||||||
|
bool "QEMU ZSTD compression support"
|
||||||
|
default n
|
||||||
|
|
||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -275,6 +280,7 @@ PKG_CONFIG_DEPENDS += \
|
||||||
CONFIG_QEMU_UI_SPICE \
|
CONFIG_QEMU_UI_SPICE \
|
||||||
CONFIG_QEMU_DEV_USB \
|
CONFIG_QEMU_DEV_USB \
|
||||||
CONFIG_QEMU_SECCOMP \
|
CONFIG_QEMU_SECCOMP \
|
||||||
|
CONFIG_QEMU_ZSTD \
|
||||||
|
|
||||||
|
|
||||||
# QEMU configure script does not recognize these options
|
# QEMU configure script does not recognize these options
|
||||||
|
@ -424,7 +430,7 @@ CONFIGURE_ARGS += \
|
||||||
--disable-werror \
|
--disable-werror \
|
||||||
--disable-xen-pci-passthrough \
|
--disable-xen-pci-passthrough \
|
||||||
--disable-xkbcommon \
|
--disable-xkbcommon \
|
||||||
--disable-zstd \
|
--$(if $(CONFIG_QEMU_ZSTD),enable,disable)-zstd \
|
||||||
--disable-selinux \
|
--disable-selinux \
|
||||||
--disable-oss \
|
--disable-oss \
|
||||||
--disable-alsa \
|
--disable-alsa \
|
||||||
|
|
Loading…
Reference in New Issue