File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,18 @@ def create_silent_action(action_func):
191191 arduino_c2_dir = Path (_arduino_c2_dir )
192192 ARDUINO_C2_DIR = str (arduino_c2_dir / chip_variant )
193193 shutil .copytree (ARDUINO_C2_DIR , ARDUINO_FRMWRK_C2_LIB_DIR , dirs_exist_ok = True )
194+
195+ if mcu == "esp32c61" :
196+ ARDUINO_FRMWRK_C61_LIB_DIR = str (ARDUINO_FRMWRK_LIB_DIR_PATH / chip_variant )
197+ if not os .path .exists (ARDUINO_FRMWRK_C61_LIB_DIR ):
198+ _arduino_c61_dir = platform .get_package_dir ("framework-arduino-c61-skeleton-lib" )
199+ if not _arduino_c61_dir :
200+ sys .stderr .write ("Error: Missing framework-arduino-c61-skeleton-lib package\n " )
201+ env .Exit (1 )
202+ arduino_c61_dir = Path (_arduino_c61_dir )
203+ ARDUINO_C61_DIR = str (arduino_c61_dir / chip_variant )
204+ shutil .copytree (ARDUINO_C61_DIR , ARDUINO_FRMWRK_C61_LIB_DIR , dirs_exist_ok = True )
205+
194206 arduino_libs_mcu = str (ARDUINO_FRMWRK_LIB_DIR_PATH / chip_variant )
195207
196208BUILD_DIR = env .subst ("$BUILD_DIR" )
You can’t perform that action at this time.
0 commit comments