一、插件编译原理

https://doc.embedfire.com/openwrt/user_manal/zh/latest/User_Manual/compile/package.html
https://blog.csdn.net/szembed/article/details/140957751 (软件包Makefile语法)
https://blog.csdn.net/banruoju/article/details/70172997 (软件包Makefile语法)

二、插件编译流程

https://zhuanlan.zhihu.com/p/663797787
https://blog.csdn.net/shikivs/article/details/131616153
https://blog.51cto.com/u_15477596/4893559

1.系统自带插件包

如果插件是openwrt自带的,直接

#在menuconfig中勾选要编译的包
make menuconfig

#清除已有的编译文件
make package/luci-theme-openwrt-2020/clean V=s

#解压源码,本地没有的话会自动下载
make package/luci-theme-openwrt-2020/prepare V=s

#进行编译
make package/luci-theme-openwrt-2020/compile V=s

2.第三方插件包

下载插件至源码根目录/package目录下,然后执行
make package/插件包名称/compile V=s,部分包需要sudo权限执行。


0 条评论

发表回复

您的电子邮箱地址不会被公开。