tinyxml2: fix build order
objmgr requires tinyxml2, so build it first.
Tested-by: verified phosphor-pid-control built
Change-Id: Ic5252ddee6cf5a78a3d11bfd5b4f3e527e05770a
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/build-unit-test-docker.sh b/build-unit-test-docker.sh
index ca45a8b..fac4c97 100755
--- a/build-unit-test-docker.sh
+++ b/build-unit-test-docker.sh
@@ -225,6 +225,16 @@
make -j$(nproc) && \
make install
+# version from meta-openembedded/meta-oe/recipes-support/libtinyxml2/libtinyxml2_5.0.1.bb
+RUN curl -L -o tinyxml2.tar.gz https://github.com/leethomason/tinyxml2/archive/37bc3aca429f0164adf68c23444540b4a24b5778.tar.gz && \
+tar -xzf tinyxml2.tar.gz && \
+cd tinyxml2-3* && \
+mkdir build && \
+cd build && \
+cmake .. && \
+make -j$(nproc) && \
+make install
+
RUN git clone https://github.com/openbmc/phosphor-objmgr && \
cd phosphor-objmgr && \
./bootstrap.sh && \
@@ -243,16 +253,6 @@
make -j$(nproc) && \
make install
-# version from meta-openembedded/meta-oe/recipes-support/libtinyxml2/libtinyxml2_5.0.1.bb
-RUN curl -L -o tinyxml2.tar.gz https://github.com/leethomason/tinyxml2/archive/37bc3aca429f0164adf68c23444540b4a24b5778.tar.gz && \
-tar -xzf tinyxml2.tar.gz && \
-cd tinyxml2-3* && \
-mkdir build && \
-cd build && \
-cmake .. && \
-make -j$(nproc) && \
-make install
-
RUN /bin/bash
EOF
)