Skip to content

Commit 52bf84c

Browse files
committed
start using scrample
1 parent dd61c44 commit 52bf84c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

ebclfsa/MODULE.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ single_version_override(
7474
version = "0.1.1",
7575
)
7676

77+
bazel_dep(name = "score_scrample", version = "0.1.0")
78+
7779
# git_override are not forwarded by bazel_dep, so we need to redefine it here
7880
git_override(
7981
module_name = "trlc",

ebclfsa/example/ipc_bridge_hi_wrapper/BUILD

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ load("@score_baselibs//score/language/safecpp:toolchain_features.bzl", "COMPILER
1414

1515
genrule(
1616
name = "ipc_bridge_cpp_sil",
17-
srcs = ["//example/ipc_bridge:ipc_bridge_cpp"],
17+
srcs = ["@score_scrample//src:scrample"],
1818
outs = ["ipc_bridge_cpp_sil"],
1919
cmd = "cp $(SRCS) $@ && \
2020
chmod ugo+w $@ && \
@@ -44,7 +44,7 @@ cc_binary(
4444
],
4545
features = COMPILER_WARNING_FEATURES,
4646
deps = [
47-
"//example/ipc_bridge:ipc_bridge_cpp",
47+
"@score_scrample//src:scrample",
4848
],
4949
)
5050

@@ -69,7 +69,7 @@ genrule(
6969
name = "upload",
7070
srcs = [
7171
":ipc_bridge_cpp_sil",
72-
"//example/ipc_bridge:ipc_bridge_cpp",
72+
"@score_scrample//src:scrample",
7373
":hi_app",
7474
":fastdev-image",
7575
"mw_com_config.json",
@@ -82,7 +82,7 @@ genrule(
8282
$(location run_qemu.sh) $(RULEDIR)/deb-qemuarm64-modified -pidfile $(RULEDIR)/qemu.pid > $(RULEDIR)/qemu_upload.log &\
8383
sleep 30 ; \
8484
sshpass -p linux scp -o StrictHostKeyChecking=no -P 2222 $(location :ipc_bridge_cpp_sil) root@localhost:/usr/bin &&\
85-
sshpass -p linux scp -o StrictHostKeyChecking=no -P 2222 $(location //example/ipc_bridge:ipc_bridge_cpp) root@localhost:/usr/bin &&\
85+
sshpass -p linux scp -o StrictHostKeyChecking=no -P 2222 $(location @score_scrample//src:scrample) root@localhost:/usr/bin &&\
8686
sshpass -p linux scp -o StrictHostKeyChecking=no -P 2222 $(location :hi_app) root@localhost:/usr/bin &&\
8787
sshpass -p linux scp -o StrictHostKeyChecking=no -P 2222 $(location mw_com_config.json) root@localhost:/etc/ &&\
8888
sshpass -p linux scp -o StrictHostKeyChecking=no -P 2222 $(location logging.json) root@localhost:/etc/ &&\
@@ -107,7 +107,7 @@ genrule(
107107
cmd = " \
108108
$(location run_qemu.sh) $(RULEDIR)/deb-qemuarm64-modified -pidfile $(RULEDIR)/qemu.pid > $(RULEDIR)/qemu_run.log &\
109109
sleep 10 ; \
110-
sshpass -p linux ssh -o StrictHostKeyChecking=no -p 2222 root@localhost ipc_bridge_cpp -n 10 -m send -t 200 -s /etc/mw_com_config.json > $(RULEDIR)/ssh_run.log && \
110+
sshpass -p linux ssh -o StrictHostKeyChecking=no -p 2222 root@localhost scrample -n 10 -m send -t 200 -s /etc/mw_com_config.json > $(RULEDIR)/ssh_run.log && \
111111
sshpass -p linux ssh -o StrictHostKeyChecking=no -p 2222 root@localhost crinit-ctl poweroff || true \
112112
sleep 5 \
113113
",

0 commit comments

Comments
 (0)