我用Docker 裝 ubuntu 20.04
安裝下面 package 可以正常build core and full 版本
RUN dpkg --add-architecture i386 && \ apt-get update && \ apt-get install -y locales && \ localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 ENV LANG en_US.UTF-8 RUN apt-get install --no-install-recommends --no-install-suggests --yes \ build-essential ca-certificates gcc gcc-multilib clang curl \ git git-lfs gnupg gperf build-essential zip libc6-dev python \ x11proto-core-dev libgl1-mesa-dev g++-multilib tofrodos zlib1g-dev \ libncurses5-dev:i386 libx11-dev:i386 libreadline6-dev:i386 \ libgl1-mesa-glx:i386 zlib1g-dev:i386 linux-libc-dev:i386 gawk \ libncurses5-dev bc bison flex gettext libssl-dev autoconf libtool \ wget patch dos2unix tree u-boot-tools libelf-dev libncurses5 \ libxml2-utils xsltproc markdown texinfo gettext busybox \ fakeroot cpio unzip rsync ccache xxd vim liblzo2-2 && \ apt-get clean && \ rm -rf /var/lib/apt/* /var/cache/apt/* /tmp/* /var/tmp/*後面是完整的 Dockerfile 還有怎樣build docker image 跟進入docker環境用的shell script
進 container 後
直接 ./build.sh config && ./build.sh 即可
文件講的環境變數
只需要
export ARCH=arm64
export CROSS_COMPILE=aarch64-none-linux-gnu-
用我的Dockerfile 已經寫在裡面了
加上其他會產生類似你的錯誤
entrycontainer
build-container
Dockerfile