From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ee0-f45.google.com (mail-ee0-f45.google.com [74.125.83.45]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B77F9E00715 for ; Tue, 3 Sep 2013 09:44:58 -0700 (PDT) Received: by mail-ee0-f45.google.com with SMTP id c50so3131236eek.4 for ; Tue, 03 Sep 2013 09:44:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=sONj0cMOK7KmqwLJ4qd3jzZHRGYnDvaBsqlt7/yezm8=; b=BrzGetC15fLWWBevmWC9+50SZEgFmuwqRbhfMcO1JekARTeJLaPHMJEfPa6RD+04m6 g2ehFXv6Yafgz9LgAPiWXCwDl5fz2dVNRXUHwv2sfY9EBvp6YECuJkbh50zxhW23W4rZ 8ZlSeDVntw5jLYO8LkL6g7ywPStlJgZmCAMeN7yt299wHxpklX7p1uFNsHmKPbo2vMM2 zcHZW5nwyuUDWBy1/MSZU8tkasWdcfr6AMD9qlQ/snnUzztGnREl7NBHH+aquE4T0hlg UPVoPMIB2+9kN1yRRjGNEmRHUbwJwv/79zRdmilQujEskXTcJkkQ4JOKpttNTwvGC//2 +0Ag== X-Gm-Message-State: ALoCoQkLPPFCe97Nlsb0CgWyKCLJmrSbuRpuoSqiGkho8Wx7KVvJ3Qf5KOdbObSfzsEhRgnKK0aJ X-Received: by 10.14.3.9 with SMTP id 9mr4591662eeg.72.1378226698230; Tue, 03 Sep 2013 09:44:58 -0700 (PDT) Received: from [172.24.63.121] ([94.103.137.126]) by mx.google.com with ESMTPSA id r48sm32878523eev.14.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Sep 2013 09:44:57 -0700 (PDT) Message-ID: <52261207.1000606@vtkloud.com> Date: Tue, 03 Sep 2013 18:44:55 +0200 From: JC User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: Leonardo Sandoval , "meta-freescale@yoctoproject.org" References: <5225F779.3060103@vtkloud.com> In-Reply-To: Subject: Re: create custom package from local files X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Sep 2013 16:45:01 -0000 Content-Type: multipart/alternative; boundary="------------060800030000060309030404" --------------060800030000060309030404 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 > 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 > helloworld/helloworld/helloworld.c > > helloworld/helloworld.c contains a very simple : > #include > 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 > > > _______________________________________________ > meta-freescale mailing list > meta-freescale@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/meta-freescale > > --------------060800030000060309030404 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
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> 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
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


_______________________________________________
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


   
--------------060800030000060309030404--