diff --git a/builder/frameworks/espidf.py b/builder/frameworks/espidf.py index a434ef582..f65aebd1c 100644 --- a/builder/frameworks/espidf.py +++ b/builder/frameworks/espidf.py @@ -2005,12 +2005,14 @@ def idf_lib_copy(source, target, env): if file.endswith(".h"): print(os.path.join(root, file)) sdkconfig_h_path = os.path.join(root, file) - + # /home/runner/work/platform-espressif32/platform-espressif32/examples/arduino-blink/.pio/build/esp32solo1/config/sdkconfig.h + test_path = join(env["PROJECT_BUILD_DIR"],env["PIOENV"],"config","sdkconfig.h") + print("**** sdkconfig.h path:", test_path) if not bool(os.path.isfile(join(ARDUINO_FRAMEWORK_DIR,"tools","esp32-arduino-libs",mcu,"sdkconfig.orig"))): shutil.move(join(ARDUINO_FRAMEWORK_DIR,"tools","esp32-arduino-libs",mcu,"sdkconfig"),join(ARDUINO_FRAMEWORK_DIR,"tools","esp32-arduino-libs",mcu,"sdkconfig.orig")) shutil.copyfile(join(env.subst("$PROJECT_DIR"),"sdkconfig."+env["PIOENV"]),join(ARDUINO_FRAMEWORK_DIR,"tools","esp32-arduino-libs",mcu,"sdkconfig")) shutil.copyfile(join(env.subst("$PROJECT_DIR"),"sdkconfig."+env["PIOENV"]),join(ARDUINO_FRAMEWORK_DIR,"tools","esp32-arduino-libs","sdkconfig")) - # shutil.copyfile(join(lib_src,"sdkconfig.h"),join(ARDUINO_FRAMEWORK_DIR,"tools","esp32-arduino-libs",mcu,board.get("build.arduino.memory_type", (board.get("build.flash_mode", "dio") + "_qspi")),"include","sdkconfig.h")) + shutil.copyfile(sdkconfig_h_path,join(ARDUINO_FRAMEWORK_DIR,"tools","esp32-arduino-libs",mcu,board.get("build.arduino.memory_type", (board.get("build.flash_mode", "dio") + "_qspi")),"include","sdkconfig.h")) print("*** Copied compiled %s IDF libraries to Arduino framework ***" % idf_variant) pio_exe_path = shutil.which("platformio"+(".exe" if IS_WINDOWS else ""))