2015-05-09 13:48:53 +02:00
|
|
|
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
|
2015-02-01 04:18:38 +01:00
|
|
|
RUN echo "deb http://emdebian.org/tools/debian/ jessie main" >> /etc/apt/sources.list && \
|
2015-05-09 13:48:53 +02:00
|
|
|
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
|
|
|
|
2015-02-01 04:24:49 +01:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2015-05-09 13:48:53 +02:00
|
|
|
crossbuild-essential-armhf \
|
2015-05-09 13:57:41 +02:00
|
|
|
gfortran-arm-linux-gnueabihf \
|
|
|
|
qemu-user \
|
|
|
|
qemu-user-static
|
2014-10-12 13:21:43 +02:00
|
|
|
|
2015-05-09 13:48:53 +02:00
|
|
|
WORKDIR /usr/src
|
2014-10-12 13:21:43 +02:00
|
|
|
|
2015-05-09 14:23:31 +02:00
|
|
|
# Note: Toolchain file support is currently in debian Experimental:
|
|
|
|
# https://wiki.debian.org/CrossToolchains#In_jessie_.28Debian_8.29
|
2015-05-09 13:48:53 +02:00
|
|
|
COPY Toolchain.cmake /usr/src/
|
|
|
|
ENV CMAKE_TOOLCHAIN_FILE /usr/src/Toolchain.cmake
|