build-unit-test-docker: Install pldm in image

Some OpenBMC applications depend on pldm.

Change-Id: I28b347ae91d83f098c285815d8d2f97f18660805
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/build-unit-test-docker.sh b/build-unit-test-docker.sh
index 73581df..899cd89 100755
--- a/build-unit-test-docker.sh
+++ b/build-unit-test-docker.sh
@@ -55,6 +55,7 @@
   openbmc/phosphor-dbus-interfaces
   openbmc/openpower-dbus-interfaces
   open-power/pdbg
+  openbmc/pldm
 )
 
 # Generate a list of depcache entries
@@ -437,6 +438,20 @@
 make -j$(nproc) && \
 make install
 
+FROM openbmc-base as openbmc-pldm
+COPY --from=openbmc-sdbusplus ${PREFIX} ${PREFIX}
+COPY --from=openbmc-sdeventplus ${PREFIX} ${PREFIX}
+COPY --from=openbmc-boost ${PREFIX} ${PREFIX}
+COPY --from=openbmc-phosphor-dbus-interfaces ${PREFIX} ${PREFIX}
+COPY --from=openbmc-phosphor-logging ${PREFIX} ${PREFIX}
+COPY --from=openbmc-json ${PREFIX} ${PREFIX}
+COPY --from=openbmc-CLI11 ${PREFIX} ${PREFIX}
+RUN curl -L https://github.com/openbmc/pldm/archive/${PKG_REV['openbmc/pldm']}.tar.gz | tar -xz && \
+cd pldm-* && \
+meson build -Dprefix=${PREFIX} -Dtests=disabled && \
+ninja -C build && \
+ninja -C build install
+
 # Build the final output image
 FROM openbmc-base
 ${COPY_CMDS}