]> git.proxmox.com Git - qemu.git/blob - hw/i386/Makefile.objs
s390x: fix flat file load on 32 bit systems
[qemu.git] / hw / i386 / Makefile.objs
1 obj-$(CONFIG_KVM) += kvm/
2 obj-y += multiboot.o smbios.o
3 obj-y += pc.o pc_piix.o pc_q35.o
4 obj-y += pc_sysfw.o
5 obj-$(CONFIG_XEN) += xen_domainbuild.o xen_machine_pv.o
6
7 obj-y += kvmvapic.o
8 obj-y += acpi-build.o
9 obj-y += bios-linker-loader.o
10 hw/i386/acpi-build.o: hw/i386/acpi-build.c hw/i386/acpi-dsdt.hex \
11 hw/i386/ssdt-proc.hex hw/i386/ssdt-pcihp.hex hw/i386/ssdt-misc.hex \
12 hw/i386/acpi-dsdt.hex hw/i386/q35-acpi-dsdt.hex
13
14 iasl-option=$(shell if test -z "`$(1) $(2) 2>&1 > /dev/null`" \
15 ; then echo "$(2)"; else echo "$(3)"; fi ;)
16
17 ifdef IASL
18 #IASL Present. Generate hex files from .dsl
19 hw/i386/%.hex: $(SRC_PATH)/hw/i386/%.dsl $(SRC_PATH)/scripts/acpi_extract_preprocess.py $(SRC_PATH)/scripts/acpi_extract.py
20 $(call quiet-command, cpp -P $< -o $*.dsl.i.orig, " CPP $(TARGET_DIR)$*.dsl.i.orig")
21 $(call quiet-command, $(PYTHON) $(SRC_PATH)/scripts/acpi_extract_preprocess.py $*.dsl.i.orig > $*.dsl.i, " ACPI_PREPROCESS $(TARGET_DIR)$*.dsl.i")
22 $(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")
23 $(call quiet-command, $(PYTHON) $(SRC_PATH)/scripts/acpi_extract.py $*.lst > $*.off, " ACPI_EXTRACT $(TARGET_DIR)$*.off")
24 $(call quiet-command, cat $*.off > $@, " CAT $(TARGET_DIR)$@")
25 else
26 #IASL Not present. Restore pre-generated hex files.
27 hw/i386/%.hex: $(SRC_PATH)/hw/i386/%.hex.generated
28 $(call quiet-command, cp -f $< $@, " CP $(TARGET_DIR)$@")
29 endif
30
31 .PHONY: cleanhex
32 cleanhex:
33 rm -f hw/i386/*hex
34 clean: cleanhex