3.24.2007

bitbake - "Make" of openembedded

openembedded 使用的 build tool 是bitbake.

bitbake 就好像是Make 一樣,他的Makefile 是 *.bb 。
Make 後面接的是target,bitbake 後面接的則是 package。
和Make樣,bitbake command 後面不接package name,就會以同目錄下 的 .bb 檔案作target。
package 就是以 bb 結尾的檔案,裡面用bitbake語法描述這個package 需要的動作。

Bitbake 第一個configuration file,也就是bitbake 自己的config file 是
/stuff/org.openembedded.dev/conf/bitbake.conf
在這裡大概可以看一些bitbake 的動作 ( command )。

用 bbread 可以列出目前bitbake 的config 實際內容 (也就是變數列出來)。
bbread 現在已經被 " bitbake -e " 取代。

bbread ( bitbake -e ) 後面如果沒有argument,目前目錄也沒有 .bb file,bbread 就會parse bitbake.conf的內容。

這樣,就可以直接知道 bitbake.conf中那些奇怪符號最後解譯出什麼內容。

就像Makefile 間有dependency,各個package (.bb) 間也可以有dependency。
bitbake 的 "-g" command可以列出某package的depends package。

這裡 這一篇,有說明以上內容。

沒有留言: