]> granicus.if.org Git - esp-idf/commitdiff
docs: use generated links in CMake getting started guides
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 22 Oct 2018 06:37:17 +0000 (14:37 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Fri, 26 Oct 2018 04:42:38 +0000 (12:42 +0800)
docs/en/get-started-cmake/linux-setup.rst
docs/en/get-started-cmake/macos-setup.rst
docs/en/get-started-cmake/windows-setup-scratch.rst

index cdac99ce7bbe6fa98905efceee066997307bd28f..3bcdca5373fa9307fb0b750e9cb19642dff82560 100644 (file)
@@ -27,21 +27,27 @@ To compile with ESP-IDF you need to get the following packages:
 Toolchain Setup
 ===============
 
+.. include:: /_build/inc/download-links.inc
+
 ESP32 toolchain for Linux is available for download from Espressif website:
 
 - for 64-bit Linux:
 
-  https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz
+  |download_link_linux64|
 
 - for 32-bit Linux:
 
-  https://dl.espressif.com/dl/xtensa-esp32-elf-linux32-1.22.0-80-g6c4433a-5.2.0.tar.gz
+  |download_link_linux32|
+
+1.  Download this file, then extract it in ``~/esp`` directory:
+
+    - for 64-bit Linux:
+
+      .. include:: /_build/inc/unpack-code-linux64.inc
 
-1.  Download this file, then extract it in ``~/esp`` directory::
+    - for 32-bit Linux:
 
-        mkdir -p ~/esp
-        cd ~/esp
-        tar -xzf ~/Downloads/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz
+      .. include:: /_build/inc/unpack-code-linux32.inc
 
 .. _setup-linux-toolchain-add-it-to-path-cmake:
 
index 7672444e8a488ef30e0b80b9b3745d449f4a4515..b2570514dfc43feda96a833aeb3d39c0fabdfe73 100644 (file)
@@ -41,15 +41,15 @@ ESP-IDF will use the version of Python installed by default on Mac OS.
 Toolchain Setup
 ===============
 
+.. include:: /_build/inc/download-links.inc
+
 ESP32 toolchain for macOS is available for download from Espressif website:
 
-https://dl.espressif.com/dl/xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz
+|download_link_osx|
 
-Download this file, then extract it in ``~/esp`` directory::
+Download this file, then extract it in ``~/esp`` directory:
 
-    mkdir -p ~/esp
-    cd ~/esp
-    tar -xzf ~/Downloads/xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz
+.. include:: /_build/inc/unpack-code-osx.inc
 
 .. _setup-macos-toolchain-add-it-to-path-cmake:
 
index 58c6af9e222a9af148fc936d48e304c4b9a19e36..a0d1ad43e10f2126093d0f4cf5078bc3ea80b87e 100644 (file)
@@ -54,9 +54,11 @@ This tool will also need to be unzipped to a directory which is then `added to y
 Toolchain Setup
 ===============
 
-Download the precompiled Windows toolchain from dl.espressif.com:
+.. include:: /_build/inc/download-links.inc
 
-https://dl.espressif.com/dl/xtensa-esp32-elf-win32-1.22.0-80-g6c4433a-5.2.0.zip
+Download the precompiled Windows toolchain:
+
+|download_link_win32|
 
 Unzip the zip file to ``C:\Program Files`` (or some other location). The zip file contains a single directory ``xtensa-esp32-elf``.