2016-11-27 00:25:08 +01:00
|
|
|
FROM dockcross/base:latest
|
2015-05-09 13:48:53 +02:00
|
|
|
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 \
|
2017-04-17 20:30:15 +02:00
|
|
|
CPP=/usr/bin/${CROSS_TRIPLE}-cpp-4.9 \
|
2016-03-18 23:20:04 +01:00
|
|
|
CXX=/usr/bin/${CROSS_TRIPLE}-g++ \
|
|
|
|
LD=/usr/bin/${CROSS_TRIPLE}-ld
|
2015-05-26 04:01:03 +02:00
|
|
|
|
2016-07-16 05:46:08 +02:00
|
|
|
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/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
|
2016-10-31 04:57:04 +01:00
|
|
|
|
|
|
|
# Build-time metadata as defined at http://label-schema.org
|
|
|
|
ARG BUILD_DATE
|
|
|
|
ARG IMAGE
|
|
|
|
ARG VCS_REF
|
|
|
|
ARG VCS_URL
|
|
|
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
|
|
|
org.label-schema.name=$IMAGE \
|
|
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
|
|
|
org.label-schema.vcs-url=$VCS_URL \
|
|
|
|
org.label-schema.schema-version="1.0"
|