mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 08:24:25 +01:00
acc6d3bb3b
Addresses #132.
45 lines
1.5 KiB
Docker
45 lines
1.5 KiB
Docker
FROM dockcross/base:latest
|
|
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
|
|
|
|
# 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 -
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
crossbuild-essential-armhf \
|
|
gfortran-arm-linux-gnueabihf \
|
|
qemu-user \
|
|
qemu-user-static \
|
|
libbz2-dev:armhf \
|
|
libexpat1-dev:armhf \
|
|
ncurses-dev:armhf \
|
|
libssl-dev:armhf
|
|
|
|
ENV CROSS_TRIPLE arm-linux-gnueabihf
|
|
ENV CROSS_ROOT /usr/${CROSS_TRIPLE}
|
|
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-4.9 \
|
|
CXX=/usr/bin/${CROSS_TRIPLE}-g++ \
|
|
LD=/usr/bin/${CROSS_TRIPLE}-ld
|
|
|
|
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/linux-armv7
|
|
|
|
# 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
|
|
|
|
# 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"
|