Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bazel_common/score_modules_target_sw.MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@ git_override(
commit = "0e9187f79a9935ca192779234b82f9d00dc4e335",
remote = "https://github.com/eclipse-score/logging.git",
)

bazel_dep(name = "score_time")
git_override(
module_name = "score_time",
commit = "414d4ce4d984e461db8153c95eceb9d5a2020f57",
remote = "https://github.com/eclipse-score/time.git",
)
9 changes: 9 additions & 0 deletions known_good.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@
"//score/mw/log/legacy_non_verbose_api:unit_test"
]
}
},
"score_time": {
"repo": "https://github.com/eclipse-score/time.git",
"hash": "414d4ce4d984e461db8153c95eceb9d5a2020f57",
"metadata": {
"langs": [
"cpp"
]
}
}
},
"tooling": {
Expand Down
2 changes: 1 addition & 1 deletion runners/qemu_x86_64/scripts/run_qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ else
fi

echo "Starting QEMU with IFS image: ${IFS_IMAGE}"
qemu-system-x86_64 \
sudo qemu-system-x86_64 \
${QEMU_KVM_OPTS} \
-m 1G \
-pidfile /tmp/qemu.pid \
Expand Down
1 change: 1 addition & 0 deletions showcases/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ score_pkg_bundle(
other_package_files = [
"//showcases/standalone:comm_pkg_files",
"//showcases/standalone:kyron_pkg_files",
"//showcases/standalone:time_pkg_files",
"//showcases/orchestration_persistency:orch_per_pkg_files",
"//showcases/simple_lifecycle:simple_lifecycle_pkg_files",
],
Expand Down
14 changes: 14 additions & 0 deletions showcases/standalone/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,17 @@ score_pkg_bundle(
],
package_dir = "standalone",
)

score_pkg_bundle(
name = "time",
bins = [
"@score_time//examples/time/vehicle_time",
"@score_time//examples/time/system_time",
"@score_time//examples/time/steady_time",
"@score_time//examples/time/high_res_steady_time",
],
config_data = [
"//showcases/standalone:time.score.json",
],
package_dir = "standalone",
)
82 changes: 82 additions & 0 deletions showcases/standalone/time.score.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
[
{
"name": "Vehicle Time Example",
"description": "Uses VehicleTimeHandler to obtain a combined snapshot of the PTP-synchronized vehicle time and the local monotonic HIRS time",
"apps": [
{
"path": "/showcases/bin/vehicle_time",
"args": [],
"env": {}
},
{
"path": "/showcases/bin/lifecycle_signal.sh",
"args": [
"vehicle_time",
"SIGTERM"
],
"env": {},
"delay": 4
}
]
},
{
"name": "System Time Example",
"description": "Uses SystemTimeHandler to obtain the current wall-clock (Unix epoch) time",
"apps": [
{
"path": "/showcases/bin/system_time",
"args": [],
"env": {}
},
{
"path": "/showcases/bin/lifecycle_signal.sh",
"args": [
"system_time",
"SIGTERM"
],
"env": {},
"delay": 4
}
]
},
{
"name": "Steady Time Example",
"description": "Uses SteadyTimeHandler to obtain the current monotonic time",
"apps": [
{
"path": "/showcases/bin/steady_time",
"args": [],
"env": {}
},
{
"path": "/showcases/bin/lifecycle_signal.sh",
"args": [
"steady_time",
"SIGTERM"
],
"env": {},
"delay": 4
}
]
},
{
"name": "High Resolution Steady Time Example",
"description": "Uses HighResSteadyTimeHandler to obtain the current high-precision local steady time",
"apps": [
{
"path": "/showcases/bin/high_res_steady_time",
"args": [],
"env": {}
},
{
"path": "/showcases/bin/lifecycle_signal.sh",
"args": [
"high_res_steady_time",
"SIGTERM"
],
"env": {},
"delay": 4
}
]
}
]
Loading