build-scripts: build boost library instead of just install headers
The new boost::asio yielding coroutine code needs to be able to link
against libboost_coroutine.so to build.
This removes the copy of the headers and does an actual build of the two
boost libraries that are currently used by the project: coroutine and
context.
Tested-by: ./run-unit-test-docker.sh
(with UNIT_TEST_PKG=phosphor-host-ipmid)
Change-Id: Idc142a4cd890658a4d7eb5dc2091f702ed9f7469
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/build-unit-test-docker.sh b/build-unit-test-docker.sh
index 6515d2e..cbbab1c 100755
--- a/build-unit-test-docker.sh
+++ b/build-unit-test-docker.sh
@@ -224,7 +224,9 @@
FROM openbmc-base as openbmc-boost
RUN curl -L https://dl.bintray.com/boostorg/release/${PKG_REV['boost']}/source/boost_$(echo "${PKG_REV['boost']}" | tr '.' '_').tar.bz2 | tar -xj && \
-cp -a -r boost_*/boost ${PREFIX}/include
+cd boost_*/ && \
+./bootstrap.sh --prefix=${PREFIX} --with-libraries=context,coroutine && \
+./b2 && ./b2 install --prefix=${PREFIX}
FROM openbmc-base as openbmc-cppcheck
RUN curl -L https://github.com/danmar/cppcheck/archive/${PKG_REV['cppcheck']}.tar.gz | tar -xz && \