Skip to content

Commit

Permalink
changes init submodules in stm32 port
Browse files Browse the repository at this point in the history
  • Loading branch information
kdschlosser committed Apr 30, 2024
1 parent 0d6abe9 commit caf37ff
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions builder/stm32.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,12 @@ def clean():
def submodules():
stm32lib_path = 'lib/micropython/lib/stm32lib'
if not os.path.exists(os.path.join(stm32lib_path, 'CMSIS')):
ret_code, _ = spawn([
'git',
'submodule',
'update',
'--init',
'--',
stm32lib_path
])

ret_code, _ = spawn(
[
['cd', stm32lib_path],
['git', 'submodule', 'update', '--init']
]
)
if ret_code != 0:
sys.exit(ret_code)

Expand Down

0 comments on commit caf37ff

Please sign in to comment.