Skip to content

Commit a65c0e9

Browse files
committed
Fix the build by initing submodules under tools.
1 parent 1a1550b commit a65c0e9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

circuitpython_build_tools/build.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,12 @@ def mpy_cross(mpy_cross_filename, circuitpython_tag, quiet=False):
7474
sys.exit(clone.returncode)
7575

7676
current_dir = os.getcwd()
77-
os.chdir("build_deps/circuitpython/mpy-cross")
78-
make = subprocess.run("git fetch && git checkout {TAG} && git submodule update && make clean && make".format(TAG=circuitpython_tag), shell=True)
77+
os.chdir("build_deps/circuitpython")
78+
make = subprocess.run("git fetch && git checkout {TAG} && git submodule update".format(TAG=circuitpython_tag), shell=True)
79+
os.chdir("tools")
80+
make = subprocess.run("git submodule update --init .", shell=True)
81+
os.chdir("../mpy-cross")
82+
make = subprocess.run("make clean && make", shell=True)
7983
os.chdir(current_dir)
8084

8185
shutil.copy("build_deps/circuitpython/mpy-cross/mpy-cross", mpy_cross_filename)

0 commit comments

Comments
 (0)