don't fetch submodules for circuitpython.org update
This commit is contained in:
parent
4ea090b9a2
commit
26f23e44c4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue