RFC Remove bitbake's knowledge of ${B}
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest7 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | build: don't automatically mkdir/chdir Bbitbake/ | +3 | 0 replies | |
| 2/7 | build: add remove/mkdir/chdir debuggingbitbake/ | +15 | 0 replies | |
| 3/7 | ptest: add dirsmeta/ | +3 | 0 replies | |
| 4/7 | boost: add dirsmeta/ | +1 | 0 replies | |
| 5/7 | python: add explicit directory when copyingmeta/ meta/ | +2 | 0 replies | |
| 6/7 | libc-package: fix path assumptionmeta/ | +1 | 2 replies | |
| 7/7 | kernel: fix path assumptionsmeta/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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