Skip to content

Commit 81057e9

Browse files
[bsp][esp32-c6] fetch mbedtls and stop pkgs from pulling the C6 branch
1 parent c73c64b commit 81057e9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎bsp/ESP/ESP32_C6/SConstruct‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ def _use_c6_idf_when_official_has_none():
8383
'git', 'clone', '--depth', '1', '--branch', 'bsp/esp32c6-scons',
8484
'https://github.com/cms19859230182-lang/esp-idf.git', tmp,
8585
])
86+
subprocess.check_call([
87+
'git', '-C', tmp, 'submodule', 'update', '--init', '--depth', '1',
88+
'components/mbedtls/mbedtls', 'components/heap/tlsf',
89+
])
90+
git_meta = os.path.join(tmp, '.git')
91+
if os.path.isdir(git_meta):
92+
shutil.rmtree(git_meta)
8693
shutil.rmtree(dest)
8794
os.rename(tmp, dest)
8895

0 commit comments

Comments
 (0)