openwrt编译记录

openwrt编译记录

参考链接

https://github.com/coolsnowwolf/lede
https://github.com/xiaorouji/openwrt-passwall
https://github.com/jerrykuku/luci-theme-argon/tree/18.06
https://github.com/jerrykuku/luci-app-vssr
https://www.right.com.cn/forum/thread-3682029-1-1.html

环境

kali2020.2
因为需要下载很多东西,并且有些东西是国外源,所以可以考虑使用全局呆李
下载大概两个多小时
编译大概5-6分钟
在这里插入图片描述

命令

apt-get update
apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync
useradd test
passwd test
su test
cd /tmp
git clone --depth=1 https://github.com/coolsnowwolf/lede
cd lede/package/lean/
rm -rf luci-theme-argon  
git clone --depth=1 -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git
git clone --depth=1 https://github.com/jerrykuku/lua-maxminddb.git
git clone --depth=1 https://github.com/jerrykuku/luci-app-vssr.git
cd ../
git clone --depth=1 https://github.com/xiaorouji/openwrt-passwall.git
cd ../
echo 'src-git helloworld https://github.com/fw876/helloworld' >>feeds.conf.default
./scripts/feeds update -a && ./scripts/feeds install -a
make defconfig
make menuconfig
./scripts/diffconfig.sh
make -j8 download V=s
make -j$(($(nproc) + 1)) ||make -j1 V=s
rm -rf ./tmp && rm -rf .config#重新配置时使用
make defconfig#dff配置
make menuconfig#保存配置
./scripts/diffconfig.sh#对比.config差异

在这里插入图片描述

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值