Skip to content

RFC Remove bitbake's knowledge of ${B}

Ross Burton openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7build: don't automatically mkdir/chdir Bbitbake/lib/bb/build.py+3 -10 replies
2/7build: add remove/mkdir/chdir debuggingbitbake/lib/bb/build.py+15 -00 replies
3/7ptest: add dirsmeta/classes/ptest.bbclass+3 -00 replies
4/7boost: add dirsmeta/recipes-support/boost/boost.inc+1 -00 replies
5/7python: add explicit directory when copyingmeta/recipes-devtools/python/python3_3.4.3.bb meta/recipes-devtools/python/python_2.7.9.bb+2 -20 replies
6/7libc-package: fix path assumptionmeta/classes/libc-package.bbclass+1 -22 replies
7/7kernel: fix path assumptionsmeta/classes/kernel.bbclass+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7][RFC][HEREBEDRAGONS] Remove bitbake's knowledge of ${B}

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(-)
Signature · 1 line
2.1.4