summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-16 12:58:52 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:42 +0000
commitacca3440579b5d5149bc951b6c6edafc018f45be (patch)
tree9d2951324b621297414c32bb1e882e3904db484f /bitbake/lib/bb/cooker.py
parentc6328564de8e8cae113ee559d769105f9f4b6003 (diff)
downloadpoky-acca3440579b5d5149bc951b6c6edafc018f45be.tar.gz
cache: create and use a RecipeInfo class
This class holds the particular pieces of information about a recipe which are needed for runqueue to do its job. By using it, I think we improve code clarity, reduce method sizes, reduce overuse of primitive types, and prepare for parallel parsing. In addition, this ditches the leaky abstraction whereby bb.cache attempted to hide the difference between cached data and a full recipe parse. This was a remnant from the way things used to be done, and the code using it had to know the difference anyway. If we choose to reimplement caching of the full recipes, we can do it in bb.parse, in a completely transparent way. (Bitbake rev: 992cc252452221f5f23575e50eb67528b2838fdb) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 2e139558bc..6194919e4c 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -648,8 +648,7 @@ class BBCooker:
648 648
649 # Load data into the cache for fn and parse the loaded cache data 649 # Load data into the cache for fn and parse the loaded cache data
650 the_data = self.bb_cache.loadDataFull(fn, self.get_file_appends(fn), self.configuration.data) 650 the_data = self.bb_cache.loadDataFull(fn, self.get_file_appends(fn), self.configuration.data)
651 self.bb_cache.setData(fn, buildfile, the_data) 651 self.bb_cache.add(fn, the_data, self.status)
652 self.bb_cache.handle_data(fn, self.status)
653 652
654 # Tweak some variables 653 # Tweak some variables
655 item = self.bb_cache.getVar('PN', fn, True) 654 item = self.bb_cache.getVar('PN', fn, True)