码迷,mamicode.com
首页 > 其他好文 > 详细

openwrt package Makefile

时间:2019-03-22 18:30:54      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:ack   安装文件   his   描述   services   color   span   pack   make   

ppp 添加ipv6菜单项

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

# 定义子菜单项 pppipv6
define Package/pppipv6
# 对应父菜单
$(call Package/ppp/Default)
  DEPENDS:=@(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

标签:ack   安装文件   his   描述   services   color   span   pack   make   

原文地址:https://www.cnblogs.com/listenerln/p/10579828.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!