On Thu, Nov 8, 2012 at 9:48 AM, John Stirling <[email protected]>wrote:
> On 8 November 2012 14:09, Chris Larson <[email protected]> wrote: > > > On Thu, Nov 8, 2012 at 3:03 AM, John Stirling > > <[email protected]> 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 :). -- Christopher Larson _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
