opendut icon indicating copy to clipboard operation
opendut copied to clipboard

Bundle EDGAR with cannelloni

Open mirenz1 opened this issue 1 year ago • 1 comments

After building cannelloni #186, it would be more comfortable if we can install cannelloni together with EDGAR on a peer.

Possible workflow in xtask cargo ci edgar dist:

  • [ ] Define cannelloni version to be downloaded in Cargo.toml under workspace.metadata.ci
  • [ ] Download release of cannelloni from here
  • [ ] Bundle release tar file (including gpl2 license/SOURCE.md/binary/library) inside EDGAR release

Within EDGAR:

  • [ ] Place cannelloni library and binary to /opt/opendut/edgar/cannelloni/
  • [ ] Pass LD_LIBRARY_PATH=/opt/opendut/edgar/cannelloni/ environment variable when calling cannelloni binary. Command::new("cannelloni").env(...)
  • [ ] Use which crate to determine binary location (should work if PATH environment variable is not present)

Pre-requisit: CAN kernel modules needs to be available on peer.

Check cannelloni GPLv2 license obligations. Issue created for license clarification: https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/15457

May alternatively be obsoleted by #306.

mirenz1 avatar Apr 10 '24 13:04 mirenz1

Possible workflow in xtask cargo ci edgar dist:

  • Define cannelloni version to be downloaded in Cargo.toml
  • Download release of cannelloni from here
  • Bundle binary/library inside EDGAR release

Within EDGAR:

  • Place cannelloni binary to /opt/opendut-edgar/cannelloni/
  • Pass LD_LIBRARY_PATH environment variable when calling cannelloni binary. Command::new("cannelloni").env(...)
  • Use which crate to determine binary location (should work if PATH environment variable is not present)

reimarstier avatar May 03 '24 09:05 reimarstier