2017-07-24 11:52:50 +03:00
|
|
|
obj-y += cpu.o cpu_models.o cpu_features.o gdbstub.o interrupt.o helper.o
|
|
|
|
obj-$(CONFIG_TCG) += translate.o cc_helper.o excp_helper.o fpu_helper.o
|
2017-09-20 18:30:16 +03:00
|
|
|
obj-$(CONFIG_TCG) += int_helper.o mem_helper.o misc_helper.o crypto_helper.o
|
2019-05-23 16:09:49 +03:00
|
|
|
obj-$(CONFIG_TCG) += vec_helper.o vec_int_helper.o vec_string_helper.o
|
2019-05-29 22:21:21 +03:00
|
|
|
obj-$(CONFIG_TCG) += vec_fpu_helper.o
|
2017-07-24 11:52:47 +03:00
|
|
|
obj-$(CONFIG_SOFTMMU) += machine.o ioinst.o arch_dump.o mmu_helper.o diag.o
|
2017-09-28 23:36:54 +03:00
|
|
|
obj-$(CONFIG_SOFTMMU) += sigp.o
|
2012-05-29 13:48:59 +04:00
|
|
|
obj-$(CONFIG_KVM) += kvm.o
|
2017-08-18 14:43:52 +03:00
|
|
|
obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o
|
2018-06-27 16:44:09 +03:00
|
|
|
obj-$(call lnot,$(CONFIG_TCG)) += tcg-stub.o
|
2016-09-05 11:52:19 +03:00
|
|
|
|
|
|
|
# build and run feature list generator
|
2016-10-11 09:56:52 +03:00
|
|
|
feat-src = $(SRC_PATH)/target/$(TARGET_BASE_ARCH)/
|
2016-09-05 11:52:19 +03:00
|
|
|
feat-dst = $(BUILD_DIR)/$(TARGET_DIR)
|
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
2019-04-01 17:12:19 +03:00
|
|
|
generated-files-y += $(feat-dst)gen-features.h
|
2016-09-05 11:52:19 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(feat-dst)gen-features.h: $(feat-dst)gen-features.h-timestamp
|
|
|
|
@cmp $< $@ >/dev/null 2>&1 || cp $< $@
|
|
|
|
$(feat-dst)gen-features.h-timestamp: $(feat-dst)gen-features
|
2016-10-04 19:27:21 +03:00
|
|
|
$(call quiet-command,$< >$@,"GEN","$(TARGET_DIR)gen-features.h")
|
2016-09-05 11:52:19 +03:00
|
|
|
|
|
|
|
$(feat-dst)gen-features: $(feat-src)gen-features.c
|
2016-10-04 19:27:21 +03:00
|
|
|
$(call quiet-command,$(HOST_CC) $(QEMU_INCLUDES) -o $@ $<,"CC","$(TARGET_DIR)gen-features")
|
2016-09-05 11:52:19 +03:00
|
|
|
|
|
|
|
clean-target:
|
|
|
|
rm -f gen-features.h-timestamp
|
|
|
|
rm -f gen-features.h
|
|
|
|
rm -f gen-features
|