From 22c1470acac8bc112e77ffcdfb868314a3d32be7 Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Fri, 26 May 2023 13:34:18 +1000 Subject: [PATCH] waf: also run Tools/gittools/submodule-sync.sh at distclean --- wscript | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wscript b/wscript index a8aa3e1f36..034a872f2d 100644 --- a/wscript +++ b/wscript @@ -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