创建LUCI ipk包

时间:2018-10-03 15:08:10

标签: openwrt luci

我试图创建例如luci-app-adblock的程序包,但被卡在其中。

所以我做了:

 cd ~/openwrt
 ./scripts/feeds update -a
 ./scripts/feeds install -ap luci
 make oldconfig
 make -j$1 tools/install
 make -j$1 toolchain/install
 make V=s ~/openwrt/package/feeds/luci/luci-app-adblock/compile

最后一个命令给我错误:

make[1]: Entering directory '/home/vagrant/openwrt'
make[1]: *** 
No rule to make target '/home/vagrant/openwrt/package/feeds/luci/luci-app-adblock/compile'.  Stop.
make[1]: Leaving directory '/home/vagrant/openwrt'
/home/vagrant/openwrt/include/toplevel.mk:216: recipe for target '/home/vagrant/openwrt/package/feeds/luci/luci-app-adblock/compile' failed
make: *** [/home/vagrant/openwrt/package/feeds/luci/luci-app-adblock/compile] 
Error 2

如何创建独立的luci软件包?

1 个答案:

答案 0 :(得分:0)

这很简单,安装工具链后需要做的

make toolchain/install
make package/<package_name>/compile

在我的情况下是

make package/luci-app-adblock/compile

打包文件将在 bin 路径

中找到