mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
git-submodule.sh: allow running in validate mode without previous update
The call to git-submodule.sh done in configure may happen without a
previous checkout of the roms/SLOF submodule, or even without a
previous run of the script.
So, handle creating a .git-submodule-status file even in validate
mode. If git is absent, ensure that all passed directories exists
(because you should be in a fresh untar and will not have stale
arguments to git-submodule.sh) but do no other checks. If git
is present, ensure that .git-submodule-status contains an entry
for all submodules passed on the command line.
With this change, "ignore" mode is not needed anymore.
Reported-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Fixes: b11f9bd96f
("configure: move SLOF submodule handling to pc-bios/s390-ccw", 2023-06-06)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
63fd8ef080
commit
8edddaa23d
2 changed files with 42 additions and 33 deletions
2
configure
vendored
2
configure
vendored
|
@ -758,7 +758,7 @@ done
|
|||
|
||||
if ! test -e "$source_path/.git"
|
||||
then
|
||||
git_submodules_action="ignore"
|
||||
git_submodules_action="validate"
|
||||
fi
|
||||
|
||||
# test for any invalid configuration combinations
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue