From patchwork Thu Jan 14 14:28:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas Goldstein X-Patchwork-Id: 8032261 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7869E9F744 for ; Thu, 14 Jan 2016 14:31:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 57F0120453 for ; Thu, 14 Jan 2016 14:31:52 +0000 (UTC) Received: from lists.xen.org (lists.xenproject.org [50.57.142.19]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C16992040F for ; Thu, 14 Jan 2016 14:31:48 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aJit6-000139-6e; Thu, 14 Jan 2016 14:28:32 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aJit4-000133-HX for xen-devel@lists.xen.org; Thu, 14 Jan 2016 14:28:30 +0000 Received: from [85.158.137.68] by server-16.bemta-3.messagelabs.com id 73/2C-07451-D80B7965; Thu, 14 Jan 2016 14:28:29 +0000 X-Env-Sender: cardoe@cardoe.com X-Msg-Ref: server-15.tower-31.messagelabs.com!1452781708!15566110!1 X-Originating-IP: [209.85.220.178] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 7.35.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 64917 invoked from network); 14 Jan 2016 14:28:28 -0000 Received: from mail-qk0-f178.google.com (HELO mail-qk0-f178.google.com) (209.85.220.178) by server-15.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 14 Jan 2016 14:28:28 -0000 Received: by mail-qk0-f178.google.com with SMTP id p186so221789319qke.0 for ; Thu, 14 Jan 2016 06:28:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cardoe-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=a/9EiLqNCz4FtN9pdqq6TbgMiWmpotrBftFFj7yX5h8=; b=WmDIquHWSWV9JdcJclFgXJE30ZzyuGTboPj9HPZ0Gwl2ALuSQHb4rOcS5zT7KJLAk4 +OCWr3AC4QAjNITDs/cUJN6cwO62dSw7WMuGziA4RB4cYeDK37HG6nbVqPzHEaiw+sHR 1VTFGJDvhCNaUwL06jSjNbu1Bz2RDWbNIHsU208zAl6eiIoi0WEOMjid5iDa/+w70R5z dqg6VBB5pWoFPbTG1ddmzze9pRQ3Fmfb9xKhIENjdAqKZrnfG8hqQO7+/aavpBoPt4/H AuIn6oRWxgErBuPl3ody01JRUqDAU5Bu8GfgG+glNN4xVNgTzJoxvEVAJ0Fv3nIym9Vi j+cQ== 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; bh=a/9EiLqNCz4FtN9pdqq6TbgMiWmpotrBftFFj7yX5h8=; b=RBzr1ZKNSeQrkVan1ZO5kJkB2+jOZqqA35MG6YPeYTYZZ6AxY0LNwp4dagttVzO92d IxTB/kuj66FiCUVQcHKtcN+B6KiEQKFaX/QCyay5ErB3xRqzVZ5s1EBZP2WwF/WoNNgq UwWAbw44Cxyz+VdKNF4Fx4OhIN04pgS3UIAeOj6VopkmLdBtwWoZsTTw/w6CTwpWP9P7 Un75AKwpH9rlgrVe5OOR8oGMr4KFobaNrbHPoyDneURv2RfgAXIm3hBX6s0pdpJglcWH vRcu944kfjlS5gNu+wqzUmF1BgowmgL0HLf1KFB7vPbfevVVfWiXJPdcB1fLrFHNVuFk rLzg== X-Gm-Message-State: ALoCoQnV13Cb7ud3sbdgZN+ZedGV3PnU/BElxruAUzlTAIX6WRYwQZlXowZIV7TquUqihqtLXiFhw0QZ0MNHtJ/qv5Zr60J+fw== X-Received: by 10.129.105.68 with SMTP id e65mr3159215ywc.333.1452781707793; Thu, 14 Jan 2016 06:28:27 -0800 (PST) Received: from swanson.lan (c-68-46-196-185.hsd1.al.comcast.net. [68.46.196.185]) by smtp.gmail.com with ESMTPSA id f186sm2409605ywa.6.2016.01.14.06.28.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jan 2016 06:28:26 -0800 (PST) From: Doug Goldstein To: xen-devel@lists.xen.org Date: Thu, 14 Jan 2016 08:28:13 -0600 Message-Id: <1452781693-28525-1-git-send-email-cardoe@cardoe.com> X-Mailer: git-send-email 2.4.10 Cc: Doug Goldstein , Ian Jackson , Ian Campbell Subject: [Xen-devel] [OSSTEST PATCH] pass --{enable, disable}-xsmpolicy based on XSM state X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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 If the test should build with XSM then supply --enable-xsmpolicy to the tools/configure script otherwise provide --disable-xsmpolicy. This will allow the default to change from --enable-xsmpolicy to --disable-xsmpolicy in the Xen tree without breaking OSSTest. Signed-off-by: Doug Goldstein --- ts-xen-build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ts-xen-build b/ts-xen-build index bc4e41a..4812dff 100755 --- a/ts-xen-build +++ b/ts-xen-build @@ -111,6 +111,7 @@ END sub build () { my $xend_opt= $r{enable_xend} =~ m/true/ ? "--enable-xend" : "--disable-xend"; my $ovmf_opt= $r{enable_ovmf} =~ m/true/ ? "--enable-ovmf" : "--disable-ovmf"; + my $xsm_opt= $r{enable_xsm} =~ m/true/ ? "--enable-xsmpolicy" : "--disable-xsmpolicy"; my $configure_prefix = $r{cmdprefix_configure} // ''; my $make_prefix = $r{cmdprefix_make} // ''; @@ -123,8 +124,11 @@ sub build () { if grep -q -- $ovmf_opt tools/configure ; then ovmf=$ovmf_opt fi + if grep -q -- $xsm_opt tools/configure ; then + xsm=$xsm_opt + fi END - $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf + $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf \$xsm END fi END