Skip to content

docs: add QNX toolchain integration contract#99

Open
nradakovic wants to merge 2 commits into
mainfrom
nira_add_qnx_integration_docs
Open

docs: add QNX toolchain integration contract#99
nradakovic wants to merge 2 commits into
mainfrom
nira_add_qnx_integration_docs

Conversation

@nradakovic

Copy link
Copy Markdown
Member

Document QNX SDP acquisition, local installation layout, required environment variables, Bazel configuration (.bazelrc), sandbox writable paths, and verification procedures for QNX toolchain setup.

resolves #96

@nradakovic nradakovic self-assigned this Jul 9, 2026
Copilot AI review requested due to automatic review settings July 9, 2026 14:40
@nradakovic nradakovic requested a review from antonkri as a code owner July 9, 2026 14:40
@nradakovic nradakovic added the documentation Improvements or additions to documentation label Jul 9, 2026
@nradakovic nradakovic added the p4 Negligible impact - improvements and/or cosmetic features. label Jul 9, 2026
@nradakovic nradakovic force-pushed the nira_add_qnx_integration_docs branch from 9f528a1 to 6046f7c Compare July 9, 2026 14:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an “Integration Contract” guide to document how to acquire, install, configure, and verify a local QNX SDP + licensing setup so Bazel workspaces can use the QNX toolchains provided by this repository (addresses #96).

Changes:

  • Added step-by-step instructions for obtaining QNX SDP and licenses, and expected local installation layout.
  • Documented environment variables, .bazelrc setup, sandbox writable paths, and verification build steps.
  • Added troubleshooting guidance for common setup failures.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/qnx_integration.md Outdated
Comment on lines +43 to +44
The license is typically a file that must be accessible at runtime. See
[License Configuration](#license-configuration) for how to configure the license path.
Comment thread docs/qnx_integration.md Outdated
Comment on lines +144 to +147
- **`license_path`**: Path to the QNX license file directory
(default: `/opt/score_qnx/license/licenses`)
- **`license_info_variable`**: Custom environment variable name for license configuration
- **`license_info_value`**: Custom value for license environment variable
Comment thread docs/qnx_integration.md Outdated
Comment on lines +200 to +201
# Or use the explicit toolchain:
bazel build --extra_toolchains=@qnx_toolchain//:x86_64-qnx-gcc_8.0.0 //:hello_qnx
Comment thread docs/qnx_integration.md

#### 5. Troubleshooting

- **License not found**: Ensure `QNXLM_LICENSE_FILE` is set and points to a valid license file
Comment thread docs/qnx_integration.md Outdated
Comment on lines +86 to +94
The following environment variable is commonly used for QNX license configuration:

- **`QNXLM_LICENSE_FILE`**: Path to the QNX license file. If the license is
installed in the default location, this may not need to be set explicitly.

Example:
```bash
export QNXLM_LICENSE_FILE=/opt/score_qnx/license/licenses
```
Comment thread docs/qnx_integration.md Outdated
Comment on lines +105 to +118
# Enable the QNX toolchain
--extra_toolchains=@{repository_name}//:x86_64-qnx-gcc_8.0.0
# Or for ARM64:
--extra_toolchains=@{repository_name}//:aarch64-qnx-gcc_8.0.0

# Configure QNX license location (if not in default path)
# If QNXLM_LICENSE_FILE is set in your environment, this may not be needed
build --action_env=QNXLM_LICENSE_FILE=/opt/score_qnx/license/licenses

# Allow Bazel to write temporary files to /var/tmp for QNX compiler configuration
build --sandbox_writable_path=/var/tmp

# If using the credential helper for authenticated downloads:
common --credential_helper=*.qnx.com=/path/to/qnx_credential_helper.py
Comment thread docs/qnx_integration.md
Comment on lines +20 to +21
This section defines the requirements and constraints for using `bazel_cpp_toolchains`
with QNX toolchains in your Bazel workspace.
Comment thread docs/qnx_integration.md
Comment on lines +48 to +49
The `bazel_cpp_toolchains` module expects QNX SDP packages to follow the standard
QNX directory structure after extraction. A typical installation looks like:
Comment thread docs/qnx_integration.md
Declare your QNX toolchain in `MODULE.bazel`:

```starlark
bazel_dep(name = "score_bazel_cpp_toolchains", version = "0.5.4")
@nradakovic nradakovic force-pushed the nira_add_qnx_integration_docs branch 2 times, most recently from 4ebbe5a to 1e0140d Compare July 9, 2026 14:47
@nradakovic nradakovic requested a review from Copilot July 9, 2026 15:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 9 comments.

Comment thread docs/qnx_integration.md Outdated
Comment thread docs/qnx_integration.md Outdated
Comment thread docs/qnx_integration.md
Comment thread docs/qnx_integration.md Outdated
Comment thread docs/qnx_integration.md
Comment thread docs/qnx_integration.md
Comment thread docs/qnx_integration.md
Comment thread docs/qnx_integration.md
Comment thread docs/qnx_integration.md Outdated
Document QNX SDP acquisition, local installation layout, required
environment variables, Bazel configuration (.bazelrc), sandbox writable
paths, and verification procedures for QNX toolchain setup.

resolves #96
@nradakovic nradakovic force-pushed the nira_add_qnx_integration_docs branch from 1e0140d to 3facac9 Compare July 9, 2026 15:26
The latest module version is 0.5.4, not 0.4.0.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

Comment thread docs/qnx_integration.md
Comment thread docs/qnx_integration.md
Comment thread docs/qnx_integration.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation p4 Negligible impact - improvements and/or cosmetic features.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Add QNX Everywhere setup instructions to repository documentation

2 participants