Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Cc: "Kridner, Jason" <jdk@ti.com>,
	openembedded-devel@lists.openembedded.org, "Kooi,
	Koen" <k-kooi@ti.com>
Subject: Re: How do we get programs into sysroots?
Date: Sun, 28 Aug 2011 22:54:18 +0100	[thread overview]
Message-ID: <1314568458.5939.271.camel@rex> (raw)
In-Reply-To: <CABcZANm_0g3gSdxkE7-br1Ds2GMb0vENmGst7cdU--tOPDgw2A@mail.gmail.com>

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.joel@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





  reply	other threads:[~2011-08-28 21:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-28 20:07 How do we get programs into sysroots? Joel A Fernandes
2011-08-28 20:45 ` Chris Larson
2011-08-28 21:54   ` Richard Purdie [this message]
     [not found]     ` <CAD=GYpZv2NNBjDBMsAT_dik4FPBFr0vDqN2y414Uz0wN2DYNaw@mail.gmail.com>
     [not found]       ` <CAD=GYpa6xxUokfZyA-iYOhq==8uT=8iOy9LREJiNxyT5XECEyQ@mail.gmail.com>
     [not found]         ` <CAD=GYpbzoHjG+00ONZ5iuzi3g2TKA94znwGpTokb4kZNdUDtWQ@mail.gmail.com>
     [not found]           ` <CAD=GYpYqRwGq0_5xq3Jb=i_Hqp8WmD7fDBo=mp=oeAq5dtRMtg@mail.gmail.com>
     [not found]             ` <CAD=GYpaiuiKvEzLag03VXF1aaEgRbWsTZ4v0iVjv3pUE2aT5RA@mail.gmail.com>
     [not found]               ` <CAD=GYpa40GL3wBoLgsHQ8V8-9o=zmz9HTzJ97--U1Lxm0Q_=8g@mail.gmail.com>
2011-08-28 22:52                 ` Joel A Fernandes
2011-08-28 23:01   ` Joel A Fernandes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1314568458.5939.271.camel@rex \
    --to=richard.purdie@linuxfoundation.org \
    --cc=jdk@ti.com \
    --cc=k-kooi@ti.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox