aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test/ramdisk
diff options
context:
space:
mode:
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>2006-03-28 11:47:20 +0100
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>2006-03-28 11:47:20 +0100
commit394bbf04f52204469ceb9eee5b813b9d0c488de5 (patch)
tree5cceba480f2e84fdb1e8bd9cac9c3173e6fbe646 /tools/xm-test/ramdisk
parent5be19e898ddadc5b07d3452ada6ae694166beada (diff)
downloadxen-394bbf04f52204469ceb9eee5b813b9d0c488de5.tar.gz
xen-394bbf04f52204469ceb9eee5b813b9d0c488de5.tar.bz2
xen-394bbf04f52204469ceb9eee5b813b9d0c488de5.zip
Download the initrd from xm-test.xensource.com, unless otherwise specified.
Don't download it again if it's already present. Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/xm-test/ramdisk')
-rw-r--r--tools/xm-test/ramdisk/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/xm-test/ramdisk/Makefile.am b/tools/xm-test/ramdisk/Makefile.am
index 2912f7579b..1ac4752ce6 100644
--- a/tools/xm-test/ramdisk/Makefile.am
+++ b/tools/xm-test/ramdisk/Makefile.am
@@ -1,3 +1,4 @@
+INITRD ?= http://xm-test.xensource.com/ramdisks
EXTRA_DIST = skel configs patches
@@ -60,7 +61,7 @@ disk.img: existing
fi
existing:
- @if test -n "$(INITRD)"; then \
+ @if [ -n "$(INITRD)" ] && [ ! -f $(XMTEST_VER_IMG) ] ; then \
wget $(INITRD)/$(XMTEST_VER_IMG); \
fi
@if [ -f $(XMTEST_VER_IMG) ] ; then \