* [PATCH] packagegroup-core-standalone-sdk-target: Add qemuwrapper-cross to target sysroot
@ 2014-01-22 15:48 David Nyström
2014-01-22 18:08 ` Otavio Salvador
0 siblings, 1 reply; 8+ messages in thread
From: David Nyström @ 2014-01-22 15:48 UTC (permalink / raw)
To: openembedded-core
Some postinstall scripts use the qemuwrapper script, so to be able to
offline install these packages outside of the bitbake environment, this script
needs to be exposed also in the SDK.
This to enable rootfs generation from a package repository using only a
package repository and the toolchain tarball.
See https://github.com/nysan/rootfs-sandbox for examples.
Signed-off-by: David Nyström <david.nystrom@enea.com>
---
.../packagegroups/packagegroup-core-standalone-sdk-target.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bb b/meta/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bb
index 57480b9..3325ef6 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bb
@@ -18,4 +18,5 @@ RDEPENDS_${PN} = "\
libstdc++ \
libstdc++-dev \
${LIBC_DEPENDENCIES} \
+ qemuwrapper-cross \
"
--
1.8.3.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] packagegroup-core-standalone-sdk-target: Add qemuwrapper-cross to target sysroot
2014-01-22 15:48 [PATCH] packagegroup-core-standalone-sdk-target: Add qemuwrapper-cross to target sysroot David Nyström
@ 2014-01-22 18:08 ` Otavio Salvador
2014-01-22 18:15 ` David Nyström
0 siblings, 1 reply; 8+ messages in thread
From: Otavio Salvador @ 2014-01-22 18:08 UTC (permalink / raw)
To: David Nyström; +Cc: Patches and discussions about the oe-core layer
On Wed, Jan 22, 2014 at 1:48 PM, David Nyström
<david.c.nystrom@gmail.com> wrote:
> Some postinstall scripts use the qemuwrapper script, so to be able to
> offline install these packages outside of the bitbake environment, this script
> needs to be exposed also in the SDK.
>
> This to enable rootfs generation from a package repository using only a
> package repository and the toolchain tarball.
>
> See https://github.com/nysan/rootfs-sandbox for examples.
>
> Signed-off-by: David Nyström <david.nystrom@enea.com>
Shouldn't this be a RDEPENDS of the postinst package?
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] packagegroup-core-standalone-sdk-target: Add qemuwrapper-cross to target sysroot
2014-01-22 18:08 ` Otavio Salvador
@ 2014-01-22 18:15 ` David Nyström
2014-01-22 18:24 ` Otavio Salvador
0 siblings, 1 reply; 8+ messages in thread
From: David Nyström @ 2014-01-22 18:15 UTC (permalink / raw)
To: Otavio Salvador; +Cc: Patches and discussions about the oe-core layer
On 2014-01-22 19:08, Otavio Salvador wrote:
> On Wed, Jan 22, 2014 at 1:48 PM, David Nyström
> <david.c.nystrom@gmail.com> wrote:
>> Some postinstall scripts use the qemuwrapper script, so to be able to
>> offline install these packages outside of the bitbake environment, this script
>> needs to be exposed also in the SDK.
>>
>> This to enable rootfs generation from a package repository using only a
>> package repository and the toolchain tarball.
>>
>> See https://github.com/nysan/rootfs-sandbox for examples.
>>
>> Signed-off-by: David Nyström <david.nystrom@enea.com>
>
> Shouldn't this be a RDEPENDS of the postinst package?
>
Do you mean a RDEPENDS on the run-postinsts package ?
In that case no.
When $D is set, postinstalls interpret this as a offline install,
some postinstalls call postinstall-intercepts, which in turn use the
qemuwrapper script _only_ if $D is set.
run-postinsts should be installed if there are postinstalls which failed
to run during the offline install.
Just to clarify this, the qemuwrapper-cross will only be installed to
the target SDK sysroot, never on the target rootfs.
Br,
David
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] packagegroup-core-standalone-sdk-target: Add qemuwrapper-cross to target sysroot
2014-01-22 18:15 ` David Nyström
@ 2014-01-22 18:24 ` Otavio Salvador
2014-01-22 18:29 ` David Nyström
0 siblings, 1 reply; 8+ messages in thread
From: Otavio Salvador @ 2014-01-22 18:24 UTC (permalink / raw)
To: David Nyström; +Cc: Patches and discussions about the oe-core layer
On Wed, Jan 22, 2014 at 4:15 PM, David Nyström <david.nystrom@enea.com> wrote:
> On 2014-01-22 19:08, Otavio Salvador wrote:
>>
>> On Wed, Jan 22, 2014 at 1:48 PM, David Nyström
>> <david.c.nystrom@gmail.com> wrote:
>>>
>>> Some postinstall scripts use the qemuwrapper script, so to be able to
>>> offline install these packages outside of the bitbake environment, this
>>> script
>>> needs to be exposed also in the SDK.
>>>
>>> This to enable rootfs generation from a package repository using only a
>>> package repository and the toolchain tarball.
>>>
>>> See https://github.com/nysan/rootfs-sandbox for examples.
>>>
>>> Signed-off-by: David Nyström <david.nystrom@enea.com>
>>
>>
>> Shouldn't this be a RDEPENDS of the postinst package?
>>
>
> Do you mean a RDEPENDS on the run-postinsts package ?
> In that case no.
>
> When $D is set, postinstalls interpret this as a offline install,
> some postinstalls call postinstall-intercepts, which in turn use the
> qemuwrapper script _only_ if $D is set.
>
> run-postinsts should be installed if there are postinstalls which failed to
> run during the offline install.
>
> Just to clarify this, the qemuwrapper-cross will only be installed to the
> target SDK sysroot, never on the target rootfs.
No; in postinstall-intercepts RDEPENDS.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] packagegroup-core-standalone-sdk-target: Add qemuwrapper-cross to target sysroot
2014-01-22 18:24 ` Otavio Salvador
@ 2014-01-22 18:29 ` David Nyström
2014-01-22 18:33 ` Otavio Salvador
0 siblings, 1 reply; 8+ messages in thread
From: David Nyström @ 2014-01-22 18:29 UTC (permalink / raw)
To: Otavio Salvador; +Cc: Patches and discussions about the oe-core layer
On ons 22 jan 2014 19:24:47, Otavio Salvador wrote:
> On Wed, Jan 22, 2014 at 4:15 PM, David Nyström <david.nystrom@enea.com> wrote:
>> On 2014-01-22 19:08, Otavio Salvador wrote:
>>>
>>> On Wed, Jan 22, 2014 at 1:48 PM, David Nyström
>>> <david.c.nystrom@gmail.com> wrote:
>>>>
>>>> Some postinstall scripts use the qemuwrapper script, so to be able to
>>>> offline install these packages outside of the bitbake environment, this
>>>> script
>>>> needs to be exposed also in the SDK.
>>>>
>>>> This to enable rootfs generation from a package repository using only a
>>>> package repository and the toolchain tarball.
>>>>
>>>> See https://github.com/nysan/rootfs-sandbox for examples.
>>>>
>>>> Signed-off-by: David Nyström <david.nystrom@enea.com>
>>>
>>>
>>> Shouldn't this be a RDEPENDS of the postinst package?
>>>
>>
>> Do you mean a RDEPENDS on the run-postinsts package ?
>> In that case no.
>>
>> When $D is set, postinstalls interpret this as a offline install,
>> some postinstalls call postinstall-intercepts, which in turn use the
>> qemuwrapper script _only_ if $D is set.
>>
>> run-postinsts should be installed if there are postinstalls which failed to
>> run during the offline install.
>>
>> Just to clarify this, the qemuwrapper-cross will only be installed to the
>> target SDK sysroot, never on the target rootfs.
>
> No; in postinstall-intercepts RDEPENDS.
>
Ah, now I get it.
If I do that, will it not end up on the target rootfs ?
Br,
David
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] packagegroup-core-standalone-sdk-target: Add qemuwrapper-cross to target sysroot
2014-01-22 18:29 ` David Nyström
@ 2014-01-22 18:33 ` Otavio Salvador
2014-01-23 8:26 ` David Nyström
0 siblings, 1 reply; 8+ messages in thread
From: Otavio Salvador @ 2014-01-22 18:33 UTC (permalink / raw)
To: David Nyström; +Cc: Patches and discussions about the oe-core layer
On Wed, Jan 22, 2014 at 4:29 PM, David Nyström
<david.c.nystrom@gmail.com> wrote:
> On ons 22 jan 2014 19:24:47, Otavio Salvador wrote:
>>
>> On Wed, Jan 22, 2014 at 4:15 PM, David Nyström <david.nystrom@enea.com>
>> wrote:
>>>
>>> On 2014-01-22 19:08, Otavio Salvador wrote:
>>>>
>>>>
>>>> On Wed, Jan 22, 2014 at 1:48 PM, David Nyström
>>>> <david.c.nystrom@gmail.com> wrote:
>>>>>
>>>>>
>>>>> Some postinstall scripts use the qemuwrapper script, so to be able to
>>>>> offline install these packages outside of the bitbake environment, this
>>>>> script
>>>>> needs to be exposed also in the SDK.
>>>>>
>>>>> This to enable rootfs generation from a package repository using only a
>>>>> package repository and the toolchain tarball.
>>>>>
>>>>> See https://github.com/nysan/rootfs-sandbox for examples.
>>>>>
>>>>> Signed-off-by: David Nyström <david.nystrom@enea.com>
>>>>
>>>>
>>>>
>>>> Shouldn't this be a RDEPENDS of the postinst package?
>>>>
>>>
>>> Do you mean a RDEPENDS on the run-postinsts package ?
>>> In that case no.
>>>
>>> When $D is set, postinstalls interpret this as a offline install,
>>> some postinstalls call postinstall-intercepts, which in turn use the
>>> qemuwrapper script _only_ if $D is set.
>>>
>>> run-postinsts should be installed if there are postinstalls which failed
>>> to
>>> run during the offline install.
>>>
>>> Just to clarify this, the qemuwrapper-cross will only be installed to the
>>> target SDK sysroot, never on the target rootfs.
>>
>>
>> No; in postinstall-intercepts RDEPENDS.
>>
>
> Ah, now I get it.
> If I do that, will it not end up on the target rootfs ?
I don't think so.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] packagegroup-core-standalone-sdk-target: Add qemuwrapper-cross to target sysroot
2014-01-22 18:33 ` Otavio Salvador
@ 2014-01-23 8:26 ` David Nyström
2014-01-23 10:52 ` Otavio Salvador
0 siblings, 1 reply; 8+ messages in thread
From: David Nyström @ 2014-01-23 8:26 UTC (permalink / raw)
To: Otavio Salvador; +Cc: Patches and discussions about the oe-core layer
On ons 22 jan 2014 19:33:22, Otavio Salvador wrote:
> On Wed, Jan 22, 2014 at 4:29 PM, David Nyström
> <david.c.nystrom@gmail.com> wrote:
>> On ons 22 jan 2014 19:24:47, Otavio Salvador wrote:
>>>
>>> On Wed, Jan 22, 2014 at 4:15 PM, David Nyström <david.nystrom@enea.com>
>>> wrote:
>>>>
>>>> On 2014-01-22 19:08, Otavio Salvador wrote:
>>>>>
>>>>>
>>>>> On Wed, Jan 22, 2014 at 1:48 PM, David Nyström
>>>>> <david.c.nystrom@gmail.com> wrote:
>>>>>>
>>>>>>
>>>>>> Some postinstall scripts use the qemuwrapper script, so to be able to
>>>>>> offline install these packages outside of the bitbake environment, this
>>>>>> script
>>>>>> needs to be exposed also in the SDK.
>>>>>>
>>>>>> This to enable rootfs generation from a package repository using only a
>>>>>> package repository and the toolchain tarball.
>>>>>>
>>>>>> See https://github.com/nysan/rootfs-sandbox for examples.
>>>>>>
>>>>>> Signed-off-by: David Nyström <david.nystrom@enea.com>
>>>>>
>>>>>
>>>>>
>>>>> Shouldn't this be a RDEPENDS of the postinst package?
>>>>>
>>>>
>>>> Do you mean a RDEPENDS on the run-postinsts package ?
>>>> In that case no.
>>>>
>>>> When $D is set, postinstalls interpret this as a offline install,
>>>> some postinstalls call postinstall-intercepts, which in turn use the
>>>> qemuwrapper script _only_ if $D is set.
>>>>
>>>> run-postinsts should be installed if there are postinstalls which failed
>>>> to
>>>> run during the offline install.
>>>>
>>>> Just to clarify this, the qemuwrapper-cross will only be installed to the
>>>> target SDK sysroot, never on the target rootfs.
>>>
>>>
>>> No; in postinstall-intercepts RDEPENDS.
>>>
>>
>> Ah, now I get it.
>> If I do that, will it not end up on the target rootfs ?
>
> I don't think so.
>
1. RDEPENDS_${PN} = "qemuwrapper-cross" wont work since TARGET_ARCH
detected in qemuwrapper-cross recipe will be SDKMACHINE when
compiled as nativesdk-qemuwrapper-cross. (I know, nativesdk-*-cross
should not be done).
I have not found a way to retrieve the real target architecture during
a nativesdk build.
Also, we can't add qemuwrapper to the nativesdk sysroot, since we may
have mutiple target sysroots which have different
qemuwrapper settings.
Br,
David
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] packagegroup-core-standalone-sdk-target: Add qemuwrapper-cross to target sysroot
2014-01-23 8:26 ` David Nyström
@ 2014-01-23 10:52 ` Otavio Salvador
0 siblings, 0 replies; 8+ messages in thread
From: Otavio Salvador @ 2014-01-23 10:52 UTC (permalink / raw)
To: David Nyström; +Cc: Patches and discussions about the oe-core layer
On Thu, Jan 23, 2014 at 6:26 AM, David Nyström
<david.c.nystrom@gmail.com> wrote:
> On ons 22 jan 2014 19:33:22, Otavio Salvador wrote:
>>
>> On Wed, Jan 22, 2014 at 4:29 PM, David Nyström
>> <david.c.nystrom@gmail.com> wrote:
>>>
>>> On ons 22 jan 2014 19:24:47, Otavio Salvador wrote:
>>>>
>>>>
>>>> On Wed, Jan 22, 2014 at 4:15 PM, David Nyström <david.nystrom@enea.com>
>>>> wrote:
>>>>>
>>>>>
>>>>> On 2014-01-22 19:08, Otavio Salvador wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Jan 22, 2014 at 1:48 PM, David Nyström
>>>>>> <david.c.nystrom@gmail.com> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Some postinstall scripts use the qemuwrapper script, so to be able to
>>>>>>> offline install these packages outside of the bitbake environment,
>>>>>>> this
>>>>>>> script
>>>>>>> needs to be exposed also in the SDK.
>>>>>>>
>>>>>>> This to enable rootfs generation from a package repository using only
>>>>>>> a
>>>>>>> package repository and the toolchain tarball.
>>>>>>>
>>>>>>> See https://github.com/nysan/rootfs-sandbox for examples.
>>>>>>>
>>>>>>> Signed-off-by: David Nyström <david.nystrom@enea.com>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Shouldn't this be a RDEPENDS of the postinst package?
>>>>>>
>>>>>
>>>>> Do you mean a RDEPENDS on the run-postinsts package ?
>>>>> In that case no.
>>>>>
>>>>> When $D is set, postinstalls interpret this as a offline install,
>>>>> some postinstalls call postinstall-intercepts, which in turn use the
>>>>> qemuwrapper script _only_ if $D is set.
>>>>>
>>>>> run-postinsts should be installed if there are postinstalls which
>>>>> failed
>>>>> to
>>>>> run during the offline install.
>>>>>
>>>>> Just to clarify this, the qemuwrapper-cross will only be installed to
>>>>> the
>>>>> target SDK sysroot, never on the target rootfs.
>>>>
>>>>
>>>>
>>>> No; in postinstall-intercepts RDEPENDS.
>>>>
>>>
>>> Ah, now I get it.
>>> If I do that, will it not end up on the target rootfs ?
>>
>>
>> I don't think so.
>>
>
> 1. RDEPENDS_${PN} = "qemuwrapper-cross" wont work since TARGET_ARCH detected
> in qemuwrapper-cross recipe will be SDKMACHINE when
> compiled as nativesdk-qemuwrapper-cross. (I know, nativesdk-*-cross should
> not be done).
> I have not found a way to retrieve the real target architecture during a
> nativesdk build.
>
> Also, we can't add qemuwrapper to the nativesdk sysroot, since we may have
> mutiple target sysroots which have different
> qemuwrapper settings.
I see. I didn't expect it but OK.
Sorry for the hassle :-(
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-01-23 10:52 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-22 15:48 [PATCH] packagegroup-core-standalone-sdk-target: Add qemuwrapper-cross to target sysroot David Nyström
2014-01-22 18:08 ` Otavio Salvador
2014-01-22 18:15 ` David Nyström
2014-01-22 18:24 ` Otavio Salvador
2014-01-22 18:29 ` David Nyström
2014-01-22 18:33 ` Otavio Salvador
2014-01-23 8:26 ` David Nyström
2014-01-23 10:52 ` Otavio Salvador
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.