feat: peripheral SDK#176
Merged
Merged
Conversation
Mirrors apps build/deploy for peripheral plugin packages:
synapsectl peripherals build . — cross-compiles a plugin .so against
scifi-peripheral-sdk inside the example repo's Dockerfile, then
packages it (plus the bundled libscifi-peripheral-sdk.so* extracted
from the builder image) into a .deb with Section=synapse-peripherals.
synapsectl peripherals deploy . — gRPC-streams the .deb via the
existing DeployApp method. scifi-server's app_updater.cpp install
gate now accepts either synapse-apps or synapse-peripherals.
No new RPCs. No SFTP. No systemd service wrapping (plugins live at
/usr/lib/scifi/plugins/ and are dlopen'd by scifi-server's PluginRegistry
at startup).
Also pins the synapse-api submodule to current main HEAD.
… scope of this PR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds commands
synapsectl peripherals buildandsynapsectl peripherals deployto support SciFi's peripheral plugin SDK, which allows users to write and register their own custom layer that sits on top our existing USB layer to interface with their custom probes.synapsectl peripherals build . — cross-compiles a plugin .so against
scifi-peripheral-sdk inside the example repo's Dockerfile, then
packages it (plus the bundled libscifi-peripheral-sdk.so* extracted
from the builder image) into a .deb with Section=synapse-peripherals.
synapsectl peripherals deploy . — gRPC-streams the .deb via the
existing DeployApp method. The .deb is made to simply place the shared
libraries in fixed places where the SciFi will go hunting for some entrypoint symbols
to construct the user's custom-written RecordPeripheral implementation