Skip to content

Commit

Permalink
use crosstool-ng
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg committed Nov 14, 2017
1 parent ed6be2f commit 6ac8ec0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/arm-unknown-linux-gnueabihf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
20 changes: 20 additions & 0 deletions docker/crosstool-ng.sh
Original file line number Diff line number Diff line change
@@ -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 <LICENSE-APACHE or
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, 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

0 comments on commit 6ac8ec0

Please sign in to comment.