From 1a88d5a736f0b521f5faf5039322d49e80306ebd Mon Sep 17 00:00:00 2001 From: Juraj Sadel Date: Wed, 13 Oct 2021 13:45:56 +0200 Subject: [PATCH] LLVM for Xtensa (ESP32, ESP32-S2) based on clang --- docs/en/api-guides/tools/idf-tools-notes.inc | 5 +++ .../api-guides/tools/idf-tools-notes.inc | 5 +++ tools/tools.json | 45 +++++++++++++++++++ 3 files changed, 55 insertions(+) diff --git a/docs/en/api-guides/tools/idf-tools-notes.inc b/docs/en/api-guides/tools/idf-tools-notes.inc index f01e64f41c..69536604e3 100644 --- a/docs/en/api-guides/tools/idf-tools-notes.inc +++ b/docs/en/api-guides/tools/idf-tools-notes.inc @@ -41,6 +41,11 @@ On Linux and macOS, it is recommended to install CMake using the OS-specific package manager (like apt, yum, brew, etc.). However, for convenience it is possible to install CMake using idf_tools.py along with the other tools. +--- + +.. tool-xtensa-clang-notes + + --- .. tool-ninja-notes diff --git a/docs/zh_CN/api-guides/tools/idf-tools-notes.inc b/docs/zh_CN/api-guides/tools/idf-tools-notes.inc index 51cca6fd09..6d16766c61 100644 --- a/docs/zh_CN/api-guides/tools/idf-tools-notes.inc +++ b/docs/zh_CN/api-guides/tools/idf-tools-notes.inc @@ -43,6 +43,11 @@ On Linux and macOS, it is recommended to install CMake using the OS package manager. However, for convenience it is possible to install CMake using idf_tools.py along with the other tools. +--- + +.. tool-xtensa-clang-notes + + --- .. tool-ninja-notes diff --git a/tools/tools.json b/tools/tools.json index e2411a49e3..ebae20362c 100644 --- a/tools/tools.json +++ b/tools/tools.json @@ -177,6 +177,51 @@ } ] }, + { + "description": "LLVM for Xtensa (ESP32, ESP32-S2) based on clang", + "export_paths": [ + [ + "xtensa-clang", + "bin" + ] + ], + "export_vars": {}, + "info_url": "https://github.com/espressif/llvm-project", + "install": "on_request", + "license": "Apache-2.0", + "name": "xtensa-clang", + "supported_targets": [ + "esp32", + "esp32s2" + ], + "version_cmd": [ + "clang", + "--version" + ], + "version_regex": "version\\s*([0-9\\.]+)\\s*\\([^\\s]+\\s*(\\w+)\\)", + "version_regex_replace": "\\1-\\2", + "versions": [ + { + "linux-amd64": { + "sha256": "d62d9234c702a86ed510777125ee97458204e28877806a73f9de5e41d7b65716", + "size": 102954848, + "url": "https://github.com/espressif/llvm-project/releases/download/esp-12.0.1-20210914/xtensa-esp32-elf-llvm12_0_1-esp-12.0.1-20210914-linux-amd64.tar.xz" + }, + "macos": { + "sha256": "6e7413e5fa515e403859ecf5301bdcdc3f8bf12c5de9aecaa11e9f17f32b05db", + "size": 89888488, + "url": "https://github.com/espressif/llvm-project/releases/download/esp-12.0.1-20210914/xtensa-esp32-elf-llvm12_0_1-esp-12.0.1-20210914-macos.tar.xz" + }, + "name": "12.0.1-d9341b81fc", + "status": "recommended", + "win64": { + "sha256": "e056366959c722367e4144076c5383bd417ea199db5658bb7bb6c95b9aca014b", + "size": 177903504, + "url": "https://github.com/espressif/llvm-project/releases/download/esp-12.0.1-20210914/xtensa-esp32-elf-llvm12_0_1-esp-12.0.1-20210914-win64.zip" + } + } + ] + }, { "description": "Toolchain for 32-bit RISC-V based on GCC", "export_paths": [