include/download.mk: Add download mirrors for tools from GNU Savannah (bug #15184)
[openwrt/staging/yousong.git] / tools / qemu / Makefile
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
9 PKG_NAME:=qemu
10 PKG_VERSION:=0.14.1
11 PKG_RELEASE:=1
12
13 PKG_SOURCE_URL:=@SAVANNAH/qemu
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_MD5SUM:=b6c713a8db638e173af53a62d5178640
16
17 include $(INCLUDE_DIR)/host-build.mk
18
19 HOST_CFLAGS += -I$(STAGING_DIR_HOST)/include/e2fsprogs
20 HOST_LDFLAGS += $(HOST_STATIC_LINKING)
21
22 define Host/Configure
23 (cd $(HOST_BUILD_DIR); \
24 CFLAGS="$(HOST_CFLAGS)" \
25 LDFLAGS="$(HOST_LDFLAGS)" \
26 $(HOST_CONFIGURE_CMD) \
27 --extra-cflags="$(HOST_CFLAGS)" \
28 --enable-uuid \
29 )
30 endef
31
32 define Host/Compile
33 $(MAKE) -C $(HOST_BUILD_DIR) qemu-img
34 endef
35
36 define Host/Install
37 $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
38 $(INSTALL_BIN) $(HOST_BUILD_DIR)/qemu-img $(STAGING_DIR_HOST)/bin
39 endef
40
41 $(eval $(call HostBuild))