From patchwork Tue Aug 9 15:55:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 73570 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp574506qga; Tue, 9 Aug 2016 09:39:31 -0700 (PDT) X-Received: by 10.55.5.5 with SMTP id 5mr34221903qkf.275.1470760771721; Tue, 09 Aug 2016 09:39:31 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id e70si21441936qka.15.2016.08.09.09.39.31 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 09 Aug 2016 09:39:31 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXA3v-0000jb-56 for patch@linaro.org; Tue, 09 Aug 2016 12:39:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX9NH-0005B2-C2 for qemu-devel@nongnu.org; Tue, 09 Aug 2016 11:55:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bX9ND-0003P1-GM for qemu-devel@nongnu.org; Tue, 09 Aug 2016 11:55:26 -0400 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:36944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX9ND-0003Os-AN for qemu-devel@nongnu.org; Tue, 09 Aug 2016 11:55:23 -0400 Received: by mail-wm0-x233.google.com with SMTP id i5so44685018wmg.0 for ; Tue, 09 Aug 2016 08:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2rpWto92tLBGg5sMbLooMizAR5l/cAfeOGSG413YQ8c=; b=GnDdrGkc90Ob0hTm3vpnk33T+u9PRD9vqVdCkgaRKAaVgGVrdbsOEzBD3gmzjAKuSH 84ns7CY3bnBe2aMcXRZ5JkJmV0OKZyo7IzQM4kmT9Gg96wHrF9phT0F3hvHlAxD5skdz COls6Ugyuktq2buTn+PVliiAlAEyrknZz1Jy8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2rpWto92tLBGg5sMbLooMizAR5l/cAfeOGSG413YQ8c=; b=Jm4afCR8hO2L3pRR+N3bBqSGYZAHXpDSKfdmKiachAKeL6oR1s/n8n1O1VwwFUW/18 B3G3188aP8GNSs+in1dXGRepywMSj3Fk88dnZ/4plSFd/w5gYi05/CByyo08usfEgpyj M1PB7KaeliNLoFpOMg5MlNX8Q2DghwsvvPRvc5MPw2RntORhQQdckVB/6+iWOu0Hz7uX y6HpmzZD6jr1iiuqya7gdbVcYfyiJjrO0wHsOqDVPT5j95LmuhsGd7r5ttJjpz8jcAwP vwQvOFLcJSeBORZ10ytAlb0i7YUDAf3pKdbPaqW8BATWQn/MNJ2Ten5MmGbpfijXAEoD oBlA== X-Gm-Message-State: AEkoouvbNDQ5JBsI8UCATBEUcT5MXJIF40s9jaKZTBn3TWljZ9niZ21lig8i0TTcS4pWJ3gk X-Received: by 10.28.31.147 with SMTP id f141mr21243793wmf.69.1470758122509; Tue, 09 Aug 2016 08:55:22 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id hy3sm38584435wjb.8.2016.08.09.08.55.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Aug 2016 08:55:21 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id CC88C3E05FC; Tue, 9 Aug 2016 16:55:28 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 9 Aug 2016 16:55:26 +0100 Message-Id: <1470758127-17769-3-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470758127-17769-1-git-send-email-alex.bennee@linaro.org> References: <1470758127-17769-1-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::233 Subject: [Qemu-devel] [RFC for 2.8 2/3] configure: filter 64 bit machines on 32 bit builds X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , rth@twiddle.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" If the user doesn't specify any targets we build a default_target_list from the target .mak fragements. If we don't filter out the 64 bit targets when building on 32 bit machines we'll error out later on. Signed-off-by: Alex Bennée --- configure | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/configure b/configure index 7b779c1..5499dbc 100755 --- a/configure +++ b/configure @@ -1252,7 +1252,21 @@ if [ "$bsd_user" = "yes" ]; then fi for config in $mak_wilds; do - default_target_list="${default_target_list} $(basename "$config" .mak)" + + target=$(basename "$config" .mak) + + if test "$cpu_width" = "32"; then + case $target in + *64*|s390x-*) + # skip 64 bit machines + ;; + *) + default_target_list="${default_target_list} ${target}" + ;; + esac + else + default_target_list="${default_target_list} ${target}" + fi done if test x"$show_help" = x"yes" ; then