FAQ:What do I need to do when I change my recipe to ensure that the changes make it to the image: Difference between revisions
From Yocto Project
Jump to navigationJump to search
(Just another question from Chris Tapp) |
(Tried to answer this) |
||
Line 1: | Line 1: | ||
'''Q''': What do I need to do when I change my recipe to ensure that the changes make it in to the image? | '''Q''': What do I need to do when I change my recipe to ensure that the changes make it in to the image? | ||
'''A:''' | '''A:''' Update the PR variable in your recipe. | ||
[[Category:FAQ]] [[Category:FAQ- | '''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: | |||
<PRE> | |||
PR = "r2" | |||
</PRE> | |||
After modification after modification: | |||
<PRE> | |||
PR = "r3" | |||
</PRE> | |||
Bitbake tracks the release versions of every recipe and if the version increases it rebuilds the package(s) for that recipe. | |||
[[Category:FAQ]] [[Category:FAQ-answered]] |
Latest revision as of 12:46, 22 November 2011
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.