[yocto] headers only recipe

Paul Barker paul at paulbarker.me.uk
Tue May 20 15:12:27 PDT 2014


On 20 May 2014 22:44,  <ezekiel at 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: paul at paulbarker.me.uk
http://www.paulbarker.me.uk



More information about the yocto mailing list