]> git.proxmox.com Git - mirror_qemu.git/blob - hw/i386/Makefile.objs
i386: add bios linker/loader
[mirror_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 += bios-linker-loader.o
9
10 iasl-option=$(shell if test -z "`$(1) $(2) 2>&1 > /dev/null`" \
11 ; then echo "$(2)"; else echo "$(3)"; fi ;)
12
13 ifdef IASL
14 #IASL Present. Generate hex files from .dsl
15 hw/i386/%.hex: $(SRC_PATH)/hw/i386/%.dsl $(SRC_PATH)/scripts/acpi_extract_preprocess.py $(SRC_PATH)/scripts/acpi_extract.py
16 $(call quiet-command, cpp -P $< -o $*.dsl.i.orig, " CPP $(TARGET_DIR)$*.dsl.i.orig")
17 $(call quiet-command, $(PYTHON) $(SRC_PATH)/scripts/acpi_extract_preprocess.py $*.dsl.i.orig > $*.dsl.i, " ACPI_PREPROCESS $(TARGET_DIR)$*.dsl.i")
18 $(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")
19 $(call quiet-command, $(SRC_PATH)/scripts/acpi_extract.py $*.lst > $*.off, " ACPI_EXTRACT $(TARGET_DIR)$*.off")
20 $(call quiet-command, cat $*.off > $@, " CAT $(TARGET_DIR)$@")
21 else
22 #IASL Not present. Restore pre-generated hex files.
23 hw/i386/%.hex: $(SRC_PATH)/hw/i386/%.hex.generated
24 $(call quiet-command, cp -f $< $@, " CP $(TARGET_DIR)$@")
25 endif
26
27 .PHONY: cleanhex
28 cleanhex:
29 rm -f hw/i386/*hex
30 clean: cleanhex