summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-01-03 18:16:39 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-03 18:16:39 +0100
commit1568f63d9bd72111e0742045846f3a33a7f48039 (patch)
tree7c8aeb7a44ac650b04bbbe0b3e89bc0559ab2c21 /package
parentf3150c63c84c870456f953939f1171a0da58be49 (diff)
make it cross-compile
Diffstat (limited to 'package')
-rw-r--r--package/qemu/Makefile9
1 files changed, 8 insertions, 1 deletions
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