[oe] native recipes use legacy staging.

Koen Kooi k.kooi at student.utwente.nl
Wed Mar 31 06:32:39 UTC 2010


-----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-----





More information about the Openembedded-devel mailing list