[oe] devshell - setting up additional environment variable

John Stirling ap.john.stirling at gmail.com
Thu Nov 8 16:53:22 UTC 2012


On 8 November 2012 16:50, Chris Larson <clarson at kergoth.com> wrote:

> On Thu, Nov 8, 2012 at 9:48 AM, John Stirling <ap.john.stirling at gmail.com
> >wrote:
>
> > On 8 November 2012 14:09, Chris Larson <clarson at kergoth.com> wrote:
> >
> > > On Thu, Nov 8, 2012 at 3:03 AM, John Stirling
> > > <ap.john.stirling at gmail.com> wrote:
> > > > Can someone advise best way to set up additional environment
> variables
> > > > automatically when invoking devshell -
> > > >
> > > > We used to define a do_devshell_prepend() function but that doesn't
> > seem
> > > to
> > > > work any more.
> > >
> > >
> > > See OE_TERMINAL_EXPORTS -
> > >
> > >
> >
> https://github.com/openembedded/oe-core/blob/master/meta/classes/terminal.bbclass#L7
> > > --
> > >
> >
> > Am I correct in thinking that would set the extra variables up for every
> > devshell rather than for a specific package ? Or am I missing something ?
> >
> > I'd ideally like to set them on a per package basis rather than globally
> > for all devshells. We used to be able to do this in the .bb file via
> > do_devshell_prepend().
>
>
> No, you're missing something. The class gets inherited globally, but the
> task is still run in recipe context. You should be just fine in appending
> to OE_TERMINAL_EXPORTS in a recipe, if you really need to (though it seems
> a little odd :).
>
> ok, thanks



More information about the Openembedded-devel mailing list