From 9571101105565543aa4a811705d17fd90ad9ba04 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 31 Jul 2018 12:43:54 +0000 Subject: 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 --- bitbake/lib/bblayers/action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake') 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): notadded, _ = bb.utils.edit_bblayers_conf(bblayers_conf, layerdirs, None) if not (args.force or notadded): try: - self.tinfoil.parseRecipes() + self.tinfoil.run_command('parseConfiguration') except bb.tinfoil.TinfoilUIException: # Restore the back up copy of bblayers.conf shutil.copy2(backup, bblayers_conf) -- cgit v1.2.3-54-g00ecf