debuggers.hg

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