FAQ:What do I need to do when I change my recipe to ensure that the changes make it to the image

From Yocto Project
Jump to navigationJump to search

Q: What do I need to do when I change my recipe to ensure that the changes make it in to the image?

A: Update the PR variable in your recipe.

Explanation: Every recipe has a variable PR that holds the current release version of this recipe. If you do modifications on the recipe you need to increase the PR variable as well. Example:

Before modification of your recipe:

PR = "r2"

After modification after modification:

PR = "r3"

Bitbake tracks the release versions of every recipe and if the version increases it rebuilds the package(s) for that recipe.