我是 Yocto 项目的新手。
问题是使用源代码编辑重建。
我试过的流程如下。
构建 Yocto 项目 ( bitbake core-image-weston )
构建后,我编辑了 weston 源代码。 ( build/tmp/work/aarch64-poky-linux/weston/1.9.0-r0/git/ivi-shell/hmi-controller.c )
重建 Yocto 项目。 (我不知道如何重建它,所以我尝试了很多方法。)
- bitbake 核心图像韦斯顿
- bitbake 韦斯顿
- bitbake weston -c -f 编译 bitbake weston -c -f deploy
- bitbake weston -c -f 重建
- bitbake weston -c -f build
我检查了输出 rootfs:core-image-weston-.tar.bz 但它没有改变。 (我添加了错误的代码导致构建错误,但构建错误从未发生过!)
所以,我希望知道如何编辑源代码 (weston) 并正确构建它。 最后,我希望得到正确构建的rootfs。
谢谢。
最佳答案
重新编译包后,您还应该重新运行镜像的构建。然后应该包括更改:
bitbake -c compile -f weston
bitbake core-image-weston
关于build - 如何编辑 Yocto 项目的源代码,并重建它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39654090/