Browse Source

qemu: package qemu-img

qemu-img is used for converting between different VM image types,
such as qcow2 to raw and vice versa.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
lilik-openwrt-22.03
Mathew McBride 7 years ago
committed by Yousong Zhou
parent
commit
b3c428cc23
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      utils/qemu/Makefile

+ 16
- 0
utils/qemu/Makefile View File

@ -96,6 +96,20 @@ define Package/qemu-bridge-helper/install
$(INSTALL_DATA) ./files/bridge.conf $(1)/etc/qemu $(INSTALL_DATA) ./files/bridge.conf $(1)/etc/qemu
endef endef
define Package/qemu-img
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=Virtualization
TITLE:=QEMU Image utility
URL:=http://www.qemu.org
DEPENDS:=+glib2 $(CXX_DEPENDS) $(QEMU_DEPS_IN_HOST)
endef
define Package/qemu-img/install
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/qemu-img $(1)/usr/bin/qemu-img
endef
PKG_CONFIG_DEPENDS += CONFIG_PACKAGE_qemu-ga PKG_CONFIG_DEPENDS += CONFIG_PACKAGE_qemu-ga
# Naming rules used in qemu Makefile.target # Naming rules used in qemu Makefile.target
@ -246,6 +260,7 @@ MAKE_FLAGS:=$(filter-out \
QEMU_MAKE_TARGETS := \ QEMU_MAKE_TARGETS := \
$(if $(CONFIG_PACKAGE_qemu-ga),qemu-ga) \ $(if $(CONFIG_PACKAGE_qemu-ga),qemu-ga) \
$(if $(CONFIG_PACKAGE_qemu-bridge-helper),qemu-bridge-helper) \ $(if $(CONFIG_PACKAGE_qemu-bridge-helper),qemu-bridge-helper) \
$(if $(CONFIG_PACKAGE_qemu-img),qemu-img) \
$(foreach target,$(QEMU_TARGET_LIST),$(if $(CONFIG_PACKAGE_qemu-$(target)),subdir-$(target))) \ $(foreach target,$(QEMU_TARGET_LIST),$(if $(CONFIG_PACKAGE_qemu-$(target)),subdir-$(target))) \
define Build/Compile define Build/Compile
@ -255,6 +270,7 @@ endef
$(eval $(call BuildPackage,virtio-console-helper)) $(eval $(call BuildPackage,virtio-console-helper))
$(eval $(call BuildPackage,qemu-ga)) $(eval $(call BuildPackage,qemu-ga))
$(eval $(call BuildPackage,qemu-bridge-helper)) $(eval $(call BuildPackage,qemu-bridge-helper))
$(eval $(call BuildPackage,qemu-img))
$(eval $(call BuildPackage,qemu-blobs)) $(eval $(call BuildPackage,qemu-blobs))
$(foreach target,$(QEMU_TARGET_LIST), \ $(foreach target,$(QEMU_TARGET_LIST), \
$(eval $(call BuildPackage,qemu-$(target))) \ $(eval $(call BuildPackage,qemu-$(target))) \


Loading…
Cancel
Save