[yocto] What's the purpose of "BDIR" in oe-buildenv-internal?

Scott Garman scott.a.garman at intel.com
Thu Oct 27 14:00:38 PDT 2011


On 10/27/2011 01:27 PM, Robert P. J. Day wrote:
> prepping to give a yocto talk to my local (ottawa) LUG next week, and
> was reviewing the logic of the setup starting with oe-init-build-env,
> and noticed in scripts/oe-buildenv-internal a test of the variable
> BDIR for the name of the build directory. but there's no mention of
> that variable in the calling oe-init-build-env, and i see no mention
> of it in the intro-level docs.
>
> clearly, one could use that shell env variable if one wanted to name
> the build directory to be used, but given that there's absolutely no
> explanation of it anywhere for a new user, what exactly is its purpose?
>
> rday

This allows you to specify a build directory that lives elsewhere on 
your filesystem, rather than in poky/build. This is handy in case you 
want to keep the build system source tree pristine.

Simply source the build init script with the desired build directory as 
an argument. I'm quite sure we have this documented, although BDIR isn't 
explicitly mentioned.

Scott

-- 
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center



More information about the yocto mailing list