]> code.ossystems Code Review - openembedded-core.git/commit
devtool: modify: fix usage on the kernel
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 15 Dec 2016 21:17:37 +0000 (10:17 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 22 Dec 2016 08:46:35 +0000 (08:46 +0000)
commit06127d0115ba449bf04e2579cd1010065e0ed6e3
treea2378a758434eab562f0b4c9db8159f9c7db2466
parent803b5fa798cf7580c7c10401eb04a1cccf51b8ab
devtool: modify: fix usage on the kernel

When using devtool modify on the kernel, we have to do a bit of a dance
with tinfoil instances because we only find out that we're working on a
kernel recipe after tinfoil is initialised, but then we need to build
kern-tools-native which we're doing just by running bitbake directly.
With the tinfoil2 changes, a datastore for the recipe that we were
keeping around across the opening and closing of tinfoil is no longer
able to be used. Re-parse the recipe to avoid this problem.

(In future this whole thing will be able to be done in the same tinfoil
instance thanks to tinfoil2, but that refactoring is yet to be done.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/devtool/standard.py