summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-07-19 11:56:01 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-21 08:41:11 +0100
commitb0f0eaf63cc61b855563209b08208d2dcf41dfd3 (patch)
tree34c8d57591ac9693f8d07b85138003532b4ede91 /bitbake
parent192b2e15369fd052e5e4d5f70c5f5d83d50c2b5b (diff)
downloadpoky-b0f0eaf63cc61b855563209b08208d2dcf41dfd3.tar.gz
bitbake: tinfoil: add a parse_recipes() function
Python style recommends underscore based naming rather than camelCase, and thus the former has been used for most of tinfoil's functions. Add an underscored version of parseRecipes() for consistency and change the one place we call it to use the new version. (Bitbake rev: 821f6c41d850752d2bcc2ccd4f8e75b2897a0a3e) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/bin/bitbake-layers2
-rw-r--r--bitbake/lib/bb/tinfoil.py8
2 files changed, 8 insertions, 2 deletions
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers
index 04e6bec251..d184011ea6 100755
--- a/bitbake/bin/bitbake-layers
+++ b/bitbake/bin/bitbake-layers
@@ -90,7 +90,7 @@ def main():
90 90
91 if getattr(args, 'parserecipes', False): 91 if getattr(args, 'parserecipes', False):
92 tinfoil.config_data.disableTracking() 92 tinfoil.config_data.disableTracking()
93 tinfoil.parseRecipes() 93 tinfoil.parse_recipes()
94 tinfoil.config_data.enableTracking() 94 tinfoil.config_data.enableTracking()
95 95
96 return args.func(args) 96 return args.func(args)
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py
index 65ebdc2b78..ddc7b062a0 100644
--- a/bitbake/lib/bb/tinfoil.py
+++ b/bitbake/lib/bb/tinfoil.py
@@ -289,7 +289,13 @@ class Tinfoil:
289 289
290 def parseRecipes(self): 290 def parseRecipes(self):
291 """ 291 """
292 Force a parse of all recipes. Normally you should specify 292 Legacy function - use parse_recipes() instead.
293 """
294 self.parse_recipes()
295
296 def parse_recipes(self):
297 """
298 Load information on all recipes. Normally you should specify
293 config_only=False when calling prepare() instead of using this 299 config_only=False when calling prepare() instead of using this
294 function; this function is designed for situations where you need 300 function; this function is designed for situations where you need
295 to initialise Tinfoil and use it with config_only=True first and 301 to initialise Tinfoil and use it with config_only=True first and