[bitbake-devel] potential confusion with inconsistency between bitbake and poky variable settings

Robert P. J. Day rpjday at crashcourse.ca
Thu Jun 19 17:11:20 UTC 2014


  i'm not sure if i'm looking at this the right way, but i see
potential confusion involving:

a) a bitbake user manual that should theoretically restrict itself to
talking about basic bitbake content, and

b) changes to bitbake settings when one chooses to use a
"higher-level" layer like poky.

let me explain.

  i already understand that the bitbake user manual should restrict
itself to covering bitbake-only topics, and not jump "up" the layer
stack and cover things in oe-core or poky or what have you -- that
should be outside the scope of that manual. the problem occurs because
lots of people *are* going to be building embedded systems based on
checking out, say, poky in its entirety, but will still want to read
the bitbake manual to understand how things work, and they're going to
be confused by the differences.

  case in point: if you look at bitbake's version of bitbake.conf, it
sets variables such as:

  GITDIR = "${DL_DIR}/git"

obviously suggesting that that is the git checkout directory, and the
bitbake user manual even says as much:

http://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#git-fetcher

"This fetcher submodule fetches code from the Git source control
system. The fetcher works by creating a bare clone of the remote into
GITDIR, which is usually DL_DIR/git."

  well, that's great, unless is someone is building based on poky,
whose bitbake.conf file (rather arbitrarily, it seems) redefines that
same variable:

CO_DIR = "${DL_DIR}"
CVSDIR = "${CO_DIR}/cvs"
SVNDIR = "${CO_DIR}/svn"
GITDIR = "${CO_DIR}/git2"

  yes, i understand that the bitbake manual states only that "git/" is
"usually" the checkout directory, bit it also means that people who
checkout oe-core and poky and who read the bitbake user manual are
guaranteed to notice mismatches in places.

  granted, that's a minor example, but i suspect there are others.
thoughts?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================






More information about the bitbake-devel mailing list