commit | f72cf6f616984a8fbf27734aaee81c93f9ca48da | [log] [tgz] |
---|---|---|
author | Carter Chen <carter.chen.wiwynn@gmail.com> | Tue Jun 24 15:34:49 2025 +0800 |
committer | Carter Chen <carter.chen.wiwynn@gmail.com> | Fri Jun 27 15:12:13 2025 +0800 |
tree | 72c9d3f588eea57dafa5910e161d0d2d31a309d4 | |
parent | 62b7dad7cf3aaa32b99285b6d71c0df7f244d7a4 [diff] |
firmware_update: Add DSP0267 v1.2.0 version updates - Added `component_opaque_data` fields to relevant data structures. - Implemented decode functionality for these fields to correctly parse their contents. - Added unit tests for DSP0267 v1.2.0 to verify the new decoding functionality. Change-Id: I47a85b5c9f7cc28da6066e88e27e8dc877cc074b Signed-off-by: Carter Chen <carter.chen.wiwynn@gmail.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.