From patchwork Mon Aug 3 12:46:10 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 30520 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 A3E7EB6F34 for ; Mon, 3 Aug 2009 23:23:52 +1000 (EST) Received: from localhost ([127.0.0.1]:43578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXxW1-0007tv-8Q for incoming@patchwork.ozlabs.org; Mon, 03 Aug 2009 09:23:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXwyz-0003CQ-9B for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:49:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXwyt-000396-Mi for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:49:40 -0400 Received: from [199.232.76.173] (port=51667 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXwyt-00038v-II for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:49:35 -0400 Received: from mx2.redhat.com ([66.187.237.31]:40779) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXwys-0006ve-Ul for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:49:35 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n73CnYpi006452; Mon, 3 Aug 2009 08:49:34 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n73CnXra026027; Mon, 3 Aug 2009 08:49:33 -0400 Received: from localhost.localdomain (vpn-12-117.rdu.redhat.com [10.11.12.117]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n73Cn8MN009715; Mon, 3 Aug 2009 08:49:32 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Mon, 3 Aug 2009 14:46:10 +0200 Message-Id: <04c26d865728069117a91eb0b4f02f057bb1af2f.1249301360.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: aliguori@us.ibm.com Subject: [Qemu-devel] [PATCH 19/81] move sparc_cpu arg parsing to the begining 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 Signed-off-by: Juan Quintela --- configure | 46 ++++++++++++++++++++++++---------------------- 1 files changed, 24 insertions(+), 22 deletions(-) diff --git a/configure b/configure index 5d69420..0f1299b 100755 --- a/configure +++ b/configure @@ -58,6 +58,30 @@ for opt do ;; --extra-ldflags=*) LDFLAGS="$optarg $LDFLAGS" ;; + --sparc_cpu=*) + sparc_cpu="$optarg" + case $sparc_cpu in + v7|v8) + CFLAGS="-m32 -mcpu=${sparc_cpu} -D__sparc_${sparc_cpu}__ $CFLAGS" + LDFLAGS="-m32 $LDFLAGS" + cpu="sparc" + ;; + v8plus|v8plusa) + CFLAGS="-m32 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__ $CFLAGS" + LDFLAGS="-m32 $LDFLAGS" + cpu="sparc" + ;; + v9) + CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__ $CFLAGS" + LDFLAGS="-m64 $LDFLAGS" + cpu="sparc64" + ;; + *) + echo "undefined SPARC architecture. Exiting"; + exit 1 + ;; + esac + ;; esac done @@ -489,28 +513,6 @@ for opt do --enable-uname-release=*) uname_release="$optarg" ;; --sparc_cpu=*) - sparc_cpu="$optarg" - case $sparc_cpu in - v7|v8) - CFLAGS="-m32 -mcpu=${sparc_cpu} -D__sparc_${sparc_cpu}__ $CFLAGS" - LDFLAGS="-m32 $LDFLAGS" - cpu="sparc" - ;; - v8plus|v8plusa) - CFLAGS="-m32 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__ $CFLAGS" - LDFLAGS="-m32 $LDFLAGS" - cpu="sparc" - ;; - v9) - CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__ $CFLAGS" - LDFLAGS="-m64 $LDFLAGS" - cpu="sparc64" - ;; - *) - echo "undefined SPARC architecture. Exiting"; - exit 1 - ;; - esac ;; --enable-werror) werror="yes" ;;