From patchwork Wed Oct 21 13:52:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 36605 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 ozlabs.org (Postfix) with ESMTPS id EC273B7BCD for ; Thu, 22 Oct 2009 02:05:49 +1100 (EST) Received: from localhost ([127.0.0.1]:45078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0ckx-00048B-Cw for incoming@patchwork.ozlabs.org; Wed, 21 Oct 2009 11:05:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0bbt-0005O3-2s for qemu-devel@nongnu.org; Wed, 21 Oct 2009 09:52:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0bbk-0005Fq-Sb for qemu-devel@nongnu.org; Wed, 21 Oct 2009 09:52:13 -0400 Received: from [199.232.76.173] (port=37608 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0bbk-0005FU-O4 for qemu-devel@nongnu.org; Wed, 21 Oct 2009 09:52:08 -0400 Received: from cantor.suse.de ([195.135.220.2]:54498 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N0bbj-0005N9-Sd for qemu-devel@nongnu.org; Wed, 21 Oct 2009 09:52:08 -0400 Received: from relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 1B17993F19; Wed, 21 Oct 2009 15:52:05 +0200 (CEST) From: Ulrich Hecht To: aurelien@aurel32.net Date: Wed, 21 Oct 2009 15:52:25 +0200 Message-Id: <1256133153-3121-5-git-send-email-uli@suse.de> X-Mailer: git-send-email 1.6.2.1 In-Reply-To: <1256133153-3121-4-git-send-email-uli@suse.de> References: <1256133153-3121-1-git-send-email-uli@suse.de> <1256133153-3121-2-git-send-email-uli@suse.de> <1256133153-3121-3-git-send-email-uli@suse.de> <1256133153-3121-4-git-send-email-uli@suse.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Cc: riku.voipio@iki.fi, qemu-devel@nongnu.org, agraf@suse.de Subject: [Qemu-devel] [PATCH 04/12] S/390 host build system support 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 changes to configure and makefiles for S/390 host support --- configure | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 350c742..df984a3 100755 --- a/configure +++ b/configure @@ -157,9 +157,12 @@ case "$cpu" in parisc|parisc64) cpu="hppa" ;; - s390*) + s390) cpu="s390" ;; + s390x) + cpu="s390x" + ;; sparc|sun4[cdmuv]) cpu="sparc" ;; @@ -855,7 +858,7 @@ fi # host long bits test hostlongbits="32" case "$cpu" in - x86_64|alpha|ia64|sparc64|ppc64) + x86_64|alpha|ia64|sparc64|ppc64|s390x) hostlongbits=64 ;; esac @@ -1819,7 +1822,7 @@ echo >> $config_host_mak echo "CONFIG_QEMU_SHAREDIR=\"$prefix$datasuffix\"" >> $config_host_mak case "$cpu" in - i386|x86_64|alpha|cris|hppa|ia64|m68k|microblaze|mips|mips64|ppc|ppc64|s390|sparc|sparc64) + i386|x86_64|alpha|cris|hppa|ia64|m68k|microblaze|mips|mips64|ppc|ppc64|s390|s390x|sparc|sparc64) ARCH=$cpu ;; armv4b|armv4l) @@ -2351,6 +2354,8 @@ ldflags="" if test "$ARCH" = "sparc64" ; then cflags="-I\$(SRC_PATH)/tcg/sparc $cflags" +elif test "$ARCH" = "s390x" ; then + cflags="-I\$(SRC_PATH)/tcg/s390 $cflags" else cflags="-I\$(SRC_PATH)/tcg/\$(ARCH) $cflags" fi