Reputation: 1
I made some changes on u-boot source /tmp/work/beaglebone_my-poky-linux-gnueabi/u-boot/1_2018.07-r0/git
When I rebuild with bitbake core-image-minimal
, BitBake is not overwriting images in the path /images/
.
Then I used clean
, cleansstate
, but both of them deleted all my changes in the u-boot/1_2018.07-r0/git
directory.
What is the most efficient way to customize the u-boot and kernel?
Thank you.
Upvotes: 0
Views: 1993
Reputation: 519
Changing a recipe's fetched sources directory is not enough to permanently modify source code in Yocto as it is just a temporary working directory that, as you experienced, can be cleaned and all.
Changes to Yocto recipes sources can be made by:
This section describes the process of modifying source code and creating a patch: https://www.yoctoproject.org/docs/1.6.1/kernel-dev/kernel-dev.html#modifying-source-code
This section describes the process of creating an extra layer and a recipe for the patches you created in order to apply them during build time: https://www.yoctoproject.org/docs/1.6.1/kernel-dev/kernel-dev.html#modifying-source-code
Upvotes: 1