[OE stablebranch] New c file will not recompile unless renamed?

Leon Woestenberg leon.woestenberg at gmail.com
Tue May 27 21:09:34 CEST 2008


Hello Ed,

On Tue, May 27, 2008 at 3:53 PM, Ed Troy <etroy at aeroconsult.com> wrote:
> This may be the way it is supposed to be, but I am not sure. I found that if
> I set up a bitbake file with a given name (xyz.bb) and it had an associated
> c file (xyz.c), I had a problem recompiling after a failed compile. In other
> words, I entered bitbake xyz.bb and it tried to compile, but failed because
> of some errors in xyz.c. I went and made changes to xyz.c and tried to

The compile task comes after the fetch, unpack and patch tasks.

All these tasks (fetch, unpack and patch) have completed succesfully,
and are not called again when you bake the same recipe.

So, effectively, your old source is tried to be compiled again, which
fails. You want the earlier tasks to be redone.

You need to look at the "rebuild" task" and "clean" task, see the documentation.

i.e. try bitbake xyz -c rebuild

Good luck,
-- 
Leon



More information about the Openembedded-stablebranch mailing list