From patchwork Fri Apr 15 15:56:58 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: 8852081 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 71A47BF29F for ; Fri, 15 Apr 2016 15:59:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B302D20380 for ; Fri, 15 Apr 2016 15:59:34 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 119B020374 for ; Fri, 15 Apr 2016 15:59:34 +0000 (UTC) Received: from localhost ([::1]:36773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar69d-00009T-JN for patchwork-qemu-devel@patchwork.kernel.org; Fri, 15 Apr 2016 11:59:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar678-0003Yz-Ek for qemu-devel@nongnu.org; Fri, 15 Apr 2016 11:56:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ar674-0008Vw-QZ for qemu-devel@nongnu.org; Fri, 15 Apr 2016 11:56:58 -0400 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:38689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar674-0008Vf-JS for qemu-devel@nongnu.org; Fri, 15 Apr 2016 11:56:54 -0400 Received: by mail-wm0-x235.google.com with SMTP id u206so38664325wme.1 for ; Fri, 15 Apr 2016 08:56:54 -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=CNbQf9YC0QXZKBWogj8UuhjR4yKavykJvl1l9UxP8Z8=; b=V+tQR4u+a1agAtiq1WmQo0aQkhgmU902GtJ/Q+97PniDokJfIfMz7pVtv5v3UreFKR CIKjWVCW51mK2x7ex0uFheQnlVOJ8JIhhG4gmrH8y59zYKK+mF/oEjFpykVBse/POqS7 7aASjEqVc/C6CR7LJIr1iFFMHnwkrldDMNfOQ= 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=CNbQf9YC0QXZKBWogj8UuhjR4yKavykJvl1l9UxP8Z8=; b=MzDpWXUjzoAxGK42uSTu34envPMgkErrKmPV7FjrXoB3qY/HHmblu7sW6LnH9qNeA/ 6BCTErs1OOvX9Hd7UfSAY32HjHKFKnoXcYeBHwfmVGWbNDmzLAuNH83U6hHecvglzI8i o85bgL9oBSi4kVCeJlfQ9Uoy94xDhWj+1wl+q6U6N99JyLUGbiyo4aUCxqXZ1uzUOGqz F+4pFeI7uKruxVCvWyOv5xHRSWvjOsga5A9Ph88rIo38CPdeq572SDE0WXudP+UHLAu8 6lO3tabDPRl/9WphZmLQk5oCqLXWeHjH08Qh5hVVWtebeZSqruIn/qOqfDnMcaOE4p9r YWJg== X-Gm-Message-State: AOPr4FWW5lBhz/jqcepBS5JTiysFfEurip51flqycN3VWZGPDn8KV7IeHS5jZ8wIT7JhdkqB X-Received: by 10.28.4.131 with SMTP id 125mr5068035wme.44.1460735813882; Fri, 15 Apr 2016 08:56:53 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id ck9sm44522089wjc.22.2016.04.15.08.56.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Apr 2016 08:56:51 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 5E4FA3E051C; Fri, 15 Apr 2016 16:57:06 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 15 Apr 2016 16:56:58 +0100 Message-Id: <1460735821-12775-2-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1460735821-12775-1-git-send-email-alex.bennee@linaro.org> References: <1460735821-12775-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::235 Subject: [Qemu-devel] [PATCH 1/4] ./configure: accept stems to match a range of targets 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: =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is useful if you want to build all targets of a given architecture or type. A simple submatch to an real target will add it to the list. Signed-off-by: Alex Bennée --- configure | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 5db29f0..1e04a4f 100755 --- a/configure +++ b/configure @@ -1247,7 +1247,8 @@ Standard options: --target-list=LIST set target list (default: build everything) $(echo Available targets: $default_target_list | \ fold -s -w 53 | sed -e 's/^/ /') - + LIST can contain stems to match sets of targets + (e.g. softmmu will match all softmmu targets) Advanced options (experts only): --source-path=PATH path of source code [$source_path] --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix] @@ -1640,15 +1641,29 @@ fi # Check that we recognised the target name; this allows a more # friendly error message than if we let it fall through. +final_target_list="" for target in $target_list; do case " $default_target_list " in *" $target "*) + final_target_list="$target $final_target_list" ;; *) - error_exit "Unknown target name '$target'" + # Maybe we can match to range of targets? + exp="no" + for match in $default_target_list; do + if test "${match#*$target}" != "$match" ; then + final_target_list="$match $final_target_list" + exp="yes" + fi + done + if test "$exp" = "no"; then + error_exit "Unknown target name '$target'" + fi ;; esac done +target_list=$final_target_list + # see if system emulation was really requested case " $target_list " in