From 61034fe0f97e0ca012d10917ee7c1b1833a024fc Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 27 Jan 2021 07:55:09 +0100 Subject: [PATCH] litex_setup/update: do a git submodule update --init --recursive on repos with recursive set to True. Simplify for example pythondata-cpu-vexriscv-smp updates. --- litex_setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litex_setup.py b/litex_setup.py index 9d0d7de7f..5a46a6a73 100755 --- a/litex_setup.py +++ b/litex_setup.py @@ -151,6 +151,8 @@ if "update" in sys.argv[1:]: os.chdir(os.path.join(current_path, name)) subprocess.check_call("git checkout master", shell=True) subprocess.check_call("git pull --ff-only", shell=True) + if need_recursive: + subprocess.check_call("git submodule update --init --recursive", shell=True) if sha1 is not None: os.chdir(os.path.join(current_path, name)) os.system("git checkout {:7x}".format(sha1))