All of lore.kernel.org
 help / color / mirror / Atom feed
* native recipes use legacy staging.
@ 2010-03-31  0:57 C Michael Sundius
  2010-03-31  6:32 ` Koen Kooi
  0 siblings, 1 reply; 3+ messages in thread
From: C Michael Sundius @ 2010-03-31  0:57 UTC (permalink / raw)
  To: openembedded-devel

why does the native.bbclass force the use of legacy staging?

also how can I override this. I tried go use create my own

do_stage() {
   :
}

function in my recipe, but the one in the class was still used.

My issue is that my install function does not use make at all, nor autotools

so the do_stage_native() call [from do_stage() ] fails.

thanks

see my [smiple] recipe attached:



PR = "031110"

BBCLASSEXTEND = "native nativesdk"

#SRC_URI = "http://sauscupoe01.cisco.com/cisco/mkimage-tools-${PR}.tar.gz"
SRC_URI = "file:///home/sundism/src/mkimage-tools"

S = ${WORKDIR}/mkimage-tools

do_compile() {
        :
}


do_install() {
        install  -m 0755 -d ${STAGING_BINDIR}
        install  -m 0755 ${S}/bin/imgen ${bindir}/imgen
        install  -m 0755 -d ${datadir}
        install  -m 0755 -d ${datadir}/LxLoad
        install  -m 0644 ${S}/share/LxLoad/LxLoad2_cronus.img \
                ${datadir}/LxLoad/LxLoad2_cronus.img
}

do_stage() {
        :
}


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

* Re: native recipes use legacy staging.
  2010-03-31  0:57 native recipes use legacy staging C Michael Sundius
@ 2010-03-31  6:32 ` Koen Kooi
  2010-03-31 17:10   ` C Michael Sundius
  0 siblings, 1 reply; 3+ messages in thread
From: Koen Kooi @ 2010-03-31  6:32 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 31-03-10 02:57, C Michael Sundius wrote:
> why does the native.bbclass force the use of legacy staging?
> 
> also how can I override this. I tried go use create my own
> 
> do_stage() {
>    :
> }
> 
> function in my recipe, but the one in the class was still used.
> 
> My issue is that my install function does not use make at all, nor autotools
> 
> so the do_stage_native() call [from do_stage() ] fails.

Try:

PR = "031110"

BBCLASSEXTEND = "native nativesdk"

SRC_URI = "file:///home/sundism/src/mkimage-tools"

S = ${WORKDIR}/mkimage-tools

do_compile() {
        :
}


do_install() {
        install  -m 0755 -d ${D}${bindir}
        install  -m 0755 ${S}/bin/imgen ${D}${bindir}/imgen
        install  -m 0755 -d ${D}${datadir}
        install  -m 0755 -d ${D}${datadir}/LxLoad
        install  -m 0644 ${S}/share/LxLoad/LxLoad2_cronus.img \
                ${D}${datadir}/LxLoad/LxLoad2_cronus.img
}

NATIVE_INSTALL_WORKS = "1"

regards,

Koen



> 
> thanks
> 
> see my [smiple] recipe attached:
> 
> 
> 
> PR = "031110"
> 
> BBCLASSEXTEND = "native nativesdk"
> 
> #SRC_URI = "http://sauscupoe01.cisco.com/cisco/mkimage-tools-${PR}.tar.gz"
> SRC_URI = "file:///home/sundism/src/mkimage-tools"
> 
> S = ${WORKDIR}/mkimage-tools
> 
> do_compile() {
>         :
> }
> 
> 
> do_install() {
>         install  -m 0755 -d ${STAGING_BINDIR}
>         install  -m 0755 ${S}/bin/imgen ${bindir}/imgen
>         install  -m 0755 -d ${datadir}
>         install  -m 0755 -d ${datadir}/LxLoad
>         install  -m 0644 ${S}/share/LxLoad/LxLoad2_cronus.img \
>                 ${datadir}/LxLoad/LxLoad2_cronus.img
> }
> 
> do_stage() {
>         :
> }

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLsuyGMkyGM64RGpERAio6AJ9PjMeb+iq2Am3tjN+P+19s0ptidACfYTEs
FYAeax4moDD7wBXztg7mpTQ=
=ETCW
-----END PGP SIGNATURE-----




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

* Re: native recipes use legacy staging.
  2010-03-31  6:32 ` Koen Kooi
@ 2010-03-31 17:10   ` C Michael Sundius
  0 siblings, 0 replies; 3+ messages in thread
From: C Michael Sundius @ 2010-03-31 17:10 UTC (permalink / raw)
  To: openembedded-devel


On Mar 30, 2010, at 11:32 PM, Koen Kooi wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 31-03-10 02:57, C Michael Sundius wrote:
>> why does the native.bbclass force the use of legacy staging?
>>
>> also how can I override this. I tried go use create my own
>>
>> do_stage() {
>>   :
>> }
>>
>> function in my recipe, but the one in the class was still used.
>>
>> My issue is that my install function does not use make at all, nor  
>> autotools
>>
>> so the do_stage_native() call [from do_stage() ] fails.
>
> Try:
>
> PR = "031110"
>
> BBCLASSEXTEND = "native nativesdk"
>
> SRC_URI = "file:///home/sundism/src/mkimage-tools"
>
> S = ${WORKDIR}/mkimage-tools
>
> do_compile() {
>        :
> }
>
>
> do_install() {
>        install  -m 0755 -d ${D}${bindir}
>        install  -m 0755 ${S}/bin/imgen ${D}${bindir}/imgen
>        install  -m 0755 -d ${D}${datadir}
>        install  -m 0755 -d ${D}${datadir}/LxLoad
>        install  -m 0644 ${S}/share/LxLoad/LxLoad2_cronus.img \
>                ${D}${datadir}/LxLoad/LxLoad2_cronus.img
> }
>
> NATIVE_INSTALL_WORKS = "1"
>
> regards,
>
> Koen
>
>
Koen,

Thanks for your help, that worked perfectly.

Also it seems as though for standard installs, the files that are  
installed are split up into foo, foo-dbg, foo-devel etc. where as with  
a native or a nativesdk you have no control on how much of everthing  
gets installed. Is that so or is there a way to pick and choose what  
gets put into the nativesdk.

Finally, for a native build, I suspect that everything that is  
installed will be packaged up in the packaged staging package. whereas  
for the nativesdk no packaging is done, is that right? is there a way  
to make it package the sdk up in the end (short of running tar/rmp/ 
ipkg yourself).

thanks





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

end of thread, other threads:[~2010-03-31 17:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-31  0:57 native recipes use legacy staging C Michael Sundius
2010-03-31  6:32 ` Koen Kooi
2010-03-31 17:10   ` C Michael Sundius

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.