mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-09 20:57:26 +01:00
293318fa31
Move it from /usr/src so /usr/src can be mounted as a volume.
21 lines
753 B
Docker
21 lines
753 B
Docker
FROM thewtex/cross-compiler-base
|
|
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
|
|
|
|
WORKDIR /usr/src
|
|
|
|
# Note: Toolchain file support is currently in debian Experimental:
|
|
# https://wiki.debian.org/CrossToolchains#In_jessie_.28Debian_8.29
|
|
COPY Toolchain.cmake /usr/lib/arm-linux-gnueabihf/
|
|
ENV CMAKE_TOOLCHAIN_FILE /usr/lib/arm-linux-gnueabihf/Toolchain.cmake
|