This commit is contained in:
valeros
2021-11-09 15:13:58 +02:00
parent 5e6f2bf70b
commit c00f016f75
+4 -1
View File
@@ -59,12 +59,15 @@ TOOLCHAIN_DIR = platform.get_package_dir(
) )
) )
# Legacy toolchains for mixed IDF/Arduino projects
if "arduino" in env.subst("$PIOFRAMEWORK"):
TOOLCHAIN_DIR = platform.get_package_dir("toolchain-xtensa32")
assert os.path.isdir(FRAMEWORK_DIR) assert os.path.isdir(FRAMEWORK_DIR)
assert os.path.isdir(TOOLCHAIN_DIR) assert os.path.isdir(TOOLCHAIN_DIR)
# Arduino framework as a component is not compatible with ESP-IDF >=4.1 # Arduino framework as a component is not compatible with ESP-IDF >=4.1
if "arduino" in env.subst("$PIOFRAMEWORK"): if "arduino" in env.subst("$PIOFRAMEWORK"):
TOOLCHAIN_DIR = platform.get_package_dir("toolchain-xtensa32")
ARDUINO_FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoespressif32") ARDUINO_FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoespressif32")
# Possible package names in 'package@version' format is not compatible with CMake # Possible package names in 'package@version' format is not compatible with CMake
if "@" in os.path.basename(ARDUINO_FRAMEWORK_DIR): if "@" in os.path.basename(ARDUINO_FRAMEWORK_DIR):