Created
June 30, 2022 07:16
-
-
Save Lua12138/940ba02c809a1f28416e10b0cfc9cfa9 to your computer and use it in GitHub Desktop.
ARM交叉编译环境
This file contains 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 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