Signed-off-by: Alexander Oleinik <alx...@bu.edu> --- Makefile | 12 +++++++++++- Makefile.objs | 6 +++++- Makefile.target | 1 + 3 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile index 3a43492340..5e5033a500 100644 --- a/Makefile +++ b/Makefile @@ -426,6 +426,7 @@ dummy := $(call unnest-vars,, \ qom-obj-y \ io-obj-y \ common-obj-y \ + softmmu-obj-y \ common-obj-m \ ui-obj-y \ ui-obj-m \ @@ -463,7 +464,16 @@ $(SOFTMMU_ALL_RULES): $(crypto-obj-y) $(SOFTMMU_ALL_RULES): $(io-obj-y) $(SOFTMMU_ALL_RULES): config-all-devices.mak $(SOFTMMU_ALL_RULES): $(edk2-decompressed) -$(SOFTMMU_ALL_RULES): $(softmmu-main-y) +$(SOFTMMU_ALL_RULES): $(softmmu-obj-y) + +SOFTMMU_FUZZ_RULES=$(filter %-softmmu/fuzz, $(TARGET_DIRS_RULES)) +$(SOFTMMU_FUZZ_RULES): $(authz-obj-y) +$(SOFTMMU_FUZZ_RULES): $(block-obj-y) +$(SOFTMMU_FUZZ_RULES): $(chardev-obj-y) +$(SOFTMMU_FUZZ_RULES): $(crypto-obj-y) +$(SOFTMMU_FUZZ_RULES): $(io-obj-y) +$(SOFTMMU_FUZZ_RULES): config-all-devices.mak +$(SOFTMMU_FUZZ_RULES): $(edk2-decompressed) SOFTMMU_FUZZ_RULES=$(filter %-softmmu/fuzz, $(TARGET_DIRS_RULES)) $(SOFTMMU_FUZZ_RULES): $(authz-obj-y) diff --git a/Makefile.objs b/Makefile.objs index bb1cfa05ef..99ea6b66de 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -87,9 +87,13 @@ common-obj-$(CONFIG_FDT) += device_tree.o common-obj-y += qapi/ -softmmu-main-y = main.o endif +ifneq ($(CONFIG_FUZZ),y) +softmmu-obj-y = main.o +endif + + ####################################################################### # Target-independent parts used in system and user emulation common-obj-y += cpus-common.o diff --git a/Makefile.target b/Makefile.target index 6065989964..f3efe3debd 100644 --- a/Makefile.target +++ b/Makefile.target @@ -194,6 +194,7 @@ all-obj-$(CONFIG_SOFTMMU) += $(block-obj-y) $(chardev-obj-y) all-obj-$(CONFIG_USER_ONLY) += $(crypto-user-obj-y) all-obj-$(CONFIG_SOFTMMU) += $(crypto-obj-y) all-obj-$(CONFIG_SOFTMMU) += $(io-obj-y) +all-obj-$(CONFIG_SOFTMMU) += $(softmmu-obj-y) ifdef CONFIG_SOFTMMU $(QEMU_PROG_BUILD): config-devices.mak -- 2.23.0