All of lore.kernel.org
 help / color / mirror / Atom feed
* create custom package from local files
@ 2013-09-03 14:51 JC
       [not found] ` <CALMQ0YSTcxS-bjMRUzEP_RoTFsuwB1rYRAeL=FKrfV0M4L_ZZA@mail.gmail.com>
  0 siblings, 1 reply; 11+ messages in thread
From: JC @ 2013-09-03 14:51 UTC (permalink / raw)
  To: meta-freescale@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 3864 bytes --]

Hi,

I'm desperate to find the correct tutorial. I have a specific layer in 
which I can add packages using autotools and files download. However, I 
can't install a simple package as described here:

in my meta (called meta-oad, and inside the recipes-oad directory), I 
have the following package :
helloworld
helloworld/helloworld_1.1.bb
helloworld/helloworld/helloworld.c

helloworld/helloworld.c contains a very simple :
#include <stdio.h>
void main() {
printf ("hello world\n");
}

helloworld_1.1.bb contains:

DESCRIPTION = "Simple helloworld application"
SECTION = "examples"
LICENSE = "MIT"
PR = "r0"
#LIC_FILES_CHKSUM = "file://COPYING;md5=ae764cfda68da96df20af9fbf9fe49bd"
LIC_FILES_CHKSUM = 
"file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

SRC_URI[md5sum] = "22773a3d921c1920c658569c60987de8"
SRC_URI[sha256sum] = 
"9f6a307c5f76b2361970dce0c1d0bba0e0cd8ff17de0a6d217a4b8061feacd0e"



SRC_URI = "file://helloworld.c "

S = "${WORKDIR}"

do_compile() {
  ${CC} helloworld.c -o helloworld
  }

do_install() {
  install -d ${D}${bindir}
  install -m 0755 helloworld ${D}${bindir}
  }


I have changed my conf/bblayers.conf so that I have :
BBLAYERS = "/media/yocto/var_yocto/sources/poky/meta 
/media/yocto/var_yocto/sources/poky/meta-yocto 
/media/yocto/var_yocto/sources/meta-openembedded/meta-oe 
/media/yocto/var_yocto/sources/meta-fsl-arm 
/media/yocto/var_yocto/sources/meta-fsl-arm-extra 
/media/yocto/var_yocto/sources/meta-fsl-demos 
/media/yocto/var_yocto/sources/poky/meta-hob 
/media/yocto/var_yocto/sources/meta-oad   "

If I run bitbake helloworld, everything goes well (I suppose). But it 
only generates :
tmp/deploy/rpm/armv7a_vfp_neon/helloworld-dbg-1.1-r0.armv7a_vfp_neon.rpm
tmp/deploy/rpm/armv7a_vfp_neon/helloworld-dev-1.1-r0.armv7a_vfp_neon.rpm

So I do not have the helloworld package, only the -dbg and -dev. I can't 
install them with smart as it complains nothing provides helloworld. 
This is not the expected result from 
http://www.yoctoproject.org/docs/1.4.2/dev-manual/dev-manual.html#usingpoky-extend-addpkg-singlec

And worse, if I add the package to my conf/local.conf with
CORE_IMAGE_EXTRA_INSTALL = " helloworld "
or
IMAGE_INSTALL.append =" helloworld"
in both case the bitbake core-image-minimal (or any other image) fails 
with (I'm just giving the error part here)

NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_rootfs (see 
/media/yocto/var_yocto/build/tmp/work/varsommx6q-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.11657 
for further information)
ERROR: Logfile of failure stored in: 
/media/yocto/var_yocto/build/tmp/work/varsommx6q-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.11657
Log data follows:
| DEBUG: Executing shell function do_rootfs
| Note: configuring RPM platform settings
| Note: configuring RPM system provides
| Note: configuring RPM DB settings
| Note: configuring Smart settings

(snip)

| Error: helloworld not found in the base feeds (varsommx6q 
armv7a-vfp-neon armv7a-vfp armv7a armv6-vfp armv6 armv5e-vfp armv5e 
armv5-vfp armv5 armv4 arm noarch any all).
| ERROR: Function failed: do_rootfs (see 
/media/yocto/var_yocto/build/tmp/work/varsommx6q-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.11657 
for further information)
ERROR: Task 7 
(/media/yocto/var_yocto/sources/poky/meta/recipes-core/images/core-image-minimal.bb, 
do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1879 tasks of which 1878 didn't need to 
be rerun and 1 failed.
No currently running tasks (1878 of 1880)

Summary: 1 task failed:
/media/yocto/var_yocto/sources/poky/meta/recipes-core/images/core-image-minimal.bb, 
do_rootfs


I'd be grateful for any hint on this :)

Thanks,
Jay


[-- Attachment #2: Type: text/html, Size: 5398 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: create custom package from local files
       [not found] ` <CALMQ0YSTcxS-bjMRUzEP_RoTFsuwB1rYRAeL=FKrfV0M4L_ZZA@mail.gmail.com>
