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
50# Cannot currently pass HOST_CFLAGS as these mess with include file ordering,
51# causing qemu compile to fail
52# --extra-cflags="$(HOST_CFLAGS) $(HOST_CPPFLAGS)"
53
54HOST_CONFIGURE_ARGS = \
55    --cc="$(HOSTCC)" \
56    --prefix=$(STAGING_DIR_HOST) \
57    --extra-ldflags="$(HOST_LDFLAGS)" \
58    --sysconfdir=$(STAGING_DIR_HOST)/etc \
59    --disable-sdl \
60    --disable-werror \
61    --audio-drv-list= \
62    --disable-curses \
63    --disable-check-utests \
64    --disable-bluez \
65    --disable-kvm \
66    --disable-system \
67    --disable-user \
68    --enable-linux-user
69
70
71
72define Host/Configure
73    $(call Host/Configure/Default)
74endef
75
76define Host/Compile
77    $(call Host/Compile/Default)
78endef
79
80define Host/Install
81    $(call Host/Install/Default)
82endef
83
84##
85## Compile for the target
86##
87
88# nothing to target-compile; everything done during host-compile step
89define Package/qemu-host/compile
90endef
91
92define Package/qemu-host/install
93endef
94
95$(eval $(call HostBuild))
96$(eval $(call BuildPackage,qemu-host))
97
98# The following comments configure the Emacs editor. Just ignore them.
99# Local Variables:
100# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/qemu-host/compile -j2 V=99"
101# End:
102

Archive Download this file



interactive