mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-04-02 20:19:16 +02:00
First commit
This commit is contained in:
parent
d5649a23a7
commit
2b82f22e0b
26
android-arm/Dockerfile
Normal file
26
android-arm/Dockerfile
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
FROM debian:jessie
|
||||||
|
MAINTAINER Steeve Morin "steeve.morin@gmail.com"
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get -y --force-yes install \
|
||||||
|
bash \
|
||||||
|
curl \
|
||||||
|
pkg-config \
|
||||||
|
build-essential \
|
||||||
|
file \
|
||||||
|
tar xz-utils bzip2 gzip sed
|
||||||
|
|
||||||
|
ENV CROSS_TRIPLE arm-linux-androideabi
|
||||||
|
ENV CROSS_ROOT /gcc-${CROSS_TRIPLE}
|
||||||
|
ENV PATH ${PATH}:${CROSS_ROOT}/bin
|
||||||
|
ENV LD_LIBRARY_PATH ${CROSS_ROOT}/lib:${LD_LIBRARY_PATH}
|
||||||
|
|
||||||
|
RUN mkdir -p /build && \
|
||||||
|
cd /build && \
|
||||||
|
curl -L http://dl.google.com/android/ndk/android-ndk32-r10-linux-x86_64.tar.bz2 | tar xvj && \
|
||||||
|
cd /build/android-ndk-r10 && \
|
||||||
|
/bin/bash ./build/tools/make-standalone-toolchain.sh --platform=android-14 --install-dir=${CROSS_ROOT} && \
|
||||||
|
cd / && \
|
||||||
|
rm -rf /build
|
||||||
|
|
||||||
|
RUN cd ${CROSS_ROOT}/bin && \
|
||||||
|
ln -s ${CROSS_TRIPLE}-gcc ${CROSS_TRIPLE}-cc
|
26
darwin-x64/Dockerfile
Normal file
26
darwin-x64/Dockerfile
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
FROM debian:jessie
|
||||||
|
MAINTAINER Steeve Morin "steeve.morin@gmail.com"
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get -y --force-yes install \
|
||||||
|
bash \
|
||||||
|
curl \
|
||||||
|
pkg-config \
|
||||||
|
build-essential \
|
||||||
|
clang-3.5 llvm-3.5-dev automake autogen \
|
||||||
|
libtool libxml2-dev uuid-dev libssl-dev bash patch make \
|
||||||
|
tar xz-utils bzip2 gzip sed cpio
|
||||||
|
|
||||||
|
ENV CROSS_TRIPLE x86_64-apple-darwin13
|
||||||
|
ENV CROSS_ROOT /clang-${CROSS_TRIPLE}
|
||||||
|
ENV MAC_SDK_VERSION 10.9
|
||||||
|
ENV PATH ${PATH}:${CROSS_ROOT}/bin
|
||||||
|
ENV LD_LIBRARY_PATH /usr/lib/llvm-3.5/lib:${CROSS_ROOT}/lib:${LD_LIBRARY_PATH}
|
||||||
|
|
||||||
|
RUN curl -L https://github.com/tpoechtrager/osxcross/archive/master.tar.gz | tar xvz
|
||||||
|
COPY MacOSX${MAC_SDK_VERSION}.sdk.tar.bz2 /osxcross-master/tarballs/
|
||||||
|
|
||||||
|
# Build the toolchain
|
||||||
|
RUN cd /osxcross-master && echo | SDK_VERSION=${MAC_SDK_VERSION} OSX_VERSION_MIN=10.6 ./build.sh
|
||||||
|
RUN mv /osxcross-master/target ${CROSS_ROOT} && \
|
||||||
|
mkdir -p ${CROSS_ROOT}/lib && \
|
||||||
|
rm -rf /osxcross-master
|
28
linux-arm/Dockerfile
Normal file
28
linux-arm/Dockerfile
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
FROM debian:jessie
|
||||||
|
MAINTAINER Steeve Morin "steeve.morin@gmail.com"
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get -y --force-yes install \
|
||||||
|
bash \
|
||||||
|
curl \
|
||||||
|
pkg-config \
|
||||||
|
build-essential \
|
||||||
|
file \
|
||||||
|
rsync \
|
||||||
|
tar xz-utils bzip2 gzip sed
|
||||||
|
|
||||||
|
ENV CROSS_TRIPLE arm-linux-gnueabihf
|
||||||
|
ENV CROSS_ROOT /usr/${CROSS_TRIPLE}
|
||||||
|
ENV PATH ${PATH}:${CROSS_ROOT}/bin
|
||||||
|
ENV LD_LIBRARY_PATH ${CROSS_ROOT}/lib:${LD_LIBRARY_PATH}
|
||||||
|
|
||||||
|
# Raspberry Pi is ARMv6+VFP2, Debian armhf is ARMv7+VFP3
|
||||||
|
# Since this Dockerfile is targeting linux-arm from Raspberry Pi onward,
|
||||||
|
# we're sticking with it's custom built cross-compiler with hardfp support.
|
||||||
|
# We could use Debian's armel, but we'd have softfp and loose a good deal
|
||||||
|
# of performance.
|
||||||
|
# See: https://wiki.debian.org/RaspberryPi
|
||||||
|
RUN curl -L https://github.com/raspberrypi/tools/archive/master.tar.gz | tar xvz --wildcards --no-anchored "*gcc-linaro-${CROSS_TRIPLE}-raspbian-x64*" && \
|
||||||
|
rsync -av /tools-master/arm-bcm2708/gcc-linaro-${CROSS_TRIPLE}-raspbian-x64/* /usr && \
|
||||||
|
cd /usr/bin && \
|
||||||
|
ln -s ${CROSS_TRIPLE}-gcc ${CROSS_TRIPLE}-cc && \
|
||||||
|
rm -rf /tools-master
|
31
linux-arm/Dockerfile.armv7
Normal file
31
linux-arm/Dockerfile.armv7
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
FROM debian:jessie
|
||||||
|
MAINTAINER Steeve Morin "steeve.morin@gmail.com"
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get -y --force-yes install \
|
||||||
|
bash \
|
||||||
|
curl \
|
||||||
|
pkg-config \
|
||||||
|
build-essential \
|
||||||
|
file \
|
||||||
|
tar xz-utils bzip2 gzip sed
|
||||||
|
|
||||||
|
|
||||||
|
# Add the cross compiler sources
|
||||||
|
RUN echo "deb http://toolchains.secretsauce.net unstable main" >> /etc/apt/sources.list && \
|
||||||
|
dpkg --add-architecture armhf && \
|
||||||
|
curl -L http://toolchains.secretsauce.net/key.gpg | apt-key add -
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get -y --force-yes install \
|
||||||
|
gcc-4.9-arm-linux-gnueabihf \
|
||||||
|
g++-4.9-arm-linux-gnueabihf
|
||||||
|
|
||||||
|
ENV CROSS_TRIPLE arm-linux-gnueabihf
|
||||||
|
ENV CROSS_ROOT /usr/${CROSS_TRIPLE}
|
||||||
|
ENV PATH ${PATH}:${CROSS_ROOT}/bin
|
||||||
|
ENV LD_LIBRARY_PATH ${CROSS_ROOT}/lib:${LD_LIBRARY_PATH}
|
||||||
|
|
||||||
|
RUN cd /usr/bin && \
|
||||||
|
ln -s ${CROSS_TRIPLE}-gcc-4.9 ${CROSS_TRIPLE}-cc && \
|
||||||
|
ln -s ${CROSS_TRIPLE}-gcc-4.9 ${CROSS_TRIPLE}-gcc && \
|
||||||
|
ln -s ${CROSS_TRIPLE}-g++-4.9 ${CROSS_TRIPLE}-g++ && \
|
||||||
|
ln -s ${CROSS_TRIPLE}-g++-4.9 ${CROSS_TRIPLE}-c++
|
19
windows-x64/Dockerfile
Normal file
19
windows-x64/Dockerfile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
FROM debian:jessie
|
||||||
|
MAINTAINER Steeve Morin "steeve.morin@gmail.com"
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get -y --force-yes install \
|
||||||
|
bash \
|
||||||
|
curl \
|
||||||
|
pkg-config \
|
||||||
|
build-essential \
|
||||||
|
file \
|
||||||
|
mingw-w64 \
|
||||||
|
tar xz-utils bzip2 gzip sed
|
||||||
|
|
||||||
|
ENV CROSS_TRIPLE x86_64-w64-mingw32
|
||||||
|
ENV CROSS_ROOT /usr/${CROSS_TRIPLE}
|
||||||
|
ENV PATH ${PATH}:${CROSS_ROOT}/bin
|
||||||
|
ENV LD_LIBRARY_PATH ${CROSS_ROOT}/lib:${LD_LIBRARY_PATH}
|
||||||
|
|
||||||
|
RUN cd /usr/bin && \
|
||||||
|
ln -s ${CROSS_TRIPLE}-gcc ${CROSS_TRIPLE}-cc
|
19
windows-x86/Dockerfile
Normal file
19
windows-x86/Dockerfile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
FROM debian:jessie
|
||||||
|
MAINTAINER Steeve Morin "steeve.morin@gmail.com"
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get -y --force-yes install \
|
||||||
|
bash \
|
||||||
|
curl \
|
||||||
|
pkg-config \
|
||||||
|
build-essential \
|
||||||
|
file \
|
||||||
|
mingw-w64 \
|
||||||
|
tar xz-utils bzip2 gzip sed
|
||||||
|
|
||||||
|
ENV CROSS_TRIPLE i686-w64-mingw32
|
||||||
|
ENV CROSS_ROOT /usr/${CROSS_TRIPLE}
|
||||||
|
ENV PATH ${PATH}:${CROSS_ROOT}/bin
|
||||||
|
ENV LD_LIBRARY_PATH ${CROSS_ROOT}/lib:${LD_LIBRARY_PATH}
|
||||||
|
|
||||||
|
RUN cd /usr/bin && \
|
||||||
|
ln -s ${CROSS_TRIPLE}-gcc ${CROSS_TRIPLE}-cc
|
Loading…
x
Reference in New Issue
Block a user