Skip to contentSkip to conversation

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

DISCUSSION Andreas Mueller 3 participants 4 messages Aug 3, 2011 – Aug 5, 2011

lore
Share & tools
lore
#0 lore raw

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?

Cheers

Andreas

[1] https://gitorious.org/schnitzeltony-oe-meta/meta-
gumstix/trees/master/recipes-bsp/u-boot

#1 lore raw
Quoted 33 lines · Andreas Mueller

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

Quoted 6 lines

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

#2 lore raw
Quoted 1 line · Khem Raj

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

Works perfect: Both 2011.03 and 2011.06 are running fine. Thanks

#3 lore raw
In reply to Khem Raj
Quoted 8 lines · On Thursday 04 August 2011 02:34:17 Khem Raj wrote:

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%"

Hmm, I wonder if the message could be changed to be more helpful for the cases where the recipe grabs source from some SCM. I have to admit I did not consider this case when writing the PREFERRED_VERSION message change.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre