From 73176e89cef2ea34044b2d474af709d6fb2add64 Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Fri, 3 May 2019 11:33:54 -0400 Subject: [PATCH] configure: Remove old *-config-devices.mak.d files when running configure 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. Backports commit 9c79024225af6b3ae04ea2dd94a5e5c4132a9e65 from qemu --- qemu/configure | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qemu/configure b/qemu/configure index d71c4acf..39a035e0 100755 --- a/qemu/configure +++ b/qemu/configure @@ -576,6 +576,9 @@ for opt do esac done +# 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