@@ -74,7 +74,7 @@ Zephyr SDK installation
74
74
75
75
.. toolchain_zephyr_sdk_install_start
76
76
77
- .. note :: You can change ``0.16.4`` to another version in the instructions below
77
+ .. note :: You can change |sdk-version-literal| to another version in the instructions below
78
78
if needed; the `Zephyr SDK Releases `_ page contains all available
79
79
SDK releases.
80
80
@@ -87,23 +87,22 @@ Zephyr SDK installation
87
87
88
88
.. _ubuntu_zephyr_sdk :
89
89
90
- #. Download and verify the `Zephyr SDK bundle
91
- <https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.16.4> `_:
90
+ #. Download and verify the `Zephyr SDK bundle `_:
92
91
93
- .. code-block :: bash
92
+ .. parsed-literal ::
94
93
95
94
cd ~
96
- wget https://github.com/zephyrproject-rtos/ sdk-ng/releases/download/v0.16.4/zephyr-sdk-0.16.4_linux-x86_64.tar.xz
97
- wget -O - https://github.com/zephyrproject-rtos/ sdk-ng/releases/download/v0.16.4/sha256.sum | shasum --check --ignore-missing
95
+ wget | sdk-url-linux |
96
+ wget -O - | sdk-url-linux-sha | | shasum --check --ignore-missing
98
97
99
98
If your host architecture is 64-bit ARM (for example, Raspberry Pi), replace ``x86_64 ``
100
99
with ``aarch64 `` in order to download the 64-bit ARM Linux SDK.
101
100
102
101
#. Extract the Zephyr SDK bundle archive:
103
102
104
- .. code-block :: bash
103
+ .. parsed-literal ::
105
104
106
- tar xvf zephyr-sdk-0.16.4_linux -x86_64.tar.xz
105
+ tar xvf zephyr-sdk- | sdk-version-trim | _linux -x86_64.tar.xz
107
106
108
107
.. note ::
109
108
It is recommended to extract the Zephyr SDK bundle at one of the following locations:
@@ -115,15 +114,15 @@ Zephyr SDK installation
115
114
* ``/opt ``
116
115
* ``/usr/local ``
117
116
118
- The Zephyr SDK bundle archive contains the ``zephyr-sdk-0.16.4 `` directory and, when
119
- extracted under ``$HOME ``, the resulting installation path will be
120
- ``$HOME/zephyr-sdk-0.16.4 ``.
117
+ The Zephyr SDK bundle archive contains the ``zephyr-sdk-<version> ``
118
+ directory and, when extracted under ``$HOME ``, the resulting
119
+ installation path will be ``$HOME/zephyr-sdk-<version> ``.
121
120
122
121
#. Run the Zephyr SDK bundle setup script:
123
122
124
- .. code-block :: bash
123
+ .. parsed-literal ::
125
124
126
- cd zephyr-sdk-0.16.4
125
+ cd zephyr-sdk- | sdk-version-ltrim |
127
126
./setup.sh
128
127
129
128
.. note ::
@@ -135,32 +134,31 @@ Zephyr SDK installation
135
134
#. Install `udev <https://en.wikipedia.org/wiki/Udev >`_ rules, which
136
135
allow you to flash most Zephyr boards as a regular user:
137
136
138
- .. code-block :: bash
137
+ .. parsed-literal ::
139
138
140
- sudo cp ~ /zephyr-sdk-0.16.4 /sysroots/x86_64-pokysdk-linux/usr/share/openocd/contrib/60-openocd.rules /etc/udev/rules.d
139
+ sudo cp ~/zephyr-sdk- | sdk-version-trim | /sysroots/x86_64-pokysdk-linux/usr/share/openocd/contrib/60-openocd.rules /etc/udev/rules.d
141
140
sudo udevadm control --reload
142
141
143
142
.. group-tab :: macOS
144
143
145
144
.. _macos_zephyr_sdk :
146
145
147
- #. Download and verify the `Zephyr SDK bundle
148
- <https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.16.4> `_:
146
+ #. Download and verify the `Zephyr SDK bundle `_:
149
147
150
- .. code-block :: bash
148
+ .. parsed-literal ::
151
149
152
150
cd ~
153
- curl -L -O https://github.com/zephyrproject-rtos/ sdk-ng/releases/download/v0.16.4/zephyr-sdk-0.16.4_macos-x86_64.tar.xz
154
- curl -L https://github.com/zephyrproject-rtos/ sdk-ng/releases/download/v0.16.4/sha256.sum | shasum --check --ignore-missing
151
+ curl -L -O | sdk-url-macos |
152
+ curl -L | sdk-url-macos-sha | | shasum --check --ignore-missing
155
153
156
154
If your host architecture is 64-bit ARM (Apple Silicon, also known as M1), replace
157
155
``x86_64 `` with ``aarch64 `` in order to download the 64-bit ARM macOS SDK.
158
156
159
157
#. Extract the Zephyr SDK bundle archive:
160
158
161
- .. code-block :: bash
159
+ .. parsed-literal ::
162
160
163
- tar xvf zephyr-sdk-0.16.4_macos -x86_64.tar.xz
161
+ tar xvf zephyr-sdk- | sdk-version-trim | _macos -x86_64.tar.xz
164
162
165
163
.. note ::
166
164
It is recommended to extract the Zephyr SDK bundle at one of the following locations:
@@ -172,15 +170,15 @@ Zephyr SDK installation
172
170
* ``/opt ``
173
171
* ``/usr/local ``
174
172
175
- The Zephyr SDK bundle archive contains the ``zephyr-sdk-0.16.4 `` directory and, when
176
- extracted under ``$HOME ``, the resulting installation path will be
177
- ``$HOME/zephyr-sdk-0.16.4 ``.
173
+ The Zephyr SDK bundle archive contains the ``zephyr-sdk-<version> ``
174
+ directory and, when extracted under ``$HOME ``, the resulting
175
+ installation path will be ``$HOME/zephyr-sdk-<version> ``.
178
176
179
177
#. Run the Zephyr SDK bundle setup script:
180
178
181
- .. code-block :: bash
179
+ .. parsed-literal ::
182
180
183
- cd zephyr-sdk-0.16.4
181
+ cd zephyr-sdk- | sdk-version-ltrim |
184
182
./setup.sh
185
183
186
184
.. note ::
@@ -195,35 +193,34 @@ Zephyr SDK installation
195
193
196
194
#. Open a ``cmd.exe `` terminal window **as a regular user **
197
195
198
- #. Download the `Zephyr SDK bundle
199
- <https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.16.4> `_:
196
+ #. Download the `Zephyr SDK bundle `_:
200
197
201
- .. code-block :: bat
198
+ .. parsed-literal ::
202
199
203
200
cd %HOMEPATH%
204
- wget https://github.com/zephyrproject-rtos/ sdk-ng/releases/download/v0.16.4/zephyr-sdk-0.16.4_windows-x86_64.7z
201
+ wget | sdk-url-windows |
205
202
206
203
#. Extract the Zephyr SDK bundle archive:
207
204
208
- .. code-block :: bat
205
+ .. parsed-literal ::
209
206
210
- 7z x zephyr-sdk-0.16.4_windows -x86_64.7z
207
+ 7z x zephyr-sdk- | sdk-version-trim | _windows -x86_64.7z
211
208
212
209
.. note ::
213
210
It is recommended to extract the Zephyr SDK bundle at one of the following locations:
214
211
215
212
* ``%HOMEPATH% ``
216
213
* ``%PROGRAMFILES% ``
217
214
218
- The Zephyr SDK bundle archive contains the ``zephyr-sdk-0.16.4 `` directory and, when
219
- extracted under ``%HOMEPATH% ``, the resulting installation path will be
220
- ``%HOMEPATH%\zephyr-sdk-0.16.4 ``.
215
+ The Zephyr SDK bundle archive contains the ``zephyr-sdk-<version> ``
216
+ directory and, when extracted under ``%HOMEPATH% ``, the resulting
217
+ installation path will be ``%HOMEPATH%\zephyr-sdk-<version> ``.
221
218
222
219
#. Run the Zephyr SDK bundle setup script:
223
220
224
- .. code-block :: bat
221
+ .. parsed-literal ::
225
222
226
- cd zephyr-sdk-0.16.4
223
+ cd zephyr-sdk- | sdk-version-ltrim |
227
224
setup.cmd
228
225
229
226
.. note ::
@@ -232,7 +229,6 @@ Zephyr SDK installation
232
229
You must rerun the setup script if you relocate the Zephyr SDK bundle directory after
233
230
the initial setup.
234
231
235
- .. _Zephyr SDK bundle : https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.16.4
236
232
.. _Zephyr SDK Releases : https://github.com/zephyrproject-rtos/sdk-ng/tags
237
233
.. _Zephyr SDK Version Compatibility Matrix : https://github.com/zephyrproject-rtos/sdk-ng/wiki/Zephyr-SDK-Version-Compatibility-Matrix
238
234
0 commit comments