Skip to content

Tinfoil rework - OE-Core changes

Paul Eggleton openembedded-core 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14lib/oe/recipeutils: use cooker function instead of bb.providersmeta/lib/oe/recipeutils.py+2 -110 replies
2/14oe-selftest: make tinfoil quiet when using to start QEMUmeta/lib/oeqa/utils/commands.py+1 -10 replies
3/14oe-selftest: use tinfoil.parse_recipe()meta/lib/oeqa/utils/commands.py+1 -30 replies
4/14devtool / recipetool: use tinfoil parsing APIscripts/lib/devtool/__init__.py scripts/lib/devtool/deploy.py scripts/lib/devtool/standard.py +4 more+16 -530 replies
5/14classes/base: fix license file checksumming when source not under TMPDIRmeta/classes/base.bbclass+4 -10 replies
6/14classes/patch: move in logic to commit for additional tasksmeta/classes/patch.bbclass scripts/lib/devtool/standard.py+70 -360 replies
7/14classes/patch: move several functions to oe.patchmeta/classes/patch.bbclass meta/lib/oe/patch.py meta/lib/oe/recipeutils.py+116 -1080 replies
8/14recipetool: add OE lib pathscripts/recipetool+1 -00 replies
9/14devtool: fix extraction of source to work in memres modescripts/lib/devtool/standard.py scripts/lib/devtool/upgrade.py+55 -690 replies
10/14lib/oe/recipeutils: drop parse_recipe_simple()meta/lib/oe/recipeutils.py+0 -220 replies
11/14devtool: extract: disable basehash mismatch errorsscripts/lib/devtool/standard.py+1 -00 replies
12/14devtool: prevent BBHandledException from showing tracebackscripts/devtool+7 -40 replies
13/14oe-selftest: devtool: improve test_devtool_modify slightlymeta/lib/oeqa/selftest/devtool.py+12 -30 replies
14/14oe-selftest: add basic tinfoil testsmeta/lib/oeqa/selftest/tinfoil.py+146 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/14] Tinfoil rework - OE-Core changes

Tinfoil is an API that allows you to write simple utilities that call into BitBake code to read variables, parse recipes, etc. (as used by various scripts in BitBake & OE, including bitbake-layers, devtool, etc.) This patchset reworks tinfoil in order to address several limitations of the current implementation, first and foremost that it doesn't currently work in bitbake's memory resident mode. This rework is also known as "tinfoil2" although the classes and modules have not changed name. This patchset depends upon the corresponding patchset sent to the bitbake-devel list and both sets should be applied together in order for things to remain working.

Note that whilst these patchsets make some significant improvements to how the system behaves in memory resident mode, there are still a number of issues that prevent memory resident mode from being reliable. See this wiki page for a few more details:

https://wiki.yoctoproject.org/wiki/index.php?title=Tinfoil2

I will be converting some of these into bugzilla entries after this patchset and the corresponding one for bitbake get merged.

The following changes since commit d62f18c39bc0ed3b0f5ac8465b393c15f2143ecf:

targetloader.py: drop test for ClassType (2016-12-12 15:16:39 +0000)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib paule/tinfoil2-oecore
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/tinfoil2-oecore

Paul Eggleton (14):
lib/oe/recipeutils: use cooker function instead of bb.providers
oe-selftest: make tinfoil quiet when using to start QEMU
oe-selftest: use tinfoil.parse_recipe()
devtool / recipetool: use tinfoil parsing API classes/base: fix license file checksumming when source not under
TMPDIR
classes/patch: move in logic to commit for additional tasks classes/patch: move several functions to oe.patch
recipetool: add OE lib path
devtool: fix extraction of source to work in memres mode lib/oe/recipeutils: drop parse_recipe_simple()
devtool: extract: disable basehash mismatch errors
devtool: prevent BBHandledException from showing traceback
oe-selftest: devtool: improve test_devtool_modify slightly
oe-selftest: add basic tinfoil tests

 meta/classes/base.bbclass           |   5 +-
 meta/classes/patch.bbclass          | 168 +++++++++++++++---------------------
 meta/lib/oe/patch.py                | 107 +++++++++++++++++++++++
 meta/lib/oe/recipeutils.py          |  49 ++---------
 meta/lib/oeqa/selftest/devtool.py   |  15 +++-
 meta/lib/oeqa/selftest/tinfoil.py   | 146 +++++++++++++++++++++++++++++++
 meta/lib/oeqa/utils/commands.py     |   6 +-
 scripts/devtool                     |  11 ++-
 scripts/lib/devtool/__init__.py     |  26 ++----
 scripts/lib/devtool/deploy.py       |   2 +-
 scripts/lib/devtool/standard.py     | 160 ++++++++++++----------------------
 scripts/lib/devtool/upgrade.py      |   4 +-
 scripts/lib/recipetool/append.py    |  21 +----
 scripts/lib/recipetool/newappend.py |  14 +--
 scripts/lib/recipetool/setvar.py    |   2 +-
 scripts/recipetool                  |   1 +
 16 files changed, 429 insertions(+), 308 deletions(-)
 create mode 100644 meta/lib/oeqa/selftest/tinfoil.py
Signature · 1 line
2.5.5