【问题标题】:How to edit source codes on Yocto project, and rebuild it?如何在 Yocto 项目上编辑源代码并重建它?
【发布时间】:2017-01-31 22:04:27
【问题描述】:

我是 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 部署
    4. bitbake weston -c -f 重建
    5. bitbake weston -c -f build
  4. 我检查了输出 rootfs:core-image-weston-.tar.bz 但它没有改变。 (我添加了一个导致构建错误的错误代码,但从未发生过构建错误!)

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

谢谢。

【问题讨论】:

    标签: build yocto bitbake


    【解决方案1】:

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

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

    【讨论】:

    • 感谢您的指挥。它适用于其他 Yocto 项目 - Yocto v1.6(我测试过)。但是,我不在我的 Yocto 项目上工作 - Yocto v2.0。我不确定与其他 Yocto 项目有什么不同。
    • 哦!我发现它运作良好。谢谢Fl0v0!问题是测试代码不正确。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-11
    • 2022-12-17
    • 1970-01-01
    • 1970-01-01
    • 2017-08-06
    • 1970-01-01
    相关资源
    最近更新 更多