Skip to content

Refactor libspdm interfaces to decouple spdm-emu#3580

Open
itsManjeet wants to merge 1 commit intoDMTF:mainfrom
itsManjeet:libspdm-decouple
Open

Refactor libspdm interfaces to decouple spdm-emu#3580
itsManjeet wants to merge 1 commit intoDMTF:mainfrom
itsManjeet:libspdm-decouple

Conversation

@itsManjeet
Copy link
Copy Markdown
Contributor

This PR refactors parts of the libspdm interface to improve modularity and enable proper decoupling between spdm-emu and libspdm. Currently, spdm-emu relies on internal libspdm components, leading to tight coupling and making it harder to use external libspdm (preferred in external build system like yocto)

This change introduces explicit interface boundaries by exporting required components instead of relying on internal linkage.

Exported cryptlib_ext, spdm_crypt_lib_ext, libspdm_device_secret_lib to allow used by external tools.

@itsManjeet itsManjeet marked this pull request as draft April 2, 2026 07:41
@itsManjeet itsManjeet force-pushed the libspdm-decouple branch 3 times, most recently from ea37c1d to a88959c Compare April 6, 2026 09:04
This PR refactors parts of the libspdm interface to improve modularity and enable proper decoupling between spdm-emu and libspdm. Currently, spdm-emu relies on internal libspdm components, leading to tight coupling and making it harder to use external libspdm (preferred in external build system like yocto)

This change introduces explicit interface boundaries by exporting required components instead of relying on internal linkage.

Exported cryptlib_ext, spdm_crypt_lib_ext, libspdm_device_secret_lib to allow used by external tools

Signed-off-by: Manjeet Singh <itsmanjeet1998@gmail.com>
@itsManjeet itsManjeet marked this pull request as ready for review April 6, 2026 09:16
@jyao1
Copy link
Copy Markdown
Member

jyao1 commented Apr 7, 2026

I think we purposely did not include them in libspdm, because they are NOT consumed by libspdm library.

The proposal is to move to the os_stub/include.

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