From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MM4c6-0000nO-OJ for qemu-devel@nongnu.org; Wed, 01 Jul 2009 14:32:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MM4c0-0000kg-Ct for qemu-devel@nongnu.org; Wed, 01 Jul 2009 14:32:57 -0400 Received: from [199.232.76.173] (port=59524 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MM4c0-0000kW-5C for qemu-devel@nongnu.org; Wed, 01 Jul 2009 14:32:52 -0400 Received: from smtp.ctxuk.citrix.com ([62.200.22.115]:32153 helo=SMTP.EU.CITRIX.COM) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MM4bz-0002Ez-Of for qemu-devel@nongnu.org; Wed, 01 Jul 2009 14:32:51 -0400 From: Bique Alexandre Date: Wed, 1 Jul 2009 19:32:04 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_ku6SKbenyOva7IL" Message-ID: <200907011932.04493.alexandre.bique@citrix.com> Subject: [Qemu-devel] [PATCH 5/5] ATAPI pass through v2: update the configure List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" --Boundary-00=_ku6SKbenyOva7IL Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline This patch update the configure by adding --enable-atapi-pt and --disable-atapi-pt. -- Alexandre Bique --Boundary-00=_ku6SKbenyOva7IL Content-Type: text/x-patch; charset="UTF-8"; name="configure-atapi" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="configure-atapi" diff --git a/configure b/configure index eb9d73a..9a28082 100755 --- a/configure +++ b/configure @@ -191,6 +191,7 @@ nptl="yes" mixemu="no" bluez="yes" kvm="no" +atapi_pt="no" kerneldir="" aix="no" blobs="yes" @@ -323,6 +324,19 @@ AIX) aix="yes" make="gmake" ;; +Linux) +atapi_pt="yes" +audio_drv_list="oss" +audio_possible_drivers="oss alsa sdl esd pa" +linux="yes" +linux_user="yes" +usb="linux" +kvm="yes" +if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then + kqemu="yes" + audio_possible_drivers="$audio_possible_drivers fmod" +fi +;; *) audio_drv_list="oss" audio_possible_drivers="oss alsa sdl esd pa" @@ -501,6 +515,10 @@ for opt do ;; --disable-docs) build_docs="no" ;; + --enable-atapi-pt) atapi_pt="yes" + ;; + --disable-atapi-pt) atapi_pt="no" + ;; *) echo "ERROR: unknown option $opt"; show_help="yes" ;; esac @@ -646,6 +664,8 @@ echo " --disable-vde disable support for vde network" echo " --disable-pthread disable pthread support" echo " --disable-aio disable AIO support" echo " --enable-io-thread enable IO thread" +echo " --enable-atapi-pt enable atapi device pass through" +echo " --disable-atapi-pt disable atapi device pass through" echo " --disable-blobs disable installing provided firmware blobs" echo " --kerneldir=PATH look for kernel includes in PATH" echo "" @@ -1453,6 +1473,7 @@ echo "Install blobs $blobs" echo -e "KVM support $kvm" echo "fdt support $fdt" echo "preadv support $preadv" +echo "atapi-pt support $atapi_pt" if test $sdl_too_old = "yes"; then echo "-> Your SDL version is too old - please upgrade to have SDL support" @@ -1823,6 +1844,22 @@ bsd) ;; esac +# ATAPI pass through +if [ "$atapi_pt" = "yes" ] ; then + if [ "$targetos" != "Linux" ] ; then + echo "error: you need a Linux target OS to use ATAPI pass through" >&2 + exit 1 + fi + cat <>$config_h +#define CONFIG_ATAPI_PT 1 +#ifndef __linux__ +#error "You can't enable ATAPI pass through if you're not using linux." +#endif /* __linux__ */ +EOF +else + echo "#define CONFIG_ATAPI_PT 0" >>$config_h +fi + # Determine what linker flags to use to force archive inclusion check_linker_flags() { --Boundary-00=_ku6SKbenyOva7IL--