Root/qemu-host/Makefile

1#
2# OpenWrt Package for building Qemu on the host to be used during the
3# compilation of weird packages that need a target environment for certain
4# build steps (like Emacs).
5#
6# Copyright (C) 2011 David Kuehling <dvdkhlng TA gmx TOD de>
7#
8# License GPLv2 or later. NO WARRANTY.
9#
10
11include $(TOPDIR)/rules.mk
12
13PKG_NAME:=qemu-host
14PKG_VERSION:=0.14.1
15PKG_RELEASE:=1
16PKG_SOURCE:=qemu-$(PKG_VERSION).tar.gz
17PKG_MD5SUM:=b6c713a8db638e173af53a62d5178640
18PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/qemu/
19HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/qemu-$(PKG_VERSION)
20PKG_BUILD_DIR:=$(BUILD_DIR)/qemu-$(PKG_VERSION)
21HOST_BUILD_PARALLEL := 1
22
23include $(INCLUDE_DIR)/host-build.mk
24include $(INCLUDE_DIR)/package.mk
25
26define Package/qemu-host
27  SECTION:=lang
28  CATEGORY:=Languages
29  TITLE:=Qemu user-space emulation for the host
30  URL:=http://www.qemu.org
31  DEPENDS:=+qemu-host/host
32  MAINTAINER=David Kuehling <dvdkhlng TA gmx TOD de>
33endef
34
35define Package/qemu-host/description
36Qemu emulator for the toolchain dummy package. Enable this package just to
37force compilation of qemu-host.
38
39You don\'t need to enable this package to build packages that rely on qemu
40during build-time. Instead just add \'+qemu-host/host\' to the
41PKG_BUILD_DEPENDS line of your package.
42endef
43
44##
45## Compile for the host
46##
47
48HOST_CONFIGURE_VARS =
49
50HOST_CONFIGURE_ARGS = \
51    --cc=$(HOSTCC) \
52    --prefix=$(STAGING_DIR_HOST) \
53    --extra-cflags="$(HOST_CFLAGS) $(HOST_CPPFLAGS)" \
54    --extra-ldflags="$(HOST_LDFLAGS)" \
55    --sysconfdir=$(STAGING_DIR_HOST)/etc \
56    --disable-sdl \
57    --disable-werror \
58    --audio-drv-list= \
59    --disable-curses \
60    --disable-check-utests \
61    --disable-bluez \
62    --disable-kvm \
63    --disable-system \
64    --disable-user \
65    --enable-linux-user
66
67
68
69define Host/Configure
70    $(call Host/Configure/Default)
71endef
72
73define Host/Compile
74    $(call Host/Compile/Default)
75endef
76
77define Host/Install
78    $(call Host/Install/Default)
79endef
80
81##
82## Compile for the target
83##
84
85# nothing to target-compile; everything done during host-compile step
86define Package/qemu-host/compile
87endef
88
89define Package/qemu-host/install
90endef
91
92$(eval $(call HostBuild))
93$(eval $(call BuildPackage,qemu-host))
94
95# The following comments configure the Emacs editor. Just ignore them.
96# Local Variables:
97# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/qemu-host/compile -j2 V=99"
98# End:
99

Archive Download this file



interactive