Skip to content

Commit 2ed81fc

Browse files
updated few files for fixing the path
1 parent b8c4053 commit 2ed81fc

3 files changed

Lines changed: 52 additions & 1 deletion

File tree

packages/qnx/SDP/BUILD

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# QNX SDP Distribution Build
22

3-
load("//:qnx_sdp.bzl", "qnx_sdp_distribution")
3+
load(":qnx_sdp.bzl", "qnx_sdp_distribution")
44

55
# Create the QNX SDP distribution from the patchset file
66
qnx_sdp_distribution(
77
name = "qnx_sdp",
88
patchset = "patchset-qnx803-virtio.plist",
9+
qnxsoftwarecenter_clt = ":qnxsoftwarecenter_clt",
910
visibility = ["//visibility:public"],
1011
)
1112

@@ -25,3 +26,12 @@ filegroup(
2526
visibility = ["//visibility:public"],
2627
)
2728

29+
# Local stub for qnxsoftwarecenter_clt so the package can be built inside this
30+
# repository for testing. Replace with the real installer binary when integrating
31+
# into a consuming workspace that provides @qnx_software_center.
32+
sh_binary(
33+
name = "qnxsoftwarecenter_clt",
34+
srcs = ["qnxsoftwarecenter_clt.sh"],
35+
visibility = ["//visibility:private"],
36+
)
37+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
# Simple stub for qnxsoftwarecenter_clt used for local testing inside the repo.
3+
# It looks for the -destination <dir> argument and creates that directory.
4+
set -e
5+
DEST=""
6+
ARG_NEXT=0
7+
for a in "$@"; do
8+
if [ "$ARG_NEXT" -eq 1 ]; then
9+
DEST="$a"
10+
ARG_NEXT=0
11+
continue
12+
fi
13+
case "$a" in
14+
-destination)
15+
ARG_NEXT=1
16+
;;
17+
esac
18+
done
19+
if [ -z "$DEST" ]; then
20+
echo "qnxsoftwarecenter_clt stub: no -destination provided, nothing to do" >&2
21+
exit 0
22+
fi
23+
mkdir -p "$DEST"
24+
# Create a small marker to indicate stub run
25+
echo "QNX SDP stub installed at $(date -u) by qnxsoftwarecenter_clt stub" > "$DEST/INSTALLED_BY_QNX_SOFTWARE_CENTER_STUB"
26+
exit 0

packages/version_matrix.bzl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,19 @@ VERSION_MATRIX = {
207207
"url": "https://www.qnx.com/download/download/87174/installation_qnx_803_260305.tar.xz",
208208
"gcc_version": "12.2.0",
209209
},
210+
# SDP patchset distribution (local/virtio variant)
211+
"x86_64-qnx-sdp_8.0.3-virtio": {
212+
"build_file": "@score_bazel_cpp_toolchains//packages/qnx/SDP:BUILD",
213+
"sha256": "",
214+
"strip_prefix": "installation",
215+
"url": "",
216+
"gcc_version": "12.2.0",
217+
},
218+
"aarch64-qnx-sdp_8.0.3-virtio": {
219+
"build_file": "@score_bazel_cpp_toolchains//packages/qnx/SDP:BUILD",
220+
"sha256": "",
221+
"strip_prefix": "installation",
222+
"url": "",
223+
"gcc_version": "12.2.0",
224+
},
210225
}

0 commit comments

Comments
 (0)