don't fetch submodules for circuitpython.org update

This commit is contained in:
Dan Halbert 2021-11-30 15:49:20 -05:00
parent 4ea090b9a2
commit 26f23e44c4
1 changed files with 5 additions and 2 deletions

View File

@ -72,12 +72,15 @@ elif target == "mpy-cross-mac":
elif target == "windows":
# This builds one board from a number of ports so fill out a bunch of submodules
submodules = ["extmod/", "lib/", "tools/", "ports/", "data/nvm.toml/"]
elif target == "website":
# No submodules needed.
pass
else:
p = pathlib.Path(".").glob(f"ports/*/boards/{target}/mpconfigboard.mk")
p = list(pathlib.Path(".").glob(f"ports/*/boards/{target}/mpconfigboard.mk"))
if not p:
raise RuntimeError(f"Unsupported target: {target}")
config = list(p)[0]
config = p[0]
# Add the ports folder to init submodules
port_folder = config.parents[2]
port = port_folder.name