[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 03/16] libxl/arm: Generate static ACPI DSDT table
On 08/16/2016 06:25 AM, Shannon Zhao wrote: > diff --git a/tools/libacpi/Makefile b/tools/libacpi/Makefile > index d741ac5..7f50a33 100644 > --- a/tools/libacpi/Makefile > +++ b/tools/libacpi/Makefile > @@ -19,6 +19,7 @@ MK_DSDT = $(ACPI_BUILD_DIR)/mk_dsdt > > # Sources to be generated > C_SRC = $(addprefix $(ACPI_BUILD_DIR)/, dsdt_anycpu.c dsdt_15cpu.c > dsdt_anycpu_qemu_xen.c dsdt_pvh.c) > +C_SRC += $(ACPI_BUILD_DIR)/dsdt_anycpu_arm.c > H_SRC = $(addprefix $(ACPI_BUILD_DIR)/, ssdt_s3.h ssdt_s4.h ssdt_pm.h > ssdt_tpm.h) > > vpath iasl $(PATH) > @@ -32,7 +33,7 @@ $(H_SRC): $(ACPI_BUILD_DIR)/%.h: %.asl iasl > cd $(CURDIR) > > $(MK_DSDT): mk_dsdt.c > - $(HOSTCC) $(HOSTCFLAGS) $(CFLAGS_xeninclude) -o $@ mk_dsdt.c > + $(HOSTCC) $(HOSTCFLAGS) $(CFLAGS_xeninclude) -D__XEN_TOOLS__ -o $@ > mk_dsdt.c > > $(ACPI_BUILD_DIR)/dsdt_anycpu_qemu_xen.asl: dsdt.asl dsdt_acpi_info.asl > $(MK_DSDT) > awk 'NR > 1 {print s} {s=$$0}' $< > $@ > @@ -62,6 +63,18 @@ $(ACPI_BUILD_DIR)/dsdt_pvh.c: iasl > $(ACPI_BUILD_DIR)/dsdt_pvh.asl > echo "int dsdt_pvh_len=sizeof(dsdt_pvh);" >>$@ > rm -f $(ACPI_BUILD_DIR)/$*.aml $(ACPI_BUILD_DIR)/$*.hex > > +$(ACPI_BUILD_DIR)/dsdt_anycpu_arm.asl: $(MK_DSDT) > + printf "DefinitionBlock (\"DSDT.aml\", \"DSDT\", 3, \"XenARM\", \"Xen > DSDT\", 1)\n{" > $@ > + $(MK_DSDT) --debug=$(debug) --arch arm >> $@ > + > +$(ACPI_BUILD_DIR)/dsdt_anycpu_arm.c: iasl > $(ACPI_BUILD_DIR)/dsdt_anycpu_arm.asl > + cd $(ACPI_BUILD_DIR) > + iasl -vs -p $* -tc $(ACPI_BUILD_DIR)/$*.asl > + sed -e 's/AmlCode/$*/g' $*.hex >$@ > + echo "int $*_len=sizeof($*);" >>$@ > + rm -f $*.aml $*.hex > + cd $(CURDIR) > + Note that x86 targets have been updated not to use 'cd'. > diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile > index 6139bed..ce356d0 100644 > --- a/tools/libxl/Makefile > +++ b/tools/libxl/Makefile > @@ -90,7 +90,10 @@ acpi: > > LIBXL_OBJS-$(CONFIG_X86) += libxl_cpuid.o libxl_x86.o libxl_psr.o > libxl_x86_acpi.o > LIBXL_OBJS-$(CONFIG_ARM) += libxl_nocpuid.o libxl_arm.o libxl_libfdt_compat.o > -LIBXL_OBJS-$(CONFIG_ARM_64) += libxl_arm_acpi.o > +LIBXL_OBJS-$(CONFIG_ARM_64) += libxl_arm_acpi.o dsdt_anycpu_arm.o > + > +dsdt_anycpu_arm.c: > + $(MAKE) -C $(ACPI_PATH) ACPI_BUILD_DIR=$(shell pwd) $(CURDIR) ? (Both of these were requested by Jan when reviewing my x86 series so I figured I'd mention them here as well) -boris _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |