stefanberger / swtpm

Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface.
Other
564 stars 136 forks source link

Disable test dependencies for normal build #843

Closed jarkkojs closed 5 months ago

jarkkojs commented 5 months ago

Allow to build the image without socat and expect as they are required only for tests. This will make the project compatible with embedded build systems such as Yocto and BuildRoot.

jarkkojs commented 5 months ago

Have not used Yocto for this, only BuildRoot but usually they have somewhat matching issues, so this should help in both environments.

stefanberger commented 5 months ago

Have not used Yocto for this, only BuildRoot but usually they have somewhat matching issues, so this should help in both environments.

Yocto/meta-security already builds it: https://layers.openembedded.org/layerindex/recipe/319192/ I may add a --without-test option to configure.

jarkkojs commented 5 months ago

Have not used Yocto for this, only BuildRoot but usually they have somewhat matching issues, so this should help in both environments.

Yocto/meta-security already builds it: https://layers.openembedded.org/layerindex/recipe/319192/ I may add a --without-test option to configure.

A configure option would be good enough for BuildRoot. I.e. it does not require too much drift. So +1 for that.

That was pretty much I was thinking in my own head but I did not want to enforce any particular solution.

stefanberger commented 5 months ago

PR #844

jarkkojs commented 5 months ago

PR #844

Can you also point this out in the associated email thread in BuildRoot mailing list. I'll try this now and comment to the pull request, thanks!