All of lore.kernel.org
 help / color / mirror / Atom feed
* Export bitbake variables between recipes
@ 2014-12-02 13:07 Fabrice Coulon
  2014-12-02 14:06 ` Paul Eggleton
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Coulon @ 2014-12-02 13:07 UTC (permalink / raw)
  To: yocto

Hi,

Is it possible to export one bitbake variable from one recipe and make it
available from inside another recipe? For example: we want to export 
from our
systemd_%.bbappend where the systemctl command has been installed, in 
order to,
from another recipe depending on systemd, refer to the absolute path where
systemctl was installed. Any ideas or suggestions on how to do that?

thanks,
Regards,

/Fabrice



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Export bitbake variables between recipes
  2014-12-02 13:07 Export bitbake variables between recipes Fabrice Coulon
@ 2014-12-02 14:06 ` Paul Eggleton
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2014-12-02 14:06 UTC (permalink / raw)
  To: Fabrice Coulon; +Cc: yocto

Hi Fabrice,

On Tuesday 02 December 2014 14:07:40 Fabrice Coulon wrote:
> Is it possible to export one bitbake variable from one recipe and make it
> available from inside another recipe? For example: we want to export
> from our systemd_%.bbappend where the systemctl command has been installed,
> in order to, from another recipe depending on systemd, refer to the absolute
> path where systemctl was installed. Any ideas or suggestions on how to do
> that?

There's no mechanism to do this, no. The only way for this kind of thing to 
work is for it to be specified at the configuration level (e.g. ${bindir} points 
to the subdirectory /usr/bin and this variable would be used both when 
choosing where the executable should be installed and finding it later - this 
would typically be how this kind of problem would be solved since it would be 
unusual to have systemctl installed somewhere other than ${bindir}). 

(Another alternative is pkg-config, but I don't think that really applies in 
this situation.)

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-02 14:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-02 13:07 Export bitbake variables between recipes Fabrice Coulon
2014-12-02 14:06 ` Paul Eggleton

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.