]> xenbits.xensource.com Git - people/dariof/osstest.git/commitdiff
ts-xen-build: Honour cmdprefix_configure, cmdprefix_make
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 14 Jul 2014 12:03:16 +0000 (13:03 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 16 Jul 2014 10:30:10 +0000 (11:30 +0100)
These runvars can be set to specify a string (containing shell code)
to be prefixed to the executions of ./configure and make.

If not set, the behaviour is as as before.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
ts-xen-build

index 7c9e8040dece1a9d692870a90ccd666270deb051..661f1860cd5d663208e9fc7cea19c3a4d01977c7 100755 (executable)
@@ -94,6 +94,9 @@ 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 $configure_prefix = $r{cmdprefix_configure} // '';
+    my $make_prefix =      $r{cmdprefix_make}      // '';
+
     buildcmd_stamped_logged(600, 'configure', <<END,<<END,<<END);
             if test -f configure; then
                 if grep -q -- $xend_opt tools/configure ; then
@@ -103,13 +106,13 @@ sub build () {
                     ovmf=$ovmf_opt
                 fi
 END
-                ./configure --sysconfdir=/etc \$xend \$ovmf
+               $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf
 END
             fi
 END
 #/;
     buildcmd_stamped_logged(9000, 'build', '',<<END,'');
-            make $makeflags @ARGV
+            $make_prefix make $makeflags @ARGV
 END
 }