diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2015-11-28 11:23:57 +0800 |
---|---|---|
committer | Yousong Zhou <yszhou4tech@gmail.com> | 2016-02-26 18:07:53 +0800 |
commit | 3ea82eecb73c5a994c25435b06c28857fd409150 (patch) | |
tree | 69a39a015d617725cbebb03a297f8d25bbfbdd4c /utils/qemu/Makefile | |
parent | 55cb6a0ca08de32a220911bdc4cc6d1cec2d306a (diff) |
qemu: new package qemu-ga
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'utils/qemu/Makefile')
-rw-r--r-- | utils/qemu/Makefile | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/utils/qemu/Makefile b/utils/qemu/Makefile new file mode 100644 index 000000000..a7806d1cf --- /dev/null +++ b/utils/qemu/Makefile @@ -0,0 +1,62 @@ +# +# Copyright (C) 2016 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=qemu +PKG_VERSION:=2.4.1 +PKG_RELEASE:=1 +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=http://wiki.qemu-project.org/download/ +PKG_SOURCE_MD5SUM:=a895e93ec1dafc34bc64ed676f0d55a6 +PKG_LICENSE:=GPL-2.0 +PKG_LICENSE_FILES:=LICENSE tcg/LICENSE +PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com> + +include $(INCLUDE_DIR)/package.mk + +define Package/qemu-ga + SECTION:=utils + CATEGORY:=Utilities + TITLE:=QEMU Guest Agent + URL:=http://www.qemu.org + DEPENDS:=+glib2 +libpthread +libstdcpp +librt +endef + +define Package/qemu-ga/description +This package contains the QEMU Guest Agent daemon +endef + +# QEMU configure script does not recognize these options +CONFIGURE_ARGS:=$(filter-out \ + --target=% \ + --host=% \ + --build=% \ + --program-prefix=% \ + --program-suffix=% \ + --exec-prefix=% \ + --disable-nls \ + , $(CONFIGURE_ARGS)) + +# Building qemu-ga alone does not require zlib +CONFIGURE_ARGS+= \ + --cross-prefix=$(TARGET_CROSS) \ + --host-cc=$(HOSTCC) \ + --target-list='' \ + --disable-zlib-test \ + --enable-guest-agent + +define Package/qemu-ga/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/qemu-ga $(1)/usr/bin + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/qemu-ga.init $(1)/etc/init.d/qemu-ga + $(INSTALL_DIR) $(1)/etc/hotplug.d/virtio-ports + $(INSTALL_BIN) ./files/virtio-ports.hotplug $(1)/etc/hotplug.d/virtio-ports/qemu-ga +endef + +$(eval $(call BuildPackage,qemu-ga)) |