我能得到的路径。bbappend文件? - Can I get the path of a .bbappend file?

- 此内容更新于:2015-12-20
主题:

我有一个文件在一个自定义的必要项目层(和单独的回购)。我要打我的自定义信息层(如git的东西为我定制的回购/层),这在一个文件。bbappend修改。任何命令的运行。bbappend运行,好像它附加(从文件。bb是在另一个层和回购推荐)。跑步,我想可能会有一些希望,一些文档说的是“直接变量扩展”,这是“扩展解析时这条线”。不幸的是,它看起来像附加在解析之前发生。我试着移动VAR:="{OTHER_VAR}美元”命令到一个文件中,我需要的。bbappend,但这并没有解决问题。我喜欢的区分方面。bbappend但还没有找到一种方法来参考。bbappend本身或是否有其他方式获取git的信息从原始层。任何想法吗?

原文:

I have a .bbappend file within a custom Yocto Project layer (and separate repo). I would like to place information about my custom layer (e.g. git stuff for my custom repo/layer) within a file that this .bbappend modifies.

Any commands which are run from this .bbappend are run as if from the .bb file to which it appends (the .bb is in another layer and repo as recommended). I thought there might be some hope for running VAR := "stuff ${OTHER_VAR} more", which some documentation says is "immediate variable expansion" which is "expanded at time of parsing this line". Unfortunately, it looks like the appending happens happens before the parsing.

I've tried moving the VAR := "stuff ${OTHER_VAR} more" command into a .inc file which I require from the .bbappend, but this does not fix the problem.

I like the compartmentalized aspect of .bbappend but haven't found a way to refer to the .bbappend itself or if there is some other way to get the git info from the original layer. Any thoughts?