[OE-core] [PATCH 1/6] scripts/bitbake: ensure user is in build directory

Paul Eggleton paul.eggleton at linux.intel.com
Thu Mar 15 23:09:16 UTC 2012


On Thursday 15 March 2012 01:30:31 Andreas Oberritter wrote:
> On 14.03.2012 01:36, Paul Eggleton wrote:
> > If the user is in any directory other than $BUILDDIR when the bitbake
> > wrapper script is run, then show an error an exit.
> 
> this patch broke my setup.

Ah, sorry about that.
 
> My $BUILDDIR points to tmp, so that pseudo doesn't get rebuilt for every
> machine. I have a shared tmp for many machines.

So a couple of things:

1) Unless I'm missing something you can share the same TMPDIR between multiple 
build directories to get the same result.
 
2) pseudo is a native package. It shouldn't be rebuilt when changing MACHINE. 
In fact I just verified by creating a different build directory with only 
MACHINE changed in the config, it is not rebuilt.

> BUILDDIR doesn't seem to have any other use than pointing to the
> 'pseudodone' file. I don't understand why it's required to run bitbake
> from there.

Well, it's required that bitbake is run from the build directory and when you 
use the setup script as intended that's where BUILDDIR points to. I hadn't 
anticipated that anyone would be changing BUILDDIR to point to anything other 
than the build dir, however I don't really think it's a good idea to support 
that.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre




More information about the Openembedded-core mailing list