git clone https://github.com/coolsnowwolf/lede.git cd lede ./scripts/feeds update -a ./scripts/feeds install -a make menuconfig make download -j8 || make download || make download V=s make -j1 || make -j1 V=s
可选:
添加第三方包来源
1 2 3 4
echo >> feeds.conf.default echo'src-git istore https://github.com/linkease/istore;main' >> feeds.conf.default sed -i '$a src-git kenzo https://github.com/kenzok8/openwrt-packages' feeds.conf.default sed -i '$a src-git small https://github.com/kenzok8/small' feeds.conf.default
更换golang版本
编译新版Sing-box和hysteria,需golang版本1.20或者以上版本.
若自带的版本过低,可用下面命令换成openwrt官方golang版本
1 2 3
pushd feeds/packages/lang rm -rf golang && svn co https://github.com/openwrt/packages/branches/openwrt-23.05/lang/golang popd
git pull ./scripts/feeds update -a ./scripts/feeds install -a make -j1 || make -j1 V=s
干净编译
编译出现问题且用make clean依然无法解决的情况.
1 2 3 4 5 6 7 8
git pull ./scripts/feeds update -a ./scripts/feeds install -a make dirclean;make dirclean V=s make -j1 clean; make -j1 clean V=s make download || make download V=s make -j1 || make -j1 V=s