@@ -110,7 +110,7 @@ The registration of toolchains is done by adding command line option `--extra_to
110110In case above this would be:
111111``` bash
112112--extra_toolchains=@score_gcc_toolchain//:x86_64-linux-gcc-12.2.0
113- --extra_toolchains=@score_gcc_qnx_toolchain//:x86_64-linux -sdp-8.0.0
113+ --extra_toolchains=@score_gcc_qnx_toolchain//:x86_64-qnx -sdp-8.0.0
114114```
115115
116116> NOTE: In case that more than one toolchain needs to be defined, the registration must be protected via config flags otherwise</br >
@@ -162,6 +162,68 @@ Example cover:
162162
163163Documentation uses ** Sphinx** and lives in ` docs/ ` . (Not yet prepared!)
164164
165+ # QNX License
166+
167+ ## Local License File
168+
169+ By default, the QNX toolchain uses ` /opt/score_qnx/license/licenses ` as the license path.
170+ If you want to change this location, you can override it by setting the ` license_path ` variable
171+ when calling the ` gcc.toolchain(...) ` function in your ` MODULE.bazel ` file.
172+
173+ ** Example:**
174+
175+ ``` bazel
176+ gcc.toolchain(
177+ name = " score_qcc_toolchain" ,
178+ target_os = " qnx" ,
179+ ...
180+ license_path = " /path/to/your/custom/licenses" ,
181+ )
182+ ```
183+
184+ > ** TODO:** Is it possible to set this via environment variable?
185+
186+ ## License Servers
187+
188+ In case you are using a license server for QNX licenses (FLEXlm), you can set the license server information
189+ either locally in your module or centrally in your bazel configuration.
190+ This also applies to floating licenses.
191+
192+ ### Module Local Configuration
193+
194+ You can set the license server for your toolchains by setting the variables ` license_info_variable ` and
195+ ` license_info_url ` when calling the ` gcc.toolchain(...) ` function in your ` MODULE.bazel ` file.
196+
197+ ** Example (for QNXLM_LICENSE_FILE variable):**
198+
199+ ``` bazel
200+ gcc.toolchain(
201+ name = " score_qcc_toolchain" ,
202+ target_os = " qnx" ,
203+ ...
204+ license_info_variable = " QNXLM_LICENSE_FILE" ,
205+ license_info_url = " <port>@<license_server_host>" ,
206+ )
207+ ```
208+
209+ ### Central Configuration
210+
211+ In case you want to set the license server for all your bazel projects you can set the
212+ environment variable in your ` ~/.bazelrc ` file:
213+
214+ ** Example (for QNXLM_LICENSE_FILE variable):**
215+
216+ ``` bazel
217+ common -- action_env= QNXLM_LICENSE_FILE = < port> @ < license_server_host>
218+ ```
219+
220+ In case you do not want to set it for all commands you can also set it per build/test command:
221+
222+ ``` bazel
223+ build -- action_env= QNXLM_LICENSE_FILE = < port> @ < license_server_host>
224+ test -- action_env= QNXLM_LICENSE_FILE = < port> @ < license_server_host>
225+ ```
226+
165227# Adding New Toolchain Versions
166228
1672291 . Update ` packages/version_matrix.bzl `
0 commit comments