From patchwork Mon May 20 15:16:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 17069 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CABCF20F30 for ; Mon, 20 May 2013 15:17:10 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id i72sf8907383yha.8 for ; Mon, 20 May 2013 08:16:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=DwlrdjVZbxsdQHOzC5YoWizCk7mcqTagacA4fqaYCDo=; b=Y/t5voiaXCsuQj6+TaRUCSSFzsSlhBoTjhtXFBK+gDn2QpUku5iEaFb1irjavC7mNh k4ANHQSqyLq875tRXau8Ps7ZjradnCN6WYeVXWsP7lI7S0TEzAxUiNtEd2Oc5SJYSuHs FBRbwR2GHKLODAFCfyIWqGXgYplCSRdP+PZbbXs46edIbb3qkZ8xDhkn3hKYs+1bDYVD 5P6ivvPB88lrdyAoUb5QZDWB2tAeYH2FJTEHohJPKffWlOpOutfCgjzy88/4eO1psnQ9 Kysb4zQd0ICIoD4n7ArgPK2B8WnHGoC5rzJdUBo8EAKmKzBskPzpBPesuAx0NWm+CYIg WS3g== X-Received: by 10.224.215.194 with SMTP id hf2mr35116805qab.0.1369062981538; Mon, 20 May 2013 08:16:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.24.16 with SMTP id q16ls759601qef.46.gmail; Mon, 20 May 2013 08:16:21 -0700 (PDT) X-Received: by 10.58.75.73 with SMTP id a9mr21109312vew.25.1369062981361; Mon, 20 May 2013 08:16:21 -0700 (PDT) Received: from mail-vb0-x236.google.com (mail-vb0-x236.google.com [2607:f8b0:400c:c02::236]) by mx.google.com with ESMTPS id ad7si11726610vdc.29.2013.05.20.08.16.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 08:16:21 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::236 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::236; Received: by mail-vb0-f54.google.com with SMTP id f13so1434151vbg.27 for ; Mon, 20 May 2013 08:16:21 -0700 (PDT) X-Received: by 10.58.250.66 with SMTP id za2mr33909055vec.56.1369062981165; Mon, 20 May 2013 08:16:21 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.126.138 with SMTP id c10csp87793vcs; Mon, 20 May 2013 08:16:20 -0700 (PDT) X-Received: by 10.205.35.78 with SMTP id sv14mr19746204bkb.34.1369062979913; Mon, 20 May 2013 08:16:19 -0700 (PDT) Received: from mnementh.archaic.org.uk (1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id yh6si5945731bkb.252.2013.05.20.08.16.19 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 20 May 2013 08:16:19 -0700 (PDT) Received-SPF: neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1UeRou-00005L-L6; Mon, 20 May 2013 16:16:16 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Anthony Liguori , John Rigby Subject: [PATCH 1/2] configure: Autogenerate default target list Date: Mon, 20 May 2013 16:16:15 +0100 Message-Id: <1369062976-301-2-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1369062976-301-1-git-send-email-peter.maydell@linaro.org> References: <1369062976-301-1-git-send-email-peter.maydell@linaro.org> X-Gm-Message-State: ALoCoQlNfP2MOOCoMHSF6Q4FKsSyYsLjoQaCX/rEhWvwPIknxEurgW1/H0V2KLTYTo+Ut8oOlFHF X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::236 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Autogenerate the default target list based on what files exist in default-configs; this allows us to remove one of the places that has to be kept up to date with a complete list of every target we support. Signed-off-by: Peter Maydell --- configure | 84 +++++++++++-------------------------------------------------- 1 file changed, 14 insertions(+), 70 deletions(-) diff --git a/configure b/configure index 9439f1c..e0fa143 100755 --- a/configure +++ b/configure @@ -970,78 +970,22 @@ EXTRA_CFLAGS="$CPU_CFLAGS $EXTRA_CFLAGS" default_target_list="" -# these targets are portable -if [ "$softmmu" = "yes" ] ; then - default_target_list="\ -i386-softmmu \ -x86_64-softmmu \ -alpha-softmmu \ -arm-softmmu \ -cris-softmmu \ -lm32-softmmu \ -m68k-softmmu \ -microblaze-softmmu \ -microblazeel-softmmu \ -mips-softmmu \ -mipsel-softmmu \ -mips64-softmmu \ -mips64el-softmmu \ -moxie-softmmu \ -or32-softmmu \ -ppc-softmmu \ -ppcemb-softmmu \ -ppc64-softmmu \ -sh4-softmmu \ -sh4eb-softmmu \ -sparc-softmmu \ -sparc64-softmmu \ -s390x-softmmu \ -xtensa-softmmu \ -xtensaeb-softmmu \ -unicore32-softmmu \ -" -fi -# the following are Linux specific -if [ "$linux_user" = "yes" ] ; then - default_target_list="${default_target_list}\ -i386-linux-user \ -x86_64-linux-user \ -alpha-linux-user \ -arm-linux-user \ -armeb-linux-user \ -cris-linux-user \ -m68k-linux-user \ -microblaze-linux-user \ -microblazeel-linux-user \ -mips-linux-user \ -mipsel-linux-user \ -mips64-linux-user \ -mips64el-linux-user \ -mipsn32-linux-user \ -mipsn32el-linux-user \ -or32-linux-user \ -ppc-linux-user \ -ppc64-linux-user \ -ppc64abi32-linux-user \ -sh4-linux-user \ -sh4eb-linux-user \ -sparc-linux-user \ -sparc64-linux-user \ -sparc32plus-linux-user \ -unicore32-linux-user \ -s390x-linux-user \ -" -fi -# the following are BSD specific -if [ "$bsd_user" = "yes" ] ; then - default_target_list="${default_target_list}\ -i386-bsd-user \ -x86_64-bsd-user \ -sparc-bsd-user \ -sparc64-bsd-user \ -" +mak_wilds="" + +if [ "$softmmu" = "yes" ]; then + mak_wilds="${mak_wilds} $source_path/default-configs/*-softmmu.mak" +fi +if [ "$linux_user" = "yes" ]; then + mak_wilds="${mak_wilds} $source_path/default-configs/*-linux-user.mak" +fi +if [ "$bsd_user" = "yes" ]; then + mak_wilds="${mak_wilds} $source_path/default-configs/*-bsd-user.mak" fi +for config in $mak_wilds; do + default_target_list="${default_target_list} $(basename "$config" .mak)" +done + if test x"$show_help" = x"yes" ; then cat << EOF