Skip to contentSkip to conversation

howto build specific version package

DISCUSSION zzs 3 participants 3 messages Aug 2, 2016 – Aug 5, 2016

lore
Share & tools
lore

zzs

author
#0 lore raw

Hello, everyone

I have two version .bb recipe, sya test_1.0.bb and test_2.0.bb. When build the test package using the flowwing cmd:
bitbake test
Always 2.0 was built.
My question is: how to let bitbake to build version 1.0 of the test package

#1 lore raw
Quoted 8 lines · zzs

Hello, everyone

I have two version .bb recipe, sya test_1.0.bb and test_2.0.bb. When build the test package using the flowwing cmd:
bitbake test
Always 2.0 was built.
My question is: how to let bitbake to build version 1.0 of the test package

Put this line in your in local.conf:

PREFERRED_VERSION_test = "1.0"

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#2 lore raw
In reply to zzs
Quoted 8 lines · zzs

Hello, everyone

I have two version .bb recipe, sya test_1.0.bb and test_2.0.bb. When build the test package using the flowwing cmd:
bitbake test
Always 2.0 was built.
My question is: how to let bitbake to build version 1.0 of the test package

You can add PREFERRED_VERSION_pn-test = "1.0" in local.conf or you can add DEFAULT_PREFERENCE = "-1" to test_2.0.bb

Quoted 5 lines