]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
configure: Remove old *-config-devices.mak.d files when running configure
authorThomas Huth <thuth@redhat.com>
Mon, 11 Mar 2019 10:20:34 +0000 (11:20 +0100)
committerThomas Huth <thuth@redhat.com>
Thu, 2 May 2019 14:56:33 +0000 (16:56 +0200)
When running "make" in a build directory from the pre-Kconfig merge time,
the build process currently fails with:

 make: *** No rule to make target `.../default-configs/pci.mak',
  needed by `aarch64-softmmu/config-devices.mak'.  Stop.

To make sure that this problem at least goes away when the user runs
"configure" (or "sh config.status") again, we have to make sure that
we re-generate the .mak.d files. Thus remove the old stale files
while running the configure script.

Message-Id: <1552300145-12526-1-git-send-email-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
configure

index 362bfef637cc63c3e792ec32fd0c28f7dda27595..f14b25c49c55fbd0226dd83215c79445908bad40 100755 (executable)
--- a/configure
+++ b/configure
@@ -1818,6 +1818,9 @@ EOF
 exit 0
 fi
 
+# Remove old dependency files to make sure that they get properly regenerated
+rm -f *-config-devices.mak.d
+
 if ! has $python; then
   error_exit "Python not found. Use --python=/path/to/python"
 fi