ia64/xen-unstable

view tools/firmware/acpi/Makefile @ 6392:bca2fd76995e

Add EXT3 as built-in filesystem for x86/64 domU.
author kaf24@firebug.cl.cam.ac.uk
date Wed Aug 24 15:21:48 2005 +0000 (2005-08-24)
parents bc8bb3a26ccc
children 85b34394c9a2
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 # *
17 # */
18 #
19 # Compiler flag
20 CFLAG=-I. -I../../libxc
22 # Compiler tool
23 CC=gcc
25 # TARGET
26 C_SRC=$(shell ls *.c)
27 H_SRC=$(shell ls *.h)
28 ACPI_GEN=acpigen
29 ACPI_BIN=acpi.bin
31 IASL_VER=acpica-unix-20050513
32 IASL_URL=http://developer.intel.com/technology/iapc/acpi/downloads/$(IASL_VER).tar.gz
34 vpath iasl $(PATH)
35 all:$(ACPI_BIN)
37 acpi_dsdt.c:acpi_dsdt.asl
38 $(MAKE) iasl
39 iasl -oa -tc acpi_dsdt.asl
40 mv acpi_dsdt.hex acpi_dsdt.c
41 echo "int DsdtLen=sizeof(AmlCode);" >> acpi_dsdt.c
42 rm *.aml
44 iasl:
45 @echo
46 @echo "ACPI ASL compiler(iasl) is needed"
47 @echo "Download Intel ACPI CA"
48 @echo "If wget failed, please download and compile manually from"
49 @echo "http://developer.intel.com/technology/iapc/acpi/downloads.htm"
50 @echo
51 wget $(IASL_URL)
52 tar xzf $(IASL_VER).tar.gz
53 make -C $(IASL_VER)/compiler
54 install $(IASL_VER)/compiler/iasl /usr/bin/iasl
56 $(ACPI_GEN):$(C_SRC) $(H_SRC) acpi_dsdt.c
57 $(CC) -o $(ACPI_GEN) $(CFLAG) $(shell ls *.c)
59 $(ACPI_BIN):$(ACPI_GEN)
60 ./$(ACPI_GEN) $(ACPI_BIN)
62 clean:
63 rm -rf *.o $(ACPI_GEN) $(ACPI_BIN) $(IASL_VER)
64 # rm -f acpi_dsdt.c
65 rm -rf $(IASL_VER).tar.gz
66 install:all