2010-08-09 04:22:34 +00:00
|
|
|
#
|
2012-04-02 16:25:35 +00:00
|
|
|
# Copyright (C) 2010-2012 OpenWrt.org
|
2010-08-09 04:22:34 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=qemu
|
2017-09-28 02:55:46 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:qemu:qemu
|
2012-04-02 16:25:35 +00:00
|
|
|
PKG_VERSION:=0.14.1
|
2010-12-11 16:08:10 +00:00
|
|
|
PKG_RELEASE:=1
|
2010-08-09 04:22:34 +00:00
|
|
|
|
2014-10-08 08:01:39 +00:00
|
|
|
PKG_SOURCE_URL:=@SAVANNAH/qemu
|
2010-08-09 04:22:34 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2016-12-16 16:32:10 +00:00
|
|
|
PKG_HASH:=33ceae3fbe516f2cbb151dc98d16c8ccfec74b1056674ad715e75a2f7fed45c3
|
2010-08-09 04:22:34 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2017-01-30 16:47:11 +00:00
|
|
|
HOST_CFLAGS += \
|
|
|
|
-I$(STAGING_DIR_HOST)/include/e2fsprogs \
|
|
|
|
-DAES_cbc_encrypt=QEMU_AES_cbc_encrypt \
|
|
|
|
-DAES_decrypt=QEMU_AES_decrypt \
|
|
|
|
-DAES_encrypt=QEMU_AES_encrypt \
|
|
|
|
-DAES_set_decrypt_key=QEMU_AES_set_decrypt_key \
|
|
|
|
-DAES_set_encrypt_key=QEMU_AES_set_encrypt_key
|
2011-02-20 03:25:56 +00:00
|
|
|
|
2017-01-09 12:46:18 +00:00
|
|
|
HOST_CONFIGURE_VARS := \
|
|
|
|
CFLAGS="$(HOST_CFLAGS)" \
|
|
|
|
LDFLAGS="$(HOST_LDFLAGS)"
|
|
|
|
|
|
|
|
HOST_CONFIGURE_ARGS := \
|
|
|
|
--extra-cflags="$(HOST_CFLAGS)" \
|
|
|
|
--enable-uuid
|
2010-08-09 04:22:34 +00:00
|
|
|
|
|
|
|
define Host/Compile
|
2010-08-21 17:02:09 +00:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) qemu-img
|
2010-08-09 04:22:34 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/qemu-img $(STAGING_DIR_HOST)/bin
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|