官方文档参考:https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem
中文文档参考:https://openwrt.org/zh-cn/doc/howto/build
下载源码
仓库页面:https://git.openwrt.org/?p=openwrt/openwrt.git;a=summary
# 更新依赖
sudo apt update -y
sudo apt full-upgrade -y
sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk