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>
This commit is contained in:
parent
9930c3bf54
commit
b3c428cc23
|
@ -96,6 +96,20 @@ define Package/qemu-bridge-helper/install
|
|||
$(INSTALL_DATA) ./files/bridge.conf $(1)/etc/qemu
|
||||
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
|
||||
|
||||
# Naming rules used in qemu Makefile.target
|
||||
|
@ -246,6 +260,7 @@ MAKE_FLAGS:=$(filter-out \
|
|||
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) \
|
||||
$(foreach target,$(QEMU_TARGET_LIST),$(if $(CONFIG_PACKAGE_qemu-$(target)),subdir-$(target))) \
|
||||
|
||||
define Build/Compile
|
||||
|
@ -255,6 +270,7 @@ endef
|
|||
$(eval $(call BuildPackage,virtio-console-helper))
|
||||
$(eval $(call BuildPackage,qemu-ga))
|
||||
$(eval $(call BuildPackage,qemu-bridge-helper))
|
||||
$(eval $(call BuildPackage,qemu-img))
|
||||
$(eval $(call BuildPackage,qemu-blobs))
|
||||
$(foreach target,$(QEMU_TARGET_LIST), \
|
||||
$(eval $(call BuildPackage,qemu-$(target))) \
|
||||
|
|
Loading…
Reference in New Issue