2
0

Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_VERSION:=0.14.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_URL:=@SAVANNAH/qemu
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_HASH:=33ceae3fbe516f2cbb151dc98d16c8ccfec74b1056674ad715e75a2f7fed45c3
  14. include $(INCLUDE_DIR)/host-build.mk
  15. HOST_CFLAGS += \
  16. -I$(STAGING_DIR_HOST)/include/e2fsprogs \
  17. -DAES_cbc_encrypt=QEMU_AES_cbc_encrypt \
  18. -DAES_decrypt=QEMU_AES_decrypt \
  19. -DAES_encrypt=QEMU_AES_encrypt \
  20. -DAES_set_decrypt_key=QEMU_AES_set_decrypt_key \
  21. -DAES_set_encrypt_key=QEMU_AES_set_encrypt_key
  22. HOST_CONFIGURE_VARS := \
  23. CFLAGS="$(HOST_CFLAGS)" \
  24. LDFLAGS="$(HOST_LDFLAGS)"
  25. HOST_CONFIGURE_ARGS := \
  26. --extra-cflags="$(HOST_CFLAGS)" \
  27. --enable-uuid
  28. define Host/Compile
  29. $(MAKE) -C $(HOST_BUILD_DIR) qemu-img
  30. endef
  31. define Host/Install
  32. $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
  33. $(INSTALL_BIN) $(HOST_BUILD_DIR)/qemu-img $(STAGING_DIR_HOST)/bin
  34. endef
  35. $(eval $(call HostBuild))