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 \
|
2016-04-16 06:21:02 +02:00
|
|
|
qemu-user-static \
|
|
|
|
libbz2-dev:armhf \
|
|
|
|
libexpat1-dev:armhf \
|
|
|
|
ncurses-dev:armhf \
|
|
|
|
libssl-dev:armhf
|
2014-10-12 13:21:43 +02:00
|
|
|
|
2015-05-26 04:01:03 +02:00
|
|
|
ENV CROSS_TRIPLE arm-linux-gnueabihf
|
|
|
|
ENV CROSS_ROOT /usr/${CROSS_TRIPLE}
|
2016-03-18 23:20:04 +01:00
|
|
|
ENV AS=/usr/bin/${CROSS_TRIPLE}-as \
|
|
|
|
AR=/usr/bin/${CROSS_TRIPLE}-ar \
|
|
|
|
CC=/usr/bin/${CROSS_TRIPLE}-gcc \
|
|
|
|
CPP=/usr/bin/${CROSS_TRIPLE}-cpp \
|
|
|
|
CXX=/usr/bin/${CROSS_TRIPLE}-g++ \
|
|
|
|
LD=/usr/bin/${CROSS_TRIPLE}-ld
|
2015-05-26 04:01:03 +02:00
|
|
|
|
2016-07-04 06:10:36 +02:00
|
|
|
ENV DEFAULT_DOCKCROSS_IMAGE thewtex/cross-compiler-linux-armv7
|
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-26 04:01:03 +02:00
|
|
|
COPY Toolchain.cmake /usr/lib/${CROSS_TRIPLE}/
|
|
|
|
ENV CMAKE_TOOLCHAIN_FILE /usr/lib/${CROSS_TRIPLE}/Toolchain.cmake
|