File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 8888
8989IDF_ENV_VERSION = "1.0.0"
9090_framework_pkg_dir = platform .get_package_dir ("framework-espidf" )
91- _rom_elfs_dir = platform .get_package_dir ("tool-esp-rom-elfs" )
9291if not _framework_pkg_dir or not os .path .isdir (_framework_pkg_dir ):
9392 sys .stderr .write (f"Error: Missing framework directory '{ _framework_pkg_dir } '\n " )
9493 env .Exit (1 )
9594FRAMEWORK_DIR_PATH = Path (_framework_pkg_dir ).resolve ()
96- ROM_ELFS_DIR_PATH = Path (_rom_elfs_dir ).resolve ()
9795FRAMEWORK_DIR = str (FRAMEWORK_DIR_PATH )
98- ROM_ELFS_DIR = str (ROM_ELFS_DIR_PATH )
99- os .environ ['IDF_PATH' ] = FRAMEWORK_DIR
100- os .environ ['ESP_ROM_ELF_DIR' ] = ROM_ELFS_DIR
10196TOOLCHAIN_DIR = platform .get_package_dir (
10297 "toolchain-xtensa-esp-elf"
10398 if mcu in ("esp32" , "esp32s2" , "esp32s3" )
109104 sys .stderr .write (f"Error: Missing toolchain directory '{ TOOLCHAIN_DIR } '\n " )
110105 env .Exit (1 )
111106
112-
113107def create_silent_action (action_func ):
114108 """Create a silent SCons action that suppresses output"""
115109 silent_action = env .Action (action_func )
116110 silent_action .strfunction = lambda target , source , env : ''
117111 return silent_action
118112
113+
119114if "arduino" in env .subst ("$PIOFRAMEWORK" ):
120115 _arduino_pkg_dir = platform .get_package_dir ("framework-arduinoespressif32" )
121116 if not _arduino_pkg_dir or not os .path .isdir (_arduino_pkg_dir ):
You can’t perform that action at this time.
0 commit comments