openwrt编译很慢?openwrt如何加快编译速度?

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值