From: Doug Goldstein Subject: [OSSTEST PATCH] pass --{enable, disable}-xsmpolicy based on XSM state Date: Thu, 14 Jan 2016 08:28:13 -0600 Message-ID: <1452781693-28525-1-git-send-email-cardoe@cardoe.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Doug Goldstein , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org 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 -- 2.4.10