Re: [yocto] creating global variables in a recipes

2012-02-03 Thread William Mills
On 02/02/2012 05:27 PM, Richard Purdie wrote: Just a small clarification: Thanks Richard. I wondered about that but figured you would jump in if I over simplified. ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listi

Re: [yocto] creating global variables in a recipes

2012-02-02 Thread Joshua Immanuel
Hello Chris, Thanks for the reply. On Thu, 2012-02-02 at 08:17 -0700, Chris Larson wrote: > > My use-case is that I am creating an /etc/fstab file via > > base-files.bbappend recipe. In that fstab, I use uuid (generated via > > uuidgen) to denote different partition filesystems. So, I have to > >

Re: [yocto] creating global variables in a recipes

2012-02-02 Thread Richard Purdie
On Wed, 2012-02-01 at 11:50 -0500, William Mills wrote: > I am not sure I can give you a better option that local.conf but I can > explain why what your doing does not work. > > It may feel from your usage that the image recipe is the ancestor of all > the recipes but this is really not true. T

Re: [yocto] creating global variables in a recipes

2012-02-02 Thread Chris Larson
On Wed, Feb 1, 2012 at 10:17 PM, Joshua Immanuel wrote: > On Wed, 2012-02-01 at 11:50 -0500, William Mills wrote: >> I am not sure I can give you a better option that local.conf but I can >> explain why what your doing does not work. >> >> It may feel from your usage that the image recipe is the a

Re: [yocto] creating global variables in a recipes

2012-02-01 Thread Joshua Immanuel
Hello William, Christopher, Thanks for the detailed explanation. On Wed, 2012-02-01 at 11:50 -0500, William Mills wrote: > I am not sure I can give you a better option that local.conf but I can > explain why what your doing does not work. > > It may feel from your usage that the image recipe is

Re: [yocto] creating global variables in a recipes

2012-02-01 Thread William Mills
On 02/01/2012 10:49 AM, Joshua Immanuel wrote: Hello all, On Wed, 2012-02-01 at 12:07 +0530, Joshua Immanuel wrote: At present in my custom image recipe I've added the following lines SOME_VARIABLE = "Blah" do_bootimg[depends] += "base-files:do_install" But the contents of

Re: [yocto] creating global variables in a recipes

2012-02-01 Thread Christopher Larson
Nope. Recipes cannot modify the metadata of other recipes or the configuration metadata, ever. In particular cases, we emit content to tmpdir and read it back in elsewhere, but in general you should just not do what you're trying to do, and find a better solution. -- Christopher Larson On We

[yocto] creating global variables in a recipes

2012-02-01 Thread Joshua Immanuel
Hello all, On Wed, 2012-02-01 at 12:07 +0530, Joshua Immanuel wrote: > > At present in my custom image recipe I've added the following > > lines > > > > SOME_VARIABLE = "Blah" > > do_bootimg[depends] += "base-files:do_install" > > > > But the contents of ${SOME_VA