From patchwork Mon Mar 25 13:20:01 2019 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: 161102 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp3967058jan; Mon, 25 Mar 2019 06:23:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxn+fJKKyopciDmFKxyqi9AZQWE4eqqveq/uxAvtLiyLYUo69956rDuXy2RTNNisCBgSqmr X-Received: by 2002:a25:2a8d:: with SMTP id q135mr21621011ybq.394.1553520229668; Mon, 25 Mar 2019 06:23:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553520229; cv=none; d=google.com; s=arc-20160816; b=d8/qgEEePT5I9mxDO9bvXwh+iOyKXFYHh/u1FnXJUcED1BZBR+3lGXYCB4Bi+oZmc6 LyE1feqUdjH4Cfo7Vmx33dTWFV5WCNGMwlXOYnfsT93r+f52vp+N25KF/+QnZo5grnST U4S6AbsSgg2ZvO6mAzSn29Xlv7SEIrEZBJ1vNOz2XUr9xTBm5Il4t9dsap/bQ5dunUfn wO/B7hBeZuawlW8axmdWCbWu9ya3mIGZRPoDBDuF+M/9yUAYva9gE4JxGIbPrpQwbler pJaCCiuBTQp/2wSb9gkDSF2OYV6FunORArAepuCacJJq1q9FoqZYZS5/Cb9/6RVj2ao4 RQZg== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=QN9RHFCf2CVCboyp9CCa7SVmiXpbJXd3JKc7DEwd4wM=; b=mb6AB3OQtwIYhmsdQ8aBodLkZC91XN6tXkDGEbybYpwYG2NXByy5zA2JZMT6alNo8f cVRuspaGOf6t722XptI2JCCig5Jld20a+EjX3kU0G/oQiqQtFLa0UGXPk0KdqZ1W9JG9 HjOntJaXxJABsx56sIhXSWvZzpSJPTURWbNa/kMzDhDvg2kbV7o4j+azOSXSDVF9qMz1 K9ZxcgvhUcQVf9DwvHGPdtkaVCwzYmI9jvhpp669DCdTuMGknh3FUVkDIEjfyAnaCnCY giF1Tww66aWtdWY62ntpMKuDUiCjxdstHxjqGAvOnDtSthhSragJ0MiPVzoIjnLk4hL3 sHQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ejTW8sry; 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=fail (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 198si9458840ywh.53.2019.03.25.06.23.49 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 25 Mar 2019 06:23:49 -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=fail header.i=@linaro.org header.s=google header.b=ejTW8sry; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:42511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8PZt-0006Vn-3P for patch@linaro.org; Mon, 25 Mar 2019 09:23:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8PWT-0004Al-UN for qemu-devel@nongnu.org; Mon, 25 Mar 2019 09:20:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8PWQ-00052C-9V for qemu-devel@nongnu.org; Mon, 25 Mar 2019 09:20:15 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:43644) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h8PWP-00050F-4w for qemu-devel@nongnu.org; Mon, 25 Mar 2019 09:20:13 -0400 Received: by mail-wr1-x430.google.com with SMTP id k17so2157489wrx.10 for ; Mon, 25 Mar 2019 06:20:12 -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=QN9RHFCf2CVCboyp9CCa7SVmiXpbJXd3JKc7DEwd4wM=; b=ejTW8sryV/eSpuHYhp49eRyQZJpQlvQU7/YMP81Vf4QwhJaaM6Ymv7NaLchgzmAWRp HnDgDG3IUpXaZBei0OfKym4t2sPMg5BHLaAqb+CuO8Lh5KeZ+tWGA+epNdqN2HnkRPSD /cbIgY4KBodAt6B9l5KEI2Ycz8Ez7Vj3wX6qVZDkkQRglpj9TQgUQnR8XXz6aiGI4mpx o4ORUUMHO4n2hw0QpoFx122DFC/Y5GpRuwyt0LjDccHCzqienyyhVkpOuNMA8TQ9ZOTy ji1IZwCUvyLuXVV2Bgo5f7GQS2c6vgCC7CqJL4Dr/VN+xAAcI4Hp3Y5wYu0bGmIAe8KP FdOA== 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=QN9RHFCf2CVCboyp9CCa7SVmiXpbJXd3JKc7DEwd4wM=; b=A4peSxnQz2dfCVik0a8m4tSKmAzOoVDKokZvH6Ncjk24TdN2d4xC6bYAprcZHsOdcT c/JpRKjhurvLFLCTY7PgAULkMvJNNepa70s+kGzXqNLbHoHGkhILgzc5fiZfToFmnoLy 8sj9RN5ryp1PCGFYfGFzNCaN5s2bPD5ZODM7rxuaWJcOgzGK2YPpAz0Bakz/liOvk5hS CqegpTDM+tSLyi2PWKcsluTzGiCOMYh9m44HdJCMAjawAeC/+h6llsFvUH8W44/ITwIB 14j6fXMPSR/QxZua5CBybfsgzXlNa0dkilyrEPIJwNc/iX1H3Jp0r+MoabWc0Rg0DKUx MEYw== X-Gm-Message-State: APjAAAUGcXiYLro1z4NiZxU/kyn/Nrwq4K4e3oh0XZlLzu0rSNKaSK1k k0p8zi7WWcCea2tOPVSbr9znNemD14w= X-Received: by 2002:adf:81c7:: with SMTP id 65mr5502823wra.84.1553520011645; Mon, 25 Mar 2019 06:20:11 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p10sm12936022wrs.5.2019.03.25.06.20.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Mar 2019 06:20:10 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9AA171FF8C; Mon, 25 Mar 2019 13:20:09 +0000 (UTC) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Mon, 25 Mar 2019 13:20:01 +0000 Message-Id: <20190325132009.14987-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190325132009.14987-1-alex.bennee@linaro.org> References: <20190325132009.14987-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::430 Subject: [Qemu-devel] [PULL 1/9] configure: add --target-list-exclude 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: Thomas Huth , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Wainer dos Santos Moschetta Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is an inverse selection which excludes a selected set of targets from the default target list. It will mostly be useful for CI configurations but it might be useful for some users as well. You cannot specify --target-list and --target-list-exclude at the same time. Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth Tested-by: Wainer dos Santos Moschetta -- 2.20.1 diff --git a/configure b/configure index c5032425e6..1c563a7027 100755 --- a/configure +++ b/configure @@ -327,6 +327,7 @@ git="git" # Don't accept a target_list environment variable. unset target_list +unset target_list_exclude # Default value for a variable defining feature "foo". # * foo="no" feature will only be used if --enable-foo arg is given @@ -990,6 +991,14 @@ for opt do --cpu=*) ;; --target-list=*) target_list="$optarg" + if test "$target_list_exclude"; then + error_exit "Can't mix --target-list with --target-list-exclude" + fi + ;; + --target-list-exclude=*) target_list_exclude="$optarg" + if test "$target_list"; then + error_exit "Can't mix --target-list-exclude with --target-list" + fi ;; --enable-trace-backends=*) trace_backends="$optarg" ;; @@ -1601,9 +1610,26 @@ 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 -z "$target_list_exclude"; then + for config in $mak_wilds; do + default_target_list="${default_target_list} $(basename "$config" .mak)" + done +else + 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 + default_target_list="${default_target_list} $target" + fi + done +fi # Enumerate public trace backends for --help output trace_backend_list=$(echo $(grep -le '^PUBLIC = True$' "$source_path"/scripts/tracetool/backend/*.py | sed -e 's/^.*\/\(.*\)\.py$/\1/')) @@ -1622,6 +1648,7 @@ Standard options: --target-list=LIST set target list (default: build everything) $(echo Available targets: $default_target_list | \ fold -s -w 53 | sed -e 's/^/ /') + --target-list-exclude=LIST exclude a set of targets from the default target-list Advanced options (experts only): --source-path=PATH path of source code [$source_path]