poky/scripts/lib/devtool
Paul Eggleton 85de43fccd devtool: fix extraction of source to work in memres mode
Extracting the source for a recipe (as used by devtool's extract, modify
and upgrade subcommands) requires us to run do_fetch, do_unpack,
do_patch and any tasks that the recipe has inserted inbetween, and do so
with a modified datastore primarily so that we can redirect WORKDIR and
STAMPS_DIR in order to have the files written out to a place of our
choosing and avoid stamping the tasks as having executed in a real build
context respectively. However, this all gets much more difficult when in
memres mode since we can't call internal functions such as
bb.build.exec_func() directly - instead we need to execute the tasks on
the server. To do this we use the buildFile command which already exists
for the purpose of supporting bitbake -b, and setVariable commands to
set up the appropriate datastore.

(I did look at passing the modified datastore to the buildFile command
instead of using setVar() on the main datastore, however its use of
databuilder makes that very difficult, and we'd also need a different
method of getting the changes in the datastore over to the worker as
well.)

(From OE-Core rev: eb63b5339014fc72ba4829714e0a96a98e135ee2)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-12-14 12:30:50 +00:00
..
__init__.py devtool / recipetool: use tinfoil parsing API 2016-12-14 12:30:49 +00:00
build_image.py scripts: ensure tinfoil is shut down correctly 2016-09-03 23:45:54 +01:00
build_sdk.py devtool: add build-sdk subcommand 2016-03-07 00:11:38 +00:00
build.py devtool: add "rename" subcommand 2016-11-07 11:04:22 +00:00
deploy.py devtool / recipetool: use tinfoil parsing API 2016-12-14 12:30:49 +00:00
package.py devtool: package: don't try to initialise tinfoil twice 2016-12-14 12:30:49 +00:00
runqemu.py devtool: runqemu: work around runqemu script path assumption 2016-10-25 22:40:09 +01:00
sdk.py devtool: sdk-update: drop support for local updates 2016-05-21 22:24:57 +01:00
search.py devtool: categorise and order subcommands in help output 2016-02-21 09:32:42 +00:00
standard.py devtool: fix extraction of source to work in memres mode 2016-12-14 12:30:50 +00:00
upgrade.py devtool: fix extraction of source to work in memres mode 2016-12-14 12:30:50 +00:00
utilcmds.py devtool: configure-help: fix error if do_configure not already run 2016-03-25 10:29:13 +00:00