Makefile 913 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. HOST_LDFLAGS += $(HOST_STATIC_LINKING)
  17. define Host/Configure
  18. (cd $(HOST_BUILD_DIR); \
  19. CFLAGS="$(HOST_CFLAGS)" \
  20. LDFLAGS="$(HOST_LDFLAGS)" \
  21. $(HOST_CONFIGURE_CMD) \
  22. --extra-cflags="$(HOST_CFLAGS)" \
  23. --enable-uuid \
  24. )
  25. endef
  26. define Host/Compile
  27. $(MAKE) -C $(HOST_BUILD_DIR) qemu-img
  28. endef
  29. define Host/Install
  30. $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
  31. $(INSTALL_BIN) $(HOST_BUILD_DIR)/qemu-img $(STAGING_DIR_HOST)/bin
  32. endef
  33. $(eval $(call HostBuild))