[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 17/26] rumprun: Break out findtools
This makes room for setting up ccache. No functional change yet. Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> --- ts-rumprun-build | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ts-rumprun-build b/ts-rumprun-build index 98c8efc..24e54e1 100755 --- a/ts-rumprun-build +++ b/ts-rumprun-build @@ -52,12 +52,18 @@ sub build() { END } -sub recordtools() { +my $bindir; +my $gnutriplet; + +sub findtools() { my $gcc = target_cmd_output($ho, "echo $rux/rumprun/bin/*-gcc"); chomp $gcc; die "$gcc ?" unless $gcc =~ m#^(\S+)/([^/ \t]+)-g?cc$#; - my $bindir = $1; - my $gnutriplet = $2; + $bindir = $1; + $gnutriplet = $2; +} + +sub recordtools() { my $prefix = "PATH=$bindir:\$PATH "; $prefix .= "CROSS_COMPILE=$gnutriplet- HOSTCC=gcc "; store_runvar('cmdprefix_configure', $prefix); @@ -74,6 +80,7 @@ sub install() { checkout(); massage(); build(); +findtools(); recordtools(); install(); built_stash($ho, $builddir, 'rumprun', 'rumprundist'); -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |