Skip to content

Instantly share code, notes, and snippets.

@lancechentw
Created June 14, 2016 16:18
Show Gist options
  • Save lancechentw/bf9e0ecd489e5a79de34d3f6caadf678 to your computer and use it in GitHub Desktop.
Save lancechentw/bf9e0ecd489e5a79de34d3f6caadf678 to your computer and use it in GitHub Desktop.
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"
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