diff options
Diffstat (limited to 'bitbake/lib/bb/cookerdata.py')
-rw-r--r-- | bitbake/lib/bb/cookerdata.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py index a0379cf7f3..8a0bc22247 100644 --- a/bitbake/lib/bb/cookerdata.py +++ b/bitbake/lib/bb/cookerdata.py | |||
@@ -239,6 +239,9 @@ class CookerDataBuilder(object): | |||
239 | layerconf = self._findLayerConf() | 239 | layerconf = self._findLayerConf() |
240 | if layerconf: | 240 | if layerconf: |
241 | parselog.debug(2, "Found bblayers.conf (%s)", layerconf) | 241 | parselog.debug(2, "Found bblayers.conf (%s)", layerconf) |
242 | # By definition bblayers.conf is in conf/ of TOPDIR. | ||
243 | # We may have been called with cwd somewhere else so reset TOPDIR | ||
244 | data.setVar("TOPDIR", os.path.dirname(os.path.dirname(layerconf))) | ||
242 | data = parse_config_file(layerconf, data) | 245 | data = parse_config_file(layerconf, data) |
243 | 246 | ||
244 | layers = (data.getVar('BBLAYERS', True) or "").split() | 247 | layers = (data.getVar('BBLAYERS', True) or "").split() |