手动构建OpenWrt
# 更新同步索引文件并安装部分依赖
sudo apt-get update
sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex git gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx-ucl libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync zlib1g-dev node-uglify libncurses5-dev patch mkisofs
git clone https://github.com/coolsnowwolf/lede.git # 或者用官方库https://github.com/openwrt/openwrt.git
cd lede/package/ # openwrt 官方库是 packages
git clone https://github.com/kenzok8/small.git # 部分应用
git clone https://github.com/kenzok8/openwrt-packages.git # 部分应用
cd ../
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig # 配置选择需要的功能
make -j8 download V=s
make -j1 V=s # (-j1 后面是线程数。第一次编译推荐用单线程)即可开始编译你要的固件了。最后更新于