[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v2 14/23] acpi: Move ACPI code to tools/libacpi
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- v2: * Minor cleanup of hvmloader's Makefile tools/firmware/hvmloader/Makefile | 14 ++++++++------ tools/firmware/hvmloader/ovmf.c | 2 +- tools/{firmware/hvmloader/acpi => libacpi}/Makefile | 2 +- tools/{firmware/hvmloader/acpi => libacpi}/README | 0 tools/{firmware/hvmloader/acpi => libacpi}/acpi2_0.h | 0 tools/{firmware/hvmloader/acpi => libacpi}/build.c | 0 tools/{firmware/hvmloader/acpi => libacpi}/dsdt.asl | 0 tools/{firmware/hvmloader/acpi => libacpi}/libacpi.h | 0 tools/{firmware/hvmloader/acpi => libacpi}/mk_dsdt.c | 0 tools/{firmware/hvmloader/acpi => libacpi}/ssdt_pm.asl | 0 tools/{firmware/hvmloader/acpi => libacpi}/ssdt_s3.asl | 0 tools/{firmware/hvmloader/acpi => libacpi}/ssdt_s4.asl | 0 tools/{firmware/hvmloader/acpi => libacpi}/ssdt_tpm.asl | 0 tools/{firmware/hvmloader/acpi => libacpi}/static_tables.c | 0 tools/{firmware/hvmloader/acpi => libacpi}/x86.h | 0 15 files changed, 10 insertions(+), 8 deletions(-) rename tools/{firmware/hvmloader/acpi => libacpi}/Makefile (98%) rename tools/{firmware/hvmloader/acpi => libacpi}/README (100%) rename tools/{firmware/hvmloader/acpi => libacpi}/acpi2_0.h (100%) rename tools/{firmware/hvmloader/acpi => libacpi}/build.c (100%) rename tools/{firmware/hvmloader/acpi => libacpi}/dsdt.asl (100%) rename tools/{firmware/hvmloader/acpi => libacpi}/libacpi.h (100%) rename tools/{firmware/hvmloader/acpi => libacpi}/mk_dsdt.c (100%) rename tools/{firmware/hvmloader/acpi => libacpi}/ssdt_pm.asl (100%) rename tools/{firmware/hvmloader/acpi => libacpi}/ssdt_s3.asl (100%) rename tools/{firmware/hvmloader/acpi => libacpi}/ssdt_s4.asl (100%) rename tools/{firmware/hvmloader/acpi => libacpi}/ssdt_tpm.asl (100%) rename tools/{firmware/hvmloader/acpi => libacpi}/static_tables.c (100%) rename tools/{firmware/hvmloader/acpi => libacpi}/x86.h (100%) diff --git a/tools/firmware/hvmloader/Makefile b/tools/firmware/hvmloader/Makefile index db64a61..694d9f1 100644 --- a/tools/firmware/hvmloader/Makefile +++ b/tools/firmware/hvmloader/Makefile @@ -20,9 +20,6 @@ XEN_ROOT = $(CURDIR)/../../.. include $(XEN_ROOT)/tools/firmware/Rules.mk -export ACPI_BUILD_DIR=$(shell pwd) -SUBDIRS := acpi - # The HVM loader is started in 32-bit mode at the address below: LOADADDR = 0x100000 @@ -67,16 +64,20 @@ ROMS += $(ROMBIOS_ROM) $(STDVGA_ROM) $(CIRRUSVGA_ROM) $(ETHERBOOT_ROMS) endif .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. -DSTDUTILS=\"../util.h\" +$(ACPI_OBJS): CFLAGS += -I. -DSTDUTILS=\"$(CURDIR)/util.h\" CFLAGS += -I$(ACPI_PATH) vpath build.c $(ACPI_PATH) vpath static_tables.c $(ACPI_PATH) @@ -118,6 +119,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 diff --git a/tools/firmware/hvmloader/ovmf.c b/tools/firmware/hvmloader/ovmf.c index b4bcc93..7878276 100644 --- a/tools/firmware/hvmloader/ovmf.c +++ b/tools/firmware/hvmloader/ovmf.c @@ -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" diff --git a/tools/firmware/hvmloader/acpi/Makefile b/tools/libacpi/Makefile similarity index 98% rename from tools/firmware/hvmloader/acpi/Makefile rename to tools/libacpi/Makefile index 6937ff4..816322f 100644 --- a/tools/firmware/hvmloader/acpi/Makefile +++ b/tools/libacpi/Makefile @@ -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 diff --git a/tools/firmware/hvmloader/acpi/README b/tools/libacpi/README similarity index 100% rename from tools/firmware/hvmloader/acpi/README rename to tools/libacpi/README diff --git a/tools/firmware/hvmloader/acpi/acpi2_0.h b/tools/libacpi/acpi2_0.h similarity index 100% rename from tools/firmware/hvmloader/acpi/acpi2_0.h rename to tools/libacpi/acpi2_0.h diff --git a/tools/firmware/hvmloader/acpi/build.c b/tools/libacpi/build.c similarity index 100% rename from tools/firmware/hvmloader/acpi/build.c rename to tools/libacpi/build.c diff --git a/tools/firmware/hvmloader/acpi/dsdt.asl b/tools/libacpi/dsdt.asl similarity index 100% rename from tools/firmware/hvmloader/acpi/dsdt.asl rename to tools/libacpi/dsdt.asl diff --git a/tools/firmware/hvmloader/acpi/libacpi.h b/tools/libacpi/libacpi.h similarity index 100% rename from tools/firmware/hvmloader/acpi/libacpi.h rename to tools/libacpi/libacpi.h diff --git a/tools/firmware/hvmloader/acpi/mk_dsdt.c b/tools/libacpi/mk_dsdt.c similarity index 100% rename from tools/firmware/hvmloader/acpi/mk_dsdt.c rename to tools/libacpi/mk_dsdt.c diff --git a/tools/firmware/hvmloader/acpi/ssdt_pm.asl b/tools/libacpi/ssdt_pm.asl similarity index 100% rename from tools/firmware/hvmloader/acpi/ssdt_pm.asl rename to tools/libacpi/ssdt_pm.asl diff --git a/tools/firmware/hvmloader/acpi/ssdt_s3.asl b/tools/libacpi/ssdt_s3.asl similarity index 100% rename from tools/firmware/hvmloader/acpi/ssdt_s3.asl rename to tools/libacpi/ssdt_s3.asl diff --git a/tools/firmware/hvmloader/acpi/ssdt_s4.asl b/tools/libacpi/ssdt_s4.asl similarity index 100% rename from tools/firmware/hvmloader/acpi/ssdt_s4.asl rename to tools/libacpi/ssdt_s4.asl diff --git a/tools/firmware/hvmloader/acpi/ssdt_tpm.asl b/tools/libacpi/ssdt_tpm.asl similarity index 100% rename from tools/firmware/hvmloader/acpi/ssdt_tpm.asl rename to tools/libacpi/ssdt_tpm.asl diff --git a/tools/firmware/hvmloader/acpi/static_tables.c b/tools/libacpi/static_tables.c similarity index 100% rename from tools/firmware/hvmloader/acpi/static_tables.c rename to tools/libacpi/static_tables.c diff --git a/tools/firmware/hvmloader/acpi/x86.h b/tools/libacpi/x86.h similarity index 100% rename from tools/firmware/hvmloader/acpi/x86.h rename to tools/libacpi/x86.h -- 1.8.3.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |