build-unit-test-docker: Install pdbg in image
Some OpenPOWER-related OpenBMC applications depend on pdbg for libpdbg.
Change-Id: I3682c45955de24c484c63960ed2115b1cedfface
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/build-unit-test-docker.sh b/build-unit-test-docker.sh
index 784451a..5bbfb62 100755
--- a/build-unit-test-docker.sh
+++ b/build-unit-test-docker.sh
@@ -54,6 +54,7 @@
openbmc/phosphor-logging
openbmc/phosphor-dbus-interfaces
openbmc/openpower-dbus-interfaces
+ open-power/pdbg
)
# Generate a list of depcache entries
@@ -232,7 +233,8 @@
libperlio-gzip-perl \
libjson-perl \
protobuf-compiler \
- libgpiod-dev
+ libgpiod-dev \
+ device-tree-compiler
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 900 \
--slave /usr/bin/g++ g++ /usr/bin/g++-9 \
@@ -402,6 +404,13 @@
make -j$(nproc) && \
make install
+FROM openbmc-base as open-power-pdbg
+RUN curl -L https://github.com/open-power/pdbg/archive/${PKG_REV['open-power/pdbg']}.tar.gz | tar -xz && \
+cd pdbg-* && \
+./bootstrap.sh && \
+./configure ${CONFIGURE_FLAGS[@]} && \
+make -j$(nproc) && \
+make install
# Build the final output image
FROM openbmc-base