yocto bitbake 编译u-boot kernel

1u-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

 

2kernel

<进入 …-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/)

文章来自:http://www.cnblogs.com/apolloenterprise/p/4198979.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3