Skip to contentSkip to conversation

waf.bbclass does not clean up properly

DISCUSSION Carlos Rafael Giani 2 participants 2 messages Sep 21, 2014 – Sep 22, 2014

lore
Share & tools
lore
#0 lore raw

Hello,

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.

#1 lore raw
Quoted 4 lines · Carlos Rafael Giani

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