[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 09/26] rumprun: ts-rumprun-build: Adjust command prefixes for new rumprun



Nowadays the expected use pattern is
   CC=<...rumprun...>-gcc ./configure
etc.

Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
 ts-rumprun-build | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/ts-rumprun-build b/ts-rumprun-build
index 93c34d1..cb91d5c 100755
--- a/ts-rumprun-build
+++ b/ts-rumprun-build
@@ -53,14 +53,12 @@ END
 }
 
 sub recordtools() {
-    foreach my $stem (qw(rumprun-xen rumpxen-app)) {
-       my $apptool = "$rux/app-tools/$stem";
-       next unless target_file_exists($ho, "$apptool-configure");
-       store_runvar('cmdprefix_configure', "$apptool-configure");
-       store_runvar('cmdprefix_make',      "$apptool-make");
-       return;
-    }
-    die "app-tools not found ($rux)";
+    my $gcc = target_cmd_output($ho, "echo $rux/bin/*-gcc");
+    chomp $gcc;
+    die "$gcc ?" if $gcc =~ m/\S/;
+    my $prefix = "CC=$gcc ";
+    store_runvar('cmdprefix_configure', $prefix);
+    store_runvar('cmdprefix_make',      $prefix);
 }
 
 sub install() {
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.