Commit Message

Instead of the class-specific variables OECMAKE_BUILDPATH and
OECMAKE_SOURCEPATH, just use ${B} and ${S}.
If these two paths are different, delete any existing ${B} before running a
build so that previous builds don't taint the current build.
Note that OECMAKE_SOURCEPATH and OECMAKE_BUILDPATH are not respected at all, so
recipes that manually set these in the past will need to be updated to either
use something along the lines of separatebuilddir.inc or set B themselves.
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
meta/classes/cmake.bbclass | 31 +++++++------------------------
1 file changed, 7 insertions(+), 24 deletions(-)

On Thu, 2013-12-05 at 17:18 -0500, Philip Balister wrote:
> On 12/04/2013 07:38 PM, Ross Burton wrote:> > Instead of the class-specific variables OECMAKE_BUILDPATH and> > OECMAKE_SOURCEPATH, just use ${B} and ${S}.> > > > If these two paths are different, delete any existing ${B} before running a> > build so that previous builds don't taint the current build.> > > > Note that OECMAKE_SOURCEPATH and OECMAKE_BUILDPATH are not respected at all, so> > recipes that manually set these in the past will need to be updated to either> > use something along the lines of separatebuilddir.inc or set B themselves.> > I'm carrying EXTRA_OEMAKE = "-C $(OECMAKE_BUILDPATH)" in recipes. It> looks like this removes the need for this also? My cmake invocation is> rusty :)
do_compile runs by default in ${B} so in most cases that shouldn't be
needed. The new equivalent would be "-C ${B}" but that shouldn't be
needed in most cases.
Cheers,
Richard