]> git.proxmox.com Git - mirror_qemu.git/blame - hw/i386/Makefile.objs
intel-iommu: introduce Intel IOMMU (VT-d) emulation
[mirror_qemu.git] / hw / i386 / Makefile.objs
CommitLineData
54976b75 1obj-$(CONFIG_KVM) += kvm/
53018216
PB
2obj-y += multiboot.o smbios.o
3obj-y += pc.o pc_piix.o pc_q35.o
6dd2a5c9 4obj-y += pc_sysfw.o
1da12ec4 5obj-y += intel_iommu.o
ad3f7e31 6obj-$(CONFIG_XEN) += ../xenpv/ xen/
8786b05e
PB
7
8obj-y += kvmvapic.o
72c194f7 9obj-y += acpi-build.o
bc702329 10obj-y += bios-linker-loader.o
72c194f7
MT
11hw/i386/acpi-build.o: hw/i386/acpi-build.c hw/i386/acpi-dsdt.hex \
12 hw/i386/ssdt-proc.hex hw/i386/ssdt-pcihp.hex hw/i386/ssdt-misc.hex \
bef3492d 13 hw/i386/acpi-dsdt.hex hw/i386/q35-acpi-dsdt.hex \
711b20b4
SB
14 hw/i386/q35-acpi-dsdt.hex hw/i386/ssdt-mem.hex \
15 hw/i386/ssdt-tpm.hex
a31a8642
MT
16
17iasl-option=$(shell if test -z "`$(1) $(2) 2>&1 > /dev/null`" \
18 ; then echo "$(2)"; else echo "$(3)"; fi ;)
19
20ifdef IASL
21#IASL Present. Generate hex files from .dsl
22hw/i386/%.hex: $(SRC_PATH)/hw/i386/%.dsl $(SRC_PATH)/scripts/acpi_extract_preprocess.py $(SRC_PATH)/scripts/acpi_extract.py
dc61b295 23 $(call quiet-command, $(CPP) -x c -P $(QEMU_DGFLAGS) $(QEMU_INCLUDES) $< -o $*.dsl.i.orig, " CPP $(TARGET_DIR)$*.dsl.i.orig")
a31a8642
MT
24 $(call quiet-command, $(PYTHON) $(SRC_PATH)/scripts/acpi_extract_preprocess.py $*.dsl.i.orig > $*.dsl.i, " ACPI_PREPROCESS $(TARGET_DIR)$*.dsl.i")
25 $(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")
0478f37c 26 $(call quiet-command, $(PYTHON) $(SRC_PATH)/scripts/acpi_extract.py $*.lst > $*.off, " ACPI_EXTRACT $(TARGET_DIR)$*.off")
a31a8642
MT
27 $(call quiet-command, cat $*.off > $@, " CAT $(TARGET_DIR)$@")
28else
29#IASL Not present. Restore pre-generated hex files.
30hw/i386/%.hex: $(SRC_PATH)/hw/i386/%.hex.generated
31 $(call quiet-command, cp -f $< $@, " CP $(TARGET_DIR)$@")
32endif
33
34.PHONY: cleanhex
35cleanhex:
36 rm -f hw/i386/*hex
37clean: cleanhex