@@ -366,7 +366,17 @@ def submodules():
366
366
get_espidf ()
367
367
print ()
368
368
369
- cmds = [['cd' , idf_path ]]
369
+ cmds = [
370
+ ['cd' , idf_path ],
371
+ ['git' , 'submodule' , 'update' , '--init' ,
372
+ 'components/bt/host/nimble/nimble' ,
373
+ 'components/esp_wifi' ,
374
+ 'components/esptool_py/esptool' ,
375
+ 'components/lwip/lwip' ,
376
+ 'components/mbedtls/mbedtls' ,
377
+ 'components/bt/controller/lib_esp32' ,
378
+ 'components/bt/controller/lib_esp32c3_family'
379
+ ]]
370
380
371
381
if sys .platform .startswith ('win' ):
372
382
cmds .append (['install' , 'all' ])
@@ -389,7 +399,17 @@ def submodules():
389
399
390
400
env = setup_idf_environ ()
391
401
392
- return_code , _ = spawn (submodules_cmd , env = env )
402
+ cmds = [['cd' , 'lib/esp-idf' ]]
403
+
404
+ if sys .platform .startswith ('win' ):
405
+ cmds .append (['export' ])
406
+ else :
407
+ cmds .append (['. ./export.sh' ])
408
+ cmds .append (['cd ../..' ])
409
+
410
+ cmds .append (submodules_cmd )
411
+
412
+ return_code , _ = spawn (cmds , env = env )
393
413
if return_code != 0 :
394
414
sys .exit (return_code )
395
415
0 commit comments