debuggers.hg

view tools/firmware/hvmloader/acpi/Makefile @ 20979:a259e779467c

hvmloader: Build a compatibility DSDT with only 15 processor objects.

Deploy this smaller DSDT where possible: this is required to boot
Windows 2000, which only supports up to 15 processors and will blue
screen if it sees more processor objects than that (even inactive
ones).

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 11 22:42:18 2010 +0000 (2010-02-11)
parents 363bbf511573
children 27f5ff8c0aa0
line source
1 #
2 # Copyright (c) 2004, Intel Corporation.
3 #
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms and conditions of the GNU General Public License,
6 # version 2, as published by the Free Software Foundation.
7 #
8 # This program is distributed in the hope it will be useful, but WITHOUT
9 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 # more details.
12 #
13 # You should have received a copy of the GNU General Public License along with
14 # this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15 # Place - Suite 330, Boston, MA 02111-1307 USA.
16 #
18 XEN_ROOT = ../../../..
19 include $(XEN_ROOT)/tools/firmware/Rules.mk
21 C_SRC = build.c dsdt.c dsdt15.c static_tables.c
22 OBJS = $(patsubst %.c,%.o,$(C_SRC))
24 CFLAGS += -I. -I.. $(CFLAGS_include)
26 vpath iasl $(PATH)
27 all: acpi.a
29 ssdt_pm.h ssdt_tpm.h: %.h: %.asl
30 $(MAKE) iasl
31 iasl -tc $<
32 sed -e 's/AmlCode/$*/g' $*.hex >$@
33 rm -f *.aml $*.hex
35 dsdt.c dsdt15.c: %.c: dsdt.asl mk_dsdt.c
36 $(MAKE) iasl
37 $(HOSTCC) $(HOSTCFLAGS) $(CFLAGS_include) -o mk_$* mk_dsdt.c
38 head -n -1 $< >_$*.asl
39 ./mk_$* >>_$*.asl
40 iasl -tc _$*.asl
41 sed -e 's/AmlCode/_$*/g' _$*.hex >$@
42 echo "int _$*_len=sizeof(_$*);" >>$@
43 rm -f *.aml _dsdt* mk_$*
45 iasl:
46 @echo
47 @echo "ACPI ASL compiler (iasl) is needed"
48 @echo "Download and install Intel ACPI CA from"
49 @echo "http://acpica.org/downloads/"
50 @echo
51 @exit 1
53 acpi.a: $(OBJS)
54 $(AR) rc $@ $(OBJS)
56 clean:
57 rm -rf *.a *.o $(IASL_VER) $(IASL_VER).tar.gz $(DEPS)
59 install: all
61 -include $(DEPS)