From 1568f63d9bd72111e0742045846f3a33a7f48039 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 3 Jan 2011 18:16:39 +0100 Subject: make it cross-compile --- package/qemu/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'package/qemu') diff --git a/package/qemu/Makefile b/package/qemu/Makefile index 6d5de5bab..1bafddc94 100644 --- a/package/qemu/Makefile +++ b/package/qemu/Makefile @@ -9,6 +9,7 @@ PKG_RELEASE:= 1 PKG_MD5SUM:= 397a0d665da8ba9d3b9583629f3d6421 PKG_DESCR:= cpu and system emulator PKG_SECTION:= misc +PKG_BUILDDEP:= zlib PKG_URL:= http://wwww.qemu.org/ PKG_SITES:= http://wiki.qemu.org/download/ @@ -17,10 +18,16 @@ include $(TOPDIR)/mk/package.mk $(eval $(call PKG_template,QEMU,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) CONFIG_STYLE:= minimal +CONFIGURE_ARGS+= --host-cc=$(HOSTCC) \ + --cross-prefix=$(TARGET_CROSS) \ + --disable-user \ + --prefix=/usr \ + --sysconfdir=/etc \ + --bindir=/usr/bin post-install: $(INSTALL_DIR) $(IDIR_QEMU)/usr/bin - $(INSTALL_BIN) $(WRKINST)/usr/local/bin/qemu* \ + $(INSTALL_BIN) $(WRKINST)/usr/bin/qemu* \ $(IDIR_QEMU)/usr/bin include ${TOPDIR}/mk/pkg-bottom.mk -- cgit v1.2.3