小白求教,关于openwrt的Makefile
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了小白求教,关于openwrt的Makefile相关的知识,希望对你有一定的参考价值。
参考技术A 看到openwrt目录下的,Makefile,会包含include/toplevel.mk在此toplevel.mk中,有3个make指令:
SUBMAKE,则在当前目录下make
NO_TRACE_MAKE,会返回主目录下的Makefile去make
MAKE,似乎也是在当前目录下make~本回答被提问者和网友采纳
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的Makefile的主要内容,如果未能解决你的问题,请参考以下文章