cpu-exec: introduce loop exit with restore function
[qemu/ar7.git] / hw / i386 / Makefile.objs
blobc250deb848a7d6b730a7b25e96d88d587f51e366
1 obj-$(CONFIG_KVM) += kvm/
2 obj-y += multiboot.o
3 obj-y += pc.o pc_piix.o pc_q35.o
4 obj-y += pc_sysfw.o
5 obj-y += intel_iommu.o
6 obj-$(CONFIG_XEN) += ../xenpv/ xen/
8 obj-y += kvmvapic.o
9 obj-y += acpi-build.o
10 obj-y += pci-assign-load-rom.o
12 gen-hex-y += hw/i386/acpi-dsdt.hex
13 gen-hex-y += hw/i386/q35-acpi-dsdt.hex
15 hw/i386/acpi-build.o: hw/i386/acpi-build.c \
16         $(gen-hex-y)
18 -include $(gen-hex-y:.hex=.d)
20 iasl-option=$(shell if test -z "`$(1) $(2) 2>&1 > /dev/null`" \
21     ; then echo "$(2)"; else echo "$(3)"; fi ;)
23 ifdef IASL
24 #IASL Present. Generate hex files from .dsl
25 hw/i386/%.hex: $(SRC_PATH)/hw/i386/%.dsl $(SRC_PATH)/scripts/acpi_extract_preprocess.py $(SRC_PATH)/scripts/acpi_extract.py
26         $(call quiet-command, $(CPP) -x c -P $(QEMU_DGFLAGS) $(QEMU_INCLUDES) $< -o $*.dsl.i.orig, "  CPP $(TARGET_DIR)$*.dsl.i.orig")
27         $(call quiet-command, $(PYTHON) $(SRC_PATH)/scripts/acpi_extract_preprocess.py $*.dsl.i.orig > $*.dsl.i, "  ACPI_PREPROCESS $(TARGET_DIR)$*.dsl.i")
28         $(call quiet-command, $(IASL) $(call iasl-option,$(IASL),-Pn,) -vs -l -tc -p $* $*.dsl.i $(if $(V), , > /dev/null) 2>&1 ,"  IASL $(TARGET_DIR)$*.dsl.i")
29         $(call quiet-command, $(PYTHON) $(SRC_PATH)/scripts/acpi_extract.py $*.lst > $*.off, "  ACPI_EXTRACT $(TARGET_DIR)$*.off")
30         $(call quiet-command, cat $*.off > $@, "  CAT $(TARGET_DIR)$@")
31 else
32 #IASL Not present. Restore pre-generated hex files.
33 hw/i386/%.hex: $(SRC_PATH)/hw/i386/%.hex.generated
34         $(call quiet-command, cp -f $< $@, "  CP $(TARGET_DIR)$@")
35 endif
37 .PHONY: cleanhex
38 cleanhex:
39         rm -f hw/i386/*hex
40 clean: cleanhex