ia64/xen-unstable

view xen/arch/ia64/tools/mkbuildtree @ 3851:aa7e56a968b8

bitkeeper revision 1.1218 (4214eb5c50HeO5ayekYo8U0171lEmA)

mkbuildtree, setup.c:
update to match serial changes in common
serial.h:
new file
author djm@kirby.fc.hp.com
date Thu Feb 17 19:07:08 2005 +0000 (2005-02-17)
parents 73f9c9685211
children c17fa9eea8c5 6fe925d85cd6 4e765d177de7 205e127344e9 a01199a95070
line source
1 #!/bin/sh
2 #
3 # run in xen-X.X/xen directory after unpacking linux in same directory
5 XEN=$PWD
6 #LINUX=$XEN/linux-2.6.7
7 LINUX=$XEN/../../linux-2.6.7
8 LINUXPATCH=$XEN/arch/ia64/patch/linux-2.6.7
9 XENPATCH=$XEN/arch/ia64/patch/xen-2.0.1
11 cp_patch ()
12 {
13 #diff -u $LINUX/$1 $XEN/$2 > $LINUXPATCH/$3
14 cp $LINUX/$1 $XEN/$2
15 patch <$LINUXPATCH/$3 $XEN/$2
16 }
18 xen_patch ()
19 {
20 #patch <$XENPATCH/$2 $XEN/$1
21 echo 'skipping patch of' $XEN/$1
22 }
24 softlink ()
25 {
26 ln -s $LINUX/$1 $XEN/$2
27 }
29 null ()
30 {
31 touch $XEN/$1
32 }
35 # ensure linux directory is set up
36 if [ ! -d $LINUX ]; then
37 echo "ERROR: $LINUX directory doesn't exist"
38 echo "(don't forget to apply the -ia64 patch to it too)"
39 exit
40 fi
42 # setup
44 #mkdir arch/ia64
45 #mkdir arch/ia64/lib
46 #mkdir include/asm-ia64
47 mkdir include/asm-generic
48 mkdir include/asm-ia64/linux
49 mkdir include/asm-ia64/linux/byteorder
50 # use "gcc -Iinclude/asm-ia64" to find these linux includes
51 ln -s $XEN/include/xen $XEN/include/linux
52 ln -s $XEN/include/asm-ia64/linux $XEN/include/asm-ia64/xen
54 # prepare for building asm-offsets (circular dependency)
55 touch include/asm-ia64/asm-offsets.h
56 sleep 2
57 touch arch/ia64/asm-offsets.c
59 # patches to xen/common files
60 #xen_patch common/domain.c domain.c
61 #xen_patch common/dom_mem_ops.c dom_mem_ops.c
62 #xen_patch common/grant_table.c grant_table.c
63 #xen_patch common/kernel.c kernel.c
64 #xen_patch common/dom0_ops.c dom0_ops.c
65 #xen_patch common/memory.c memory.c
66 #xen_patch common/keyhandler.c keyhandler.c
67 #xen_patch common/softirq.c softirq.c
68 #xen_patch common/string.c string.c
69 #xen_patch common/elf.c elf.c
70 #xen_patch common/schedule.c schedule.c
71 #xen_patch drivers/char/serial.c serial.c
72 #xen_patch drivers/char/console.c console.c
73 #xen_patch include/public/xen.h xen.h
74 #xen_patch include/xen/grant_table.h grant_table.h
75 #xen_patch include/xen/init.h init.h
76 #xen_patch include/xen/irq.h irq.h
77 #xen_patch include/xen/list.h list.h
78 #xen_patch include/xen/sched.h sched.h
79 #xen_patch include/xen/slab.h slab.h
80 #xen_patch include/xen/time.h time.h
83 # arch/ia64 files
85 cp_patch arch/ia64/kernel/efi.c arch/ia64/efi.c efi.c
86 cp_patch arch/ia64/kernel/entry.S arch/ia64/entry.S entry.S
87 cp_patch arch/ia64/kernel/head.S arch/ia64/head.S head.S
88 #cp_patch arch/ia64/kernel/init_task.c arch/ia64/init_task.c init_task.c
89 cp_patch arch/ia64/kernel/irq_ia64.c arch/ia64/irq_ia64.c irq_ia64.c
90 cp_patch arch/ia64/kernel/ivt.S arch/ia64/ivt.S ivt.S
91 #cp_patch arch/ia64/kernel/minstate.h arch/ia64/minstate.h minstate.h
92 cp_patch arch/ia64/kernel/setup.c arch/ia64/setup.c setup.c
93 cp_patch arch/ia64/kernel/time.c arch/ia64/time.c time.c
94 cp_patch arch/ia64/kernel/unaligned.c arch/ia64/unaligned.c unaligned.c
95 cp_patch arch/ia64/kernel/vmlinux.lds.S arch/ia64/xen.lds.S lds.S
97 cp_patch mm/bootmem.c arch/ia64/mm_bootmem.c mm_bootmem.c
98 cp_patch mm/page_alloc.c arch/ia64/page_alloc.c page_alloc.c
99 cp_patch mm/slab.c arch/ia64/slab.c slab.c
101 cp_patch arch/ia64/mm/contig.c arch/ia64/mm_contig.c mm_contig.c
102 cp_patch arch/ia64/mm/tlb.c arch/ia64/tlb.c tlb.c
104 cp_patch arch/ia64/hp/sim/hpsim_irq.c arch/ia64/hpsim_irq.c hpsim_irq.c
106 softlink arch/ia64/kernel/efi_stub.S arch/ia64/efi_stub.S
107 softlink arch/ia64/kernel/entry.h arch/ia64/entry.h
108 softlink arch/ia64/kernel/ia64_ksyms.c arch/ia64/ia64_ksyms.c
109 softlink arch/ia64/kernel/irq_lsapic.c arch/ia64/irq_lsapic.c
110 softlink arch/ia64/kernel/machvec.c arch/ia64/machvec.c
111 softlink arch/ia64/kernel/pal.S arch/ia64/pal.S
112 softlink arch/ia64/kernel/patch.c arch/ia64/patch.c
113 softlink arch/ia64/kernel/sal.c arch/ia64/sal.c
114 softlink arch/ia64/kernel/minstate.h arch/ia64/minstate.h
116 softlink arch/ia64/lib/bitop.c arch/ia64/lib/bitop.c
117 softlink arch/ia64/lib/carta_random.S arch/ia64/lib/carta_random.S
118 softlink arch/ia64/lib/checksum.c arch/ia64/lib/checksum.c
119 softlink arch/ia64/lib/clear_page.S arch/ia64/lib/clear_page.S
120 softlink arch/ia64/lib/clear_user.S arch/ia64/lib/clear_user.S
121 softlink arch/ia64/lib/copy_page_mck.S arch/ia64/lib/copy_page_mck.S
122 softlink arch/ia64/lib/copy_page.S arch/ia64/lib/copy_page.S
123 softlink arch/ia64/lib/copy_user.S arch/ia64/lib/copy_user.S
124 softlink arch/ia64/lib/csum_partial_copy.c arch/ia64/lib/csum_partial_copy.c
125 softlink arch/ia64/lib/dec_and_lock.c arch/ia64/lib/dec_and_lock.c
126 softlink arch/ia64/lib/do_csum.S arch/ia64/lib/do_csum.S
127 softlink arch/ia64/lib/flush.S arch/ia64/lib/flush.S
128 softlink arch/ia64/lib/idiv32.S arch/ia64/lib/idiv32.S
129 softlink arch/ia64/lib/idiv64.S arch/ia64/lib/idiv64.S
130 softlink arch/ia64/lib/io.c arch/ia64/lib/io.c
131 softlink arch/ia64/lib/ip_fast_csum.S arch/ia64/lib/ip_fast_csum.S
132 softlink arch/ia64/lib/memcpy_mck.S arch/ia64/lib/memcpy_mck.S
133 softlink arch/ia64/lib/memcpy.S arch/ia64/lib/memcpy.S
134 softlink arch/ia64/lib/memset.S arch/ia64/lib/memset.S
135 softlink arch/ia64/lib/strlen.S arch/ia64/lib/strlen.S
136 softlink arch/ia64/lib/strlen_user.S arch/ia64/lib/strlen_user.S
137 softlink arch/ia64/lib/strncpy_from_user.S arch/ia64/lib/strncpy_from_user.S
138 softlink arch/ia64/lib/strnlen_user.S arch/ia64/lib/strnlen_user.S
139 softlink arch/ia64/lib/swiotlb.c arch/ia64/lib/swiotlb.c
140 softlink arch/ia64/lib/xor.S arch/ia64/lib/xor.S
142 softlink lib/cmdline.c arch/ia64/cmdline.c
144 softlink arch/ia64/hp/sim/hpsim.S arch/ia64/hpsim.S
146 # xen/include/asm-generic files
148 softlink include/asm-generic/cpumask_const_value.h include/asm-generic/cpumask_const_value.h cpumask_const_value.h
149 softlink include/asm-generic/cpumask.h include/asm-generic/cpumask.h cpumask.h
150 softlink include/asm-generic/cpumask_up.h include/asm-generic/cpumask_up.h cpumask_up.h
151 softlink include/asm-generic/cpumask_arith.h include/asm-generic/cpumask_arith.h cpumask_arith.h
152 softlink include/asm-generic/div64.h include/asm-generic/div64.h div64.h
153 softlink include/asm-generic/ide_iops.h include/asm-generic/ide_iops.h ide_iops.h
154 softlink include/asm-generic/pci-dma-compat.h include/asm-generic/pci-dma-compat.h pci-dma-compat.h
155 softlink include/asm-generic/pci.h include/asm-generic/pci.h pci.h
156 softlink include/asm-generic/pgtable.h include/asm-generic/pgtable.h pgtable.h
157 softlink include/asm-generic/sections.h include/asm-generic/sections.h sections.h
158 softlink include/asm-generic/topology.h include/asm-generic/topology.h topology.h
159 softlink include/asm-generic/vmlinux.lds.h include/asm-generic/vmlinux.lds.h vmlinux.lds.h
162 # xen/include/asm-ia64 files
164 cp_patch arch/ia64/hp/sim/hpsim_ssc.h include/asm-ia64/hpsim_ssc.h hpsim_ssc.h
166 cp_patch include/asm-ia64/current.h include/asm-ia64/current.h current.h
167 cp_patch include/asm-ia64/gcc_intrin.h include/asm-ia64/gcc_intrin.h gcc_intrin.h
168 cp_patch include/asm-ia64/hardirq.h include/asm-ia64/hardirq.h hardirq.h
169 cp_patch include/asm-ia64/hw_irq.h include/asm-ia64/hw_irq.h hw_irq.h
170 cp_patch include/asm-ia64/ide.h include/asm-ia64/ide.h ide.h
171 cp_patch include/asm-ia64/io.h include/asm-ia64/io.h io.h
172 cp_patch include/asm-ia64/irq.h include/asm-ia64/irq.h irq.h
173 cp_patch include/asm-ia64/kregs.h include/asm-ia64/kregs.h kregs.h
174 cp_patch include/asm-ia64/page.h include/asm-ia64/page.h page.h
175 cp_patch include/asm-ia64/processor.h include/asm-ia64/processor.h processor.h
176 cp_patch include/asm-ia64/sal.h include/asm-ia64/sal.h sal.h
177 cp_patch include/asm-ia64/system.h include/asm-ia64/system.h system.h
178 cp_patch include/asm-ia64/types.h include/asm-ia64/types.h types.h
180 null include/asm-ia64/desc.h
181 null include/asm-ia64/domain_page.h
182 null include/asm-ia64/flushtlb.h
183 null include/asm-ia64/io_apic.h
184 null include/asm-ia64/pdb.h
186 softlink include/asm-ia64/acpi.h include/asm-ia64/acpi.h
187 softlink include/asm-ia64/asmmacro.h include/asm-ia64/asmmacro.h
188 softlink include/asm-ia64/atomic.h include/asm-ia64/atomic.h
189 softlink include/asm-ia64/bitops.h include/asm-ia64/bitops.h
190 softlink include/asm-ia64/break.h include/asm-ia64/break.h
191 softlink include/asm-ia64/bug.h include/asm-ia64/bug.h
192 softlink include/asm-ia64/byteorder.h include/asm-ia64/byteorder.h
193 softlink include/asm-ia64/cacheflush.h include/asm-ia64/cacheflush.h
194 softlink include/asm-ia64/cache.h include/asm-ia64/cache.h
195 softlink include/asm-ia64/checksum.h include/asm-ia64/checksum.h
196 softlink include/asm-ia64/cpumask.h include/asm-ia64/cpumask.h
197 softlink include/asm-ia64/delay.h include/asm-ia64/delay.h
198 softlink include/asm-ia64/div64.h include/asm-ia64/div64.h
199 softlink include/asm-ia64/dma.h include/asm-ia64/dma.h
200 softlink include/asm-ia64/dma-mapping.h include/asm-ia64/dma-mapping.h
201 softlink include/asm-ia64/fpu.h include/asm-ia64/fpu.h
202 softlink include/asm-ia64/hdreg.h include/asm-ia64/hdreg.h
203 softlink include/asm-ia64/ia32.h include/asm-ia64/ia32.h
204 softlink include/asm-ia64/ia64regs.h include/asm-ia64/ia64regs.h
205 softlink include/asm-ia64/intrinsics.h include/asm-ia64/intrinsics.h
206 softlink include/asm-ia64/ioctl.h include/asm-ia64/ioctl.h
207 softlink include/asm-ia64/linkage.h include/asm-ia64/linkage.h
208 softlink include/asm-ia64/machvec.h include/asm-ia64/machvec.h
209 softlink include/asm-ia64/machvec_hpsim.h include/asm-ia64/machvec_hpsim.h
210 softlink include/asm-ia64/mca_asm.h include/asm-ia64/mca_asm.h
211 softlink include/asm-ia64/mca.h include/asm-ia64/mca.h
212 softlink include/asm-ia64/meminit.h include/asm-ia64/meminit.h
213 softlink include/asm-ia64/mman.h include/asm-ia64/mman.h
214 softlink include/asm-ia64/numa.h include/asm-ia64/numa.h
215 softlink include/asm-ia64/pal.h include/asm-ia64/pal.h
216 softlink include/asm-ia64/param.h include/asm-ia64/param.h
217 softlink include/asm-ia64/patch.h include/asm-ia64/patch.h
218 softlink include/asm-ia64/pci.h include/asm-ia64/pci.h
219 softlink include/asm-ia64/percpu.h include/asm-ia64/percpu.h
220 softlink include/asm-ia64/pgalloc.h include/asm-ia64/pgalloc.h
221 softlink include/asm-ia64/pgtable.h include/asm-ia64/pgtable.h
222 softlink include/asm-ia64/ptrace.h include/asm-ia64/ptrace.h
223 softlink include/asm-ia64/ptrace_offsets.h include/asm-ia64/ptrace_offsets.h
224 softlink include/asm-ia64/rse.h include/asm-ia64/rse.h
225 softlink include/asm-ia64/rwsem.h include/asm-ia64/rwsem.h
226 softlink include/asm-ia64/scatterlist.h include/asm-ia64/scatterlist.h
227 softlink include/asm-ia64/sections.h include/asm-ia64/sections.h
228 softlink include/asm-ia64/semaphore.h include/asm-ia64/semaphore.h
229 softlink include/asm-ia64/sigcontext.h include/asm-ia64/sigcontext.h
230 softlink include/asm-ia64/signal.h include/asm-ia64/signal.h
231 softlink include/asm-ia64/smp.h include/asm-ia64/smp.h
232 softlink include/asm-ia64/spinlock.h include/asm-ia64/spinlock.h
233 softlink include/asm-ia64/string.h include/asm-ia64/string.h
234 softlink include/asm-ia64/thread_info.h include/asm-ia64/thread_info.h
235 softlink include/asm-ia64/timex.h include/asm-ia64/timex.h
236 softlink include/asm-ia64/topology.h include/asm-ia64/topology.h
237 softlink include/asm-ia64/uaccess.h include/asm-ia64/uaccess.h
238 softlink include/asm-ia64/unaligned.h include/asm-ia64/unaligned.h
239 softlink include/asm-ia64/unistd.h include/asm-ia64/unistd.h
240 softlink include/asm-ia64/unwind.h include/asm-ia64/unwind.h
241 softlink include/asm-ia64/ustack.h include/asm-ia64/ustack.h
243 #rename this one because xen/include/asm/serial.h already exists
244 #there is only one use of it that must be patched -- arch/ia64/setup.c
245 #softlink include/asm-ia64/serial.h include/asm-ia64/asmserial.h
247 # xen/include/asm-ia64/linux/*.h (== linux/include/linux/*.h)
249 cp_patch include/linux/bootmem.h include/asm-ia64/linux/bootmem.h bootmem.h
250 cp_patch include/linux/efi.h include/asm-ia64/linux/efi.h efi.h
251 #cp_patch include/linux/init_task.h include/asm-ia64/linux/init_task.h init_task.h
252 cp_patch include/linux/interrupt.h include/asm-ia64/linux/interrupt.h interrupt.h
253 cp_patch include/linux/mmzone.h include/asm-ia64/linux/mmzone.h mmzone.h
255 cp_patch include/linux/wait.h include/asm-ia64/linux/wait.h wait.h
257 cp_patch include/linux/slab.h include/asm-ia64/slab.h slab.h
259 # following renamed to avoid conflict
260 cp_patch include/linux/time.h include/xen/linuxtime.h linuxtime.h
262 softlink include/linux/bcd.h include/asm-ia64/linux/bcd.h
263 softlink include/linux/bitmap.h include/asm-ia64/linux/bitmap.h
264 softlink include/linux/bitops.h include/asm-ia64/linux/bitops.h
265 softlink include/linux/cpumask.h include/asm-ia64/linux/cpumask.h
266 softlink include/linux/dma-mapping.h include/asm-ia64/linux/dma-mapping.h
267 softlink include/linux/gfp.h include/asm-ia64/linux/gfp.h
268 softlink include/linux/initrd.h include/asm-ia64/linux/initrd.h
269 softlink include/linux/kmalloc_sizes.h include/asm-ia64/linux/kmalloc_sizes.h
270 softlink include/linux/linkage.h include/asm-ia64/linux/linkage.h
271 softlink include/linux/numa.h include/asm-ia64/linux/numa.h
272 softlink include/linux/page-flags.h include/asm-ia64/linux/page-flags.h
273 softlink include/linux/percpu.h include/asm-ia64/linux/percpu.h
274 softlink include/linux/preempt.h include/asm-ia64/linux/preempt.h
275 softlink include/linux/rbtree.h include/asm-ia64/linux/rbtree.h
276 softlink include/linux/rwsem.h include/asm-ia64/linux/rwsem.h
277 softlink include/linux/seq_file.h include/asm-ia64/linux/seq_file.h
278 softlink include/linux/serial_core.h include/asm-ia64/linux/serial_core.h
279 softlink include/linux/stddef.h include/asm-ia64/linux/stddef.h
280 softlink include/linux/thread_info.h include/asm-ia64/linux/thread_info.h
281 softlink include/linux/threads.h include/asm-ia64/linux/threads.h
282 softlink include/linux/timex.h include/asm-ia64/linux/timex.h
283 softlink include/linux/topology.h include/asm-ia64/linux/topology.h
284 softlink include/linux/tty.h include/asm-ia64/linux/tty.h
286 null include/asm-ia64/linux/file.h
287 null include/asm-ia64/linux/module.h
288 null include/asm-ia64/linux/swap.h
290 softlink include/linux/byteorder/generic.h include/asm-ia64/linux/byteorder/generic.h
291 softlink include/linux/byteorder/little_endian.h include/asm-ia64/linux/byteorder/little_endian.h
292 softlink include/linux/byteorder/swab.h include/asm-ia64/linux/byteorder/swab.h