debuggers.hg

view tools/firmware/hvmloader/acpi/Makefile @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children 790c2f0eaf7c
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 static_tables.c
22 H_SRC = $(wildcard *.h)
23 OBJS = $(patsubst %.c,%.o,$(C_SRC))
25 IASL_VER = acpica-unix-20060707
26 IASL_URL = http://developer.intel.com/technology/iapc/acpi/downloads/$(IASL_VER).tar.gz
28 CFLAGS += -I. -I.. $(CFLAGS_include)
30 vpath iasl $(PATH)
31 all: acpi.a
33 ssdt_tpm.h: ssdt_tpm.asl
34 $(MAKE) iasl
35 iasl -tc ssdt_tpm.asl
36 mv ssdt_tpm.hex ssdt_tpm.h
37 rm -f *.aml
39 dsdt.c: dsdt.asl
40 $(MAKE) iasl
41 iasl -tc dsdt.asl
42 mv dsdt.hex dsdt.c
43 echo "int DsdtLen=sizeof(AmlCode);" >> dsdt.c
44 rm -f *.aml
46 iasl:
47 @echo
48 @echo "ACPI ASL compiler(iasl) is needed"
49 @echo "Download Intel ACPI CA"
50 @echo "If wget failed, please download and compile manually from"
51 @echo "http://developer.intel.com/technology/iapc/acpi/downloads.htm"
52 @echo
53 wget $(IASL_URL)
54 tar xzf $(IASL_VER).tar.gz
55 make -C $(IASL_VER)/compiler
56 $(INSTALL_PROG) $(IASL_VER)/compiler/iasl $(DESTDIR)$(BINDIR)/iasl
58 acpi.a: $(OBJS)
59 $(AR) rc $@ $(OBJS)
61 %.o: %.c $(H_SRC)
62 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
64 clean:
65 rm -rf *.a *.o $(IASL_VER) $(IASL_VER).tar.gz
67 install: all