2 # Copyright (C) 2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
14 PKG_SOURCE_URL
:=http
://wiki.qemu-project.org
/download
/
15 PKG_SOURCE_MD5SUM
:=a895e93ec1dafc34bc64ed676f0d55a6
17 PKG_LICENSE_FILES
:=LICENSE tcg
/LICENSE
18 PKG_MAINTAINER
:=Yousong Zhou
<yszhou4tech@gmail.com
>
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/qemu-ga
25 TITLE
:=QEMU Guest Agent
26 URL
:=http
://www.qemu.org
27 DEPENDS
:=+glib2
+libpthread
+libstdcpp
+librt
30 define Package
/qemu-ga
/description
31 This package contains the QEMU Guest Agent daemon
34 # QEMU configure script does not recognize these options
35 CONFIGURE_ARGS
:=$(filter-out \
45 # Building qemu-ga alone does not require zlib
47 --cross-prefix
=$(TARGET_CROSS
) \
53 define Package
/qemu-ga
/install
54 $(INSTALL_DIR
) $(1)/usr
/bin
55 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/qemu-ga
$(1)/usr
/bin
56 $(INSTALL_DIR
) $(1)/etc
/init.d
57 $(INSTALL_BIN
) .
/files
/qemu-ga.init
$(1)/etc
/init.d
/qemu-ga
58 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/virtio-ports
59 $(INSTALL_BIN
) .
/files
/virtio-ports.hotplug
$(1)/etc
/hotplug.d
/virtio-ports
/qemu-ga
62 $(eval
$(call BuildPackage
,qemu-ga
))