ia64/xen-unstable

view tools/misc/fakei386xen @ 8964:8946b6dcd49e

Fix x86_64 Xen build.

event_callback_cs and failsafe_callback_cs are x86_32 only.

Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
author Ian.Campbell@xensource.com
date Wed Feb 22 17:26:39 2006 +0000 (2006-02-22)
parents fc1bb7d45e8c
children
line source
1 #!/bin/bash
3 cln () {
4 while [ $# -gt 0 ]; do
5 (
6 test -f "$1" || { echo "$1: No such file or directory" 1>&2; exit 1; }
7 { cp $1 cln$$ && rm $1 && mv cln$$ $1; } || { rm -f cln$$; exit 1; }
8 )
9 shift
10 done
11 }
14 for i in `find include/asm-xen arch/xen -type l | xargs ls -l | egrep '../(asm-)?i386/' | awk '{print $9}'`
15 do
16 echo $i
17 cln $i
18 done
20 mv include/asm-i386 include/asm-Xi386
21 mv include/asm-xen include/asm-i386
22 ln -s asm-i386 include/asm-xen
23 rm include/asm
24 ln -s asm-i386 include/asm
25 mv arch/i386 arch/Xi386
26 mv arch/xen arch/i386
27 ln -s i386 arch/xen
29 mv Makefile XMakefile
30 #sed -e 's/^EXTRAVERSION =.*/EXTRAVERSION = -xen/' <XMakefile >Makefile
31 echo ARCH=i386 >Makefile ; cat XMakefile >>Makefile