Skip to content

Instantly share code, notes, and snippets.

@paulfitz
Forked from davidatroberts/ChumbyDockerFile
Created June 30, 2021 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulfitz/a625b307893add00b5c332d7bfb0c276 to your computer and use it in GitHub Desktop.
Save paulfitz/a625b307893add00b5c332d7bfb0c276 to your computer and use it in GitHub Desktop.
Dockerfile for Chumby SDK
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