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
This commit is contained in:
Thomas Huth 2019-05-03 11:33:54 -04:00 committed by Lioncash
parent 7107f72cc6
commit 73176e89ce
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

3
qemu/configure vendored
View file

@ -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