1.qemux86broadband.conf
第18行,引入conf/machine/qemux86.conf文件,它位於openembedd-core/meta/conf/machine/qemux86.conf。這是因爲Bitbake會尋在BBPATH所列出的路徑中,尋找第一個匹配的文件。
第19行,引入include/qemux86-soc.inc文件,它位於meta-rdk-bsp-emulator/conf/machine/include/qemux86-soc.inc。
第23行,向MACHINEOVERRIDES變量中追加":broadband"。MACHINEOVERRIDES與OVERRIDES類似,可以參考以下鏈接。在bitbake -e的輸出中,如下
第24行,設置MACHINE_IMAGE_NAME變量的值。在bitbake -e的輸出結果中,如下
第26行追加值到BBMASK。
第28行追加值到MACHINE_EXTRA_RRECOMMENDS變量。
第29行追加值到DISTRO_FEATURE變量。
第30行設置需要的cmake版本。
2.qemux86.conf
第5行到第8行,分別設置要使用的virtual/xserver、virtual/libgl、virtual/libgles1和virtual/libgles2的包名。
第10行插入conf/machine/include/qemu.inc,它是位於
openembedded-core/meta/conf/machine/include/qemu.inc的文件。
第11行插入conf/machine/include/tune-i586.inc文件,它是位於openembedded-core/meta/conf/machine/include/tune-i586.inc文件。
第12行,設置KERNEL_IMAGETYPE的值爲bzImage,對應bitbake -e的輸出爲
第15行設置SERIAL_CONDOLE的值爲"115200 ttys0",對應bitbake -e的輸出爲
第17到第22行,設置XSERVER
第24行追加MACHINE可以支持的硬件特徵。對應的bitbake -e輸出
第26行追加"v86d"到變量MACHINE_ESSENTIAL_EXTRA_RDEPENDS,其解釋如下
A list of required machine-specific packages to install as part of the image being built. The build process depends on these packages being present. Furthermore, because this is a “machine-essential” variable, the list of packages are essential for the machine to boot.
對應的bitbake -e輸出爲