Alican
Alican

Reputation: 1

Yocto rebuild is not overwriting

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

Answers (2)

MrDK
MrDK

Reputation: 11

use this;

bitbake -c compile -f TARGET_PKG

Upvotes: 1

user3848844
user3848844

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:

  1. modifying the source code in the working directory
  2. creating a patch for your changes
  3. change/create some recipe to apply your patch
  4. the patch will be applied in build time

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

Related Questions