Skip to content

Commit baab441

Browse files
committed
Add AArch64 QNX build support
1 parent b3fbed3 commit baab441

File tree

4 files changed

+25
-7
lines changed

4 files changed

+25
-7
lines changed

.bazelrc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ test:bl-x86_64-linux --config=bl_common
4242
# Target configuration for CPU:x86-64|OS:QNX build (do not use it in case of system toolchains!)
4343
build:bl-x86_64-qnx --config=bl_stub
4444
build:bl-x86_64-qnx --config=bl_toolchain_common
45-
build:bl-x86_64-qnx --platforms=@score_bazel_platforms//:x86_64-qnx
45+
build:bl-x86_64-qnx --platforms=@score_toolchains_qnx//platforms:x86_64-qnx
4646
build:bl-x86_64-qnx --extra_toolchains=@toolchains_qnx_qcc//:qcc_x86_64
4747
test:bl-x86_64-qnx --config=bl_common
48+
49+
# Target configuration for CPU:aarch64|OS:QNX build (do not use it in case of system toolchains!)
50+
build:bl-aarch64-qnx --config=bl_stub
51+
build:bl-aarch64-qnx --config=bl_toolchain_common
52+
build:bl-aarch64-qnx --incompatible_strict_action_env
53+
build:bl-aarch64-qnx --platforms=@score_toolchains_qnx//platforms:aarch64-qnx8_0
54+
build:bl-aarch64-qnx --extra_toolchains=@toolchains_qnx_qcc//:qcc_aarch64
55+
test:bl-aarch64-qnx --config=bl_common

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ gcc.warning_flags(
4545
use_repo(gcc, "gcc_toolchain", "gcc_toolchain_gcc")
4646

4747
# Configure the target toolchain.
48-
bazel_dep(name = "score_toolchains_qnx", version = "0.0.4", dev_dependency = True)
48+
bazel_dep(name = "score_toolchains_qnx", version = "0.0.5", dev_dependency = True)
4949

5050
toolchains_qnx = use_extension("@score_toolchains_qnx//:extensions.bzl", "toolchains_qnx", dev_dependency = True)
5151
toolchains_qnx.sdp(

MODULE.bazel.lock

Lines changed: 11 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ bazel build --credential_helper="*.qnx.com=$(pwd)/.git/tools/qnx_credential_help
7979
> [!NOTE]
8080
> Some targets do not currently compile on QNX and are therefore excluded with the `-//` prefix in the target list.
8181
82+
#### Building for AArch64 QNX 8.0 SDP
83+
84+
Use the same command as for x86_64 QNX, but replace `--config=bl-x86_64-qnx` with `--config=bl-aarch64-qnx`.
85+
8286
### Generating Documentation
8387

8488
To generate the documentation locally:

0 commit comments

Comments
 (0)