All of lore.kernel.org
 help / color / mirror / Atom feed
From: JC <jc@vtkloud.com>
To: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: create custom package from local files
Date: Tue, 03 Sep 2013 16:51:37 +0200	[thread overview]
Message-ID: <5225F779.3060103@vtkloud.com> (raw)

[-- 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 --]

             reply	other threads:[~2013-09-03 14:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-03 14:51 JC [this message]
     [not found] ` <CALMQ0YSTcxS-bjMRUzEP_RoTFsuwB1rYRAeL=FKrfV0M4L_ZZA@mail.gmail.com>
2013-09-03 16:44   ` create custom package from local files 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

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=5225F779.3060103@vtkloud.com \
    --to=jc@vtkloud.com \
    --cc=meta-freescale@yoctoproject.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 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.