debuggers.hg

view tools/firmware/hvmloader/acpi/Makefile @ 16961:4a92c68db1d2

firmware: Use new path to xen public headers.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Jan 28 12:03:02 2008 +0000 (2008-01-28)
parents 5e03f0bc0aa2
children fcc4b7c304d9
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 override XEN_TARGET_ARCH = x86_32
19 XEN_ROOT = ../../../..
20 CFLAGS :=
21 include $(XEN_ROOT)/tools/Rules.mk
23 C_SRC = build.c dsdt.c static_tables.c
24 H_SRC = $(wildcard *.h)
25 OBJS = $(patsubst %.c,%.o,$(C_SRC))
27 IASL_VER = acpica-unix-20060707
28 IASL_URL = http://developer.intel.com/technology/iapc/acpi/downloads/$(IASL_VER).tar.gz
30 # Disable PIE/SSP if GCC supports them. They can break us.
31 CFLAGS += $(call cc-option,$(CC),-nopie,)
32 CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
33 CFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
35 CFLAGS += -fno-builtin -O2 -msoft-float
36 CFLAGS += -I. -I.. $(CFLAGS_include)
38 vpath iasl $(PATH)
39 all: acpi.a
41 ssdt_tpm.h: ssdt_tpm.asl
42 $(MAKE) iasl
43 iasl -tc ssdt_tpm.asl
44 mv ssdt_tpm.hex ssdt_tpm.h
45 rm -f *.aml
47 dsdt.c: dsdt.asl
48 $(MAKE) iasl
49 iasl -tc dsdt.asl
50 mv dsdt.hex dsdt.c
51 echo "int DsdtLen=sizeof(AmlCode);" >> dsdt.c
52 rm -f *.aml
54 iasl:
55 @echo
56 @echo "ACPI ASL compiler(iasl) is needed"
57 @echo "Download Intel ACPI CA"
58 @echo "If wget failed, please download and compile manually from"
59 @echo "http://developer.intel.com/technology/iapc/acpi/downloads.htm"
60 @echo
61 wget $(IASL_URL)
62 tar xzf $(IASL_VER).tar.gz
63 make -C $(IASL_VER)/compiler
64 $(INSTALL_PROG) $(IASL_VER)/compiler/iasl $(DESTDIR)$(BINDIR)/iasl
66 acpi.a: $(OBJS)
67 $(AR) rc $@ $(OBJS)
69 %.o: %.c $(H_SRC)
70 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
72 clean:
73 rm -rf *.a *.o $(IASL_VER) $(IASL_VER).tar.gz
75 install: all