From 6ac8ec03a4d12014b9653746724dc7fe63d552d5 Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Tue, 14 Nov 2017 22:03:29 +0100 Subject: [PATCH] use crosstool-ng --- docker/arm-unknown-linux-gnueabihf/Dockerfile | 4 ++++ docker/crosstool-ng.sh | 20 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 docker/crosstool-ng.sh diff --git a/docker/arm-unknown-linux-gnueabihf/Dockerfile b/docker/arm-unknown-linux-gnueabihf/Dockerfile index 68f4d53a8..71ff0b1ee 100644 --- a/docker/arm-unknown-linux-gnueabihf/Dockerfile +++ b/docker/arm-unknown-linux-gnueabihf/Dockerfile @@ -9,6 +9,10 @@ RUN apt-get update && \ make \ pkg-config +COPY crosstool-ng.sh / +RUN bash /crosstool-ng.sh +ENV PATH=$PATH:/x-tools/arm-unknown-linux-gnueabi/bin + COPY xargo.sh / RUN bash /xargo.sh diff --git a/docker/crosstool-ng.sh b/docker/crosstool-ng.sh new file mode 100644 index 000000000..79a5bc3bb --- /dev/null +++ b/docker/crosstool-ng.sh @@ -0,0 +1,20 @@ +# Copyright 2017 The Rust Project Developers. See the COPYRIGHT +# file at the top-level directory of this distribution and at +# http://rust-lang.org/COPYRIGHT. +# +# Licensed under the Apache License, Version 2.0 or the MIT license +# , at your +# option. This file may not be copied, modified, or distributed +# except according to those terms. + +set -ex + +url="http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.22.0.tar.bz2" +curl -f $url | tar xjf - +cd crosstool-ng +./configure --prefix=/usr/local +make -j$(nproc) +make install +cd .. +rm -rf crosstool-ng