Re: [oe] [OE-core] How do we get programs into sysroots?

2011-08-28 Thread Chris Larson
On Sun, Aug 28, 2011 at 1:07 PM, Joel A Fernandes agnel.j...@gmail.com wrote:
 DESCRIPTION = A tool to format SD Cards correctly
 LICENSE = GPLv2
 LIC_FILES_CHKSUM = file://COPYING;md5=393a5ca445f6965873eca0259a17f833
 SECTION = base
 SRC_URI = file://mkcard.txt \
           file://COPYING.patch
 PR = r3

 do_configure() {
        install -m 0644 ${WORKDIR}/mkcard.txt ${S}/
 }

 do_install() {
        install -d ${D}${base_sbindir}
        install -m 0755 ${S}/mkcard.txt ${D}${base_sbindir}/mkcard
 }

 BBCLASSEXTEND = native
 ---

 Everything works fine, but I don't see 'mkcard' in /sbin in sysroots
 directory. I'd like to install it there. I tried looking at other
 scripts to see the right way to do it but I'm not sure of a clean way
 to do so. I looked at the staging.bbclass and it seems to only pickup
 libs and headers.

When using a custom do_install, with BBCLASSEXTEND, afaik you need to
set NATIVE_INSTALL_WORKS = 1 to get its files into the sysroot for
the native version.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


Re: [oe] [OE-core] How do we get programs into sysroots?

2011-08-28 Thread Richard Purdie
On Sun, 2011-08-28 at 13:45 -0700, Chris Larson wrote:
 On Sun, Aug 28, 2011 at 1:07 PM, Joel A Fernandes agnel.j...@gmail.com 
 wrote:
  DESCRIPTION = A tool to format SD Cards correctly
  LICENSE = GPLv2
  LIC_FILES_CHKSUM = file://COPYING;md5=393a5ca445f6965873eca0259a17f833
  SECTION = base
  SRC_URI = file://mkcard.txt \
file://COPYING.patch
  PR = r3
 
  do_configure() {
 install -m 0644 ${WORKDIR}/mkcard.txt ${S}/
  }
 
  do_install() {
 install -d ${D}${base_sbindir}
 install -m 0755 ${S}/mkcard.txt ${D}${base_sbindir}/mkcard
  }
 
  BBCLASSEXTEND = native
  ---
 
  Everything works fine, but I don't see 'mkcard' in /sbin in sysroots
  directory. I'd like to install it there. I tried looking at other
  scripts to see the right way to do it but I'm not sure of a clean way
  to do so. I looked at the staging.bbclass and it seems to only pickup
  libs and headers.
 
 When using a custom do_install, with BBCLASSEXTEND, afaik you need to
 set NATIVE_INSTALL_WORKS = 1 to get its files into the sysroot for
 the native version.

For OE-dev you do but this shouldn't be necessary any more with OE-Core
since there is no legacy staging.

In this case I wonder if the -native version or the target version is
being run? We only install libs and headers for the target version but
the binaries should be present for the -native recipe and be installed
to the native sysroot...

Cheers,

Richard



___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


Re: [oe] [OE-core] How do we get programs into sysroots?

2011-08-28 Thread Joel A Fernandes
Hi Richard

Thanks for your email.

Forgive the top post due to the limitations of my phone.

This script should run as native. In this case what steps do we take to
ensure the binaries get installed to the native sysroots path?

Thanks,
Joel

On Aug 28, 2011 4:54 PM, Richard Purdie 
richard.pur...@linuxfoundation.org wrote:

On Sun, 2011-08-28 at 13:45 -0700, Chris Larson wrote:
 On Sun, Aug 28, 2011 at 1:07 PM, Joel A Fer...
For OE-dev you do but this shouldn't be necessary any more with OE-Core
since there is no legacy staging.

In this case I wonder if the -native version or the target version is
being run? We only install libs and headers for the target version but
the binaries should be present for the -native recipe and be installed
to the native sysroot...

Cheers,

Richard




___
Openembedded-core mailing list
Openembedded-core@...
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


Re: [oe] [OE-core] How do we get programs into sysroots?

2011-08-28 Thread Joel A Fernandes
Thanks a lot, i'll try this.

Regards,
Joel

On Aug 28, 2011 3:46 PM, Chris Larson clar...@kergoth.com wrote:

On Sun, Aug 28, 2011 at 1:07 PM, Joel A Fernandes agnel.j...@gmail.com
wrote:
 DESCRIPTION = A t...
When using a custom do_install, with BBCLASSEXTEND, afaik you need to
set NATIVE_INSTALL_WORKS = 1 to get its files into the sysroot for
the native version.
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics


___
Openembedded-core mailing list
Openembedded-core@li...
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel