code style

2017年6月15日 星期四

BitBake (1)Overview

BitBake是OpenEmbedded的一個 task executor,使用Python撰寫,主要功用是分析recipes後建置輸出package,也被Yocto Project採用。觀念上,BitBake類似GNU Make。而makefile也就是recipe。它分析recipe後,可得知建置所需的dependencies, source file locations, checksums, description....等等資訊,再開始建置。下面是Bitbake的幾種data 類型:


Recipes:
描述source code 的位置、和如何configure and compile the source code等等資訊。副檔名為.bb。

Configuration Files:
定義machine configuration options, distribution configuration options, compiler tuning options,general common configuration options, and user configuration options。副檔名為.conf。


Classes:
抽象的基本build subroutines,使用inheritance mechanism(繼承機制)提供創出新的.bb檔,類似物件導象中的Class。副檔名為.bbclass。

Layers:
Metadata 是由許多的layers組成。這些layers允許你分離不同客制化的設定。

Append Files:
一般.bb和.bbappend會使用相同的檔名,用副檔名來區分。副檔名為.bbappend。