ia64/xen-unstable

view tools/firmware/rombios/Makefile @ 10316:e5c17d2d85a4

[HVMLOADER] Revert to uniprocessor MPS table in rombios.
Advertising more CPUs than the guest is allocated hangs boot
of Windows XP (selects wrong HAL). The correct fix here is
to dynamically generate the MPS table (at least the CPU
entries) from hvmloader binary.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Jun 07 09:59:56 2006 +0100 (2006-06-07)
parents 2c0cd4075d1c
children ae245d35457b
line source
1 BIOS_BUILDS = BIOS-bochs-latest
2 #BIOS_BUILDS += BIOS-bochs-2-processors
3 #BIOS_BUILDS += BIOS-bochs-4-processors
4 #BIOS_BUILDS += BIOS-bochs-8-processors
6 .PHONY: all
7 all: bios
9 .PHONY: bios
10 bios: biossums ${BIOS_BUILDS}
12 .PHONY: clean
13 clean:
14 rm -f *.o *.a *.s rombios.bin _rombios*_.c
15 rm -f as86-sym.txt ld86-sym.txt
16 rm -f rombios*.txt rombios*.sym usage biossums
17 rm -f BIOS-bochs-*
19 BIOS-bochs-latest: rombios.c biossums
20 gcc -DBX_SMP_PROCESSORS=1 -E -P $< > _rombios_.c
21 bcc -o rombios.s -C-c -D__i86__ -0 -S _rombios_.c
22 sed -e 's/^\.text//' -e 's/^\.data//' rombios.s > _rombios_.s
23 as86 _rombios_.s -b tmp.bin -u- -w- -g -0 -j -O -l rombios.txt
24 -perl makesym.perl < rombios.txt > rombios.sym
25 mv tmp.bin BIOS-bochs-latest
26 ./biossums BIOS-bochs-latest
27 rm -f _rombios_.s
29 BIOS-bochs-2-processors: rombios.c biossums
30 gcc -DBX_SMP_PROCESSORS=2 -E -P $< > _rombios2_.c
31 bcc -o rombios2.s -C-c -D__i86__ -0 -S _rombios2_.c
32 sed -e 's/^\.text//' -e 's/^\.data//' rombios2.s > _rombios2_.s
33 as86 _rombios2_.s -b tmp2.bin -u- -w- -g -0 -j -O -l rombios2.txt
34 -perl makesym.perl < rombios2.txt > rombios2.sym
35 mv tmp2.bin BIOS-bochs-2-processors
36 ./biossums BIOS-bochs-2-processors
37 rm -f _rombios2_.s
39 BIOS-bochs-4-processors: rombios.c biossums
40 gcc -DBX_SMP_PROCESSORS=4 -E -P $< > _rombios4_.c
41 bcc -o rombios4.s -C-c -D__i86__ -0 -S _rombios4_.c
42 sed -e 's/^\.text//' -e 's/^\.data//' rombios4.s > _rombios4_.s
43 as86 _rombios4_.s -b tmp4.bin -u- -w- -g -0 -j -O -l rombios4.txt
44 -perl makesym.perl < rombios4.txt > rombios4.sym
45 mv tmp4.bin BIOS-bochs-4-processors
46 ./biossums BIOS-bochs-4-processors
47 rm -f _rombios4_.s
49 BIOS-bochs-8-processors: rombios.c biossums
50 gcc -DBX_SMP_PROCESSORS=8 -E -P $< > _rombios8_.c
51 bcc -o rombios8.s -C-c -D__i86__ -0 -S _rombios8_.c
52 sed -e 's/^\.text//' -e 's/^\.data//' rombios8.s > _rombios8_.s
53 as86 _rombios8_.s -b tmp8.bin -u- -w- -g -0 -j -O -l rombios8.txt
54 -perl makesym.perl < rombios8.txt > rombios8.sym
55 mv tmp8.bin BIOS-bochs-8-processors
56 ./biossums BIOS-bochs-8-processors
57 rm -f _rombios8_.s
59 biossums: biossums.c
60 gcc -o biossums biossums.c