ia64/xen-unstable

changeset 1401:fc1bb7d45e8c

bitkeeper revision 1.911 (40ab2cffAo2gg718_vwy__3wfyTAeg)

tools/misc/fakei386xen:

Run at the root of a xenolinux build tree, it 'renames' the xen
architecture directories to be 'i386', so that you can get a xen
build of the tree just by typing 'make'.

The main reason for wanting to do this is if you've got some
other package that wants to patch the kernel and has some complex
build system that you can't be bothered to figure out and make
work with ARCH=xen (e.g. OpenAFS or Freeswan/IPSEC). This script
will make the tree look just like an i386 tree, so unless the
patch conflicts with arch Xen (which is pretty unlikely) the
package's normal make procedure should just work.
author iap10@labyrinth.cl.cam.ac.uk
date Wed May 19 09:46:39 2004 +0000 (2004-05-19)
parents 9d1374c809c5
children 2afa8e2ed882 019a7ac5e60f
files .rootkeys tools/misc/fakei386xen
line diff
     1.1 --- a/.rootkeys	Tue May 18 23:16:25 2004 +0000
     1.2 +++ b/.rootkeys	Wed May 19 09:46:39 2004 +0000
     1.3 @@ -55,6 +55,7 @@ 401d7e16RJj-lbtsVEjua6HYAIiKiA tools/exa
     1.4  403b7cf7J7FsSSoEPGhx6gXR4pIdZg tools/examples/xc_physinfo.py
     1.5  401d7e16X4iojyKopo_j63AyzYZd2A tools/examples/xc_vd_tool.py
     1.6  3f776bd2Xd-dUcPKlPN2vG89VGtfvQ tools/misc/Makefile
     1.7 +40ab2cfawIw8tsYo0dQKtp83h4qfTQ tools/misc/fakei386xen
     1.8  3f6dc136ZKOjd8PIqLbFBl_v-rnkGg tools/misc/miniterm/Makefile
     1.9  3f6dc140C8tAeBfroAF24VrmCS4v_w tools/misc/miniterm/README
    1.10  3f6dc142IHaf6XIcAYGmhV9nNSIHFQ tools/misc/miniterm/miniterm.c
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/tools/misc/fakei386xen	Wed May 19 09:46:39 2004 +0000
     2.3 @@ -0,0 +1,32 @@
     2.4 +#!/bin/bash
     2.5 +
     2.6 +cln () {
     2.7 +while [ $# -gt 0 ]; do
     2.8 +  (
     2.9 +    test -f "$1" || { echo "$1: No such file or directory" 1>&2; exit 1; }
    2.10 +    { cp $1 cln$$ && rm $1 && mv cln$$ $1; } || { rm -f cln$$; exit 1; }
    2.11 +  )
    2.12 +  shift
    2.13 +done
    2.14 +}
    2.15 +
    2.16 +
    2.17 +for i in `find include/asm-xen arch/xen -type l | xargs ls -l | egrep '../(asm-)?i386/' | awk '{print $9}'`
    2.18 +do
    2.19 +  echo $i
    2.20 +  cln $i
    2.21 +done
    2.22 +
    2.23 +mv include/asm-i386 include/asm-Xi386
    2.24 +mv include/asm-xen include/asm-i386
    2.25 +ln -s asm-i386 include/asm-xen
    2.26 +rm include/asm
    2.27 +ln -s asm-i386 include/asm
    2.28 +mv arch/i386 arch/Xi386
    2.29 +mv arch/xen arch/i386
    2.30 +ln -s i386 arch/xen
    2.31 +
    2.32 +mv Makefile XMakefile
    2.33 +#sed -e 's/^EXTRAVERSION =.*/EXTRAVERSION = -xen/' <XMakefile >Makefile
    2.34 +echo ARCH=i386 >Makefile ; cat XMakefile >>Makefile
    2.35 +