qemu, qemuv8: avoid needless rebuilds
The qemu target currently runs the configure script unconditionally
which takes some time and causes unnecessary recompilations.
Split the configuration and the build steps and make the configuration
depend on $(QEMU_PATH)/config-host.mak to avoid the above issue.
Signed-off-by: Jerome Forissier <jerome@forissier.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
diff --git a/qemu.mk b/qemu.mk
index 038e982..e8cadf7 100644
--- a/qemu.mk
+++ b/qemu.mk
@@ -81,9 +81,11 @@
################################################################################
# QEMU
################################################################################
-qemu:
+$(QEMU_PATH)/config-host.mak:
cd $(QEMU_PATH); ./configure --target-list=arm-softmmu\
$(QEMU_CONFIGURE_PARAMS_COMMON)
+
+qemu: $(QEMU_PATH)/config-host.mak
$(MAKE) -C $(QEMU_PATH)
qemu-clean: