base: Add cmake wrapper scripts for CMAKE_TOOLCHAIN_FILE

All images should define this variables.

Disable build tests on the base image because it is not configured for cross
compiling.
This commit is contained in:
Matt McCormick
2016-07-18 23:27:51 -04:00
parent 041eb8702b
commit 1ed3548655
5 changed files with 23 additions and 13 deletions

View File

@ -58,6 +58,7 @@ RUN git clone git://cmake.org/cmake.git CMake && \
make install && \
cd .. && \
rm -rf CMake*
# Wrappers that point to CMAKE_TOOLCHAIN_FILE
# Build and install Ninja from source
RUN git clone https://github.com/martine/ninja.git && \
@ -67,6 +68,8 @@ RUN git clone https://github.com/martine/ninja.git && \
./ninja && \
cp ./ninja /usr/bin/ && \
cd .. && rm -rf ninja
COPY imagefiles/cmake.sh /usr/local/bin/cmake
COPY imagefiles/ccmake.sh /usr/local/bin/ccmake
RUN echo "root:root" | chpasswd
WORKDIR /work