Last active
June 30, 2021 02:20
-
-
Save davidatroberts/24794670626ae119f82a44cf1397e0be to your computer and use it in GitHub Desktop.
Dockerfile for Chumby SDK
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
FROM amd64/ubuntu:20.04 | |
RUN apt-get update && apt-get install -y \ | |
wget \ | |
tar \ | |
sudo \ | |
cmake \ | |
libc6-i386 | |
RUN cd /tmp | |
RUN wget http://files.chumby.com/toolchain/arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 | |
RUN tar xjvf arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 | |
RUN sudo mv arm-2008q3 /usr | |
RUN sudo ln -s /usr/arm-2008q3 /usr/arm-linux | |
RUN cd /usr/arm-linux/bin | |
RUN for i in *; do sudo ln -s $i `echo $i|awk -F"-" '{print $NF;}'`; done | |
RUN sudo rm -f 4.3.2 | |
RUN sudo ln -s arm-none-linux-gnueabi-gcc-4.3.2 gcc-4.3.2 | |
RUN for i in `ls /usr/arm-2008q3/bin/arm-none-linux-gnueabi-*`; do name=`echo $i|awk -F"-" {'print $NF'}`; sudo ln -s $i /usr/bin/arm-linux-$name; done | |
RUN sudo rm /usr/bin/arm-linux-4.3.2 | |
RUN sudo ln -s /usr/arm-2008q3/bin/arm-none-linux-gnueabi-gcc-4.3.2 /usr/bin/arm-linux-gcc-4.3.2 | |
WORKDIR /project |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment