Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # Copyright (C) 2010-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=qemu
  9. PKG_CPE_ID:=cpe:/a:qemu:qemu
  10. PKG_VERSION:=0.14.1
  11. PKG_RELEASE:=1
  12. PKG_SOURCE_URL:=@SAVANNAH/qemu
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_HASH:=33ceae3fbe516f2cbb151dc98d16c8ccfec74b1056674ad715e75a2f7fed45c3
  15. include $(INCLUDE_DIR)/host-build.mk
  16. HOST_CFLAGS += \
  17. -I$(STAGING_DIR_HOST)/include/e2fsprogs \
  18. -DAES_cbc_encrypt=QEMU_AES_cbc_encrypt \
  19. -DAES_decrypt=QEMU_AES_decrypt \
  20. -DAES_encrypt=QEMU_AES_encrypt \
  21. -DAES_set_decrypt_key=QEMU_AES_set_decrypt_key \
  22. -DAES_set_encrypt_key=QEMU_AES_set_encrypt_key
  23. HOST_CONFIGURE_VARS := \
  24. CFLAGS="$(HOST_CFLAGS)" \
  25. LDFLAGS="$(HOST_LDFLAGS)"
  26. HOST_CONFIGURE_ARGS := \
  27. --extra-cflags="$(HOST_CFLAGS)" \
  28. --enable-uuid
  29. define Host/Compile
  30. $(MAKE) -C $(HOST_BUILD_DIR) qemu-img
  31. endef
  32. define Host/Install
  33. $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
  34. $(INSTALL_BIN) $(HOST_BUILD_DIR)/qemu-img $(STAGING_DIR_HOST)/bin
  35. endef
  36. $(eval $(call HostBuild))