commit | 16eeccc01c7e24a964292cee8d844f6628b14e5e | [log] [tgz] |
---|---|---|
author | John Chung <john.chung@arm.com> | Fri Jul 18 15:36:53 2025 -0500 |
committer | Andrew Jeffery <andrew@codeconstruct.com.au> | Tue Jul 22 00:23:58 2025 +0000 |
tree | 6bed6c4a03b1869f5d49f5ba76f277085f562411 | |
parent | 21a639d6e67d2cd31a2247c76558b3a40a0786fa [diff] |
dsp: base: Allow PLDM File Transfer use MultipartReceive decode API MultipartReceive command in DSP0240 1.2.0 allow different PLDM Type to use. DfRead command of PLDM File Transfer protocol (DSP0242 1.0.0) is one of the specific implementation of MultipartReceive. Change-Id: I806d16a1a21bcb2b3bee5b590db2280710e624b6 Signed-off-by: John Chung <john.chung@arm.com>
This is a library which deals with the encoding and decoding of PLDM messages. It should be possible to use this library by projects other than OpenBMC, and hence certain constraints apply to it:
Source files are named according to the PLDM Type, for eg base.[h/c], fru.[h/c], etc.
Given a PLDM command "foo", the library will provide the following API: For the Requester function:
encode_foo_req() - encode a foo request decode_foo_resp() - decode a response to foo
For the Responder function:
decode_foo_req() - decode a foo request encode_foo_resp() - encode a response to foo
The library also provides API to pack and unpack PLDM headers.
libpldm
is configured and built using meson
. Python's pip
or pipx
can be used to install a recent version on your machine:
pipx install meson
Once meson
is installed:
meson setup build && meson compile -C build
meson test -C build
libpldm
Components of the library ABI[^1] (loosely, functions) are separated into three categories:
[^1]: "library API + compiler ABI = library ABI"
Applications depending on libpldm
should aim to only use functions from the stable category. However, this may not always be possible. What to do when required functions fall into the deprecated or testing categories is discussed in CONTRIBUTING.