[OE-core] [PATCH 0/7][RFC][HEREBEDRAGONS] Remove bitbake's knowledge of ${B}

Ross Burton ross.burton at intel.com
Mon Jul 13 14:02:58 UTC 2015


Hi,

So when starting a new task if you don't tell bitbake what directories it should
create (and implicit, chdir() into) it uses ${B}.  Which is bitbake knowing
about openembedded variables, and generally frowned upon.

This branch series removes that knowledge, and if a task is executed without any
directories to create or chdir into it just doesn't do anything.

This revealed a few classes and recipes which assume they're being ran in ${B}
so the rest of the series is either adding back [dirs] flags to the tasks, or
making paths absolute.

Testing has been quite minimal: core-image-sato builds but I've not verified the
contents haven't changed yet.

Comments?

Ross


The following changes since commit 7f8286fb9ec9f9d9f606c69e5abd717078ace5b2:

  classes/sstate.bbclass: Improve checkstatus using connection cache. (2015-07-12 22:55:46 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib ross/dirs

for you to fetch changes up to b306a4b740868835ff0e0ac14d8b7ed9afe83091:

  kernel: fix path assumptions (2015-07-13 14:51:57 +0100)

----------------------------------------------------------------
Ross Burton (7):
      build: don't automatically mkdir/chdir B
      build: add remove/mkdir/chdir debugging
      ptest: add dirs
      boost: add dirs
      python: add explicit directory when copying
      libc-package: fix path assumption
      kernel: fix path assumptions

 bitbake/lib/bb/build.py                       | 19 ++++++++++++++++++-
 meta/classes/kernel.bbclass                   |  8 ++++----
 meta/classes/libc-package.bbclass             |  3 +--
 meta/classes/ptest.bbclass                    |  3 +++
 meta/recipes-devtools/python/python3_3.4.3.bb |  2 +-
 meta/recipes-devtools/python/python_2.7.9.bb  |  2 +-
 meta/recipes-support/boost/boost.inc          |  1 +
 7 files changed, 29 insertions(+), 9 deletions(-)

Ross Burton (7):
  build: don't automatically mkdir/chdir B
  build: add remove/mkdir/chdir debugging
  ptest: add dirs
  boost: add dirs
  python: add explicit directory when copying
  libc-package: fix path assumption
  kernel: fix path assumptions

 bitbake/lib/bb/build.py                       | 19 ++++++++++++++++++-
 meta/classes/kernel.bbclass                   |  8 ++++----
 meta/classes/libc-package.bbclass             |  3 +--
 meta/classes/ptest.bbclass                    |  3 +++
 meta/recipes-devtools/python/python3_3.4.3.bb |  2 +-
 meta/recipes-devtools/python/python_2.7.9.bb  |  2 +-
 meta/recipes-support/boost/boost.inc          |  1 +
 7 files changed, 29 insertions(+), 9 deletions(-)

-- 
2.1.4




More information about the Openembedded-core mailing list