From patchwork Tue Aug 25 18:16:30 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 32079 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 40AF3B7BB2 for ; Wed, 26 Aug 2009 04:19:36 +1000 (EST) Received: from localhost ([127.0.0.1]:56978 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mg0cF-0008C0-Th for incoming@patchwork.ozlabs.org; Tue, 25 Aug 2009 14:19:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mg0bk-0008BG-IF for qemu-devel@nongnu.org; Tue, 25 Aug 2009 14:19:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mg0bg-0008AZ-RI for qemu-devel@nongnu.org; Tue, 25 Aug 2009 14:19:00 -0400 Received: from [199.232.76.173] (port=56321 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mg0bg-0008AJ-8m for qemu-devel@nongnu.org; Tue, 25 Aug 2009 14:18:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26526) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mg0bf-00011x-2W for qemu-devel@nongnu.org; Tue, 25 Aug 2009 14:18:55 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7PIIrVf004248 for ; Tue, 25 Aug 2009 14:18:53 -0400 Received: from localhost.localdomain (vpn2-8-220.ams2.redhat.com [10.36.8.220]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7PIIp1n004978; Tue, 25 Aug 2009 14:18:52 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Tue, 25 Aug 2009 20:16:30 +0200 Message-Id: <1251224190-2423-1-git-send-email-quintela@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH] Compile usb_ohci only for targets that need it X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org It is only needed for arm, ppc and sh4. Signed-off-by: Juan Quintela --- Makefile.target | 2 +- configure | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletions(-) diff --git a/Makefile.target b/Makefile.target index 4fdf59c..b71f214 100644 --- a/Makefile.target +++ b/Makefile.target @@ -175,7 +175,7 @@ QEMU_CFLAGS += $(VNC_SASL_CFLAGS) obj-$(CONFIG_XEN) += xen_machine_pv.o xen_domainbuild.o # USB layer -obj-y += usb-ohci.o +obj-$(CONFIG_USB_OHCI) += usb-ohci.o # PCI network cards obj-y += eepro100.o diff --git a/configure b/configure index 7273b1d..03010b4 100755 --- a/configure +++ b/configure @@ -1798,6 +1798,7 @@ esp=no ecc_flash=no nand=no taddr=no +usb_ohci=no for target in $target_list; do target_dir="$target" @@ -2027,6 +2028,7 @@ if test "$target_softmmu" = "yes" ; then ptimer=yes ecc_flash=yes nand=yes + usb_ohci=yes ;; sparc) ptimer=yes @@ -2043,6 +2045,7 @@ if test "$target_softmmu" = "yes" ; then ppc*) m48t59=yes escc=yes + usb_ohci=yes ;; mips*) esp=yes @@ -2050,6 +2053,9 @@ if test "$target_softmmu" = "yes" ; then cris) nand=yes ;; + sh4) + usb_ohci=yes + ;; esac fi if test "$target_user_only" = "yes" ; then @@ -2289,6 +2295,10 @@ if test "$taddr" = "yes" ; then echo "CONFIG_TADDR=y" >> $config_host_mak fi +if test "$usb_ohci" = "yes" ; then + echo "CONFIG_USB_OHCI=y" >> $config_host_mak +fi + echo "/* Automatically generated by configure - do not modify */" > $config_host_h /bin/sh $source_path/create_config < $config_host_mak >> $config_host_h