ia64/xen-unstable

view linux-2.6-xen-sparse/arch/ia64/xen-mkbuildtree-pre @ 9477:b579cf0ad753

[IA64] make xen-mkbuildtree-pre robust a bit

make linux-2.6-xen-sparse/arch/ia64/xen-mkbuildtree-pre robust a bit.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@xenbuild.aw
date Wed Mar 29 12:40:01 2006 -0700 (2006-03-29)
parents 0f615d43a789
children 1449c89adb8b
line source
1 #!/bin/bash
2 # restructure directories to match future drivers/xen plan
3 # and move aside xen/x86 specific changes
4 # WARNING!: This directory movement really confuses hg which makes
5 # it difficult to do development in a directory which is being used
6 # for building (as all files in mv'd directories are thought by hg
7 # to have been deleted). I don't know how to avoid this right now,
8 # but if someone has a better way, I'm all ears
10 function try_to_mv() {
11 if [ ! -e $2 ]
12 then
13 mv $1 $2
14 fi
15 }
17 function try_to_mkdir() {
18 if [ ! -e $2 ]
19 then
20 mv $1 $2
21 mkdir $1
22 fi
23 }
25 try_to_mkdir mm mm.xen-x86
26 try_to_mv net net.xen-x86
27 try_to_mv kernel kernel.xen-x86
28 try_to_mv drivers/acpi/tables.c drivers/acpi/tables.c.xen-x86
29 #try_to_mv arch/xen/kernel drivers/xen/core
30 #try_to_mkdir arch/xen arch/xen.xen-x86
31 #try_to_mv arch/xen.xen-x86/configs arch/xen
32 #try_to_mv include/asm-generic include/asm-generic.xen-x86
33 try_to_mkdir include/linux include/linux.xen-x86
35 # need to grab a couple of xen-modified files for generic_page_range and
36 # typedef pte_fn_t which are used by driver/xen blkif
37 ln -sf ../mm.xen-x86/memory.c mm/
38 ln -sf ../linux.xen-x86/mm.h include/linux/
40 #eventually asm-xsi-offsets needs to be part of hypervisor.h/hypercall.h
41 ln -sf ../../../../xen/include/asm-ia64/asm-xsi-offsets.h include/asm-ia64/xen/
43 #ia64 drivers/xen isn't fully functional yet, workaround...
44 #also ignore core/evtchn.c which uses a different irq mechanism than ia64
45 #(warning: there be dragons here if these files diverge)
46 ln -sf ../../arch/ia64/xen/drivers/Makefile drivers/xen/Makefile
47 ln -sf ../../../arch/ia64/xen/drivers/coreMakefile drivers/xen/core/Makefile
49 #not sure where these ia64-specific files will end up in the future
50 ln -sf ../../../arch/ia64/xen/drivers/xenia64_init.c drivers/xen/core
51 ln -sf ../../../arch/ia64/xen/drivers/evtchn_ia64.c drivers/xen/core
53 #still a few x86-ism's in various drivers/xen files, patch them
54 #cd drivers/xen
55 #if [ ! -e ia64.patch.semaphore ]
56 #then
57 # cat ../../arch/ia64/xen/drivers/patches/* | patch -p1 -b
58 #fi
59 #touch ia64.patch.semaphore
60 #cd ../..