aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/recipetool
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-11-19 17:17:25 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-01 21:30:55 +0000
commit7c33ef77fa165182d24f0a9ae769e9e630e6bd47 (patch)
treeadd7aa6283a08714ec43a7a0ee5bacef74a521ba /scripts/recipetool
parent0f81b83fc5fd908efa7f6b837137830ca65f6ed6 (diff)
downloadopenembedded-core-contrib-7c33ef77fa165182d24f0a9ae769e9e630e6bd47.tar.gz
recipetool: add setvar subcommand
Add a recipetool subcommand "setvar" to set a variable in a file. This uses our existing logic such that it doesn't matter if the variable is already set in the recipe, if it's set in the recipe or some inc file, and if the variable is not currently set that the line setting the variable gets inserted in the right place in the file. Implements [YOCTO #7676]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/recipetool')
-rwxr-xr-xscripts/recipetool4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/recipetool b/scripts/recipetool
index 87fb35ed72a..4af0bfb686e 100755
--- a/scripts/recipetool
+++ b/scripts/recipetool
@@ -34,7 +34,7 @@ plugins = []
def tinfoil_init(parserecipes):
import bb.tinfoil
import logging
- tinfoil = bb.tinfoil.Tinfoil()
+ tinfoil = bb.tinfoil.Tinfoil(tracking=True)
tinfoil.prepare(not parserecipes)
tinfoil.logger.setLevel(logger.getEffectiveLevel())
return tinfoil
@@ -96,7 +96,9 @@ def main():
try:
if getattr(args, 'parserecipes', False):
+ tinfoil.config_data.disableTracking()
tinfoil.parseRecipes()
+ tinfoil.config_data.enableTracking()
ret = args.func(args)
except bb.BBHandledException:
ret = 1