Skip to content

Commit d2b083d

Browse files
committed
Bump external dependency versions
- Bump score_bazel_cpp_toolchains from 0.3.1 to 0.5.0 - Use use_default_package instead of manual gcc.sdp() declarations - Update SDP version from 8.0.0 to 8.0.3 - Bump score_rules_imagefs from 0.0.2 to 0.0.3, remove git_override - Reuse src_files variable in _get_test_and_data_impl
1 parent b8efdcb commit d2b083d

3 files changed

Lines changed: 31 additions & 65 deletions

File tree

MODULE.bazel

Lines changed: 15 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,9 @@ bazel_dep(name = "googletest", version = "1.17.0", dev_dependency = True)
3030
bazel_dep(name = "score_bazel_platforms", version = "0.1.2", dev_dependency = True)
3131

3232
# QCC C++ cross-compiler toolchain
33-
bazel_dep(name = "score_bazel_cpp_toolchains", version = "0.3.1", dev_dependency = True)
33+
bazel_dep(name = "score_bazel_cpp_toolchains", version = "0.5.0", dev_dependency = True)
3434

3535
gcc = use_extension("@score_bazel_cpp_toolchains//extensions:gcc.bzl", "gcc", dev_dependency = True)
36-
gcc.sdp(
37-
name = "sdp_x86_64_pkg",
38-
build_file = "@score_bazel_cpp_toolchains//packages/qnx/x86_64/sdp/8.0.0:sdp.BUILD",
39-
sha256 = "9039fd6a4a639f06ea977afb93963a6fe8f8c46db727066709370d999c7232e0",
40-
url = "https://www.qnx.com/download/download/87174/installation_qnx_803_260305.tar.xz",
41-
)
42-
gcc.sdp(
43-
name = "sdp_aarch64_pkg",
44-
build_file = "@score_bazel_cpp_toolchains//packages/qnx/aarch64/sdp/8.0.0:sdp.BUILD",
45-
sha256 = "9039fd6a4a639f06ea977afb93963a6fe8f8c46db727066709370d999c7232e0",
46-
url = "https://www.qnx.com/download/download/87174/installation_qnx_803_260305.tar.xz",
47-
)
48-
use_repo(
49-
gcc,
50-
"sdp_aarch64_pkg",
51-
"sdp_x86_64_pkg",
52-
)
53-
5436
gcc.toolchain(
5537
name = "score_gcc_x86_64_toolchain",
5638
target_cpu = "x86_64",
@@ -60,53 +42,54 @@ gcc.toolchain(
6042
)
6143
gcc.toolchain(
6244
name = "score_qcc_x86_64_toolchain",
63-
sdp_to_link = "sdp_x86_64_pkg",
64-
sdp_version = "8.0.0",
45+
sdp_version = "8.0.3",
6546
target_cpu = "x86_64",
6647
target_os = "qnx",
48+
use_default_package = True,
6749
version = "12.2.0",
6850
)
6951
gcc.toolchain(
7052
name = "score_qcc_aarch64_toolchain",
71-
sdp_to_link = "sdp_aarch64_pkg",
72-
sdp_version = "8.0.0",
53+
sdp_version = "8.0.3",
7354
target_cpu = "aarch64",
7455
target_os = "qnx",
56+
use_default_package = True,
7557
version = "12.2.0",
7658
)
7759
use_repo(
7860
gcc,
7961
"score_gcc_x86_64_toolchain",
8062
"score_qcc_aarch64_toolchain",
63+
"score_qcc_aarch64_toolchain_pkg",
8164
"score_qcc_x86_64_toolchain",
65+
"score_qcc_x86_64_toolchain_pkg",
8266
)
8367

8468
# QNX IFS (Image File System) toolchain for building boot images
85-
bazel_dep(name = "score_rules_imagefs", version = "0.0.2")
86-
git_override(
87-
module_name = "score_rules_imagefs",
88-
commit = "5c5d32eb5597ca6463e840deaf8a80523edba525",
89-
remote = "https://github.com/eclipse-score/rules_imagefs.git",
90-
)
69+
bazel_dep(name = "score_rules_imagefs", version = "0.0.3")
9170

9271
imagefs = use_extension("@score_rules_imagefs//extensions:imagefs.bzl", "imagefs", dev_dependency = True)
9372
imagefs.toolchain(
9473
name = "score_qnx_x86_64_ifs_toolchain",
95-
sdp_to_import = "@sdp_x86_64_pkg",
74+
sdp_to_import = "@score_qcc_x86_64_toolchain_pkg",
9675
sdp_version = "8.0.0",
9776
target_cpu = "x86_64",
9877
target_os = "qnx",
9978
type = "ifs",
10079
)
10180
imagefs.toolchain(
10281
name = "score_qnx_aarch64_ifs_toolchain",
103-
sdp_to_import = "@sdp_aarch64_pkg",
82+
sdp_to_import = "@score_qcc_aarch64_toolchain_pkg",
10483
sdp_version = "8.0.0",
10584
target_cpu = "aarch64",
10685
target_os = "qnx",
10786
type = "ifs",
10887
)
109-
use_repo(imagefs, "score_qnx_aarch64_ifs_toolchain", "score_qnx_x86_64_ifs_toolchain")
88+
use_repo(
89+
imagefs,
90+
"score_qnx_aarch64_ifs_toolchain",
91+
"score_qnx_x86_64_ifs_toolchain",
92+
)
11093

11194
# Score tooling (copyright checker, format checker, starpls)
11295
bazel_dep(name = "score_tooling", version = "1.1.2", dev_dependency = True)

examples/MODULE.bazel

Lines changed: 15 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,9 @@ bazel_dep(name = "googletest", version = "1.17.0")
3636
bazel_dep(name = "score_bazel_platforms", version = "0.1.2")
3737

3838
# QCC C++ cross-compiler toolchain
39-
bazel_dep(name = "score_bazel_cpp_toolchains", version = "0.3.1")
39+
bazel_dep(name = "score_bazel_cpp_toolchains", version = "0.5.0")
4040

4141
gcc = use_extension("@score_bazel_cpp_toolchains//extensions:gcc.bzl", "gcc")
42-
gcc.sdp(
43-
name = "sdp_x86_64_pkg",
44-
build_file = "@score_bazel_cpp_toolchains//packages/qnx/x86_64/sdp/8.0.0:sdp.BUILD",
45-
sha256 = "9039fd6a4a639f06ea977afb93963a6fe8f8c46db727066709370d999c7232e0",
46-
url = "https://www.qnx.com/download/download/87174/installation_qnx_803_260305.tar.xz",
47-
)
48-
gcc.sdp(
49-
name = "sdp_aarch64_pkg",
50-
build_file = "@score_bazel_cpp_toolchains//packages/qnx/aarch64/sdp/8.0.0:sdp.BUILD",
51-
sha256 = "9039fd6a4a639f06ea977afb93963a6fe8f8c46db727066709370d999c7232e0",
52-
url = "https://www.qnx.com/download/download/87174/installation_qnx_803_260305.tar.xz",
53-
)
54-
use_repo(
55-
gcc,
56-
"sdp_aarch64_pkg",
57-
"sdp_x86_64_pkg",
58-
)
59-
6042
gcc.toolchain(
6143
name = "score_gcc_x86_64_toolchain",
6244
target_cpu = "x86_64",
@@ -66,53 +48,54 @@ gcc.toolchain(
6648
)
6749
gcc.toolchain(
6850
name = "score_qcc_x86_64_toolchain",
69-
sdp_to_link = "sdp_x86_64_pkg",
70-
sdp_version = "8.0.0",
51+
sdp_version = "8.0.3",
7152
target_cpu = "x86_64",
7253
target_os = "qnx",
54+
use_default_package = True,
7355
version = "12.2.0",
7456
)
7557
gcc.toolchain(
7658
name = "score_qcc_aarch64_toolchain",
77-
sdp_to_link = "sdp_aarch64_pkg",
78-
sdp_version = "8.0.0",
59+
sdp_version = "8.0.3",
7960
target_cpu = "aarch64",
8061
target_os = "qnx",
62+
use_default_package = True,
8163
version = "12.2.0",
8264
)
8365
use_repo(
8466
gcc,
8567
"score_gcc_x86_64_toolchain",
8668
"score_qcc_aarch64_toolchain",
69+
"score_qcc_aarch64_toolchain_pkg",
8770
"score_qcc_x86_64_toolchain",
71+
"score_qcc_x86_64_toolchain_pkg",
8872
)
8973

9074
# QNX IFS (Image File System) toolchain for building boot images
91-
bazel_dep(name = "score_rules_imagefs", version = "0.0.2")
92-
git_override(
93-
module_name = "score_rules_imagefs",
94-
commit = "5c5d32eb5597ca6463e840deaf8a80523edba525",
95-
remote = "https://github.com/eclipse-score/rules_imagefs.git",
96-
)
75+
bazel_dep(name = "score_rules_imagefs", version = "0.0.3")
9776

9877
imagefs = use_extension("@score_rules_imagefs//extensions:imagefs.bzl", "imagefs")
9978
imagefs.toolchain(
10079
name = "score_qnx_x86_64_ifs_toolchain",
101-
sdp_to_import = "@sdp_x86_64_pkg",
80+
sdp_to_import = "@score_qcc_x86_64_toolchain_pkg",
10281
sdp_version = "8.0.0",
10382
target_cpu = "x86_64",
10483
target_os = "qnx",
10584
type = "ifs",
10685
)
10786
imagefs.toolchain(
10887
name = "score_qnx_aarch64_ifs_toolchain",
109-
sdp_to_import = "@sdp_aarch64_pkg",
88+
sdp_to_import = "@score_qcc_aarch64_toolchain_pkg",
11089
sdp_version = "8.0.0",
11190
target_cpu = "aarch64",
11291
target_os = "qnx",
11392
type = "ifs",
11493
)
115-
use_repo(imagefs, "score_qnx_aarch64_ifs_toolchain", "score_qnx_x86_64_ifs_toolchain")
94+
use_repo(
95+
imagefs,
96+
"score_qnx_aarch64_ifs_toolchain",
97+
"score_qnx_x86_64_ifs_toolchain",
98+
)
11699

117100
# Rust toolchain (Ferrocene, matching reference_integration setup)
118101
bazel_dep(name = "score_toolchains_rust", version = "0.4.0")

src/test_qnx.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _get_test_and_data_impl(ctx):
2828

2929
# Rename binary to canonical name so the IFS image has the expected path.
3030
# The test runner script (run_test.sh) expects the binary at /opt/tests/cc_test_qnx.
31-
src_binary = ctx.attr.src[DefaultInfo].files.to_list()[0]
31+
src_binary = src_files[0]
3232
renamed_binary = ctx.actions.declare_file(ctx.attr.name + "_out/cc_test_qnx")
3333
ctx.actions.symlink(output = renamed_binary, target_file = src_binary)
3434

0 commit comments

Comments
 (0)