libpldm
Introduction
The libpldm [1] library provides a library for encoding and decoding of Platform Level Data Model (PLDM [2]) messages. PLDM is a DMTF [3] protocol “designed to be an effective interface and data model that provides efficient access to low-level platform inventory, monitoring, control, event, and data/parameters transfer functions”. libpldm is developed by the OpenBMC [4] project, but it can also be used in other contexts.
Usage with Zephyr
To pull in libpldm as a Zephyr module, either add it as a West project in the
west.yml file or pull it in by adding a submanifest (e.g.
zephyr/submanifests/libpldm.yaml) file with the following content and run
west update:
manifest:
projects:
- name: libpldm
url: https://github.com/openbmc/libpldm.git
revision: main
path: modules/lib/libpldm
Then enable the library in the application’s prj.conf:
CONFIG_PLDM=y
The libpldm headers can then be included by the application, e.g.
#include <libpldm/base.h>.