[OE-core] [PATCH] devtool: update-recipe: enable var history tracking
Paul Eggleton
paul.eggleton at linux.intel.com
Wed Sep 30 13:58:47 UTC 2015
On Wednesday 30 September 2015 16:51:53 Markus Lehtonen wrote:
> Enable variable history tracking so that the variables are updated in
> the correct file - i.e. in the file they are already defined.
>
> [YOCTO #7715]
>
> Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
> ---
> scripts/lib/devtool/__init__.py | 4 ++--
> scripts/lib/devtool/standard.py | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/lib/devtool/__init__.py
> b/scripts/lib/devtool/__init__.py index 7b1ab11..844aa12 100644
> --- a/scripts/lib/devtool/__init__.py
> +++ b/scripts/lib/devtool/__init__.py
> @@ -96,7 +96,7 @@ def exec_fakeroot(d, cmd, **kwargs):
> newenv[splitval[0]] = splitval[1]
> return subprocess.call("%s %s" % (fakerootcmd, cmd), env=newenv,
> **kwargs)
>
> -def setup_tinfoil(config_only=False, basepath=None):
> +def setup_tinfoil(config_only=False, basepath=None, tracking=False):
> """Initialize tinfoil api from bitbake"""
> import scriptpath
> orig_cwd = os.path.abspath(os.curdir)
> @@ -108,7 +108,7 @@ def setup_tinfoil(config_only=False, basepath=None):
> sys.exit(1)
>
> import bb.tinfoil
> - tinfoil = bb.tinfoil.Tinfoil()
> + tinfoil = bb.tinfoil.Tinfoil(tracking=tracking)
> tinfoil.prepare(config_only)
> tinfoil.logger.setLevel(logger.getEffectiveLevel())
> os.chdir(orig_cwd)
> diff --git a/scripts/lib/devtool/standard.py
> b/scripts/lib/devtool/standard.py index 1dcf7cd..686c9d9 100644
> --- a/scripts/lib/devtool/standard.py
> +++ b/scripts/lib/devtool/standard.py
> @@ -797,7 +797,7 @@ def update_recipe(args, config, basepath, workspace):
> raise DevtoolError('conf/layer.conf not found in bbappend '
> 'destination layer "%s"' % args.append)
>
> - tinfoil = setup_tinfoil(basepath=basepath)
> + tinfoil = setup_tinfoil(basepath=basepath, tracking=True)
>
> rd = parse_recipe(config, tinfoil, args.recipename, True)
> if not rd:
Acked-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the Openembedded-core
mailing list