Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usbip runner build #583

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix usbip runner build #583

wants to merge 2 commits into from

Conversation

robin-nitrokey
Copy link
Member

This PR makes sure that the usbip runner is always built in the CI so that linker errors and failed const assertions are properly detected. Currently, the build fails as some mechanisms are only implemented by the SE050 backend and are not available in the usbip runner. Instead of failing the compilation, this PR ignores those mechanisms when compiling the usbip runner so that a runtime error is raised when such a mechanism is used. In the medium term, we should use a backend providing a software implementation of these mechanisms.

Only building catches potential linker errors or failing assertions in
const contexts.
Some mechanisms are only implemented by the SE050 backend and not
available in the usbip runner.  Instead of failing the compilation,
this patch ignores those mechanisms when compiling the usbip runner so
that a runtime error is raised when such a mechanism is used.  In the
medium term, we should use a backend providing a software implementation
of these mechanisms.
@nitrokey-ci
Copy link
Collaborator

No significant changes.

Insignifcant changes
metric value change
binary-size-nk3am 1,494,149 +0 (+0.00%)
binary-size-nk3am-test 1,868,768 +0 (+0.00%)
binary-size-nk3xn 536,856 +0 (+0.00%)
binary-size-nk3xn-test 536,912 +0 (+0.00%)
binary-size-nkpk 675,519 +0 (+0.00%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants