2012-09-02 09:33:35 +02:00
|
|
|
obj-y += translate.o helper.o cpu.o interrupt.o
|
|
|
|
obj-y += int_helper.o fpu_helper.o cc_helper.o mem_helper.o misc_helper.o
|
2016-09-05 10:52:18 +02:00
|
|
|
obj-y += gdbstub.o cpu_models.o cpu_features.o
|
2015-02-12 18:09:18 +01:00
|
|
|
obj-$(CONFIG_SOFTMMU) += machine.o ioinst.o arch_dump.o mmu_helper.o
|
2012-05-29 11:48:59 +02:00
|
|
|
obj-$(CONFIG_KVM) += kvm.o
|
2016-09-05 10:52:19 +02:00
|
|
|
|
|
|
|
# build and run feature list generator
|
2016-10-11 08:56:52 +02:00
|
|
|
feat-src = $(SRC_PATH)/target/$(TARGET_BASE_ARCH)/
|
2016-09-05 10:52:19 +02:00
|
|
|
feat-dst = $(BUILD_DIR)/$(TARGET_DIR)
|
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
|
|
|
GENERATED_HEADERS += $(feat-dst)gen-features.h
|
|
|
|
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 18:27:21 +02:00
|
|
|
$(call quiet-command,$< >$@,"GEN","$(TARGET_DIR)gen-features.h")
|
2016-09-05 10:52:19 +02:00
|
|
|
|
|
|
|
$(feat-dst)gen-features: $(feat-src)gen-features.c
|
2016-10-04 18:27:21 +02:00
|
|
|
$(call quiet-command,$(HOST_CC) $(QEMU_INCLUDES) -o $@ $<,"CC","$(TARGET_DIR)gen-features")
|
2016-09-05 10:52:19 +02:00
|
|
|
|
|
|
|
clean-target:
|
|
|
|
rm -f gen-features.h-timestamp
|
|
|
|
rm -f gen-features.h
|
|
|
|
rm -f gen-features
|