Makefile 874 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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_MD5SUM:=b6c713a8db638e173af53a62d5178640
  14. include $(INCLUDE_DIR)/host-build.mk
  15. HOST_CFLAGS += -I$(STAGING_DIR_HOST)/include/e2fsprogs
  16. define Host/Configure
  17. (cd $(HOST_BUILD_DIR); \
  18. CFLAGS="$(HOST_CFLAGS)" \
  19. LDFLAGS="$(HOST_LDFLAGS)" \
  20. $(HOST_CONFIGURE_CMD) \
  21. --extra-cflags="$(HOST_CFLAGS)" \
  22. --enable-uuid \
  23. )
  24. endef
  25. define Host/Compile
  26. $(MAKE) -C $(HOST_BUILD_DIR) qemu-img
  27. endef
  28. define Host/Install
  29. $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
  30. $(INSTALL_BIN) $(HOST_BUILD_DIR)/qemu-img $(STAGING_DIR_HOST)/bin
  31. endef
  32. $(eval $(call HostBuild))