From patchwork Tue Sep 15 13:43:14 2020 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: 305235 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp2564974ilg; Tue, 15 Sep 2020 06:46:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+pIvMTgnBnQGCQBaigkumsEmV7xs//Mshvn70TsBT8x0LuCgn22WWkSbG5nHyTzJ9Adql X-Received: by 2002:a25:40d0:: with SMTP id n199mr27039969yba.416.1600177605307; Tue, 15 Sep 2020 06:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600177605; cv=none; d=google.com; s=arc-20160816; b=NY0Nv1o5NYX2gouSBPWlr4m0WNYxXT9gudEhG986gl+dVwZuNvyw3g3vOeFjFSOSLC euCYao8YPRwJckB/kzgC/k6nf0EmUpNRl7hxTOqAuqf9NXisYpIelv+lgEUyRHoSQ6RK BZBLOF7rBCvc4lKCipIZPtwD/5k7EguPfx3G0YDcBJux6zyKpgPepmnfkqSh1xa+r/aY 4e8FEgbHevf6MeqVj1VwiKugRDcO5kC1uokJY69rRBJUen/ltVe0eyas8BO7j3kbI5iX xDULKR6/ztIV3WBKJkV+k8ggKX0IamMj5j7TwgGUTgaAq0WDY+nQA4yQCI8bYkGdSjXs MHQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=ffy6hHtaK2WOrcSc9+EcQC5iNP+C++tuTJATuVR3wkM=; b=GWo0M2PCcJUr/EiBUoXhZJqJLewJmrRatpiHN3ge4OBijlnU8Ka+lYtl2QXo2AwHjO 7w8OhccQhX6ZSAsJpW6flyXzgqfR+TvB6KXmjjIkp9u25iiFSG9kt8BIFHq1B3Lh/kPA KIrKkmTBag5aUP8E1OYVhtiVwP3JdICfutdntj4lFj6//a03DvMcVIIapaPgB/4KmBCX xA8u4D1oJqon9PUVpaW8KCw6SWwYK6UjIMSkY3DJB2kPhR2wvqMLQuYMvhSSo8p/lkYj mplej0nLi2PvnDS25MUJbleGWZPPEVzqrPodfZaXYZo9r4MjzFUSFrJQa0K++boNiade EWpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nfe5AeBi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k3si11888309ybd.179.2020.09.15.06.46.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Sep 2020 06:46:45 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nfe5AeBi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:51376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIBIC-0004BG-LH for patch@linaro.org; Tue, 15 Sep 2020 09:46:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIBF5-0000oW-AD for qemu-devel@nongnu.org; Tue, 15 Sep 2020 09:43:31 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:40432) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIBF3-00049x-P7 for qemu-devel@nongnu.org; Tue, 15 Sep 2020 09:43:30 -0400 Received: by mail-wr1-x42a.google.com with SMTP id j2so3373804wrx.7 for ; Tue, 15 Sep 2020 06:43:29 -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=ffy6hHtaK2WOrcSc9+EcQC5iNP+C++tuTJATuVR3wkM=; b=nfe5AeBir9fXFDQyP6v70n0SIvgyRHWiuhr8lVcB0dTfMGXnbAg24wTGE0i7V67A3m UXPhATZowy8adOdgtsnYsDwheH4Nua+TrQfV6wQBAKl+rlrj0dUCXUbmXsnT1fJ6jETh aaNPIU85/o2B8MynmooY5SG9lLAeDWUSj9ytngmAgtFacB8C9XX9UX1mzIwLdRVHM+72 OlCeekC9O0bnOcvHV4oWBclf8zbYHusiY4SJyVN0LLGbocxcB/v95ym31wpfMRBt7Hnj mP3ekP9Nt0vJiH2Ilppp4rLxqfYx83ZTesgeNaCfBcvuMnAF0zK7wXsMpXKGp5pouPuk eTpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ffy6hHtaK2WOrcSc9+EcQC5iNP+C++tuTJATuVR3wkM=; b=thtzCV+qNXnQ8iWN3SUl4DcHZxmOOqZgNN5PQq9CbtGTt2bDdP5i0ljVRrs7EG+CUT 9zZwu/s8v4orrpCtTtuo2tJBP1Kw5xl9YDBrUb6mG2vK7YITWTWSPz5oV/JLEw+9L5gt NPjNRHuK0nomgfwoty6XX1PFyLFpzTIkRNxHFr7+VhO/AYLTx4rKpNkG98TfgMh9DSkO oD5ermzqauP7/B3eCVazf1mCDJ4OS6EgJAzolyh2O8n4SoBwhOs65tTYhFldbSfLfGSb zfmMIABfnjjYtTMobdlu8pFywbLehaU8S5RWiZf6zcxW0DA+r6xoRvi+wBr4RD3lpVkU BgvQ== X-Gm-Message-State: AOAM53340iiD6IgbhSwuNV605xWV5iYhiyySTJGnlkEFSswKnOJNK54q PdH2sKJt1Km6n9h5xgVNB3fG0gyd0BfEaQ== X-Received: by 2002:adf:dc47:: with SMTP id m7mr21523253wrj.100.1600177408441; Tue, 15 Sep 2020 06:43:28 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id s17sm28179564wrr.40.2020.09.15.06.43.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 06:43:22 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9488E1FF91; Tue, 15 Sep 2020 14:43:17 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v2 5/8] configure: clean-up the target-list-exclude logic Date: Tue, 15 Sep 2020 14:43:14 +0100 Message-Id: <20200915134317.11110-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200915134317.11110-1-alex.bennee@linaro.org> References: <20200915134317.11110-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Rather than sed and loop just do a grep. Signed-off-by: Alex Bennée --- configure | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) -- 2.20.1 Reviewed-by: Richard Henderson diff --git a/configure b/configure index f5fe48d6dd7b..58be974065c8 100755 --- a/configure +++ b/configure @@ -1739,17 +1739,9 @@ if test -z "$target_list"; then fi fi -exclude_list=$(echo "$target_list_exclude" | sed -e 's/,/ /g') for config in $mak_wilds; do target="$(basename "$config" .mak)" - exclude="no" - for excl in $exclude_list; do - if test "$excl" = "$target"; then - exclude="yes" - break; - fi - done - if test "$exclude" = "no"; then + if echo "$target_list_exclude" | grep -vq "$target"; then default_target_list="${default_target_list} $target" fi done