[yocto] Hello world package error

Paul Barker paul at paulbarker.me.uk
Tue May 21 03:37:33 PDT 2013


On 21 May 2013 11:35, Paul Barker <paul at paulbarker.me.uk> wrote:
> On 21 May 2013 11:12, Zafrullah Syed <zafrullahmehdi at gmail.com> wrote:
>> I sourced oe-init-build-env and ran bitbake helloworld from build directory.
>> Then i get this error. previously, i ran bitbake core-image-minimal and was
>> successful. No idea where i am doing wrong?
>
> Ok, I guess that it's bitbake itself that throws the error then? Could
> you try adding 'inherit externalsrc' to the top of your recipe, that
> class is there to prevent do_fetch, do_unpack etc being called which
> may be failing as there isn't a SRC_URI set.
>

Ah no, there is a SRC_URI. But you don't really need it and it's
probably looking in the wrong place for hello.c. The externalsrc class
is designed for this case. See
https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/externalsrc.bbclass
or the equivalent file in your local clone of poky.

--
Paul Barker

Email: paul at paulbarker.me.uk
http://www.paulbarker.me.uk



More information about the yocto mailing list