waf: also run Tools/gittools/submodule-sync.sh at distclean

This commit is contained in:
bugobliterator 2023-05-26 13:34:18 +10:00 committed by Tom Pittenger
parent a47c97bb9f
commit 22c1470aca
1 changed files with 5 additions and 0 deletions

View File

@ -86,6 +86,11 @@ def _set_build_context_variant(board):
continue
c.variant = board
# run Tools/gittools/submodule-sync.sh to sync submodules as well at distclean
@conf
def distclean(ctx):
subprocess.call(['Tools/gittools/submodule-sync.sh'])
def init(ctx):
# Generate Task List, so that VS Code extension can keep track
# of changes to possible build targets