1、 先把 openwrt 源码克隆到本地
https://gitee.com/harvey520/openwrt.git 每天自动从官方源拉取更新一次,不会存在更新不及时问题
git clone https://gitee.com/harvey520/openwrt.git
2、修改 openwrt 源码目录的 feeds.conf.default 文件中的镜像源
- 将
https://git.openwrt.org/feed/packages.git改为https://gitee.com/harvey520/packages.git - 将
https://git.openwrt.org/project/luci.git改为https://gitee.com/harvey520/luci.git - 将
https://git.openwrt.org/feed/routing.git改为https://gitee.com/harvey520/routing.git - 将
https://git.openwrt.org/feed/telephony.git改为https://gitee.com/harvey520/telephony.git
https://gitee.com/harvey520 中的镜像源每天自动从官方源更新一次,不会存在过期或更新不及时问题
3、提前下载依赖库源码放到 openwrt 源码目录中国内惟一仓库,只此一家,别无分号
进入 openwrt 源码目录中,执行以下命令
git clone https://e.coding.net/yao7778899/openwrt-dependent-dl.git dl
# 依赖库源码总计约850M
4、开始你的编译
执行以下命令开始你的编译,能够多快就看你家的宽带有多快了
./scripts/feeds update -a
./scripts/feeds install -a
make V=99
本文详细介绍了如何从源码编译OpenWRT固件,包括克隆源码、修改配置、下载依赖库及启动编译流程,为开发者提供全面的指导。

被折叠的 条评论
为什么被折叠?



