summaryrefslogtreecommitdiff
path: root/package/qemu
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-11-17 09:58:06 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-11-17 09:58:06 +0100
commit59e96ea14898e040ad21bd4a761f76812bace2c5 (patch)
tree1588359f27dff44bf711db5f0146bf7816580d94 /package/qemu
parentc80761a85ee89d6804db695962e256e48849cf96 (diff)
use qemu-host, add support for uClibc and openjdk7, tested on qemu-system-mipsel
Diffstat (limited to 'package/qemu')
-rw-r--r--package/qemu/Makefile32
1 files changed, 28 insertions, 4 deletions
diff --git a/package/qemu/Makefile b/package/qemu/Makefile
index b46c8ecde..48cb6e82b 100644
--- a/package/qemu/Makefile
+++ b/package/qemu/Makefile
@@ -4,13 +4,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= qemu
-PKG_VERSION:= 1.3.0
+PKG_VERSION:= 1.6.1
PKG_RELEASE:= 1
-PKG_MD5SUM:= a4030ddd2ba324152a97d65d3c0b247d
+PKG_MD5SUM:= 3a897d722457c5a895cd6ac79a28fda0
PKG_DESCR:= cpu and system emulator
PKG_SECTION:= misc
PKG_DEPENDS:= zlib libsdl libpng
-PKG_BUILDDEP:= zlib sdl libpng
+PKG_BUILDDEP:= glib-host qemu-host zlib sdl libpng
PKG_URL:= http://wwww.qemu.org/
PKG_SITES:= http://wiki.qemu.org/download/
@@ -18,18 +18,41 @@ DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
PKG_ARCH_DEPENDS:= native x86 x86_64
+include $(TOPDIR)/mk/host.mk
include $(TOPDIR)/mk/package.mk
+$(eval $(call HOST_template,QEMU,qemu,$(PKG_VERSION)-${PKG_RELEASE}))
$(eval $(call PKG_template,QEMU,qemu,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
+TARGET_LDFLAGS+= -pthread -lm -lrt
CONFIG_STYLE:= minimal
CONFIGURE_ARGS+= --host-cc=$(CC_FOR_BUILD) \
--prefix=/usr \
--sysconfdir=/etc \
--enable-kvm \
+ --disable-docs \
--bindir=/usr/bin
-TARGET_LDFLAGS+= -pthread -lm -lrt
+
+HOST_STYLE:= manual
+HOST_CONFIGURE_ARGS+= --host-cc=$(CC_FOR_BUILD) \
+ --disable-docs \
+ --disable-system \
+ --disable-sdl
+
+host-configure:
+ cd ${WRKBUILD}; rm -f config.{cache,status}; \
+ env ${HOST_CONFIGURE_ENV} \
+ ${BASH} ${WRKSRC}/${CONFIGURE_PROG} \
+ ${HOST_CONFIGURE_ARGS} $(MAKE_TRACE)
+
+host-build:
+ cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
+ ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET} $(MAKE_TRACE)
+
+qemu-hostinstall:
+ cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
+ DESTDIR='$(STAGING_HOST_DIR)' ${HOST_FAKE_FLAGS} ${HOST_INSTALL_TARGET} $(MAKE_TRACE)
qemu-install:
$(INSTALL_DIR) $(IDIR_QEMU)/usr/share/qemu
@@ -39,4 +62,5 @@ qemu-install:
$(CP) $(WRKINST)/usr/share/qemu/* \
$(IDIR_QEMU)/usr/share/qemu
+include ${TOPDIR}/mk/host-bottom.mk
include ${TOPDIR}/mk/pkg-bottom.mk