[oe] Getting Started -Makefile

Paul Sokolovsky pmiscml at gmail.com
Wed Nov 21 02:24:05 UTC 2007


Hello Tim,

Tuesday, November 20, 2007, 7:57:51 PM, you wrote:

> pHilipp Zabel wrote:
>> $ cat ~/bin/bitbake
>> #!/bin/sh
>> export OEDIR=${OEDIR:-$PWD}
>> export BBPATH=${BBPATH:-$OEDIR/build:$OEDIR/openembedded}
>> /usr/local/bin/bitbake $*

> This is nice.  Can someone tell me why this isn't
> the default behavior of bitbake now?  (I'm honestly
> not trolling :-)   There must be some good reason
> to allow bitbake to be used outside of a build
> directory.  Make (which bitbake resembles
> in some aspects), is sensitive to it's starting
> directory.  Why not bitbake?

   This is attempt to put it backwards. It's not to allow bitbake
to be used outside of build directory, it's to allow *source* be
outside build directory. Real hardcore make users might have heard
about VPATH envvar and out-of-source building.

   Why not default? Well, because what make builds is usually ones to
tens of megabytes, while bitbake builds tens to hundreds gigabytes.
Those who're brave to undertake such endeavour, are expected to get
some understanding of what they're going to be thru by learning and
doing some setup with their own hands. I'm sure that was original
motivation why bitbake and OE was setup that way. Of course, that was
quite some time ago, when disks were much smaller. Let's see if this
will change now.


>  -- Tim


-- 
Best regards,
 Paul                            mailto:pmiscml at gmail.com





More information about the Openembedded-devel mailing list