diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-16 15:10:22 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-16 15:10:40 +0100 |
commit | 63e6ba85677b8aa9f4cf9942a1fccbb8a8c72660 (patch) | |
tree | 56be00c10b229ddc5e63bf1f02d7ac5c23ba8381 /bitbake/lib/bb/cache.py | |
parent | c4fde248b14d4be9cab6d0eff85f9d7f852a4b65 (diff) | |
download | openembedded-core-63e6ba85677b8aa9f4cf9942a1fccbb8a8c72660.tar.gz openembedded-core-63e6ba85677b8aa9f4cf9942a1fccbb8a8c72660.tar.bz2 openembedded-core-63e6ba85677b8aa9f4cf9942a1fccbb8a8c72660.zip |
bitbake: Add support for .bbappend files (see mailing lists for detais)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/cache.py')
-rw-r--r-- | bitbake/lib/bb/cache.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index da4546640a..b5c7043c64 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py @@ -165,7 +165,7 @@ class Cache: #bb.msg.debug(2, bb.msg.domain.Cache, "realfn2virtual %s and %s to %s" % (realfn, cls, "virtual:" + cls + ":" + realfn)) return "virtual:" + cls + ":" + realfn - def loadDataFull(self, virtualfn, cfgData): + def loadDataFull(self, virtualfn, appends, cfgData): """ Return a complete set of data for fn. To do this, we need to parse the file. @@ -175,10 +175,10 @@ class Cache: bb.msg.debug(1, bb.msg.domain.Cache, "Parsing %s (full)" % fn) - bb_data = self.load_bbfile(fn, cfgData) + bb_data = self.load_bbfile(fn, appends, cfgData) return bb_data[cls] - def loadData(self, fn, cfgData, cacheData): + def loadData(self, fn, appends, cfgData, cacheData): """ Load a subset of data for fn. If the cached data is valid we do nothing, @@ -206,7 +206,7 @@ class Cache: bb.msg.debug(1, bb.msg.domain.Cache, "Parsing %s" % fn) - bb_data = self.load_bbfile(fn, cfgData) + bb_data = self.load_bbfile(fn, appends, cfgData) for data in bb_data: virtualfn = self.realfn2virtual(fn, data) @@ -439,7 +439,7 @@ class Cache: self.getVar('__BB_DONT_CACHE', file_name, True) self.getVar('__VARIANTS', file_name, True) - def load_bbfile( self, bbfile, config): + def load_bbfile(self, bbfile, appends, config): """ Load and parse one .bb build file Return the data and whether parsing resulted in the file being skipped @@ -463,6 +463,8 @@ class Cache: chdir_back = True data.setVar('TOPDIR', bbfile_loc, bb_data) try: + if appends: + data.setVar('__BBAPPEND', " ".join(appends), bb_data) bb_data = parse.handle(bbfile, bb_data) # read .bb data if chdir_back: os.chdir(oldpath) return bb_data |