From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: 张忠山 <zzs213@126.com>, "Robert Yang" <liezhi.yang@windriver.com>,
bitbake-devel@lists.openembedded.org
Subject: Re: howto build specific version package
Date: Wed, 03 Aug 2016 16:23:21 +0100 [thread overview]
Message-ID: <1470237801.9142.134.camel@linuxfoundation.org> (raw)
In-Reply-To: <06719fa1-4361-f8d1-c4ef-c10534c3f1f3@126.com>
On Wed, 2016-08-03 at 14:14 +0800, 张忠山 wrote:
> 在 2016年08月02日 22:56, Robert Yang 写道:
> > Hi,
> >
> > On 08/02/2016 10:34 PM, zzs wrote:
> > >
> > >
> > > 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:
> > 1) PREFERRED_VERSION_test = "1.0" in conf file such as local.conf
> > Or:
> > 2) Set DEFAULT_PREFERENCE = "-1" in test_2.0.bb.
> >
> > // Robert
> >
> Thanks for your repley.
>
> Your suggested method can select any version sure.
>
> But whenever I finish my project. some time later I wan't rebuilt
> this
> project.
> Then I must edit the source to select specific version. It is not
> convenient and buggy.
> Is there a way to select version that no need to edit the source,
> e.g.
> select it on command line
You can't select everything from the commandline. Its for the reasons
of reproducibility that we suggest people set things in configuration
files like local.conf. You can then provide the exact configuration to
reproduce any given build by saving that configuration file.
Cheers,
Richard
next prev parent reply other threads:[~2016-08-03 15:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-02 14:34 howto build specific version package zzs
2016-08-02 14:56 ` Robert Yang
2016-08-03 6:14 ` 张忠山
2016-08-03 15:23 ` Richard Purdie [this message]
2016-08-04 11:44 ` Schroeder, Henning
2016-08-05 3:14 ` 张忠山
-- strict thread matches above, loose matches on Subject: below --
2016-08-02 14:29 zzs
2016-08-05 9:06 ` Gary Thomas
2016-08-05 14:29 ` Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1470237801.9142.134.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=bitbake-devel@lists.openembedded.org \
--cc=liezhi.yang@windriver.com \
--cc=zzs213@126.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.