Skip to content

Instantly share code, notes, and snippets.

@Lua12138
Created June 30, 2022 07:16
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Lua12138/940ba02c809a1f28416e10b0cfc9cfa9 to your computer and use it in GitHub Desktop.
Save Lua12138/940ba02c809a1f28416e10b0cfc9cfa9 to your computer and use it in GitHub Desktop.
ARM交叉编译环境
FROM debian
RUN apt update && \
apt install -y curl xz-utils make && \
mkdir /toolchain && \
curl -L -o /toolchain/arm.tar.xz "https://mirrors.tuna.tsinghua.edu.cn/armbian-releases/_toolchain/gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf.tar.xz" && \
cd /toolchain && \
xz -d arm.tar.xz && \
tar -xvf /toolchain/arm.tar -C /toolchain && \
rm /toolchain/arm.tar
ENV PATH="/toolchain/gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf/bin/:${PATH}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment