[OE-core] waf.bbclass does not clean up properly

Burton, Ross ross.burton at intel.com
Mon Sep 22 09:41:38 UTC 2014


On 21 September 2014 08:35, Carlos Rafael Giani <dv at pseudoterminal.org> wrote:
> is there a reason why the waf bbclass does not call "./waf distclean" in a
> do_clean() function?
> As a result, the out-of-tree build directory is around even after performing
> a bitbake -c clean or bitbake -c cleansstate call.

It sounds like your recipe is doing out of tree builds wrong, because
waf.bbclass doesn't support them.

There's a variable for "build tree", and it's $B, and $B is wiped on
clean.    autotools.bbclass and cmake.bbclass use $B for the location
of out-of-tree builds, and waf.bbclass should respect it too.

As you use waf and out-of-tree builds, would you be able to fix the class?

Ross



More information about the Openembedded-core mailing list