ia64/xen-unstable

changeset 12869:212511a8f202

Download and symlink the i386 version of the ramdisk when running on x86_64.
This means that people don't need to explicitly set BR_ARCH.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Fri Dec 08 10:32:48 2006 +0000 (2006-12-08)
parents 81730d462241
children d3846d6f30d5
files tools/xm-test/ramdisk/Makefile.am
line diff
     1.1 --- a/tools/xm-test/ramdisk/Makefile.am	Fri Dec 08 09:35:00 2006 +0000
     1.2 +++ b/tools/xm-test/ramdisk/Makefile.am	Fri Dec 08 10:32:48 2006 +0000
     1.3 @@ -34,6 +34,7 @@ HVM_SCRIPT = bin/create_disk_image
     1.4  
     1.5  XMTEST_MAJ_VER = $(shell echo @PACKAGE_VERSION@ | perl -pe 's/(\d+)\.(\d+)\.\d+/\1.\2/')
     1.6  XMTEST_VER_IMG = initrd-$(XMTEST_MAJ_VER)-$(BR_ARCH).img
     1.7 +XMTEST_DL_IMG = $(shell echo $(XMTEST_VER_IMG) | sed -e 's/x86_64/i386/g')
     1.8  
     1.9  EXTRA_ROOT_DIRS = sys
    1.10  
    1.11 @@ -83,7 +84,12 @@ disk.img: existing
    1.12  
    1.13  existing:
    1.14  	@if [ -n "$(INITRD)" ] && [ ! -f $(XMTEST_VER_IMG) ] ; then \
    1.15 -		wget $(INITRD)/$(XMTEST_VER_IMG); \
    1.16 +                if [ ! -f $(XMTEST_DL_IMG) ] ; then \
    1.17 +		        wget $(INITRD)/$(XMTEST_DL_IMG); \
    1.18 +                fi; \
    1.19 +                if [ "$(XMTEST_DL_IMG)" != "$(XMTEST_VER_IMG)" ] ; then \
    1.20 +                        ln -s $(XMTEST_DL_IMG) $(XMTEST_VER_IMG); \
    1.21 +                fi \
    1.22  	fi
    1.23  	@if [ -f $(XMTEST_VER_IMG) ] ; then \
    1.24  		ln -sf $(XMTEST_VER_IMG) initrd.img; \