如何编辑 Yocto 项目的源代码,并重建它?

How to edit source codes on Yocto project, and rebuild it?

我是 Yocto 项目的新手。

问题是使用源代码编辑重建。

我试过的流程如下

  1. 构建 Yocto 项目 (bitbake core-image-weston)

  2. 构建后,我编辑了weston源代码。 ( build/tmp/work/aarch64-poky-linux/weston/1.9.0-r0/git/ivi-shell/hmi-controller.c )

  3. 重新构建 Yocto 项目。 (不知道怎么重建,所以试了很多方法。)

    1. bitbake core-image-weston
    2. bitbake 韦斯顿
    3. bitbake weston -c -f 编译 bitbake weston -c -f deploy
    4. bitbake weston -c -f 重建
    5. bitbake weston -c -f build
  4. 我检查了输出 rootfs:core-image-weston-.tar.bz 但它没有改变。 (我添加了错误的代码导致构建错误,但构建错误从未发生过!)

所以,我希望知道如何编辑源代码 (weston) 并正确构建它。 最后,希望能顺利建好rootfs

谢谢。

重新编译包后,您还应该重新运行映像的构建。然后应该包括更改:

bitbake -c compile -f weston
bitbake core-image-weston