0
点赞
收藏
分享

微信扫一扫

自己动手编译最新OpenWrt稳定版

捌柒陆壹 2022-02-19 阅读 301

1.安装ubuntu 20.04.3

sudo apt-get update -y

sudo 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

2.下载源码:

git clone https://github.com/coolsnowwolf/lede

git clone https://github.com/openwrt/openwrt

3.查看并切换到新的稳定版tag(分支):

cd openwrt

git tag

自己动手编译最新OpenWrt稳定版_openwrt

git checkout v21.02.2

自己动手编译最新OpenWrt稳定版_openwrt_02

4.自定义要安装的包,修改openwrt的include/target.mk文件,在

DEFAULT_PACKAGES:=\

       base-files \

       ca-bundle \

       dropbear \

       fstools \

       libc \

       libgcc \

       libustream-wolfssl \

       logd \

       mtd \

       netifd \

       opkg \

       uci \

       uclient-fetch \

       urandom-seed \

       urngd

后面加上自己想要编译的内容:

​DEFAULT_PACKAGES:=base-files libc libgcc busybox dropbear mtd uci opkg netifd fstools uclient-fetch logd default-settings luci luci-app-aliddns luci-app-upnp luci-app-adbyby-plus luci-app-autoreboot luci-app-ssr-plus ddns-scripts_aliyun luci-app-vlmcsd luci-app-ramfree luci-app-flowoffload



举报

相关推荐

0 条评论