* QA issue with custom recipe
@ 2012-12-07 19:04 Sean Liming
0 siblings, 0 replies; 7+ messages in thread
From: Sean Liming @ 2012-12-07 19:04 UTC (permalink / raw)
To: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1130 bytes --]
I am trying to create a simple hello world recipe for a helloworld.c
file. The recipe almost works except it hits a QA issue: WARNING: QA
Issue: hello: Files/directories were installed but not shipped
The warning leads to a failure in the do_rootfs.
Base image: core-image-minimal, and here is the build output:
-----------------------
Build Configuration:
BB_VERSION = "1.16.0"
TARGET_ARCH = "i586"
TARGET_OS = "linux"
MACHINE = "cedartrail"
DISTRO = "poky"
DISTRO_VERSION = "1.3"
TUNE_FEATURES = "m32 core2"
TARGET_FPU = ""
meta
meta-yocto
meta-yocto-bsp
meta-intel
meta-cedartrail
meta-apps = "<unknown>:<unknown>"
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: QA Issue: hello: Files/directories were installed but not shipped
/usr
/usr/bin
ERROR: Function failed: do_rootfs
--------------------------
What am I missing in the recipe?
--
Regards,
Sean D. Liming
Owner
Annabooks
Cell: 858-774-3176
[-- Attachment #2: hello.bb --]
[-- Type: text/plain, Size: 591 bytes --]
DESCRIPTION = "Hello World Application"
LICENSE = "GPL-2"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
SECTION = "apps"
SRC_URI = "file:///home/sean/workspace/Hello/HelloYocto.c"
SRC_URI[md5sum] = "4f5c57b446cc08a7299d4dca58c49cda"
SRC_URI[sha256sum] = "f357d9214f9c585d8b3997c6a3038eb28b218de264a8bb39ae8474949ad2b98d"
S = "${WORKDIR}"
do_compile() {
${CC} ${CFLAGS} ${LDFLAGS} /home/sean/workspace/Hello/HelloYocto.c -o helloyocto
}
do_install() {
install -d ${D}${bindir}
install -m 0755 helloyocto ${D}{bindir}
}
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: QA issue with custom recipe
@ 2012-12-07 21:36 Jon Szymaniak
2012-12-08 3:27 ` Sean Liming
0 siblings, 1 reply; 7+ messages in thread
From: Jon Szymaniak @ 2012-12-07 21:36 UTC (permalink / raw)
To: sean.liming; +Cc: yocto
> I am trying to create a simple hello world recipe for a helloworld.c
> file. The recipe almost works except it hits a QA issue: WARNING: QA
> Issue: hello: Files/directories were installed but not shipped
>
> The warning leads to a failure in the do_rootfs.
>
> WARNING: QA Issue: hello: Files/directories were installed but not shipped
> /usr
> /usr/bin
> ERROR: Function failed: do_rootfs
> --------------------------
>
>
> What am I missing in the recipe?
>
> --
> Regards,
>
> Sean D. Liming
> Owner
> Annabooks
> Cell: 858-774-3176
>
>
> -------------- next part --------------
> DESCRIPTION = "Hello World Application"
> LICENSE = "GPL-2"
> LIC_FILES_CHKSUM =
> "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
>
> SECTION = "apps"
>
> SRC_URI = "file:///home/sean/workspace/Hello/HelloYocto.c"
> SRC_URI[md5sum] = "4f5c57b446cc08a7299d4dca58c49cda"
> SRC_URI[sha256sum] =
> "f357d9214f9c585d8b3997c6a3038eb28b218de264a8bb39ae8474949ad2b98d"
>
> S = "${WORKDIR}"
>
> do_compile() {
> ${CC} ${CFLAGS} ${LDFLAGS} /home/sean/workspace/Hello/HelloYocto.c -o
> helloyocto
> }
>
> do_install() {
> install -d ${D}${bindir}
> install -m 0755 helloyocto ${D}{bindir}
> }
>
>
Sean,
I think you need to note which files are installed by the packages
associated with this recipe, via:
FILES_${PN} = "${bindir}"
For more info on these, Check out the FILES and CONFFILES
variables in the Poky Reference Manual. I also found it helpful
to grep around some of the bigger recipes to see how they use
these. (I got a bit tripped up with some libraries with the sonames set!)
Regards,
Jon
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: QA issue with custom recipe
2012-12-07 21:36 Jon Szymaniak
@ 2012-12-08 3:27 ` Sean Liming
2012-12-08 15:05 ` Jon Szymaniak
0 siblings, 1 reply; 7+ messages in thread
From: Sean Liming @ 2012-12-08 3:27 UTC (permalink / raw)
To: 'Jon Szymaniak'; +Cc: yocto
> -----Original Message-----
> From: Jon Szymaniak [mailto:jon.szymaniak@gmail.com]
> Sent: Friday, December 07, 2012 1:36 PM
> To: sean.liming@annabooks.com
> Cc: yocto@yoctoproject.org
> Subject: Re: QA issue with custom recipe
>
> > I am trying to create a simple hello world recipe for a helloworld.c
> > file. The recipe almost works except it hits a QA issue: WARNING: QA
> > Issue: hello: Files/directories were installed but not shipped
> >
> > The warning leads to a failure in the do_rootfs.
> >
> > WARNING: QA Issue: hello: Files/directories were installed but not
shipped
> > /usr
> > /usr/bin
> > ERROR: Function failed: do_rootfs
> > --------------------------
> >
> >
> > What am I missing in the recipe?
> >
> > --
> > Regards,
> >
> > Sean D. Liming
> > Owner
> > Annabooks
> > Cell: 858-774-3176
> >
> >
> > -------------- next part -------------- DESCRIPTION = "Hello World
> > Application"
> > LICENSE = "GPL-2"
> > LIC_FILES_CHKSUM =
> > "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
> >
> > SECTION = "apps"
> >
> > SRC_URI = "file:///home/sean/workspace/Hello/HelloYocto.c"
> > SRC_URI[md5sum] = "4f5c57b446cc08a7299d4dca58c49cda"
> > SRC_URI[sha256sum] =
> >
> "f357d9214f9c585d8b3997c6a3038eb28b218de264a8bb39ae8474949ad2b98d"
> >
> > S = "${WORKDIR}"
> >
> > do_compile() {
> > ${CC} ${CFLAGS} ${LDFLAGS} /home/sean/workspace/Hello/HelloYocto.c -
> o
> > helloyocto }
> >
> > do_install() {
> > install -d ${D}${bindir}
> > install -m 0755 helloyocto ${D}{bindir} }
> >
> >
>
> Sean,
>
> I think you need to note which files are installed by the packages
> associated with this recipe, via:
>
> FILES_${PN} = "${bindir}"
>
> For more info on these, Check out the FILES and CONFFILES
> variables in the Poky Reference Manual. I also found it helpful
> to grep around some of the bigger recipes to see how they use
> these. (I got a bit tripped up with some libraries with the sonames set!)
>
>
> Regards,
> Jon
John,
Thank you. The Q/A Warning is gone. That is one step closer, but the package
is still not resolved.
-------------------------------------
Processing HelloYocto...
Unable to resolve package HelloYocto
ERROR: some packages were missing
ERROR: Function failed: do_rootfs (see
/home/sean/Yocto1.3/n2800/tmp/work/cedartrail-poky-linux/core-image-minimal-
1.0-r0/temp/log.do_rootfs.24265 for further information)
----------------------
Regards,
Sean Liming
Owner
Annabooks
Tel: 714-970-7523 / Cell: 858-774-3176
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: QA issue with custom recipe
2012-12-08 3:27 ` Sean Liming
@ 2012-12-08 15:05 ` Jon Szymaniak
2012-12-08 17:21 ` Sean Liming
0 siblings, 1 reply; 7+ messages in thread
From: Jon Szymaniak @ 2012-12-08 15:05 UTC (permalink / raw)
To: Sean Liming; +Cc: yocto
> > > I am trying to create a simple hello world recipe for a helloworld.c
> > > file. The recipe almost works except it hits a QA issue: WARNING: QA
> > > Issue: hello: Files/directories were installed but not shipped
> > >
> > > The warning leads to a failure in the do_rootfs.
> > >
> > > WARNING: QA Issue: hello: Files/directories were installed but not
> shipped
> > > /usr
> > > /usr/bin
> > > ERROR: Function failed: do_rootfs
> > > --------------------------
> > >
> > >
> > > What am I missing in the recipe?
> > >
> > > --
> > > Regards,
> > >
> > > Sean D. Liming
> > > Owner
> > > Annabooks
> > > Cell: 858-774-3176
> > >
> > >
> > > -------------- next part -------------- DESCRIPTION = "Hello World
> > > Application"
> > > LICENSE = "GPL-2"
> > > LIC_FILES_CHKSUM =
> > > "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
> > >
> > > SECTION = "apps"
> > >
> > > SRC_URI = "file:///home/sean/workspace/Hello/HelloYocto.c"
> > > SRC_URI[md5sum] = "4f5c57b446cc08a7299d4dca58c49cda"
> > > SRC_URI[sha256sum] =
> > >
> > "f357d9214f9c585d8b3997c6a3038eb28b218de264a8bb39ae8474949ad2b98d"
> > >
> > > S = "${WORKDIR}"
> > >
> > > do_compile() {
> > > ${CC} ${CFLAGS} ${LDFLAGS} /home/sean/workspace/Hello/HelloYocto.c -
> > o
> > > helloyocto }
> > >
> > > do_install() {
> > > install -d ${D}${bindir}
> > > install -m 0755 helloyocto ${D}{bindir} }
> > >
> > >
> >
> > Sean,
> >
> > I think you need to note which files are installed by the packages
> > associated with this recipe, via:
> >
> > FILES_${PN} = "${bindir}"
> >
> > For more info on these, Check out the FILES and CONFFILES
> > variables in the Poky Reference Manual. I also found it helpful
> > to grep around some of the bigger recipes to see how they use
> > these. (I got a bit tripped up with some libraries with the sonames
> > set!)
> >
> >
> > Regards,
> > Jon
>
>
>
> John,
>
> Thank you. The Q/A Warning is gone. That is one step closer, but the
> package
> is still not resolved.
>
> -------------------------------------
> Processing HelloYocto...
>
> Unable to resolve package HelloYocto
>
> ERROR: some packages were missing
>
> ERROR: Function failed: do_rootfs (see
>
> /home/sean/Yocto1.3/n2800/tmp/work/cedartrail-poky-linux/core-image-minimal-
> 1.0-r0/temp/log.do_rootfs.24265 for further information)
>
> ----------------------
>
>
>
> Regards,
>
> Sean Liming
> Owner
> Annabooks
> Tel: 714-970-7523 / Cell: 858-774-3176
>
Hi Sean,
What's the name of your hello world recipe? Try naming it hello-world.bb or
hello-world_0.1.0.bb (for a version 0.1.0) and appending hello-world to your
IMAGE_INSTALL.
I believe recipe names must be lower case and use '-' as a separator. An
underscore is used to separate the package name and the version number, as
I've shown above.
It looks like someone posted a great hello world example on the wiki, so be sure
to check that out:
https://wiki.yoctoproject.org/wiki/How_do_I#Q:_How_do_I_put_my_recipe_into_Yocto.3F
Take a look at meta-skeleton as well. I found that to provide a few very helpful
examples as well. :)
Cheers!
Jon
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: QA issue with custom recipe
2012-12-08 15:05 ` Jon Szymaniak
@ 2012-12-08 17:21 ` Sean Liming
2012-12-09 5:03 ` Sean Liming
0 siblings, 1 reply; 7+ messages in thread
From: Sean Liming @ 2012-12-08 17:21 UTC (permalink / raw)
To: 'Jon Szymaniak'; +Cc: yocto
> -----Original Message-----
> From: Jon Szymaniak [mailto:jon.szymaniak@gmail.com]
> Sent: Saturday, December 08, 2012 7:05 AM
> To: Sean Liming
> Cc: yocto@yoctoproject.org
> Subject: Re: QA issue with custom recipe
>
> > > > I am trying to create a simple hello world recipe for a
> > > > helloworld.c file. The recipe almost works except it hits a QA
> > > > issue: WARNING: QA
> > > > Issue: hello: Files/directories were installed but not shipped
> > > >
> > > > The warning leads to a failure in the do_rootfs.
> > > >
> > > > WARNING: QA Issue: hello: Files/directories were installed but not
> > shipped
> > > > /usr
> > > > /usr/bin
> > > > ERROR: Function failed: do_rootfs
> > > > --------------------------
> > > >
> > > >
> > > > What am I missing in the recipe?
> > > >
> > > > --
> > > > Regards,
> > > >
> > > > Sean D. Liming
> > > > Owner
> > > > Annabooks
> > > > Cell: 858-774-3176
> > > >
> > > >
> > > > -------------- next part -------------- DESCRIPTION = "Hello World
> > > > Application"
> > > > LICENSE = "GPL-2"
> > > > LIC_FILES_CHKSUM =
> > > >
> "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
> > > >
> > > > SECTION = "apps"
> > > >
> > > > SRC_URI = "file:///home/sean/workspace/Hello/HelloYocto.c"
> > > > SRC_URI[md5sum] = "4f5c57b446cc08a7299d4dca58c49cda"
> > > > SRC_URI[sha256sum] =
> > > >
> > >
> "f357d9214f9c585d8b3997c6a3038eb28b218de264a8bb39ae8474949ad2b98d"
> > > >
> > > > S = "${WORKDIR}"
> > > >
> > > > do_compile() {
> > > > ${CC} ${CFLAGS} ${LDFLAGS}
> > > > /home/sean/workspace/Hello/HelloYocto.c -
> > > o
> > > > helloyocto }
> > > >
> > > > do_install() {
> > > > install -d ${D}${bindir}
> > > > install -m 0755 helloyocto ${D}{bindir} }
> > > >
> > > >
> > >
> > > Sean,
> > >
> > > I think you need to note which files are installed by the packages
> > > associated with this recipe, via:
> > >
> > > FILES_${PN} = "${bindir}"
> > >
> > > For more info on these, Check out the FILES and CONFFILES variables
> > > in the Poky Reference Manual. I also found it helpful to grep around
> > > some of the bigger recipes to see how they use these. (I got a bit
> > > tripped up with some libraries with the sonames
> > > set!)
> > >
> > >
> > > Regards,
> > > Jon
> >
> >
> >
> > John,
> >
> > Thank you. The Q/A Warning is gone. That is one step closer, but the
> > package is still not resolved.
> >
> > -------------------------------------
> > Processing HelloYocto...
> >
> > Unable to resolve package HelloYocto
> >
> > ERROR: some packages were missing
> >
> > ERROR: Function failed: do_rootfs (see
> >
> > /home/sean/Yocto1.3/n2800/tmp/work/cedartrail-poky-linux/core-image-
> mi
> > nimal-
> > 1.0-r0/temp/log.do_rootfs.24265 for further information)
> >
> > ----------------------
> >
> >
> >
> > Regards,
> >
> > Sean Liming
> > Owner
> > Annabooks
> > Tel: 714-970-7523 / Cell: 858-774-3176
> >
>
> Hi Sean,
>
> What's the name of your hello world recipe? Try naming it hello-world.bb
or
> hello-world_0.1.0.bb (for a version 0.1.0) and appending hello-world to
your
> IMAGE_INSTALL.
>
> I believe recipe names must be lower case and use '-' as a separator. An
> underscore is used to separate the package name and the version number,
> as I've shown above.
>
> It looks like someone posted a great hello world example on the wiki, so
be
> sure to check that out:
>
> https://wiki.yoctoproject.org/wiki/How_do_I#Q:_How_do_I_put_my_recip
> e_into_Yocto.3F
>
> Take a look at meta-skeleton as well. I found that to provide a few very
> helpful examples as well. :)
>
> Cheers!
> Jon
Jon,
Good ideas. I tried the wiki how-to again, this time it worked with some
modifications, and I will tweak it to match the title rules. Now, I need to
get my own project working.
Thanks for the help.
Regards,
Sean Liming
Owner
Annabooks
Tel: 714-970-7523 / Cell: 858-774-3176
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: QA issue with custom recipe
2012-12-08 17:21 ` Sean Liming
@ 2012-12-09 5:03 ` Sean Liming
2012-12-09 5:21 ` Jon Szymaniak
0 siblings, 1 reply; 7+ messages in thread
From: Sean Liming @ 2012-12-09 5:03 UTC (permalink / raw)
To: 'Jon Szymaniak'; +Cc: yocto
> -----Original Message-----
> From: yocto-bounces@yoctoproject.org [mailto:yocto-
> bounces@yoctoproject.org] On Behalf Of Sean Liming
> Sent: Saturday, December 08, 2012 9:22 AM
> To: 'Jon Szymaniak'
> Cc: yocto@yoctoproject.org
> Subject: Re: [yocto] QA issue with custom recipe
>
>
> > -----Original Message-----
> > From: Jon Szymaniak [mailto:jon.szymaniak@gmail.com]
> > Sent: Saturday, December 08, 2012 7:05 AM
> > To: Sean Liming
> > Cc: yocto@yoctoproject.org
> > Subject: Re: QA issue with custom recipe
> >
> > > > > I am trying to create a simple hello world recipe for a
> > > > > helloworld.c file. The recipe almost works except it hits a QA
> > > > > issue: WARNING: QA
> > > > > Issue: hello: Files/directories were installed but not shipped
> > > > >
> > > > > The warning leads to a failure in the do_rootfs.
> > > > >
> > > > > WARNING: QA Issue: hello: Files/directories were installed but
> > > > > not
> > > shipped
> > > > > /usr
> > > > > /usr/bin
> > > > > ERROR: Function failed: do_rootfs
> > > > > --------------------------
> > > > >
> > > > >
> > > > > What am I missing in the recipe?
> > > > >
> > > > > --
> > > > > Regards,
> > > > >
> > > > > Sean D. Liming
> > > > > Owner
> > > > > Annabooks
> > > > > Cell: 858-774-3176
> > > > >
> > > > >
> > > > > -------------- next part -------------- DESCRIPTION = "Hello
> > > > > World Application"
> > > > > LICENSE = "GPL-2"
> > > > > LIC_FILES_CHKSUM =
> > > > >
> > "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
> > > > >
> > > > > SECTION = "apps"
> > > > >
> > > > > SRC_URI = "file:///home/sean/workspace/Hello/HelloYocto.c"
> > > > > SRC_URI[md5sum] = "4f5c57b446cc08a7299d4dca58c49cda"
> > > > > SRC_URI[sha256sum] =
> > > > >
> > > >
> >
> "f357d9214f9c585d8b3997c6a3038eb28b218de264a8bb39ae8474949ad2b98d"
> > > > >
> > > > > S = "${WORKDIR}"
> > > > >
> > > > > do_compile() {
> > > > > ${CC} ${CFLAGS} ${LDFLAGS}
> > > > > /home/sean/workspace/Hello/HelloYocto.c -
> > > > o
> > > > > helloyocto }
> > > > >
> > > > > do_install() {
> > > > > install -d ${D}${bindir}
> > > > > install -m 0755 helloyocto ${D}{bindir} }
> > > > >
> > > > >
> > > >
> > > > Sean,
> > > >
> > > > I think you need to note which files are installed by the packages
> > > > associated with this recipe, via:
> > > >
> > > > FILES_${PN} = "${bindir}"
> > > >
> > > > For more info on these, Check out the FILES and CONFFILES
> > > > variables in the Poky Reference Manual. I also found it helpful to
> > > > grep around some of the bigger recipes to see how they use these.
> > > > (I got a bit tripped up with some libraries with the sonames
> > > > set!)
> > > >
> > > >
> > > > Regards,
> > > > Jon
> > >
> > >
> > >
> > > John,
> > >
> > > Thank you. The Q/A Warning is gone. That is one step closer, but the
> > > package is still not resolved.
> > >
> > > -------------------------------------
> > > Processing HelloYocto...
> > >
> > > Unable to resolve package HelloYocto
> > >
> > > ERROR: some packages were missing
> > >
> > > ERROR: Function failed: do_rootfs (see
> > >
> > > /home/sean/Yocto1.3/n2800/tmp/work/cedartrail-poky-linux/core-
> image-
> > mi
> > > nimal-
> > > 1.0-r0/temp/log.do_rootfs.24265 for further information)
> > >
> > > ----------------------
> > >
> > >
> > >
> > > Regards,
> > >
> > > Sean Liming
> > > Owner
> > > Annabooks
> > > Tel: 714-970-7523 / Cell: 858-774-3176
> > >
> >
> > Hi Sean,
> >
> > What's the name of your hello world recipe? Try naming it
> > hello-world.bb
> or
> > hello-world_0.1.0.bb (for a version 0.1.0) and appending hello-world
> > to
> your
> > IMAGE_INSTALL.
> >
> > I believe recipe names must be lower case and use '-' as a separator.
> > An underscore is used to separate the package name and the version
> > number, as I've shown above.
> >
> > It looks like someone posted a great hello world example on the wiki,
> > so
> be
> > sure to check that out:
> >
> >
> https://wiki.yoctoproject.org/wiki/How_do_I#Q:_How_do_I_put_my_recip
> > e_into_Yocto.3F
> >
> > Take a look at meta-skeleton as well. I found that to provide a few
> > very helpful examples as well. :)
> >
> > Cheers!
> > Jon
>
> Jon,
>
> Good ideas. I tried the wiki how-to again, this time it worked with some
> modifications, and I will tweak it to match the title rules. Now, I need
to get
> my own project working.
>
> Thanks for the help.
>
> Regards,
>
> Sean Liming
> Owner
> Annabooks
> Tel: 714-970-7523 / Cell: 858-774-3176
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
Jon,
Thanks for your help. It was a path problem with the install call. Digging
into the working directory the copy from path needs to be specified.
Regards,
Sean Liming
Owner
Annabooks
Tel: 714-970-7523 / Cell: 858-774-3176
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: QA issue with custom recipe
2012-12-09 5:03 ` Sean Liming
@ 2012-12-09 5:21 ` Jon Szymaniak
0 siblings, 0 replies; 7+ messages in thread
From: Jon Szymaniak @ 2012-12-09 5:21 UTC (permalink / raw)
To: Sean Liming; +Cc: yocto
> Jon,
>
> Thanks for your help. It was a path problem with the install call. Digging
> into the working directory the copy from path needs to be specified.
>
> Regards,
>
> Sean Liming
> Owner
> Annabooks
> Tel: 714-970-7523 / Cell: 858-774-3176
>
Hi Sean,
Good find! Sorry, I missed that install issue earlier.
Note that if you're only installing a single file, you can make that a
one liner:
do_install() {
install -D -m 0755 ${S}/helloyocto ${D}/{bindir}/helloyocto
}
Best of luck! :)
- Jon
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-12-09 5:21 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-07 19:04 QA issue with custom recipe Sean Liming
-- strict thread matches above, loose matches on Subject: below --
2012-12-07 21:36 Jon Szymaniak
2012-12-08 3:27 ` Sean Liming
2012-12-08 15:05 ` Jon Szymaniak
2012-12-08 17:21 ` Sean Liming
2012-12-09 5:03 ` Sean Liming
2012-12-09 5:21 ` Jon Szymaniak
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.