1、u-boot
<进入 …-yocto>
bitbake -c cleansstate u-boot (两个s)
bitbake -c patch u-boot (如此才可以从本地编译,不从网上fetch代码)
<进入…-release>
bitbake -e u-boot |grep ^S= (获得u-boot代码路径,进入后可修改)
<修改完成,进入release>
source SOURCE_THIS
bitbake -c compile -f u-boot >> log.txt (将输出结果显示在log.txt 中)
bitbake u-boot
2、kernel
<进入 …-yocto>
bitbake -c cleansstate virtual/kernel
bitbake -c patch virtual/kernel
bitbake -e virtual/kernel |grep ^S=
update KERNEL_DEFCONFIG variable in meta-fsl-ppc/conf/machine/<machine>.conf (修改 kernel defconfig )
update KERNEL_DEVICETREE variable in meta-fsl-ppc/conf/machine/<machine>.conf (修改 dts)
bitbake -c menuconfig virtual/kernel (进入内核配置菜单菜单配置)
screen -r devshell
<进入…-release>
bitbake -c compile -f virtual/kernel
bitbake virtual/kernel (编译后的内核文件,会在build_<machine>_release/tmp/deploy/images/)