brilliant, works like a charm.
thanks,
-Ezekiel
-------- Original Message --------
Subject: Re: [yocto] headers only recipe
From: Paul Barker <p...@paulbarker.me.uk>
Date: Tue, May 20, 2014 3:12 pm
To: ezek...@sanborndeasis.net
Cc: Yocto discussion list <yocto@yoctoproject.org>
On 20 May 2014 22:44, <ezek...@sanborndeasis.net> wrote:
> still new to yocto/oe...
>
> I have a recipe that only produces dev headers (macros, constants, etc).
> Builds fine, and recipes dependent on these headers are fine as well. The
> problem is that only a dev and dbg ipkg get produced for deploy (makes
> sense, there is no device side content). But then do_rootfs fails because it
> expects an ipkg for this recipe
>
> opkg_install_cmd: Cannot install package foobar
>
> I am working around it by throwing down a dummy conf file as output from
> this recipe so there is something to build an ipkg around. But how do I
> indicate that there is no normal device side content from this recipe.
>
A simple trick is to add the following line to your recipe file to
allow the package to still be created even if it is empty:
ALLOW_EMPTY_${PN} = "1".
${PN} expands to the name of the main package so that should suffice,
otherwise you could explicitly give the package name, for example
ALLOW_EMPTY_foobar.
Hope this helps,
--
Paul Barker
Email: p...@paulbarker.me.uk
http://www.paulbarker.me.uk
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto