From: Wei Liu Subject: [PATCH OSSTEST v6 3/9] ts-xen-build: build with XSM support if requested Date: Wed, 4 Feb 2015 16:29:48 +0000 Message-ID: <1423067394-8238-4-git-send-email-wei.liu2@citrix.com> References: <1423067394-8238-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1423067394-8238-1-git-send-email-wei.liu2@citrix.com> 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: ian.jackson@eu.citrix.com, Wei Liu , ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org Signed-off-by: Wei Liu Cc: Ian Jackson Cc: Ian Campbell Acked-by: Ian Campbell Acked-by: Ian Jackson --- Changes in v5: 1. Only set XSM_ENABLE when runvar is defined. 2. Fix inconsistent whitespace. Changes in v4: 1. Use "true" instead of "y" --- ts-xen-build | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ts-xen-build b/ts-xen-build index 370bfbc..b1f29c6 100755 --- a/ts-xen-build +++ b/ts-xen-build @@ -27,6 +27,8 @@ tsreadconfig(); selectbuildhost(\@ARGV); # remaining arguments are passed as targets to "make" builddirsprops(); + +my $enable_xsm = $r{enable_xsm} =~ m/true/ ? 1 : 0; sub checkout () { prepbuilddirs(); @@ -34,6 +36,7 @@ sub checkout () { build_clone($ho, 'xen', $builddir, 'xen'); my $debug_build = $r{xen_build_debug} || 'y'; + my $build_xsm = $enable_xsm ? 'y' : 'n'; # Do not set this unless you know what you are doing. This arm # option makes the build specific to a particular type of @@ -52,6 +55,9 @@ sub checkout () { echo >>.config QEMU_REMOTE='$r{tree_qemu}' echo >>.config KERNELS='' END + (nonempty($r{enable_xsm}) ? <>.config XSM_ENABLE='${build_xsm}' +END (nonempty($r{revision_qemu}) ? <>.config QEMU_TAG='$r{revision_qemu}' END @@ -120,6 +126,14 @@ END buildcmd_stamped_logged(9000, 'build', '',<