0

我试图创建例如 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 包?

4

1 回答 1

0

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

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

在我的情况下

make package/luci-app-adblock/compile

包文件将在bin路径中找到

于 2018-10-07T17:30:42.640 回答