* how to use native executable from one recipe during install in another recipe
@ 2013-04-11 11:58 Michael Fainstein
2013-04-11 12:53 ` Eric Bénard
0 siblings, 1 reply; 4+ messages in thread
From: Michael Fainstein @ 2013-04-11 11:58 UTC (permalink / raw)
To: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 855 bytes --]
I have one recipe that inherits "native", builds native executable and installs it in tmp/work/x86_64-linux/foo-native-1.00-r0/image/sbin/foo
Another recipe depends on first one and needs to execute foo in its do_install in order to install files in tmp/work/ppce500v2-fsl-linux-gnuspe/foo-1.00-r0/image/etc/
I can't find a way to do it. Any suggestions? How can I install foo in first recipe to some common location that 2nd recipe can use? Is there such standard location?
I am using Freescale's SDK 1.3 based on Yocto 1.2.1
Thanks,
Michael
This e-mail message is intended for the recipient only and contains information which is CONFIDENTIAL and which may be proprietary to ECI Telecom. If you have received this transmission in error, please inform us by e-mail, phone or fax, and then delete the original and all copies thereof.
[-- Attachment #2: Type: text/html, Size: 3052 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to use native executable from one recipe during install in another recipe
2013-04-11 11:58 how to use native executable from one recipe during install in another recipe Michael Fainstein
@ 2013-04-11 12:53 ` Eric Bénard
2013-04-11 14:54 ` Michael Fainstein
0 siblings, 1 reply; 4+ messages in thread
From: Eric Bénard @ 2013-04-11 12:53 UTC (permalink / raw)
To: Michael Fainstein; +Cc: yocto@yoctoproject.org
Hi Michael,
Le Thu, 11 Apr 2013 11:58:50 +0000,
Michael Fainstein <Michael.Fainstein@ecitele.com> a écrit :
> I have one recipe that inherits "native", builds native executable and installs it in tmp/work/x86_64-linux/foo-native-1.00-r0/image/sbin/foo
>
do you have BBCLASSEXTEND = "native" in this recipe ?
In the end, isn't the native binary installed in :
sysroots/x86_64-linux/usr/sbin/ ?
> Another recipe depends on first one and needs to execute foo in its do_install in order to install files in tmp/work/ppce500v2-fsl-linux-gnuspe/foo-1.00-r0/image/etc/
>
> I can't find a way to do it. Any suggestions? How can I install foo in first recipe to some common location that 2nd recipe can use? Is there such standard location?
>
You should then be able to call it in the other recipe as IIRC this path
is in $PATH (and your recipe should depend on foo-native)
Eric
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to use native executable from one recipe during install in another recipe
2013-04-11 12:53 ` Eric Bénard
@ 2013-04-11 14:54 ` Michael Fainstein
2013-04-11 20:37 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: Michael Fainstein @ 2013-04-11 14:54 UTC (permalink / raw)
To: Eric Bénard; +Cc: yocto@yoctoproject.org
> -----Original Message-----
> From: Eric Bénard [mailto:eric@eukrea.com]
> Sent: יום ה 11 אפריל 2013 15:53
> To: Michael Fainstein
> Cc: yocto@yoctoproject.org
> Subject: Re: [yocto] how to use native executable from one recipe during
> install in another recipe
>
> Hi Michael,
>
> Le Thu, 11 Apr 2013 11:58:50 +0000,
> Michael Fainstein <Michael.Fainstein@ecitele.com> a écrit :
> > I have one recipe that inherits "native", builds native executable and
> installs it in tmp/work/x86_64-linux/foo-native-1.00-r0/image/sbin/foo
> >
> do you have BBCLASSEXTEND = "native" in this recipe ?
>
> In the end, isn't the native binary installed in :
> sysroots/x86_64-linux/usr/sbin/ ?
>
> > Another recipe depends on first one and needs to execute foo in its
> do_install in order to install files in tmp/work/ppce500v2-fsl-linux-
> gnuspe/foo-1.00-r0/image/etc/
> >
> > I can't find a way to do it. Any suggestions? How can I install foo in
> first recipe to some common location that 2nd recipe can use? Is there such
> standard location?
> >
> You should then be able to call it in the other recipe as IIRC this path
> is in $PATH (and your recipe should depend on foo-native)
>
> Eric
Thanks!
I had a problem with do_populate_sysroot in native recipe due to bad generated path for do_populate_sysroot[sstate-inputdirs]. I overrode it in my recipe with
do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}" and this recipe was build successfully. However, foo was not installed in sysroots/x86_64-linux.
I changed DESTDIR in 'make install' from ${D} to ${SYSROOT_DESTDIR} and finally got foo were I need it.
Thanks,
Michael
This e-mail message is intended for the recipient only and contains information which is CONFIDENTIAL and which may be proprietary to ECI Telecom. If you have received this transmission in error, please inform us by e-mail, phone or fax, and then delete the original and all copies thereof.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to use native executable from one recipe during install in another recipe
2013-04-11 14:54 ` Michael Fainstein
@ 2013-04-11 20:37 ` Khem Raj
0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2013-04-11 20:37 UTC (permalink / raw)
To: Michael Fainstein; +Cc: yocto@yoctoproject.org
On Apr 11, 2013, at 7:54 AM, Michael Fainstein <Michael.Fainstein@ecitele.com> wrote:
>
>> -----Original Message-----
>> From: Eric Bénard [mailto:eric@eukrea.com]
>> Sent: יום ה 11 אפריל 2013 15:53
>> To: Michael Fainstein
>> Cc: yocto@yoctoproject.org
>> Subject: Re: [yocto] how to use native executable from one recipe during
>> install in another recipe
>>
>> Hi Michael,
>>
>> Le Thu, 11 Apr 2013 11:58:50 +0000,
>> Michael Fainstein <Michael.Fainstein@ecitele.com> a écrit :
>>> I have one recipe that inherits "native", builds native executable and
>> installs it in tmp/work/x86_64-linux/foo-native-1.00-r0/image/sbin/foo
>>>
>> do you have BBCLASSEXTEND = "native" in this recipe ?
>>
>> In the end, isn't the native binary installed in :
>> sysroots/x86_64-linux/usr/sbin/ ?
>>
>>> Another recipe depends on first one and needs to execute foo in its
>> do_install in order to install files in tmp/work/ppce500v2-fsl-linux-
>> gnuspe/foo-1.00-r0/image/etc/
>>>
>>> I can't find a way to do it. Any suggestions? How can I install foo in
>> first recipe to some common location that 2nd recipe can use? Is there such
>> standard location?
>>>
>> You should then be able to call it in the other recipe as IIRC this path
>> is in $PATH (and your recipe should depend on foo-native)
>>
>> Eric
>
> Thanks!
>
> I had a problem with do_populate_sysroot in native recipe due to bad generated path for do_populate_sysroot[sstate-inputdirs]. I overrode it in my recipe with
> do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}" and this recipe was build successfully. However, foo was not installed in sysroots/x86_64-linux.
> I changed DESTDIR in 'make install' from ${D} to ${SYSROOT_DESTDIR} and finally got foo were I need it.
>
I don't think installing into final sys root directly is a good idea. It should still do the staged install and then let populate_ssyroot do the step of installing
it to final sys root.
> Thanks,
> Michael
>
>
>
> This e-mail message is intended for the recipient only and contains information which is CONFIDENTIAL and which may be proprietary to ECI Telecom. If you have received this transmission in error, please inform us by e-mail, phone or fax, and then delete the original and all copies thereof.
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-11 20:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11 11:58 how to use native executable from one recipe during install in another recipe Michael Fainstein
2013-04-11 12:53 ` Eric Bénard
2013-04-11 14:54 ` Michael Fainstein
2013-04-11 20:37 ` Khem Raj
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.