[yocto] Cap'n Proto Recipe Help

Finn Carlsvi finncarlsvi at gmail.com
Tue Oct 13 12:13:58 PDT 2015


Hello,

I'm attempting to create a recipe for the Cap'n Proto serialization protocol
<https://lists.yoctoproject.org/pipermail/yocto/>, but am still a beginner
at Yocto.
The only link I have found regarding the subject (so far) is this google
group
<https://groups.google.com/forum/#!msg/capnproto/ZfHEXEVb7KM/hyOOlAKQAF0J>.

I created a standard recipe, linked to the source
https://capnproto.org/capnproto-c++-${PV}.tar.gz
<https://capnproto.org/capnproto-c++-$%7BPV%7D.tar.gz>

Based on the information from the google group link above, I changed the
do_configure:

do_configure() {
    export CAPNP=/usr/local/bin/capnp
    ${S}/configure --with-external-capnp -build=x86_64-linux
--host=arm-poky-linux-gnueabi --target=arm-poky-linux-gnueabi
}

>From what I understand, the reason is that I need an installed version of
Cap'n Proto on my Linux host in order to cross compile for ARM

Because external library files are used, I also added the lines:

INSANE_SKIP_${PN} += "install-host-path"
INSANE_SKIP_${PN} += "installed-vs-shipped"

Running *bitbake capnproto* works, but when I add the line:

IMAGE_INSTALL_append = " capnproto"

and try to run* bitbake core-image-base *I get the following error from the
do_rootfs log:

DEBUG: Executing python function rootfs_process_ignore
DEBUG: Python function rootfs_process_ignore finished
DEBUG: Executing python function rootfs_runtime_mapping
DEBUG: Python function rootfs_runtime_mapping finished
DEBUG: Executing python function do_rootfs
NOTE: configuring RPM platform settings
NOTE: configuring RPM system provides
NOTE: configuring RPM DB settings
NOTE: configuring Smart settings
NOTE: Note: adding Smart channel nitrogen6sx (105)
NOTE: Note: adding Smart channel cortexa9hf_vfp_neon_mx6sx (100)
NOTE: Note: adding Smart channel cortexa9hf_vfp_neon (95)
NOTE: Note: adding Smart channel all (90)
NOTE: adding Smart RPM DB channel
NOTE: Note: configuring RPM cross-install scriptlet_wrapper
NOTE: ###### Generate rootfs #######
NOTE: Executing
'/home/finn/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo
--dbpath
/home/finn/yocto/poky/build/tmp/work/nitrogen6sx-poky-linux-gnueabi/core-image-base/1.0-r0/rpmdb/cortexa9hf_vfp_neon_mx6sx
--update -q
/home/finn/yocto/poky/build/tmp/deploy/rpm/cortexa9hf_vfp_neon_mx6sx' ...
NOTE: Executing
'/home/finn/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo
--dbpath
/home/finn/yocto/poky/build/tmp/work/nitrogen6sx-poky-linux-gnueabi/core-image-base/1.0-r0/rpmdb/cortexa9hf_vfp_neon
--update -q /home/finn/yocto/poky/build/tmp/deploy/rpm/cortexa9hf_vfp_neon'
...
NOTE: Executing
'/home/finn/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo
--dbpath
/home/finn/yocto/poky/build/tmp/work/nitrogen6sx-poky-linux-gnueabi/core-image-base/1.0-r0/rpmdb/nitrogen6sx
--update -q /home/finn/yocto/poky/build/tmp/deploy/rpm/nitrogen6sx' ...
NOTE: Installing the following packages: capnproto psplash
packagegroup-base-extended run-postinsts packagegroup-core-boot
locale-base-en-us locale-base-en-gb
alsa-conf-1.0.28-r0 at cortexa9hf_vfp_neon_mx6sx
alsa-conf-base-1.0.28-r0 at cortexa9hf_vfp_neon_mx6sx
alsa-lib-1.0.28-r0 at cortexa9h .........
DEBUG: Python function do_rootfs finished
ERROR: Function failed: do_rootfs

I noticed that I have the cross compiled version of capnproto (capnp) in
the images folder in my work directory, but the packages-split/capnproto
directory is empy.

Thanks for any help, as soon as get it working I'd like to make it
available to others.

/ Finn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20151013/77f758e2/attachment.html>


More information about the yocto mailing list