Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Dec 2005 07:07:37 +0900 (JST)
From:      NAKATA Maho <chat95@mac.com>
To:        freebsd-emulation@freebsd.org, nox@jelal.kn-bremen.de
Subject:   small update to qemu ports
Message-ID:  <20051230.070737.74749143.chat95@mac.com>

next in thread | raw e-mail | index | archive | help
Hi,
I added WITH_HACKS knob to emulators/qemu to enable idedma support.

cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/emulators/qemu/Makefile,v
retrieving revision 1.41
diff -u -r1.41 Makefile
--- Makefile	21 Dec 2005 23:46:30 -0000	1.41
+++ Makefile	29 Dec 2005 22:03:24 -0000
@@ -12,8 +12,14 @@
 MASTER_SITES=	http://www.qemu.org/:release \
 		http://people.fruitsalad.org/nox/qemu/:snapshot \
 		http://www.volny.cz/xnavara/qemu/:snapshot \
-		http://qemu.dad-answers.com/download/qemu/:snapshot
+		http://qemu.dad-answers.com/download/qemu/:snapshot \
+		http://people.brandeis.edu/~jcoiner/qemu_idedma/:idedma
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:release
+.if defined (WITH_HACKS)
+DISTFILES+=	qemu_dma_patch.tar.gz:idedma
+.endif
+DIST_SUBDIR=	qemu
+EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
 
 MAINTAINER=	nox@jelal.kn-bremen.de
 COMMENT=	QEMU CPU Emulator
@@ -54,6 +60,10 @@
 	@${ECHO_MSG} "Notice: you can build qemu with the (alpha!) kqemu accelerator kernel module"
 	@${ECHO_MSG} "by defining WITH_KQEMU."
 .endif
+.if !defined(WITH_HACKS)
+	@${ECHO_MSG} "You can build qemu with some hacks (esp. for speedup)"
+	@${ECHO_MSG} "by defining WITH_HACKS."
+.endif
 .if !defined(WITH_SAMBA) && !exists(${LOCALBASE}/sbin/smbd)
 	@${ECHO_MSG} "Notice: if you need qemu's -smb option (smb-export local dir to guest)"
 	@${ECHO_MSG} "then you also need samba, you can have this port install it by defining"
@@ -70,6 +80,11 @@
 		${MKDIR} ${WRKSRC}/bsd/$$A; \
 	done
 
+post-patch:
+.if defined(WITH_HACKS)
+	@cd ${WRKDIR} ; ${TAR} xvfz ${DISTDIR}/${DIST_SUBDIR}/qemu_dma_patch.tar.gz ; ${CP} new_qemu_dma_patch/bios.bin ${WRKSRC}/pc-bios; cd ${WRKSRC}; ${PATCH} -p1 < ../new_qemu_dma_patch/qemu-piix4-udma.patch
+.endif
+
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/emulators/qemu/distinfo,v
retrieving revision 1.25
diff -u -r1.25 distinfo
--- distinfo	20 Dec 2005 23:27:46 -0000	1.25
+++ distinfo	29 Dec 2005 22:03:24 -0000
@@ -1,3 +1,6 @@
-MD5 (qemu-0.8.0.tar.gz) = eb175b26583280706fe7e4d8910d320d
-SHA256 (qemu-0.8.0.tar.gz) = de388539ce86971a2cbe8474fca8b6160898c95772e3e6e08a7794d48db32a61
-SIZE (qemu-0.8.0.tar.gz) = 1497965
+MD5 (qemu/qemu-0.8.0.tar.gz) = eb175b26583280706fe7e4d8910d320d
+SHA256 (qemu/qemu-0.8.0.tar.gz) = de388539ce86971a2cbe8474fca8b6160898c95772e3e6e08a7794d48db32a61
+SIZE (qemu/qemu-0.8.0.tar.gz) = 1497965
+MD5 (qemu/qemu_dma_patch.tar.gz) = 5e339dc201d411af56bad684d3f89338
+SHA256 (qemu/qemu_dma_patch.tar.gz) = cdf74bf5e079d835e100f116d940686b13ec2b7ed6aee5a6a97a4441ea5f2b8f
+SIZE (qemu/qemu_dma_patch.tar.gz) = 25837
cvs diff: Diffing files



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051230.070737.74749143.chat95>