dockcross/linux-armv7/Dockerfile

24 lines
819 B
Docker
Raw Normal View History

FROM thewtex/cross-compiler-base
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
2014-10-12 13:21:43 +02:00
# Add the cross compiler sources
RUN echo "deb http://emdebian.org/tools/debian/ jessie main" >> /etc/apt/sources.list && \
dpkg --add-architecture armhf && \
curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add -
2014-10-12 13:21:43 +02:00
RUN apt-get update && apt-get install -y \
crossbuild-essential-armhf \
gfortran-arm-linux-gnueabihf \
qemu-user \
qemu-user-static
2014-10-12 13:21:43 +02:00
ENV CROSS_TRIPLE arm-linux-gnueabihf
ENV CROSS_ROOT /usr/${CROSS_TRIPLE}
WORKDIR /usr/src
2014-10-12 13:21:43 +02:00
# Note: Toolchain file support is currently in debian Experimental:
# https://wiki.debian.org/CrossToolchains#In_jessie_.28Debian_8.29
COPY Toolchain.cmake /usr/lib/${CROSS_TRIPLE}/
ENV CMAKE_TOOLCHAIN_FILE /usr/lib/${CROSS_TRIPLE}/Toolchain.cmake