openwrt package Makefile

Posted listenerln

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了openwrt package Makefile相关的知识,希望对你有一定的参考价值。

ppp 添加ipv6菜单项

# ppp目录 package/network/services/ppp/Makefile

# 定义子菜单项 pppipv6
define Package/pppipv6
# 对应父菜单
$(call Package/ppp/Default)
  DEPENDS:[email protected](PACKAGE_ppp||PACKAGE_ppp-multilink)
  TITLE:=with IPv6
endef

# 定义描述
define Package/pppipv6/description
This package is compiled with IPv4 and IPv6 script support.
endef

# 定义安装文件
define Package/pppipv6/install                                  
    $(INSTALL_BIN) ./files/ppp6.sh $(1)/lib/netifd/proto/ppp.sh
    $(INSTALL_BIN) ./files/lib/netifd/ppp6-up $(1)/lib/netifd/
endef

# 执行调用
$(eval $(call BuildPackage,pppipv6))


# 判断IPV6选择, 就执行
ifdef CONFIG_IPV6
    $(INSTALL_BIN) ./files/ppp6.sh $(1)/lib/netifd/proto/ppp.sh
    $(INSTALL_BIN) ./files/lib/netifd/ppp6-up $(1)/lib/netifd/
endif

 

以上是关于openwrt package Makefile的主要内容,如果未能解决你的问题,请参考以下文章

openwrt编译 -- 添加用户自定义app

如何使一个openwrt下的软件开机自启动

路由openwrt固件请问怎么加入socket通信软件包

OpenWrt 内核驱动模块04

OpenWrt编译报错:Package airfly_receiver is missing dependencies for the following libraries

小白求教,关于openwrt的Makefile