@ 2013-09-03 16:44   ` JC
  2013-09-03 17:32     ` Otavio Salvador
  0 siblings, 1 reply; 11+ messages in thread
From: JC @ 2013-09-03 16:44 UTC (permalink / raw)
  To: Leonardo Sandoval, meta-freescale@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 5237 bytes --]

Hi Leonardo,

Thanks. But unfortunately it fails the same error :(

I think the problem might be that helloworld-dbg and -dev are generated, 
but not "helloworld" ? But I don't know how to fix it

Jay


On 03/09/2013 18:25, Leonardo Sandoval wrote:
> Your metadata looks fine, can you add the package using the += 
> operator? CORE_IMAGE_EXTRA_INSTALL += "helloworld"
>
>
> On Tue, Sep 3, 2013 at 9:51 AM, JC <jc@vtkloud.com 
> <mailto:jc@vtkloud.com>> wrote:
>
>     Hi,
>
>     I'm desperate to find the correct tutorial. I have a specific
>     layer in which I can add packages using autotools and files
>     download. However, I can't install a simple package as described here:
>
>     in my meta (called meta-oad, and inside the recipes-oad
>     directory), I have the following package :
>     helloworld
>     helloworld/helloworld_1.1.bb <http://helloworld_1.1.bb>
>     helloworld/helloworld/helloworld.c
>
>     helloworld/helloworld.c contains a very simple :
>     #include <stdio.h>
>     void main() {
>     printf ("hello world\n");
>     }
>
>     helloworld_1.1.bb <http://helloworld_1.1.bb> contains:
>
>     DESCRIPTION = "Simple helloworld application"
>     SECTION = "examples"
>     LICENSE = "MIT"
>     PR = "r0"
>     #LIC_FILES_CHKSUM =
>     "file://COPYING;md5=ae764cfda68da96df20af9fbf9fe49bd"
>     LIC_FILES_CHKSUM =
>     "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
>
>     SRC_URI[md5sum] = "22773a3d921c1920c658569c60987de8"
>     SRC_URI[sha256sum] =
>     "9f6a307c5f76b2361970dce0c1d0bba0e0cd8ff17de0a6d217a4b8061feacd0e"
>
>
>
>     SRC_URI = "file://helloworld.c "
>
>     S = "${WORKDIR}"
>
>     do_compile() {
>      ${CC} helloworld.c -o helloworld
>      }
>
>     do_install() {
>      install -d ${D}${bindir}
>      install -m 0755 helloworld ${D}${bindir}
>      }
>
>
>     I have changed my conf/bblayers.conf so that I have :
>     BBLAYERS = "/media/yocto/var_yocto/sources/poky/meta
>     /media/yocto/var_yocto/sources/poky/meta-yocto
>     /media/yocto/var_yocto/sources/meta-openembedded/meta-oe
>     /media/yocto/var_yocto/sources/meta-fsl-arm
>     /media/yocto/var_yocto/sources/meta-fsl-arm-extra
>     /media/yocto/var_yocto/sources/meta-fsl-demos
>     /media/yocto/var_yocto/sources/poky/meta-hob
>     /media/yocto/var_yocto/sources/meta-oad   "
>
>     If I run bitbake helloworld, everything goes well (I suppose). But
>     it only generates :
>     tmp/deploy/rpm/armv7a_vfp_neon/helloworld-dbg-1.1-r0.armv7a_vfp_neon.rpm
>     tmp/deploy/rpm/armv7a_vfp_neon/helloworld-dev-1.1-r0.armv7a_vfp_neon.rpm
>
>     So I do not have the helloworld package, only the -dbg and -dev. I
>     can't install them with smart as it complains nothing provides
>     helloworld. This is not the expected result from
>     http://www.yoctoproject.org/docs/1.4.2/dev-manual/dev-manual.html#usingpoky-extend-addpkg-singlec
>
>     And worse, if I add the package to my conf/local.conf with
>     CORE_IMAGE_EXTRA_INSTALL = " helloworld "
>     or
>     IMAGE_INSTALL.append =" helloworld"
>     in both case the bitbake core-image-minimal (or any other image)
>     fails with (I'm just giving the error part here)
>
>     NOTE: Executing RunQueue Tasks
>     ERROR: Function failed: do_rootfs (see
>     /media/yocto/var_yocto/build/tmp/work/varsommx6q-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.11657
>     for further information)
>     ERROR: Logfile of failure stored in:
>     /media/yocto/var_yocto/build/tmp/work/varsommx6q-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.11657
>     Log data follows:
>     | DEBUG: Executing shell function do_rootfs
>     | Note: configuring RPM platform settings
>     | Note: configuring RPM system provides
>     | Note: configuring RPM DB settings
>     | Note: configuring Smart settings
>
>     (snip)
>
>     | Error: helloworld not found in the base feeds (varsommx6q
>     armv7a-vfp-neon armv7a-vfp armv7a armv6-vfp armv6 armv5e-vfp
>     armv5e armv5-vfp armv5 armv4 arm noarch any all).
>     | ERROR: Function failed: do_rootfs (see
>     /media/yocto/var_yocto/build/tmp/work/varsommx6q-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.11657
>     for further information)
>     ERROR: Task 7
>     (/media/yocto/var_yocto/sources/poky/meta/recipes-core/images/core-image-minimal.bb
>     <http://core-image-minimal.bb>, do_rootfs) failed with exit code '1'
>     NOTE: Tasks Summary: Attempted 1879 tasks of which 1878 didn't
>     need to be rerun and 1 failed.
>     No currently running tasks (1878 of 1880)
>
>     Summary: 1 task failed:
>     /media/yocto/var_yocto/sources/poky/meta/recipes-core/images/core-image-minimal.bb
>     <http://core-image-minimal.bb>, do_rootfs
>
>
>     I'd be grateful for any hint on this :)
>
>     Thanks,
>     Jay
>
>
>     _______________________________________________
>     meta-freescale mailing list
>     meta-freescale@yoctoproject.org
>     <mailto:meta-freescale@yoctoproject.org>
>     https://lists.yoctoproject.org/listinfo/meta-freescale
>
>


[-- Attachment #2: Type: text/html, Size: 8613 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: create custom package from local files
  2013-09-03 16:44   ` JC
@ 2013-09-03 17:32     ` Otavio Salvador
  2013-09-03 17:58       ` JC
  0 siblings, 1 reply; 11+ messages in thread
From: Otavio Salvador @ 2013-09-03 17:32 UTC (permalink / raw)
  To: JC; +Cc: meta-freescale@yoctoproject.org

On Tue, Sep 3, 2013 at 1:44 PM, JC <jc@vtkloud.com> wrote:
> Hi Leonardo,
>
> Thanks. But unfortunately it fails the same error :(
>
> I think the problem might be that helloworld-dbg and -dev are generated, but
> not "helloworld" ? But I don't know how to fix it

Did you check your work dir to see if the binary is installed right?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: create custom package from local files
  2013-09-03 17:32     ` Otavio Salvador
@ 2013-09-03 17:58       ` JC
  2013-09-03 18:00         ` Otavio Salvador
  0 siblings, 1 reply; 11+ messages in thread
From: JC @ 2013-09-03 17:58 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org

Hi Otavio

On 03/09/2013 19:32, Otavio Salvador wrote:
> On Tue, Sep 3, 2013 at 1:44 PM, JC <jc@vtkloud.com> wrote:
>> Hi Leonardo,
>>
>> Thanks. But unfortunately it fails the same error :(
>>
>> I think the problem might be that helloworld-dbg and -dev are generated, but
>> not "helloworld" ? But I don't know how to fix it
> Did you check your work dir to see if the binary is installed right?
>

I can't: with the image append, I can't generate an image :(




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: create custom package from local files
  2013-09-03 17:58       ` JC
@ 2013-09-03 18:00         ` Otavio Salvador
  2013-09-03 18:13           ` JC
  0 siblings, 1 reply; 11+ messages in thread
From: Otavio Salvador @ 2013-09-03 18:00 UTC (permalink / raw)
  To: JC; +Cc: meta-freescale@yoctoproject.org

On Tue, Sep 3, 2013 at 2:58 PM, JC <jc@vtkloud.com> wrote:
> Hi Otavio
>
>
> On 03/09/2013 19:32, Otavio Salvador wrote:
>>
>> On Tue, Sep 3, 2013 at 1:44 PM, JC <jc@vtkloud.com> wrote:
>>>
>>> Hi Leonardo,
>>>
>>> Thanks. But unfortunately it fails the same error :(
>>>
>>> I think the problem might be that helloworld-dbg and -dev are generated,
>>> but
>>> not "helloworld" ? But I don't know how to fix it
>>
>> Did you check your work dir to see if the binary is installed right?
>>
>
> I can't: with the image append, I can't generate an image :(

I mean the tmp/work directory; check if your helloword was installed
and build fine.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: create custom package from local files
  2013-09-03 18:00         ` Otavio Salvador
@ 2013-09-03 18:13           ` JC
  2013-09-03 18:15             ` Daiane Angolini
  0 siblings, 1 reply; 11+ messages in thread
From: JC @ 2013-09-03 18:13 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org

 > I mean the tmp/work directory; check if your helloword was installed 
and build fine.


Well, I would answer yes according to this?But nothing looks like a 
binary...

tmp/work$ find . -name *helloworld*

./armv7a-vfp-neon-poky-linux-gnueabi/helloworld
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/helloworld.c
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/helloworld.spec
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/license-destdir/helloworld
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/helloworld
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-dbg
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-locale
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-dev
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-doc
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-staticdev
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dbg.packaged
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dbg
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-locale
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dev
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-doc
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dev.packaged
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-staticdev
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-dbg
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-locale
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-dev
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-doc
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-staticdev
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/deploy-rpms/armv7a_vfp_neon/helloworld-dbg-1.1-r0.armv7a_vfp_neon.rpm
./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/deploy-rpms/armv7a_vfp_neon/helloworld-dev-1.1-r0.armv7a_vfp_neon.rpm


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: create custom package from local files
  2013-09-03 18:13           ` JC
@ 2013-09-03 18:15             ` Daiane Angolini
  2013-09-03 18:33               ` JC
  0 siblings, 1 reply; 11+ messages in thread
From: Daiane Angolini @ 2013-09-03 18:15 UTC (permalink / raw)
  To: JC; +Cc: meta-freescale@yoctoproject.org, Otavio Salvador

On 09/03/2013 03:13 PM, JC wrote:
>  > I mean the tmp/work directory; check if your helloword was installed
> and build fine.

When I tried the helloworld sample, my recipe was this:








DESCRIPTION = "simple Hello World program"
PR = "r0"
LICENSE = "GPLv2"

S = "${WORKDIR}"

LIC_FILES_CHKSUM = 
"file://hello_world.c;md5=7fd4c53c45caecabff42b45a5204546b"
SRC_URI = "file://hello_world.c"

do_compile() {
              ${CC} ${CFLAGS} ${LDFLAGS} -o hello_world hello_world.c
}

do_install() {
              install -d ${D}${bindir}/
              install -m 0755 ${S}/hello_world ${D}${bindir}/
}

FILES_${PN} = "${bindir}/hello_world"




Does this help?







>
>
> Well, I would answer yes according to this?But nothing looks like a
> binary...
>
> tmp/work$ find . -name *helloworld*
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/helloworld.c
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/helloworld.spec
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/license-destdir/helloworld
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/helloworld
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-dbg
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-locale
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-dev
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-doc
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-staticdev
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dbg.packaged
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dbg
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-locale
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dev
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-doc
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dev.packaged
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-staticdev
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-dbg
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-locale
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-dev
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-doc
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-staticdev
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/deploy-rpms/armv7a_vfp_neon/helloworld-dbg-1.1-r0.armv7a_vfp_neon.rpm
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/deploy-rpms/armv7a_vfp_neon/helloworld-dev-1.1-r0.armv7a_vfp_neon.rpm
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>


-- 
Daiane



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: create custom package from local files
  2013-09-03 18:15             ` Daiane Angolini
@ 2013-09-03 18:33               ` JC
  2013-09-03 18:43                 ` Otavio Salvador
  2013-09-03 19:15                 ` Gary Thomas
  0 siblings, 2 replies; 11+ messages in thread
From: JC @ 2013-09-03 18:33 UTC (permalink / raw)
  To: Daiane Angolini; +Cc: meta-freescale@yoctoproject.org, Otavio Salvador

Hi Daiane,

Thanks a lot. I appended my bb with yours (specially the PN part)

Unfortunately still the same error
  Error: helloworld not found in the base feeds (varsommx6q 
armv7a-vfp-neon armv7a-vfp armv7a armv6-vfp armv6 armv5e-vfp armv5e 
armv5-vfp armv5 armv4 arm noarch any all).

I still believe there's a problem with the helloworld rpm not being 
generated. Only -dev and -dbg. But I can't figure why.
On the same layer I have others recipes (but they use autotools,not the 
inline build & install from helloworld). All of them go well and install 
correctly...

Jay

On 03/09/2013 20:15, Daiane Angolini wrote:
> On 09/03/2013 03:13 PM, JC wrote:
>>  > I mean the tmp/work directory; check if your helloword was installed
>> and build fine.
>
> When I tried the helloworld sample, my recipe was this:
>
>
>
>
>
>
>
>
> DESCRIPTION = "simple Hello World program"
> PR = "r0"
> LICENSE = "GPLv2"
>
> S = "${WORKDIR}"
>
> LIC_FILES_CHKSUM = 
> "file://hello_world.c;md5=7fd4c53c45caecabff42b45a5204546b"
> SRC_URI = "file://hello_world.c"
>
> do_compile() {
>              ${CC} ${CFLAGS} ${LDFLAGS} -o hello_world hello_world.c
> }
>
> do_install() {
>              install -d ${D}${bindir}/
>              install -m 0755 ${S}/hello_world ${D}${bindir}/
> }
>
> FILES_${PN} = "${bindir}/hello_world"
>
>
>
>
> Does this help?
>
>
>
>
>
>
>
>>
>>
>> Well, I would answer yes according to this?But nothing looks like a
>> binary...
>>
>> tmp/work$ find . -name *helloworld*
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/helloworld.c
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/helloworld.spec
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/license-destdir/helloworld 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/helloworld 
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-dbg 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-locale 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-dev 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-doc 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-staticdev 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dbg.packaged 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dbg 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-locale 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dev 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-doc 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dev.packaged 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-staticdev 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-dbg 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-locale 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-dev 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-doc 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-staticdev 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/deploy-rpms/armv7a_vfp_neon/helloworld-dbg-1.1-r0.armv7a_vfp_neon.rpm 
>>
>>
>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/deploy-rpms/armv7a_vfp_neon/helloworld-dev-1.1-r0.armv7a_vfp_neon.rpm 
>>
>>
>> _______________________________________________
>> meta-freescale mailing list
>> meta-freescale@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/meta-freescale
>>
>
>



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: create custom package from local files
  2013-09-03 18:33               ` JC
@ 2013-09-03 18:43                 ` Otavio Salvador
  2013-09-03 19:20                   ` (SOLVED) " JC
  2013-09-03 19:15                 ` Gary Thomas
  1 sibling, 1 reply; 11+ messages in thread
From: Otavio Salvador @ 2013-09-03 18:43 UTC (permalink / raw)
  To: JC; +Cc: meta-freescale@yoctoproject.org

Hello,

Please don't top post as it makes harder to follow the discussion
(http://en.wikipedia.org/wiki/Posting_style#Top-posting).

On Tue, Sep 3, 2013 at 3:33 PM, JC <jc@vtkloud.com> wrote:
> Unfortunately still the same error
>
>  Error: helloworld not found in the base feeds (varsommx6q armv7a-vfp-neon
> armv7a-vfp armv7a armv6-vfp armv6 armv5e-vfp armv5e armv5-vfp armv5 armv4
> arm noarch any all).
>
> I still believe there's a problem with the helloworld rpm not being
> generated. Only -dev and -dbg. But I can't figure why.
> On the same layer I have others recipes (but they use autotools,not the
> inline build & install from helloworld). All of them go well and install
> correctly...

Please check the log.do_compile and log.do_install files so we can
understand what is going on.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: create custom package from local files
  2013-09-03 18:33               ` JC
  2013-09-03 18:43                 ` Otavio Salvador
@ 2013-09-03 19:15                 ` Gary Thomas
  1 sibling, 0 replies; 11+ messages in thread
From: Gary Thomas @ 2013-09-03 19:15 UTC (permalink / raw)
  To: meta-freescale

On 2013-09-03 12:33, JC wrote:
> Hi Daiane,
>
> Thanks a lot. I appended my bb with yours (specially the PN part)
>
> Unfortunately still the same error
>   Error: helloworld not found in the base feeds (varsommx6q armv7a-vfp-neon armv7a-vfp armv7a armv6-vfp armv6 armv5e-vfp armv5e armv5-vfp armv5 armv4 arm noarch any all).
>
> I still believe there's a problem with the helloworld rpm not being generated. Only -dev and -dbg. But I can't figure why.
> On the same layer I have others recipes (but they use autotools,not the inline build & install from helloworld). All of them go well and install correctly...
>
> Jay
>
> On 03/09/2013 20:15, Daiane Angolini wrote:
>> On 09/03/2013 03:13 PM, JC wrote:
>>>  > I mean the tmp/work directory; check if your helloword was installed
>>> and build fine.
>>
>> When I tried the helloworld sample, my recipe was this:
>>
>>
>>
>>
>>
>>
>>
>>
>> DESCRIPTION = "simple Hello World program"
>> PR = "r0"
>> LICENSE = "GPLv2"
>>
>> S = "${WORKDIR}"
>>
>> LIC_FILES_CHKSUM = "file://hello_world.c;md5=7fd4c53c45caecabff42b45a5204546b"
>> SRC_URI = "file://hello_world.c"
>>
>> do_compile() {
>>              ${CC} ${CFLAGS} ${LDFLAGS} -o hello_world hello_world.c
>> }
>>
>> do_install() {
>>              install -d ${D}${bindir}/
>>              install -m 0755 ${S}/hello_world ${D}${bindir}/
>> }
>>
>> FILES_${PN} = "${bindir}/hello_world"
>>
>>
>>
>>
>> Does this help?
>>
>>
>>
>>
>>
>>
>>
>>>
>>>
>>> Well, I would answer yes according to this?But nothing looks like a
>>> binary...
>>>
>>> tmp/work$ find . -name *helloworld*
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/helloworld.c
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/helloworld.spec
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/license-destdir/helloworld
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/helloworld
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-dbg
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-locale
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-dev
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-doc
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-staticdev
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dbg.packaged
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dbg
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-locale
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dev
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-doc
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dev.packaged
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-staticdev
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-dbg
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-locale
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-dev
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-doc
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-staticdev
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/deploy-rpms/armv7a_vfp_neon/helloworld-dbg-1.1-r0.armv7a_vfp_neon.rpm
>>>
>>> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/deploy-rpms/armv7a_vfp_neon/helloworld-dev-1.1-r0.armv7a_vfp_neon.rpm

What does 'find tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/image' show?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 11+ messages in thread

* (SOLVED) Re: create custom package from local files
  2013-09-03 18:43                 ` Otavio Salvador
@ 2013-09-03 19:20                   ` JC
  0 siblings, 0 replies; 11+ messages in thread
From: JC @ 2013-09-03 19:20 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org

On 03/09/2013 20:43, Otavio Salvador wrote:
> Hello,
>
> Please don't top post as it makes harder to follow the discussion
> (http://en.wikipedia.org/wiki/Posting_style#Top-posting).

Sorry... I usually don't :(

> Please check the log.do_compile and log.do_install files so we can 
> understand what is going on. 

Gooosh... Since you asked me, I realized that in temp there were no 
do_compile & do_install logs.. But it helped me to find  _one_ mistake. 
In my bb file there is :

do_compile() {
  ${CC} ${CFLAGS} ${LDFLAGS} helloworld.c -o helloworld
  }

do_install() {
  install -d ${D}${bindir}
  install -m 0755 helloworld ${D}${bindir}
  }

notice the " }" instead of "}" ? That's the issue!

I removed the space, ran a new "bitbake helloworld" and now I get a 
build & install. In my tmp work I now have the binary helloworld :)

In the deploy-rpms directory I now have:

helloworld-1.1-r0.armv7a_vfp_neon.rpm 
helloworld-dbg-1.1-r0.armv7a_vfp_neon.rpm 
helloworld-dev-1.1-r0.armv7a_vfp_neon.rpm

After that I ran a bitbake core-image-minimal and it's been 
successful... Shouldn't I have checked the logs were non existent, I 
would never have found that **** space !

Thanks, again, all of you, for your help and patience

Regards
Jay



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-09-03 19:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-03 14:51 create custom package from local files JC
     [not found] ` <CALMQ0YSTcxS-bjMRUzEP_RoTFsuwB1rYRAeL=FKrfV0M4L_ZZA@mail.gmail.com>
2013-09-03 16:44   ` JC
2013-09-03 17:32     ` Otavio Salvador
2013-09-03 17:58       ` JC
2013-09-03 18:00         ` Otavio Salvador
2013-09-03 18:13           ` JC
2013-09-03 18:15             ` Daiane Angolini
2013-09-03 18:33               ` JC
2013-09-03 18:43                 ` Otavio Salvador
2013-09-03 19:20                   ` (SOLVED) " JC
2013-09-03 19:15                 ` Gary Thomas

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.