Skip to contentSkip to conversation

native recipes use legacy staging.

DISCUSSION C Michael Sundius 2 participants 3 messages Mar 31, 2010

lore
Share & tools
lore
#0 lore raw

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() {
        :
}
#1 lore raw

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

Quoted 8 lines · C Michael Sundius

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() {
   :
}
Quoted 5 lines

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

Quoted 30 lines

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
}
Quoted 3 lines
do_stage() {
        :
}

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

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

#2 lore raw
Quoted 42 lines · Koen Kooi

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

Quoted 8 lines · C Michael Sundius

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() {
:
}

Quoted 5 lines

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
}
Quoted 7 lines

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