1. 安装依赖
  2. git源码
  3. 准备及编译
为小米路由器4A千兆版编译固件 | OpenWRT
2022-03-17 / 完美编译 / btwoa / 634

本文部分信息可能已发生改变,请自行甄别

coolsnowwolf的lede仓库

安装依赖

sudo apt-get update
sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync

git源码

git clone https://github.com/coolsnowwolf/lede

准备及编译

cd lede

./scripts/feeds update -a

./scripts/feeds install -a

make menuconfig

make -j4 download V=s

make -j4 V=s