Created
June 14, 2016 16:18
-
-
Save lancechentw/bf9e0ecd489e5a79de34d3f6caadf678 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get install libexpat-dev | |
ln -s /usr/lib/x86_64-linux-gnu/libexpat.so /usr/lib/libexpat.so | |
su - builder -c " | |
mkdir -p build \ | |
&& cd build \ | |
&& ct-ng arm-unknown-linux-gnueabi \ | |
&& ct-ng build" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curdir=$(realpath $(dirname $0)) | |
mkdir -p ${curdir}/tools ${curdir}/build | |
docker run -it -u root \ | |
-v ${curdir}/build.sh:/home/builder/build.sh \ | |
-v ${curdir}/tools:/home/builder/x-tools \ | |
-v ${curdir}/build:/home/builder/build \ | |
lancechen/crosstool-ng \ | |
sh build.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment