[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST v6 3/9] ts-xen-build: build with XSM support if requested
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Cc: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- 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}) ? <<END : ''). + echo >>.config XSM_ENABLE='${build_xsm}' +END (nonempty($r{revision_qemu}) ? <<END : ''). echo >>.config QEMU_TAG='$r{revision_qemu}' END @@ -120,6 +126,14 @@ END buildcmd_stamped_logged(9000, 'build', '',<<END,''); $make_prefix make $makeflags @ARGV END + + if ($enable_xsm) { + my $xen_version = target_cmd_output_root($ho, <<END, 30); + cd $builddir/xen + $make_prefix make xenversion +END + store_runvar("flaskpolicy", "xenpolicy-" . $xen_version); + } } sub collectversions () { -- 1.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |