Skip to content

Commit 8af3d90

Browse files
authored
Update espidf.py
1 parent b82a529 commit 8af3d90

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

builder/frameworks/espidf.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -225,21 +225,7 @@ def get_MD5_hash(phrase):
225225

226226
idf_config_flags = idf_config_flags.splitlines()
227227
sdkconfig_src = join(ARDUINO_FRMWRK_LIB_DIR,mcu,"sdkconfig")
228-
if not bool(os.path.isfile(sdkconfig_src)):
229-
print("***** sdkconfig not existing, fetching from Arduino lib builder repo ****")
230-
os.makedirs(join(ARDUINO_FRMWRK_LIB_DIR,mcu))
231-
sdkconfig_common_url = "https://github.com/pioarduino/esp32-arduino-lib-builder/raw/refs/heads/release/v5.3/configs/defconfig.common"
232-
sdkconfig_mcu = join(ARDUINO_FRMWRK_LIB_DIR,mcu,"sdkconfig")
233-
response = request.urlretrieve(sdkconfig_common_url, sdkconfig_mcu)
234-
sdkconfig_defconfig_url = "https://github.com/pioarduino/esp32-arduino-lib-builder/raw/refs/heads/release/v5.3/configs/defconfig." + mcu
235-
defconfig_mcu = join(ARDUINO_FRMWRK_LIB_DIR,mcu,"defconfig." + mcu)
236-
response = request.urlretrieve(sdkconfig_defconfig_url, defconfig_mcu)
237-
with open(defconfig_mcu, 'r') as f1, open(sdkconfig_mcu, 'a') as f2:
238-
f2.write(f1.read())
239-
if mcu == "esp32c2":
240-
ARDUINO_C2_LIB_DIR = platform.get_package_dir("framework-arduino-c2-skeleton-lib")
241-
shutil.copytree(ARDUINO_C2_LIB_DIR, ARDUINO_FRMWRK_LIB_DIR, dirs_exist_ok=True)
242-
228+
243229
def get_flag(line):
244230
if line.startswith("#") and "is not set" in line:
245231
return line.split(" ")[1]

0 commit comments

Comments
 (0)