mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
acpi: Move ACPI code to tools/libacpi
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
7fe907f2eb
commit
73b72736e6
21 files changed
+13
-10
No files matched your search
@@ -138,6 +138,7 @@ S: Supported
|
||||
F: xen/arch/x86/acpi/
|
||||
F: xen/drivers/acpi/
|
||||
F: xen/include/acpi/
|
||||
F: tools/libacpi/
|
||||
|
||||
AMD IOMMU
|
||||
M: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
|
||||
|
||||
@@ -20,10 +20,7 @@
|
||||
XEN_ROOT = $(CURDIR)/../../..
|
||||
include $(XEN_ROOT)/tools/firmware/Rules.mk
|
||||
|
||||
export ACPI_BUILD_DIR=$(CURDIR)
|
||||
SUBDIRS := acpi
|
||||
|
||||
# The HVM loader is started in 32-bit mode at the address below:
|
||||
LOADADDR = 0x100000
|
||||
|
||||
# SMBIOS spec requires format mm/dd/yyyy
|
||||
@@ -70,16 +67,20 @@ endif
|
||||
export GPL := y
|
||||
|
||||
.PHONY: all
|
||||
all: subdirs-all
|
||||
all: acpi subdirs-all
|
||||
$(MAKE) hvmloader
|
||||
|
||||
.PHONY: acpi
|
||||
acpi:
|
||||
$(MAKE) -C $(ACPI_PATH) ACPI_BUILD_DIR=$(CURDIR)
|
||||
|
||||
rombios.o: roms.inc
|
||||
smbios.o: CFLAGS += -D__SMBIOS_DATE__="\"$(SMBIOS_REL_DATE)\""
|
||||
|
||||
ACPI_PATH = acpi
|
||||
ACPI_PATH = ../../libacpi
|
||||
ACPI_FILES = dsdt_anycpu.c dsdt_15cpu.c dsdt_anycpu_qemu_xen.c
|
||||
ACPI_OBJS = $(patsubst %.c,%.o,$(ACPI_FILES)) build.o static_tables.o
|
||||
$(ACPI_OBJS): CFLAGS += -I. -DLIBACPI_STDUTILS=\"../util.h\"
|
||||
$(ACPI_OBJS): CFLAGS += -I. -DLIBACPI_STDUTILS=\"$(CURDIR)/util.h\"
|
||||
CFLAGS += -I$(ACPI_PATH)
|
||||
vpath build.c $(ACPI_PATH)
|
||||
vpath static_tables.c $(ACPI_PATH)
|
||||
@@ -121,6 +122,7 @@ endif
|
||||
clean: subdirs-clean
|
||||
rm -f roms.inc roms.inc.new acpi.h
|
||||
rm -f hvmloader hvmloader.tmp *.o $(DEPS)
|
||||
$(MAKE) -C $(ACPI_PATH) ACPI_BUILD_DIR=$(CURDIR) clean
|
||||
|
||||
.PHONY: distclean
|
||||
distclean: clean
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "smbios_types.h"
|
||||
#include "acpi/libacpi.h"
|
||||
#include "libacpi.h"
|
||||
#include "apic_regs.h"
|
||||
#include "../rombios/config.h"
|
||||
#include "util.h"
|
||||
|
||||
@@ -3,7 +3,7 @@ include $(XEN_ROOT)/tools/firmware/Rules.mk
|
||||
|
||||
TARGET = 32bitbios_flat.h
|
||||
|
||||
CFLAGS += $(CFLAGS_xeninclude) -I.. -I../../hvmloader/acpi
|
||||
CFLAGS += $(CFLAGS_xeninclude) -I.. -I../../../libacpi
|
||||
|
||||
SUBDIRS = tcgbios
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ include $(XEN_ROOT)/tools/firmware/Rules.mk
|
||||
|
||||
TARGET = tcgbiosext.o
|
||||
|
||||
CFLAGS += $(CFLAGS_xeninclude) -I.. -I../.. -I../../../hvmloader/acpi
|
||||
CFLAGS += $(CFLAGS_xeninclude) -I.. -I../.. -I../../../../libacpi
|
||||
|
||||
.PHONY: all
|
||||
all: $(TARGET)
|
||||
|
||||
File renamed without changes.
@@ -12,7 +12,7 @@
|
||||
# NU Lesser General Public License for more details.
|
||||
#
|
||||
|
||||
XEN_ROOT = $(CURDIR)/../../../..
|
||||
XEN_ROOT = $(CURDIR)/../..
|
||||
include $(XEN_ROOT)/tools/firmware/Rules.mk
|
||||
|
||||
MK_DSDT = $(ACPI_BUILD_DIR)/mk_dsdt
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.