summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-31 12:43:54 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-01 10:07:22 +0100
commit9571101105565543aa4a811705d17fd90ad9ba04 (patch)
tree6a0634cbd23413f7c8470ea3de11e4882b737c4c /bitbake/lib
parentb8730f68d22b9c1ebd012ffd7aedccd22cceb0da (diff)
downloadpoky-9571101105565543aa4a811705d17fd90ad9ba04.tar.gz
bitbake: bblayers: Don't parse all recipes when calling add-layer
When adding multiple layers in a chain of commands, reparsing all recipes each time can be painfully slow. Instead just parse the base configuration which gives some confidence things worked out correctly without as much overhead. (Bitbake rev: cfd1302031f3cca96300a0e445a47b1614ecd00c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bblayers/action.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bblayers/action.py b/bitbake/lib/bblayers/action.py
index aa575d1c09..a3f658f931 100644
--- a/bitbake/lib/bblayers/action.py
+++ b/bitbake/lib/bblayers/action.py
@@ -45,7 +45,7 @@ class ActionPlugin(LayerPlugin):
45 notadded, _ = bb.utils.edit_bblayers_conf(bblayers_conf, layerdirs, None) 45 notadded, _ = bb.utils.edit_bblayers_conf(bblayers_conf, layerdirs, None)
46 if not (args.force or notadded): 46 if not (args.force or notadded):
47 try: 47 try:
48 self.tinfoil.parseRecipes() 48 self.tinfoil.run_command('parseConfiguration')
49 except bb.tinfoil.TinfoilUIException: 49 except bb.tinfoil.TinfoilUIException:
50 # Restore the back up copy of bblayers.conf 50 # Restore the back up copy of bblayers.conf
51 shutil.copy2(backup, bblayers_conf) 51 shutil.copy2(backup, bblayers_conf)