免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1958 | 回复: 0
打印 上一主题 下一主题

Gentoo Eclass Writing Guide [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-11 20:11 |只看该作者 |倒序浏览

http://devmanual.gentoo.org/eclass-writing/index.html
bitbake的资料确实很少,而其代码写的很少注释,所以,只能从源头追踪,bitbake/oe源于gentoo,而gentoo有很多的资料,最近在研究bitbake bbclass,所以现在来研究下gentoo的class---eclass

An eclass may provide default implementations for any of the standard ebuild functions (src_unpack, pkg_postinst etc). This can be done either as a simple function definition (which is not multiple eclass friendly) or using EXPORT_FUNCTIONS. Functions given to EXPORT_FUNCTIONS are implemented as normal, but have their name prefixed with ${ECLASS}_.

也就是说在bbclass中,既可以提供标准的函数 do_configure,do_compile,do_install,等等,也可以自己定义一些普通的函数使用,我再继续研究....

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/32610/showart_398858.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP