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

VIJAY KUMAR vijaykumar.pulluri at gmail.com
Fri Mar 16 11:55:33 UTC 2012


Hi paul,

   Iam not specialist in this. I am just following the steps mentioned here

     http://icedtea.classpath.org/wiki/CrossCompileOECoreTutorial

I am building from this path  vj at ubuntu:/host/coreembedded/oe-core/build$
and it contains pseudodone file.

and in vj at ubuntu:/host/coreembedded/oe-core/build/conf local.conf exits..

and the same is calling bitbake which is present in scripts..

Regards,
VJ

On Fri, Mar 16, 2012 at 4:26 PM, Paul Eggleton <
paul.eggleton at linux.intel.com> wrote:

> On Friday 16 March 2012 01:20:44 Andreas Oberritter wrote:
> > Sorry, I messed up some details. In fact, pseudo-native doesn't get
> > rebuilt, but bitbake pseudo-native still gets executed for every
> > machine, unless $BUILDDIR/pseudodone is present and contains
> > PSEUDOBINDIR. This just wastes time and confuses users who receive a
> > message saying "Pseudo is not present but is required, building this
> > first before the main build".
>
> It takes a small amount of time just once. However if this is really an
> issue
> perhaps we could address it directly rather than hacking around it?
>
> > >> 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.
> >
> > That's because BUILDDIR has no meaning outside oe-core's setup scripts.
> > In scripts/bitbake, BUILDDIR would better be called PSEUDODONEDIR or
> > similar, because that's what the variable really means in this context
>
> The naming is such that it should point to the build directory because
> that's
> where pseudodone is meant to be written. I think when it was introduced
> there
> was an idea that it might be useful in other contexts, thus the naming.
>
> > In order to verify that scripts/bitbake is called from the build
> > directory, you could as well just check whether $PWD/conf/local.conf
> exists.
>
> Unfortunately it's not that simple. bitbake.conf pulls in local.conf using
> "include" and not "require", thus it doesn't actually have to exist
> anywhere.
>
> > I'm not using oe-core's scripts, because they make assumptions about the
> > directory layout that don't fit my project's needs. I think they are
> > overly complex
>
> Could you perhaps elaborate on what needs those scripts are not fulfilling?
>
> > and they display texts that seem to suit yocto's needs but at least not
> > mine.
>
> We print these messages so that people know what to do and where to find
> further information. I don't think that's unreasonable. However if you have
> suggestions on how we might improve those messages or allow them to be
> customised if necessary, we could look at changing them.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120316/d477f766/attachment-0002.html>


More information about the Openembedded-core mailing list