[OE-core] Howto pin u-boot to a version supplied by oe-core

Khem Raj raj.khem at gmail.com
Thu Aug 4 01:34:17 UTC 2011


On Thursday, August 04, 2011 12:11:51 AM Andreas Mueller wrote:
> Hi,
> 
> for gumstix overo I am in the lucky situation that vanilla u-boot v2011.03 (
> and maybe later version too ) meets my needs.
> 
> My current approach (in angstrom environment) was quick but poor: I simply
> copied here and there without reusing anything [1].
> 
> To improve I checked u-boot_2011.03 shipped by oe-core and think that one
> exactly builds what I need - without bbappend.
> 
> So I tried in overo.conf to pin by "PREFERRED_VERSION_u-boot=":
> 
> 1. "2011.03"
> 2. "v2011.03"
> 3. "v2011.03+git19b54a701811220221fc4d5089a2bb18892018ca"
> 4. "v2011.03+git7+19b54a701811220221fc4d5089a2bb18892018ca"
> 
> got messages like
> NOTE: preferred version 2011.03 of u-boot not available (for item u-boot)
> NOTE: versions of u-boot available: git
> v2011.03+git7+19b54a701811220221fc4d5089a2bb18892018ca
> v2011.06+git7+b1af6f532e0d348b153d5c148369229d24af361a
> NOTE: Resolving any missing task queue dependencies
> NOTE: preferred version 2011.03 of u-boot not available (for item u-boot)
> NOTE: versions of u-boot available: git
> v2011.03+git7+19b54a701811220221fc4d5089a2bb18892018ca
> v2011.06+git7+b1af6f532e0d348b153d5c148369229d24af361a
> NOTE: preferred version 2011.03 of u-boot not available (for item
> u-boot-dev) NOTE: versions of u-boot available: git
> v2011.03+git7+19b54a701811220221fc4d5089a2bb18892018ca
> v2011.06+git7+b1af6f532e0d348b153d5c148369229d24af361a
> 
> and builds of
> meta-texasinstruments/recipes-bsp/u-boot/u-boot_git.bb
> 
> 
> How can I get the desired oe-core u-boot recipe pinned to reduce code
> redundancies?

there is one u-boot recipe u-boot_2011.06.bb which is in both meta-ti
and oe-core layers but otherwise they have different versions

in anycase what you need to lock is PV and the recipes in oe-core has 

u-boot_2011.03.bb:PV = "v2011.03+git${SRCPV}"
u-boot_2011.06.bb:PV = "v2011.06+git${SRCPV}"

So what you need is 

PREFERRED_VERSION_pn-u-boot = "v2011.03+git%"

-Khem





More information about the Openembedded-core mailing list