From 5aab6b884a184f4f6a4f88fd31a7eb3428dfd265 Mon Sep 17 00:00:00 2001 From: Paul Lietar Date: Fri, 17 Feb 2017 10:30:23 +0000 Subject: [PATCH] fixup! Add Dockerfile for cross compilation --- contrib/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/Dockerfile b/contrib/Dockerfile index 44d4988f..175f1efe 100644 --- a/contrib/Dockerfile +++ b/contrib/Dockerfile @@ -27,11 +27,13 @@ ENV PATH="/root/.cargo/bin/:${PATH}" RUN rustup target add arm-unknown-linux-gnueabi RUN rustup target add arm-unknown-linux-gnueabihf -RUN echo '[target.arm-unknown-linux-gnueabihf]\nlinker = "arm-linux-gnueabihf-gcc"' > ~/.cargo/config -RUN echo '[target.arm-unknown-linux-gnueabi]\nlinker = "arm-linux-gnueabi-gcc"' > ~/.cargo/config +RUN mkdir /.cargo && \ + echo '[target.arm-unknown-linux-gnueabihf]\nlinker = "arm-linux-gnueabihf-gcc"' > /.cargo/config && \ + echo '[target.arm-unknown-linux-gnueabi]\nlinker = "arm-linux-gnueabi-gcc"' >> /.cargo/config RUN mkdir /build ENV CARGO_TARGET_DIR /build +ENV CARGO_HOME /build/cache ADD . /src WORKDIR /src