[Openembedded-users] Question about choice of version for a package
Joel A Fernandes
agnel.joel at gmail.com
Thu Jun 16 07:03:48 UTC 2011
Hi Khem, Thanks a lot for your reply.
On 06/16/2011 01:21 AM, Khem Raj wrote:
> On 06/15/2011 10:32 PM, Joel A Fernandes wrote:
>> I hope this question doesn't come across as silly, but I'm having a hard time figuring out how does bitbake/oe get the default version for a certain package if the PREFERRED_VERSION has not been set by configuration files?
>>
>> For example, when I build u-boot for a beagleboard machine, it chooses the "git" recipe. Where is this decided?
>>
>
>
> if its pinned using PREFERRED_VERSION in a conf file thats the first
> choice e.g. PREFERRED_VERSION_u-boot = "1.2"
>
> if not then it goes and looks for DEFAULT_PREFRENCES in recipes which
> all provide u-boot and choses the one with highest value
>
> If DEFAULT_PREFERENCE is same for given recipes then it picks the one
> which has newer version e.g. 1.2.3 will be picked over 1.2.2
[Joel]
For U-boot, I noticed that some recipes have DEFAULT_PREFERENCE set to 1, but not all. If the default is 0, how does it decide that the "git" recipe has to be chosen over other versions? Is "git" given the highest priority by default?
Also if I logged some debug messages which show the selecion of the U-boot git recipe over other versions during a run:
DEBUG: Added runtime dependency u-boot for /home/joel/oe/openembedded/recipes/u-boot/u-boot_git.bb
DEBUG: Added runtime recommendation u-boot for /home/joel/oe/openembedded/recipes/u-boot/u-boot_git.bb
DEBUG: providers for u-boot are: ['u-boot']
NOTE: checking PREFERRED_PROVIDER_u-boot
NOTE: checking PREFERRED_PROVIDER_u-boot-1.3.2
NOTE: checking PREFERRED_PROVIDER_u-boot-1.3.2-r12
NOTE: checking PREFERRED_PROVIDER_u-boot-1.1.2
NOTE: checking PREFERRED_PROVIDER_u-boot-1.1.2-r3
NOTE: checking PREFERRED_PROVIDER_u-boot-2009.01
NOTE: checking PREFERRED_PROVIDER_u-boot-2009.01-r2
NOTE: checking PREFERRED_PROVIDER_u-boot-1.3.1
...
NOTE: checking PREFERRED_PROVIDER_u-boot-2010.06
NOTE: checking PREFERRED_PROVIDER_u-boot-2010.06-r1
NOTE: checking PREFERRED_PROVIDER_u-boot-2009.03
NOTE: checking PREFERRED_PROVIDER_u-boot-2009.03-r3
NOTE: checking PREFERRED_PROVIDER_u-boot-2009.11
NOTE: checking PREFERRED_PROVIDER_u-boot-2009.11-r1
NOTE: checking PREFERRED_PROVIDER_u-boot-2011.02+r75+gitrc7977858dcf1f656cbe91ea0dc3cb9139c6a8cc8
NOTE: checking PREFERRED_PROVIDER_u-boot-2011.02+r75+gitrc7977858dcf1f656cbe91ea0dc3cb9139c6a8cc8-r75
NOTE: checking PREFERRED_PROVIDER_u-boot-2009.06
NOTE: checking PREFERRED_PROVIDER_u-boot-2009.06-r0
DEBUG: sorted providers for u-boot are: ['/home/joel/oe/openembedded/recipes/u-boot/u-boot_git.bb']
DEBUG: adding '/home/joel/oe/openembedded/recipes/u-boot/u-boot_git.bb' to satisfy runtime 'u-boot'
DEBUG: Processing /home/joel/oe/openembedded/recipes/u-boot/u-boot_git.bb:do_unpack
DEBUG: Processing /home/joel/oe/openembedded/recipes/u-boot/u-boot_git.bb:do_patch
DEBUG: Processing /home/joel/oe/openembedded/recipes/u-boot/u-boot_git.bb:do_install
DEBUG: Processing /home/joel/oe/openembedded/recipes/u-boot/u-boot_git.bb:do_populate_sysroot
I will also dig into bitbake/lib/bb/provider.py to get some answers, but I appreciate your help so far. Thanks
regards,
Joel
More information about the Openembedded-users
mailing list