* How do we get programs into sysroots?
@ 2011-08-28 20:07 Joel A Fernandes
2011-08-28 20:45 ` Chris Larson
0 siblings, 1 reply; 5+ messages in thread
From: Joel A Fernandes @ 2011-08-28 20:07 UTC (permalink / raw)
To: openembedded-devel,
Patches and discussions about the oe-core layer
Cc: Kridner, Jason, Kooi, Koen
I have added a recipe for mkcard script to oe-core/meta/meta-devtools
as follows:
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.
Appreciate any help or pointers to posts/documentation
Thanks,
Joel
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: How do we get programs into sysroots?
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
2011-08-28 23:01 ` Joel A Fernandes
0 siblings, 2 replies; 5+ messages in thread
From: Chris Larson @ 2011-08-28 20:45 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Cc: Kooi, Koen, openembedded-devel, Kridner, Jason
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.
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: How do we get programs into sysroots?
2011-08-28 20:45 ` Chris Larson
@ 2011-08-28 21:54 ` Richard Purdie
[not found] ` <CAD=GYpZv2NNBjDBMsAT_dik4FPBFr0vDqN2y414Uz0wN2DYNaw@mail.gmail.com>
2011-08-28 23:01 ` Joel A Fernandes
1 sibling, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2011-08-28 21:54 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Cc: Kridner, Jason, openembedded-devel, Kooi, Koen
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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: How do we get programs into sysroots?
2011-08-28 20:45 ` Chris Larson
2011-08-28 21:54 ` Richard Purdie
@ 2011-08-28 23:01 ` Joel A Fernandes
1 sibling, 0 replies; 5+ messages in thread
From: Joel A Fernandes @ 2011-08-28 23:01 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Cc: openembedded-devel, Kridner, Jason, Kooi, Koen
[-- Attachment #1: Type: text/plain, Size: 661 bytes --]
Thanks a lot, i'll try this.
Regards,
Joel
On Aug 28, 2011 3:46 PM, "Chris Larson" <clarson@kergoth.com> wrote:
On Sun, Aug 28, 2011 at 1:07 PM, Joel A Fernandes <agnel.joel@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...
[-- Attachment #2: Type: text/html, Size: 992 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-08-28 23:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
[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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox